LowPowerLab Forum

Software support => Pi Gateway => Topic started by: Sstocker on October 02, 2015, 05:14:01 AM

Title: Encryption Key
Post by: Sstocker on October 02, 2015, 05:14:01 AM
I was checking and the encryption key on the gateway reciever and the mail node were not the same. Changed the key on the mail node to match the receiver and now I see nothing on the serial monitor of the sending node like i did be for changing the  key. 

Any clues?  Thanks
Title: Re: Encryption Key
Post by: luisr320 on October 02, 2015, 05:49:09 AM
I think that the encryption key must be exactly 16 characters. No more, no less. Are they?
Title: Re: Encryption Key
Post by: Felix on October 02, 2015, 08:01:54 AM
Not sure where you're looking, but Node and Gateway examples both have this:

#define ENCRYPTKEY    "sampleEncryptKey" //exactly the same 16 characters/bytes on all nodes!
Title: Re: Encryption Key
Post by: Sstocker on October 02, 2015, 12:45:37 PM
The node had "ABCDABCDABCDABCD" as the key and the receiver node had    "sampleEncryptKey" so I changed the sending node key to the receiver key.  It is transmitting data to the gateway.sys.log I just don't see any data from the sender on the serial monitor like I did before changing the keys to match.  The output looks like this:
Transmitting on 915khz
Ok
Ok
Ok
(1).         (Rst-Rssl.   -26)
Nothing
(1).         (Rst-Rssl.   -27)

And so on.

Maybe when everything is working right, there is no output on the serial monitor?
Thanks for the fast and prompt answers.  This is a lot of fun!

Title: Re: Encryption Key
Post by: Felix on October 05, 2015, 08:39:18 AM
Which sketches are you using (links please) and using what hardware (moteino + what radio?)?