Electronics > Beginners

LWMESH Security

<< < (4/6) > >>

ataradov:
The key must be 16 bytes long. Please read the documentation.

Can you explain your test procedure step by step including all the changes, recompilations, device programmings, etc. Since I feel like you are doing something wrong.

Peili:

--- Quote from: ataradov on January 07, 2019, 09:31:01 am ---The key must be 16 bytes long. Please read the documentation.

--- End quote ---
I have checked with the 16 byte key... now they are not communicating..if i enable #define NWK_ENABLE_SECURITY in Coordinator and doesn't in router, they will communicate.. but enabled in both they are not....

ataradov:
If security is requested in the data request, but is not enabled in the stack configuration, then the flag in the request will be ignored and the data will be sent in plain text. And device that has security enabled can always receive plain text data in addition to the encrypted data, of course.

In the NWK_DataInd_t structure there is a flag that tells whether data was received encrypted or not.

But something else was wrong with your previous test anyway. It does not matter that the key was short, some leftover garbage was used as the remainder of the key. If the keys were different on both devices, they should not have been able to communicate.

Peili:

--- Quote from: ataradov on January 07, 2019, 09:31:01 am ---Can you explain your test procedure step by step including all the changes, recompilations, device programmings, etc. Since I feel like you are doing something wrong.


--- End quote ---
we have one coordinator and one router.. i have some level sensors which send level to uart and we have to publish it.. i'm checking  there is some special characters in the data , if true it's write to uart....

ataradov:
That is not what I was asking for. I was asking for the testing steps, like this:
1. Take the first board
2. Set this the key to this value
3. Compile application
4. Program the device
5. Take the second board
etc.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

There was an error while thanking
Thanking...
Go to full version
Powered by SMFPacks Advanced Attachments Uploader Mod