Programming ax500 via python

10 years 1 month ago #29526720 by Anonymous
Programming ax500 via python was created by Anonymous
I'm trying to program the ax500 via python. I can connect to the serial port and read the strings that the ax500 transmits on reset, up through the 'ok'. I can also read the 'W' when the controller is in watch dog mode and not getting commands. However, I'm not getting reasonable answers on any queries. Roborun works just fine, so I know the hardware is fundamentally ok.
I'm using RS232 mode only - not R/C mode.

Please Log in or Create an account to join the conversation.

10 years 1 month ago #29526721 by Roboteq
Replied by Roboteq on topic RE: Programming ax500 via python
If sending 10 time 0x0d gets the controller to switch to rs232 mode and to send W every second then you can send and receive data correctly. Try inserting a delay between sends and receive. Make sure that shutting you send is terminated by a 0x0d

Please Log in or Create an account to join the conversation.

10 years 1 month ago #29526722 by Anonymous
Replied by Anonymous on topic RE: Programming ax500 via python
I had not been terminating with 0x0d after all. When I fixed that, it worked! We are up and running.

Please Log in or Create an account to join the conversation.

Moderators: tonysantoni
Time to create page: 0.090 seconds