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
Help sending commands with Arm 7 SRV1 (Read 2920 times)
g.holmes
YaBB Newbies
*




Posts: 21
Help sending commands with Arm 7 SRV1
05/08/09 at 10:42am
 
Hey. I'm using RXTX's two way communication code example slightly modified to connect to an ARM 7 SRV1 robot. When i connect, and turn on the robot, i get an output in command line giving me the ##version. But i cant seem to get any commands processed by the robot. The code example is in the URL below.
 
http://www.pastesite.com/7000
 
The problem i can't understand is.. What exactly is the command sent as? an int thats say 8?  
a string of hex? say 4D323200 or something else to move forward? Would i change the variable or? I'm not sure.
 
Thanks
Back to top
 
 
  IP Logged
admin
YaBB Administrator
*****




Posts: 3676
Re: Help sending commands with Arm 7 SRV1
Reply #1 - 05/08/09 at 11:09am
 
Here is the command set for the ARM7 SRV-1
 
       http://www.surveyor.com/SRV_protocol_arm7.html
 
In srv.config, those strings are the hex equivalent of ASCII commands.  4D = 'M' for the motor command.
Back to top
 
 

SRV-1 Development Team
Surveyor Corporation
Email WWW   IP Logged
g.holmes
YaBB Newbies
*




Posts: 21
Re: Help sending commands with Arm 7 SRV1
Reply #2 - 05/08/09 at 11:29am
 
I'm sorry, i can't get my head around it.
 
Do you mean i would send in my code a String variable with the contents of:
 
the ASCII = M 50 50 00
Or the Hex = 0x4D 0x32 0x32 0x00
 
ie out.write("M 50 50 00");
or out.write("0x4D 0x32 0x32 0x00);
 
I just don't fully understand. Sorry.
Back to top
 
 
  IP Logged
g.holmes
YaBB Newbies
*




Posts: 21
Re: Help sending commands with Arm 7 SRV1
Reply #3 - 05/08/09 at 1:14pm
 
I've figured it out. But there is one issue.. It doesnt move indefinitely if the command is M505000 (the final two 00's i'm guessing for non stop) i've also tried 20, the length of movement is the same on both. only moves for about 1 second.
Back to top
 
 
  IP Logged
admin
YaBB Administrator
*****




Posts: 3676
Re: Help sending commands with Arm 7 SRV1
Reply #4 - 05/08/09 at 1:36pm
 
There are only 4 bytes in the command.  The 'M' is the first byte.  If you send a '5', that has a hex value of 0x35 or decimal value of 53.  If you send a '0', it has a hex value of 0x30 or decimal value of 48.  There is no ASCII character with a value of 0x00.
 
Back to top
 
 

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