API Specs may be off or bugged
- pmartin
- Topic Author
17 years 11 months ago #3883559
by pmartin
API Specs may be off or bugged was created by pmartin
I have been testing the API commands in hyperterm (windows) as I am testing my linux roboteq drivers I made. I believe the API specs may be off. When I send "^01" I get back "^01<newline>C4<newline>+".
The API states it returns "^WW<space>XX+". My controller is configured to be in Separate A,B closed loop control, so the '4' value is correct, but the rest is off, especially the newline characters.
Were there any changes when the controller software was upgraded to 1.7?
The API states it returns "^WW<space>XX+". My controller is configured to be in Separate A,B closed loop control, so the '4' value is correct, but the rest is off, especially the newline characters.
Were there any changes when the controller software was upgraded to 1.7?
Please Log in or Create an account to join the conversation.
- cosma
17 years 11 months ago #3883960
by cosma
Replied by cosma on topic Re:API Specs may be off or bugged
The "C" in the "C4" reply indicates whether analog or encoder feedback is used for each channel.
It is possible that in V1.7 an extra newline appeared, as we uniformized the way successful commands are acknowledged.
It is possible that in V1.7 an extra newline appeared, as we uniformized the way successful commands are acknowledged.
Please Log in or Create an account to join the conversation.
- pmartin
- Topic Author
17 years 11 months ago #3883993
by pmartin
Replied by pmartin on topic Re:API Specs may be off or bugged
The 'W' I am referring to are actually the placeholders listed in the API description that Tony gave me. For example if I want to read the input control mode on the controller I send:
"^01"
The controller is supposed to respond "^01<space>04<space>+" (for my config). However (and I have repeated this several times, and I am peering into the hardware layer on the linux serial port) I am getting in BOTH Windows hyperterm and my linux app the following reply:
"^01<return>C4<return>+"
"^01"
The controller is supposed to respond "^01<space>04<space>+" (for my config). However (and I have repeated this several times, and I am peering into the hardware layer on the linux serial port) I am getting in BOTH Windows hyperterm and my linux app the following reply:
"^01<return>C4<return>+"
Please Log in or Create an account to join the conversation.
Less
More
- Posts: 22
- Thank you received: 0
17 years 11 months ago #3985094
by tonysantoni
I checked the response of the controller after programming with it with the code in question (^00 04 followed by %rrrrrr).
The controller replies correctly with ^01 04+
One possible explanation could be in non printing characters.
We always strip the non printing characters when building the return string. I did not have the time to check the "unstripped" string so I do not know for sure what it would look like unstripped.
If you need detail on the "unstriopping procedure, see the source code at Roboteq page in <A href="www.tsatechnologies.com" target=_blank target=_blank>www.tsatechnologies.com
Robotony
Replied by tonysantoni on topic Re:API Specs may be off or bugged
I checked the response of the controller after programming with it with the code in question (^00 04 followed by %rrrrrr).
The controller replies correctly with ^01 04+
One possible explanation could be in non printing characters.
We always strip the non printing characters when building the return string. I did not have the time to check the "unstripped" string so I do not know for sure what it would look like unstripped.
If you need detail on the "unstriopping procedure, see the source code at Roboteq page in <A href="www.tsatechnologies.com" target=_blank target=_blank>www.tsatechnologies.com
Robotony
Please Log in or Create an account to join the conversation.
Less
More
- Posts: 22
- Thank you received: 0
17 years 11 months ago #3985134
by tonysantoni
I forgot to say that the source code in question is an emulation of hyperterminal tailored to the Robotewq controller and I run it under Windows 2000.
I
Robotony
Replied by tonysantoni on topic Re:API Specs may be off or bugged
I forgot to say that the source code in question is an emulation of hyperterminal tailored to the Robotewq controller and I run it under Windows 2000.
I
Robotony
Please Log in or Create an account to join the conversation.
Moderators: tonysantoni
Time to create page: 0.059 seconds