2022-04-11 02:25 AM
Hi all,
I'am working with LORA and LORA-E5 chip, I'am trying to adapt the ping pong stm32 example (without lorawan). But for now I have a question, I'd like to have a point to point application, but my question is can I set a server and a client address ? I wan my 2 devices comunicate only between they.
2022-04-11 05:04 AM
Everyone can hear you talking on the radio band.
So you will need to add the station ID or whatever management you want into the data packet being sent and handle it at the receivers.
If the data is sensitive, encrypt it, perhaps with a per station key.
2022-04-11 05:37 AM
Ok nice so I've just to add my ID in my data packet for example first 5 bits and bit 6 to 12 for example will be my data
For example with 15500 ID and PING data (example coming from ST ping pong)
....
Buffer[0] = '1';
Buffer[1] = '5';
Buffer[2] = '5';
Buffer[3] = '0';
Buffer[4] = '0';
Buffer[5] = 'P';
Buffer[6] = 'I';
Buffer[7] = 'N';
Buffer[8] = 'G';
....
Radio.Send( Buffer, BufferSize );
And for encryption what do you preconise?
2022-04-11 09:42 AM
Depends how industrial you need it to be.
The STM32WLE5 has AES-256 unit, doesn't it?
2022-04-12 12:45 AM
Yes you've right STM32WLE5 has a AES unit, I'll try to use it it will be new for me. Good opportunity
to learn something new :)