问题
I use two SX1278 LoRa Ra-02 modules for communication. I wonder how I can set IDs for these two modules to deny an interference with other LoRa modules which work at the same frequency.
I mean, is there a solution similar to pipe addresses of NRF24l01 communication. Thanks in advance.
回答1:
Encryption is the answer to blocking snooping on your communication. This can be a basic XOR encryption, a Caesar cipher or even better rsa.
For the unique ID problem: there are several solutions to this problem and it highly depends on the specific microcontroller you are using. A solution was offered on arduino.stackexchange.com.
For example the ESP8266 has a unique ID accessible through this piece of code: ESP.getChipId()
.
Another option which uses external hardware would be the DS2401 from Maxim Integrated. This is a Silicon Serial Number chip accessible trough a one-wire interface.
来源:https://stackoverflow.com/questions/58326221/ids-for-lora-modules