Hi Colin,
I'm liking your modular approach, I've been struggling with how to standardise messages to and from moteinos and your method seems to tick all the boxes!
However I'm having some problems
Using uni_mote_2p3.ino with arduino 1.05, and current rfm69 library. Moteino R4 without flash.
For any iomode other than 2 (analog), I'm finding my moteino node power cycles straight after sending the value.
In this serial output below, pin 20 as analog is ok, but when i make pin 3 digital in, and enable reporting it power cycles.
Same happens for other pins, set to digital in, or 1-wire..
Have tried other moteinos (with no other hardware connected). and swapped ftdi cables, started commenting out to simplify things, but still no luck..
Any ideas?
thanks, dargs
* removed some 'free memoy' for readability
Time to check data for pin 20, io number 11
Analog input configured for pin 20
Value: SENDING TO 1
iopin:20,iomode:02,ioval:128.0000
SEND COMPLETE
~modparam;iomode;0;0
processing cmdstring
~modparam;iomode;0;0
Command character received
iomode
Modifying iomode: 0
Changing iomode to: 0
Time to check data for pin 20, io number 11
Analog input configured for pin 20
Value: SENDING TO 1
iopin:20,iomode:02,ioval:122.0000
SEND COMPLETE
BEGIN RECEIVED
nodeid:1, ACK TEST,RX_RSSI:-29
END RECEIVED
Free memory: 571
processing cmdstring
ACK TEST
- ACK sent
~modparam;ioreportenabled;0;1
Free memory: 529
processing cmdstring
~modparam;ioreportenabled;0;1
Command character received
ioreportenabled
Modifying io: 0
Enabling ioreporting.
~modparam;ioenabled;0;1
Free memory: 541
processing cmdstring
~modparam;ioenabled;0;1
Command character received
ioenabled
Modifying ioenabled: 0
Enabling io.
Time to check data for pin 3, io number 0
Digital input configured for pin 3
SENDING TO 1
iopin:03,iomode:00,iovalue:0000
SEND COMPLETE
SPI Flash Init FAIL! (is chip present?)
Transmitting at 433 Mhz...
I am node id: 8
Free memory: 704