Device box connection process

Device box connection process


Discovery connection process:
1. After the module is powered on, if it finds that it is not connected to the box, it will report a frame of its own information (device ID, device type, device model) (broadcast information).
2. The box receives the device broadcast information, and the box will display the information of this device (on the mobile phone or box screen)
3. There is a button on the box or mobile phone screen that allows you to ask the device to connect to my box's information (which contains information about the box and the device to be notified) to the module.
4. When the module receives this information, it is sent to itself (and it is received for the first time, and the error message received later is returned to the corresponding box), and it responds with a received message to the box.
5. The box receives the confirmation message from the module, saves the connection status of the device (displayed), and returns a connection OK message to the module.
6. After the module receives the connection OK message, it can confirm that it has been connected to the box. And record it so that you can connect it directly to the box next time you power up.
7. If you find that the module is not connected to the box you want to connect, you can press a trigger reconnect button on the product to clear the information and reconnect.
8. When the box receives the device information (broadcast information), it needs to clear the flag bit that the device is connected to itself, and it becomes the unconnected state.

9. If the module already has the box information, send a connection message to the box to the box.
10. When the box receives this information, it will successfully connect and display it. And send the connection information to the module.
11. The module changes to the connected state after receiving the connection information.

Data communication process:
1. After the box receives a message sent to the module, it will add a protocol (which contains information such as box and module). Of course, the box will also detect whether the module is hung under it. forwarded to the module.
2. After the module receives the information, if it is sent to itself, it will receive it, send it to the product for processing, and return the product information to the box. If the product does not respond to the module for a long time, the module returns a timeout message to the box.
3. The box will also verify the information returned by the module, and send it to the cloud after the verification is passed.
4. Module information reporting is also the same process.
5.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326571831&siteId=291194637