中文 | English
Does the wireless module need to be encrypted? How to encrypt?
Date:2019/5/5 15:49:11   Browse:0

The development of the Internet to this day, can be said to be a hundred flowers, a variety of products on the market, as long as we can think of, can be related to Internet-related products. But what is the most taboo thing to do on the Internet? That is the information leak. If the core technology of a product leaks out, it will be a disaster. As the second generation of the Internet, the Internet of Things is no exception, and information confidentiality is a top priority.

Everyone knows that when transmitting between wireless modules, the data is transmitted wirelessly in the air. At this time, the data is like a baby, and it is very easy for someone to steal and analyze. However, we encrypt it as if the baby had a parental protection, so the chances of others trying to steal it were minimal.

So how do you encrypt the wireless module? We use the LoRa611PRO wireless module for an example:

Encryption selection: Encryption selection: Set whether to enable AESAESAES encryption, [parameter] is 1 word. Setting range: 0001

  parameter

          0

       1

AESencryption

   shut down

    Open

Key: Set the wireless data encryption key, [parameter] is 16 bytes.

Setting range: 0 ~ FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF

Default factory default: 00010030405060708090A0B0C0D0E0F

Ø Instruction [04]

When the module is switched to the configuration state, the RF will detect the surrounding field strength signal in real time, and the user can send the corresponding signal through the serial port.

The instruction to get the current instantaneous field strength value of the module.

The read command is: AA FA 04

The return value is: Real-time signal strength—\r\n (displayed in characters, range 000~255)

For example: "-032\r\n", indicating that the current signal strength value is -32dBm.

Ø Instruction [05]

Read the LBT parameter currently set by the module, without [parameter]

The configuration command is: AA FA 05

The return value is: LBT enable\r\n

For example: Return 01 0D 0A , indicating that idle detection is enabled.

Ø Instruction [06]

Parameter setting command with [parameter] 1 byte, the parameters are: idle detection enable

The configuration command is: AA FA 06 XX

Return command: "OK\r\n" or "ERROR\r\n"

For example: Enable LBT enable, should be sent in hexadecimal: AA FA 06 01

LBT enable

Enable idle detection, [parameter] is 1 byte. Setting range: 0-1

    

  parameter

          0

       1

LBT enable

   shut down

    Open


prev: The difference between the SX1262 wireless module and the SX1276 wireless module
next: How does the wireless module increase the transmit power?