LowPowerLab Forum

Hardware support => Moteino => Topic started by: griff on September 12, 2013, 12:00:21 PM

Title: Default Behavior
Post by: griff on September 12, 2013, 12:00:21 PM
I'm a Moteino newbie, just received a pair of Moteino R2s. Their default behavior, as shipped, was to transmit 'A', 'AB', 'ABC', etc from one Moteino to the other. I next  compiled and uploaded the simple "Blink" program into the "receiver" Moteino, and saw the LED blink on and off as it should.
How do I now restore the default behavior of the pair of Moteinos? Is the source or ".hex" code for this behavior available somewhere?
Title: Re: Default Behavior
Post by: Felix on September 12, 2013, 12:02:15 PM
As stated on the instructions on the invoice, they come bundled with the default Sender/Receiver code that is available on my github repository.
Here are all the examples available for the RFM12B library: https://github.com/LowPowerLab/RFM12B/tree/master/Examples (https://github.com/LowPowerLab/RFM12B/tree/master/Examples)

The sketches I use to preload are the "Test_2way_gateway" and "Test_2way_node_withFlash"
Title: Re: Default Behavior
Post by: griff on September 12, 2013, 01:52:59 PM
Thanks for the reply.  Sorry I must ask these dumb newbie questions. I'm an experienced programmer, but brand new to Moteino and Arduino programming.
I uploaded the "Test_2way_gateway" script into my moteino receiver (marked with colored label). It now displays "Listening at 433mhz" like it originally did, but  is evidently not receiving anything from the "transmitter" moteino.
Did I upload the wrong script?
Maybe a parameter, such as NODEID or NETWORKID or the encryption KEY, doesn't match between the transmitter(slave) and receiver (master).  These parameters in Test_2way_gateway were set to: NODEID 1,  NETWORKID 50.   The "receiver" moteino originally displayed lines like: "[56] 123 ABCDEFG...", indicating some parameter was set to 56.
Should I simply upload the "Test_2way_node" example into my other moteino? It looks like it's paremters are set to match those in "Test_2way_gateway".
Title: Re: Default Behavior
Post by: Felix on September 12, 2013, 02:01:50 PM
All parameters must match. Frequency must match the hardware otherwise RF performance will suffer. Node IDs also have to be different.