Welcome, Guest. Please Login.
Surveyor Corporation Surveyor SRV-1
Home Help Search Login

Surveyor Robotics Forum

Welcome to the user support forum for Surveyor SRV-1 robots, SRV-1 robot controllers and SVS stereo vision systems. To register for this forum, please send an email to support@surveyor.com which includes your desired forum user name, your registration email address, and a brief explanation of why you wish to join, and we will create a forum account for you.

Please note that there is a Search button in the forum toolbar for forum topics. Another effective search method for the entire surveyor.com site is to use Google, e.g. "xyz site://www.surveyor.com" where "xyz" is the search topic.



Pages: 1
Send Topic Print
Node to Node Communication? (Read 4443 times)
atl03001
YaBB Newbies
*




Posts: 26
Node to Node Communication?
04/18/08 at 11:16am
 
I was wondering if it was possible to have one node send a command to another node in swarm mode. I'm thinking I'll have to modify the destination address to the address of the other node, but I'm not sure. Anyone know how?
Back to top
 
 
  IP Logged
admin
YaBB Administrator
*****




Posts: 3602
Re: Node to Node Communication?
Reply #1 - 04/18/08 at 11:46am
 
It's been a while since I looked at this, but you should be able to change the destination address to broadcast, and use resistors to set the ID numbers of the different robots as described here -  
    http://www.surveyor.com/cgi-bin/robot_journal.cgi/2006/10/07#056
    http://www.surveyor.com/cgi-bin/robot_journal.cgi/2006/10/07#057
    http://www.surveyor.com/cgi-bin/robot_journal.cgi/2006/10/07#058
 
The swarm commands are shown at the end of  
         http://www.surveyor.com/SRV_protocol.html
Back to top
 
 

SRV-1 Development Team
Surveyor Corporation
Email WWW   IP Logged
atl03001
YaBB Newbies
*




Posts: 26
Re: Node to Node Communication?
Reply #2 - 04/18/08 at 12:50pm
 
I just manually set the id's at the top of the main.c files (I made 2 different versions for the 2 SRV's)... Do you know of an easy way to switch between sending something from node-to-node and then node-to-base? (I'm not sure where the destination address is defined)
Back to top
 
 
  IP Logged
admin
YaBB Administrator
*****




Posts: 3602
Re: Node to Node Communication?
Reply #3 - 04/18/08 at 2:35pm
 
It's set in the destination address of the XBee.  Take a look at the XBee user docs to see how this is defined.  You can use a terminal or the X-CTU program to change XBee settings.
    http://www.maxstream.net/products/xbee/product-manual_XBee_OEM_RF-Modules.pdf
Back to top
 
 

SRV-1 Development Team
Surveyor Corporation
Email WWW   IP Logged
atl03001
YaBB Newbies
*




Posts: 26
Re: Node to Node Communication?
Reply #4 - 04/27/08 at 1:43pm
 
I have a quick question- I set the node's id's manually in the program, but I haven't had any luck making one node command the other. For example, I made a case where one node would make the other node move, but doing this didn't work (the other nodes address is 1A):  
 
                       uart0SendChar('@');
                 uart0SendChar('1');
                 uart0SendChar('A');
                 uart0SendChar(0x08);
 
Am I approaching this wrong? I checked all three xbee modules, and they all have identical source and destination addresses of '0', so I don't think thats the problem.
Back to top
 
 
  IP Logged
admin
YaBB Administrator
*****




Posts: 3602
Re: Node to Node Communication?
Reply #5 - 04/27/08 at 2:08pm
 
You want to send 0x38 (that is an ASCII '8'), not 0x08
 
                uart0SendChar('@');
                uart0SendChar('1');
                uart0SendChar('A');
                uart0SendChar(0x38);
Back to top
 
 

SRV-1 Development Team
Surveyor Corporation
Email WWW   IP Logged
Pages: 1
Send Topic Print