Welcome, Guest
Messages posted to this category need to be reviewed by the moderator before it gets posted.

TOPIC: Smart Motor with Arduino, can't receive reports

Smart Motor with Arduino, can't receive reports 6 years 4 months ago #663

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?
The administrator has disabled public write access.

Re: Smart Motor with Arduino, can't receive reports 6 years 4 months ago #669

  • csearcy
  • csearcy's Avatar
  • OFFLINE
  • Moderator
  • Posts: 459
  • Thank you received: 77
  • Karma: 23
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.
The administrator has disabled public write access.
Time to create page: 0.273 seconds
Powered by Kunena Forum