POST No. 2407083
How can I program OpenCM 9.04 via paired XBees
2018-11-06 09:18:23 Perrin


I have a CM9.04 board on a robot that I have been programming via the USB port on the board connected to a Windows PC running the Arduino IDE. This works fine but I would like to be able to upload the program wirelessly as it's a walking robot so it would make changes much faster and easier

I have  2 x XBee S2 Pros and USB adaptors for each

I connected one Xbee into the USB port on the Cm9.04 using a Micro b to Micro b USB cable

I connected the other paired Xbee into the Windows PC USB port using another USB XBee Adaptor with a standard PC USB port to micro B usb cable

Then using the Arduino IDE I then tried to upload a program but it fails to connect to the CM9.04. 

I know the XBees are correctly paired and can communicate with each other. They are configured in the default transparent serial connection mode.

Has anyone tried to do this successfully?



2018-11-06 09:18:23
2018-11-06 10:41:03 Will Son

Hi John,

Thank you for the inquiry.

When a sketch is downloaded from Arduino IDE, it'll look for a specific information for OpenCM9.04 from the COM port, therefore using XBee module for transmitting program will not possible.

Thank you.

2018-11-06 10:41:03
2018-11-07 19:43:21 John Perrin

Hi Will,

Thanks for the reply. I don't quite understand what you mean as the XBees are configured to be a transparent serial connection which is effectively a piece of wire so they appear as a comm port at both the PC and the OpenCM9.04 board. However assuming Xbees can't be used is there any other method of wireless programming? 



2018-11-08 11:44:51 willson
I'm not sure how your XBee works, but how OpenCM9.04 recognizes XBee device connected to the micro USB port without a driver?
Also there are several information transmitted back and forth during download process with specific device information.
So I'd say that only USB connection to PC can be used in order to programming the OpenCM9.04 for now.
Thank you.
2018-11-08 11:44:51
2018-11-07 19:43:21
2018-11-08 18:14:30 John Perrin

Thanks, that makes it clearer. Good point about the driver.

2018-11-09 16:27:09 willson
Thank you for the feedback.
I hope your project goes well :)
2018-11-09 16:27:09
2018-11-08 18:14:30
2019-03-22 05:27:43 Chris

Ive added a new post I think  relevant to this, but jump in here as well
. I am pretty certain I was able to access the OpenCM9.04 control table before. Instead of uploading via Arduino IDE cant we write Arduino code to change registers on the 9.04 ? Ive done this successfully with the motors, sending ASCII strings from my python environment, through the 9.04  which set registers, etc. This should theoretically be doable with Xbees i would think. I have a pair and eventually intend to try them out.

I am basically trying to build a settable  remote register GUI for the 9.04  that i can access in my PC development envirinomnment, to assist in developing remote control from my pc.

2019-03-22 05:27:43
웹에디터 시작 웹 에디터 끝