Smart Motor with Ar...
 
Notifications
Clear all

Smart Motor with Arduino, can't receive reports

2 Posts
1 Users
0 Likes
9,285 Views
(@Fredjikrang)
Posts: 8
Active Member Guest
Topic starter
 

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:

RA
Sent
Status:
ƒ‚jþ

RA
Sent
Status:
Áƒjþ

RA
Sent
Status:
‚®ø

RA
Sent
Status:

RA
Sent
Status:
‚®ø

RA
Sent
Status:

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?

 
Posted : 10/07/2012 3:13 pm
(@csearcy)
Posts: 316
Reputable Member Guest
 

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.

 
Posted : 12/07/2012 7:44 pm
Share: