I am working on a research project, and haven't had any significant problems with getting an Arduino to talk to a Smart Motor over RS232, but I can't get reports back. When I send a request for a report, all I get back is gibberish. I'm not really sure what is going on.
Do I need to send a "PRINT(RP)", or can I just send "RP"? I get something back for each one, but they don't make sense. What should the information I get back look like?
Also, the gibberish doesn't seem consistent, and it seems like if it was a translation problem it should be. For example, if I send "RA" to the motor, I don't always get the same nonsense back. Here are some real examples:
RA
Sent
Status:
jþ
RA
Sent
Status:
jþ
RA
Sent
Status:
Ájþ
RA
Sent
Status:
®ø
RA
Sent
Status:
jþ
RA
Sent
Status:
®ø
RA
Sent
Status:
Sø
So, I can control it just fine, but I can't get the motor's status back in a way that makes sense. Any ideas?
Make sure that you follow the report commands with either a SPACE (0x20) or a CR (0x0D).
The responses will come back as ASCII (not Integer) values... followed by a CR.