Society of Robots - Robot Forum

Software => Software => Topic started by: vinodhkumarvk on February 24, 2011, 07:09:09 AM

Title: regarding communication between two mobile robots
Post by: vinodhkumarvk on February 24, 2011, 07:09:09 AM
Dear Sir,

I am newbie to robotics field and i need to develop a communication between two mobile robots. by means  of Bluetooth.

both the WMR's have Bluetooth embedded on them...

so i need any algorithms or any tutorials regarding the programming of two robots.

I am working under C language (Linux platform)

please do help me regarding this issue
Title: Re: regarding communication between two mobile robots
Post by: rbtying on February 24, 2011, 10:35:44 AM
Use the Bluetooth SPP (Serial Port Protocol), or be somewhat more intelligent and just use ad-hoc wifi, since you're apparently running on a system that can run linux.
Title: Re: regarding communication between two mobile robots
Post by: vinodhkumarvk on February 25, 2011, 08:24:31 AM
Dear Sir,

does RFCOMMM refer to --->bluetooth serial port protocol

the bots are  not having any wifi modules embedded?? so how can i connect it in ad-hoc network....

Title: Re: regarding communication between two mobile robots
Post by: rbtying on February 25, 2011, 11:45:48 AM
rfcomm is the SPP, yes.  If you've got embedded linux running, you can probably afford to put in a USB wifi dongle.  Then your life is much easier - the protocols are all defined already, and you don't have to worry about low-level communications. 

If you must use bluetooth, be aware that it's not the easiest thing to configure - your best bet is to open an rfcomm tunnel between the two bots and pretend it's a serial port.
Title: Re: regarding communication between two mobile robots
Post by: vinodhkumarvk on February 26, 2011, 07:21:58 AM
thank u very much sir.....

Yes I have to do it in bluetooth....

im refering this book so that i can get an idea on the bluetooth rfcomm programming.

Bluetooth essentials for programmers By Albert S. Huang, Larry Rudolph

will it be enough?????? and i have very less time to develop my code :(
Title: Re: regarding communication between two mobile robots
Post by: rbtying on February 26, 2011, 02:57:04 PM
Bluetooth to bluetooth rfcomm can be done by switching one of the modules to master mode, and creating a connection between the two.  Then, treat the resulting /dev/rfcomm* port as a serial port, which is much easier to deal with.  The book you list seems to be good, but I don't have any personal experience with it and thus cannot make a recommendation. 
Title: Re: regarding communication between two mobile robots
Post by: vinodhkumarvk on February 27, 2011, 08:41:39 AM
Yes sir, i want to make one robot as master and other as slave...( by means of RFCOMM )

And i want to transfer the data to slave from master....

oh ..kk.....and if u do find information regarding this query please do reply me ..

thank u very much !!!