Author Topic: Encryption Key  (Read 1603 times)

Sstocker

  • NewMember
  • *
  • Posts: 5
Encryption Key
« 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

luisr320

  • Sr. Member
  • ****
  • Posts: 255
  • Country: pt
Re: Encryption Key
« Reply #1 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?

Felix

  • Administrator
  • Hero Member
  • *****
  • Posts: 6866
  • Country: us
    • LowPowerLab
Re: Encryption Key
« Reply #2 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!

Sstocker

  • NewMember
  • *
  • Posts: 5
Re: Encryption Key
« Reply #3 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!


Felix

  • Administrator
  • Hero Member
  • *****
  • Posts: 6866
  • Country: us
    • LowPowerLab
Re: Encryption Key
« Reply #4 on: October 05, 2015, 08:39:18 AM »
Which sketches are you using (links please) and using what hardware (moteino + what radio?)?