i'm trying to make my Arduino Mega wireless by using two XBee's.
but i'm running into a strange problem.
As you know i'm rewriting standardFirmata to run on my mega.
When i enable reporting on my first 13 input-pins and my 16 analog-inputs, firmata crashes and goes into a reboot-loop. (just keeps flashing firmware version)
The strange thing is that this doesn't occur when directly conencting with a usb cable.
well. off to find out more
-edit 27-10-
problem solved.
I'm using the XBee in AT-mode, wich means that you can escape to command mode by sending a string of characters. The data that i was sending from FirMega to the host did sometimes represent that exact string!
Fortunately, the XBee frimware can be told to use timeouts around this string, so accidental switches to Command-Mode won't occur. :)
I increased that timout, and the problem disappeard.
Abonneren op:
Reacties posten (Atom)
1 opmerking:
Hi, I am looking to help the development of the maxuino for the arduino mega. Is there anyway that I could have a copy of the firmega code so I can work on it or you could pass the source directly to the maxuino developer? Thanks so much!
Een reactie posten