Hi,我想请问下在协议栈中,如何使终端直接加入网络,实现扫描二维码入网?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
想要实现安全性的二维码入网,你可以使用install code的入网方式,具体可以见 the Base Device Behavior v1.0 specification。
Install Codes
Install codes are 128 bits of random data + 16 bit CRC, which are passed through an MMO hash function to generate a TC Link Key
Install codes example: a manufacturer gives a joining device a pre-configured TC link key derived from an install code and ships the device with a hard copy of the install code, which is manually entered into the Trust Center along with the IEEE address of the joining device, via some kind of out-of-band method (for example, a gateway w/ UI, a scanner for a QR code, etc). This derived key is now used as "Link Key A" (see flow chart to the right) instead of the well-known TC Link key, thus no well-known key is ever used to encrypt data over-the-air.