Rich,
thanks for commenting ! As soon as the Bees arrive Iâll give it a go myself
With regards to jumping out of command mode, I do prefer the ATO (or ATO0) as well, however since the original firmware only allows for single commands I didnât want to break backward compatibility
@Icing: what do you think ? Should we change the command behaviour from single commands only to allowing multiple commands ? (and switching back to datamode using ATO (or ATO0)).
The DEC is indeed required to get readable output. Case independence is indeed convenient
Your remark on the 4800 baud is a bit confusing to me. Do you mean the IDE is standard on 4800 baud ? On my wintel box the serial monitor starts at 9600.
The IDE totally runs on the PC/Mac side, only the code produced with the IDE runs on the Rfbee, so the version of the IDE does not impact the clockrate of the device.
I just reread the datasheet of the RFbee and it says:
âSelect Tools->Board->Ardunio Pro or Pro Mini (3.3v, 8MHz) w/ATmega168.â
My previous suggestion of usening âArduino Diecimila , Duemilanove or Nano w/ATmega 168â was based on my compilation efforts of the original firmware (not having a device), compilation works fine on this setting, but apparently some other settings are required as well Apologies for the incorrect advice
With regards to the âlink level protocolâ I would like to suggest to align with the xbee format as it avoids reinventing the wheel
The challenge with devices like this is indeed resources. My last version uses about about 7.5Kb flash out of 14 (16 - 2 for the bootloader) so we still have âplentyâ of flash space. RAM is 2K and unfortunately a bit hard to measure on these critters. Thatâs why I try to retain as little globals as possible, use bytes instead of ints and moved the config tables to PROGMEM (which is flash ).
With regards to the timeout on commands, it is possible to fix that behaviour by changing readSerialCmd().
Attached a new version which solves your issue (and contains the strncasecmp and DEC fixes as well )
Anyways: many thanks for sharing your experiences and your suggestions for fixes.
Hans
rfBeeSerial.zip (2.76 KB)