Multi-module communication framework method based on IoT platform
The multi-module communication framework on the IoT platform addresses inefficiencies in existing systems by using MQTT and js script parsing to facilitate flexible and scalable data processing and control across diverse modules.
Patent Information
- Application Number
- CN202411315173.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-20
- Publication Date
- 2024-12-10
AI Technical Summary
Existing multi-module communication systems lack flexibility and efficiency, particularly in handling diverse types of modules, data processing through IoT platforms, real-time control, and utilizing lightweight communication protocols like MQTT.
A multi-module communication framework based on the IoT platform using MQTT for data transmission, combined with js script parsing to process and integrate data from Cat1 and WiFi modules, enabling efficient data flow and control across different modules.
Enhances flexibility and scalability of communication systems by enabling efficient data transmission, parsing, and control between different modules, supporting big data analysis and real-time intelligent control.
Smart Images

Figure CN119109952A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of multi-module communication, and in particular to a multi-module communication framework method based on an IoT platform. Background Art
[0002] With the development of IoT technology, the demand for communication between devices and modules is increasing, and the communication modules used between different types of devices may be completely different. The traditional single module communication method cannot meet the diverse needs and increasingly complex communication environment. This requires a more flexible and efficient communication framework to support data exchange and processing between different modules.
[0003] There is a patent at present, publication number: CN116266834A, name: A multi-module communication system based on WEB. The multi-module communication system based on WEB in the patent scheme includes a WEB application module, a first WiFi module, a second WiFi module, a first peripheral device and a second peripheral device. The first peripheral device is used to send a first instruction to the first WiFi module in response to a first operation of the user; the first WiFi module is used to send the first instruction to the WEB application module based on the WebSocket protocol: the second peripheral device is used to send a second instruction to the second WiFi module in response to a second operation of the user, and the second WiFi module is used to send the second instruction to the WEB application module based on the WebSocket protocol; the WEB application module is used to receive the first instruction sent by the first WiFi module and the second instruction sent by the second WiFi module, and send the first instruction to the second WiFi module based on the WebSocket protocol, and send the second instruction to the first WiFi module. This patent has four main shortcomings: Shortcoming 1: Although the patent involves multi-module communication, it does not involve different types of modules, and all are for communication of WiFi modules; Shortcoming 2: The patent does not process and transfer data through the IoT platform; Shortcoming 3: The patent is based on the websocket protocol for communication, which is not as lightweight and efficient as MQTT; Shortcoming 4: The patent does not involve intelligent control and big data processing of equipment, and cannot control the specific information of the equipment in real time.
[0004] There is a patent at present, publication number: File number: CN217216573U Name: Multi-module communication system, the patent scheme provides a multi-module communication system, including a first Cat.1 communication module and a second Cat.1 communication module; the first Cat.1 communication module and the second Cat.1 communication module are respectively connected to the base station; the first Cat.1 communication module and the second Cat.1 communication module establish a first connection through a universal asynchronous receiver and transmitter; the first Cat.1 communication module and the second Cat.1 communication module establish a second connection through a universal input / output port; the first Cat.1 communication module realizes communication through the 0penCPU mode, and the second Cat.1 communication module realizes communication through the Attention (AT) instruction mode. This patent has four main shortcomings. Shortcoming 1: Although this patent involves multi-module communication, it does not involve different types of modules, and all are for the communication of Cat.1 modules; Shortcoming 2: This patent does not process and transfer data through the IoT platform; Shortcoming 3: This patent does not involve the use of MQTT for communication between devices and cloud platforms; Shortcoming 4: This patent does not involve intelligent control and big data processing of equipment, and it is impossible to control the specific information of the equipment in real time and make targeted optimization plans. Summary of the invention
[0005] The purpose of the present invention is to provide a multi-module communication framework method based on the IoT platform, in order to solve the technical problems existing in the background technology.
[0006] In order to achieve the above object, the present invention adopts the following technical solutions:
[0007] A multi-module communication framework method based on an IoT platform comprises the following steps:
[0008] Step 1: Register the Cat1 module device and WiFi module device to the IoT platform cdc device center through the interface, register the Cat1 device to the CAT1 platform simultaneously, and activate the device;
[0009] Step 2: The user binds to the device by matching the device center data, thus realizing the interconnection and communication between the user and the device;
[0010] Step 3: The Cat1 device reports the configuration data and device data to the CAT1 platform through MQTT. The CAT1 platform classifies and organizes the data through the data model and transfers the device status data to the IoT platform through the specified MQTT topic.
[0011] Step 4: The WiFi device directly reports the device status data to the IoT platform through the built-in SDK;
[0012] Step 5: After the IoT platform receives the device data from steps 2 and 3, it starts the js protocol parsing script of the corresponding device by executing the js parsing engine, and parses the device data into recognizable json data;
[0013] Step 6: The IoT platform writes the device data into the device shadow, transfers it to the services of the Zhihuijia platform through Kafka packets, analyzes and processes the data, and transfers the data to the big data platform;
[0014] Step 7: The user terminal can send control instructions to the device through the specified MQTT topic. Different module devices only need to subscribe to the corresponding MQTT topic to receive control instructions. There are two ways to send instructions. The first is to send control instructions directly through MQTT, and the device side performs data analysis and processing; the second is to enable the js parsing script through the IoT platform to parse the control instructions into transparent data, and then send it to the device side;
[0015] Step 8: The IoT platform analyzes, integrates and processes data from different modules based on the MQTT service to achieve multi-module communication.
[0016] In some embodiments, the process of the WiFi module cloud platform communication framework includes the following steps:
[0017] The device calls the registration interface to register the device to the IoT platform cdc device center and activates the device to ensure that the device can perform subsequent data communication;
[0018] The user calls the binding interface through the Zhihuijia app or mini program to bind the device to the user and establish the association between the user and the device;
[0019] The device reports device-related data to the MQTT server through the MQTT specified topic to ensure that the data is transmitted in accordance with the MQTT protocol standards;
[0020] Based on the device communication protocol, write and deploy the device data transparent transmission JS script to parse the device data and parse the hexadecimal data into recognizable json format data to ensure that the data can be recognized and processed;
[0021] In the IoT platform, subscribe to the MQTT topic, and after receiving the data reported by the device, use the JS engine to execute the parsing script, store the parsed device data in the device shadow, Zhihuijia platform and big data platform, and group the data through Kafka to transfer to other data processing services;
[0022] The user sends control instructions to the device through the app or applet through the specified MQTT topic. The device needs to subscribe to the corresponding MQTT topic to receive control instructions;
[0023] There are two ways to send control instructions. The first is to send the control instructions directly through MQTT, and the device side will parse and process the data. The second is to use the IoT platform to enable the js parsing script to parse the control instructions into transparent data, and then send it to the device side.
[0024] In some embodiments, the process of the Cat1 module cloud platform communication framework includes the following steps:
[0025] The device calls the registration interface to register the device to the CAT1 platform and initialize the device to ensure that the device can perform subsequent data communication;
[0026] The device obtains device initialization information, MQTT topic, key and other configuration information through the interface;
[0027] The device reports data to the CAT1 platform through MQTT, and the CAT1 platform persists the data and pushes it to the shared business platform;
[0028] The shared business platform parses the data through the protocol and synchronizes the status to the mobile terminal through the socket;
[0029] The mobile terminal issues instructions, which are encapsulated through the shared service platform protocol and then pushed to the CAT1 platform after processing;
[0030] The CAT1 platform pushes the encapsulated original message to the device through MQTT, and the device parses and executes it according to the protocol;
[0031] The Cat1 module cloud platform communication framework workflow is completed.
[0032] In some embodiments, the process of connecting a Cat1 module device to the IoT cloud platform system based on MQTT is as follows:
[0033] The device calls the registration interface to register the device to the CAT1 platform and the CDC device center, and initializes the device;
[0034] The user uses a mobile terminal to establish a binding relationship with the device by scanning a code or other means to ensure that the device can perform subsequent data communication;
[0035] The device reports data to the CAT1 platform through the specified topic of MQTT;
[0036] The CAT1 platform pushes the existing equipment status data to the shared business platform, and after parsing, synchronizes the status to the user terminal through the socket; the incremental equipment status data configured on the IoT platform is transferred to the IoT platform through the MQTT topic of Zhihuijia;
[0037] The IoT platform uses the pre-cached redis secret key and js parsing engine to parse the flow data based on the secret key and js protocol parsing script. After the parsing is completed, it is transferred to the device shadow, Zhihuijia platform microservice, big data platform and other data analysis and processing platforms;
[0038] The device subscribes to the MQTT topic where the IoT platform sends the control command. The mobile terminal sends the control command directly to the device through MQTT, or parses it through the IoT platform js and then forwards it to the device for control execution.
[0039] The multi-module communication framework method based on the IoT platform provided in this application has beneficial effects including but not limited to:
[0040] The technical solution adopted by the present invention is to design a multi-module communication framework based on the IoT platform, the CAT1 platform and the MQTT service to realize the data flow of the Cat1 module and the WiFi module. When the device communicates with the cloud platform, the WiFi module device directly transmits the data through MQTT, and the IoT platform calls the js script file through the js engine to parse, process and flow the data; while the Cat1 module device first transmits the data to the CAT1 platform through MQTT, and stores the production test, configuration and other information on the CAT1 platform, and then transfers the data to the IoT platform through the MQTT service for data parsing and data flow; the instructions are directly sent through the IoT platform, and the device side subscribes to the specified MQTT topic to implement the control command issuance; the technical effect achieved is based on the design framework of the present invention, and by implementing the communication framework designed by this patent, the efficient transmission, parsing and control of data between different modules are realized, and the flexibility and scalability of the communication system are enhanced. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Figure 1 This is a schematic diagram of a multi-module communication framework method based on the IoT platform.
[0042] Figure 2 This is the architecture diagram of the existing Cat1 module equipment cloud platform communication system;
[0043] Figure 3 This is the architecture diagram of the existing WiFi module device cloud platform communication system;
[0044] Figure 4 This is the system architecture diagram for connecting Cat1 module devices to the IoT cloud platform. DETAILED DESCRIPTION
[0045] In order to make the purpose, technical solutions and advantages of the present application clearer, the technical solutions in the embodiments of the present application will be described in more detail below in conjunction with the drawings in the preferred embodiments of the present application. In the drawings, the same or similar reference numerals throughout represent the same or similar parts or parts with the same or similar functions. The described embodiments are part of the embodiments of the present application, not all of the embodiments. The embodiments described below with reference to the drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limitations on the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.
[0046] The following will be combined Figure 1-4 It is worth noting that the following embodiments are only used to explain the present application and do not constitute a limitation on the present application.
[0047] Example
[0048] The purpose of the implementation mode of the present invention is to provide a multi-module communication framework method based on the IoT platform. The technical problem solved is to break the limitation of the single module communication mode on the device, and realize that different types of devices can flexibly use different communication modules to communicate with the cloud platform to meet the diversified needs and the increasingly complex communication environment; the technical solution adopted is to design a multi-module communication framework based on the IoT platform, CAT1 platform and MQTT service to realize the data flow of Cat1 module and WiFi module.
[0049] When the device communicates with the cloud platform, the WiFi module device directly transmits the data through MQTT, and the IoT platform calls the js script file through the js engine to parse, process and transfer the data; the Cat1 module device first transmits the data to the CAT1 platform through MQTT, and stores the production test, configuration and other information on the CAT1 platform, and then transfers the data to the IoT platform through the MQTT service for data analysis and data flow; the instructions are directly passed through the IoT platform, and the device side subscribes to the specified MQTT topic to implement the control command issuance; the technical effect achieved is based on the design framework of the present invention. By implementing the communication framework designed by this patent, efficient transmission, analysis and control of data between different modules are achieved, and the flexibility and scalability of the communication system are enhanced.
[0050] The present invention provides a multi-module communication framework method based on an IoT platform. The multi-module communication framework method based on the IoT platform comprises: realizing that a WiFi module communicates with an IoT platform based on MQTT, and parsing, processing and transferring data through a js script file; realizing that a Cat1 module transparently transmits data to a CAT1 platform through MQTT, and transfers device data to an IoT platform, so as to realize communication between the same IoT platform and multiple modules; realizing efficient transmission, parsing and control of data between different modules, and enhancing the flexibility and scalability of a communication system; transferring data of different modules to a big data center, so as to realize big data analysis and processing of equipment.
[0051] Among them, the process of the multi-module communication framework method based on the IoT platform includes the following steps:
[0052] 1. Register the Cat1 module device and WiFi module device to the IoT platform cdc device center through the interface, register the Cat1 device to the CAT1 platform simultaneously, and activate the device to ensure that the device can perform subsequent data communication;
[0053] 2. Users bind to devices by matching device center data, thus enabling interconnection and communication between users and devices;
[0054] 3. The Cat1 device reports the configuration data and device data to the CAT1 platform through MQTT (ch / device / cat / dev / #). The CAT1 platform classifies and organizes the data through the data model, and transfers the device status data to the IoT platform through the specified MQTT (d / sn / m) topic;
[0055] 4. WiFi devices directly report device status data to the IoT platform through the built-in SDK;
[0056] 5. After the IoT platform receives the device data in steps 2 and 3, it starts the js protocol parsing script of the corresponding device by executing the js parsing engine, and parses the device data into recognizable json data;
[0057] 6. The IoT platform writes the device data into the device shadow, transfers it to the services of the Zhihuijia platform through Kafka groups, analyzes and processes the data, and transfers the data to the big data platform to provide data support for the big data business;
[0058] 7. The user terminal can send control instructions to the device through the MQTT specified topic (d / sn / i). Different module devices only need to subscribe to the corresponding MQTT topic to receive control instructions;
[0059] 8. There are two ways to send commands. The first is to send control commands directly through MQTT, and the device side will parse and process the data. The second is to use the IoT platform to enable the js parsing script to parse the control commands into transparent data, and then send them to the device side.
[0060] 9. The IoT platform analyzes, integrates and processes data from different modules based on the MQTT service to achieve multi-module communication. The multi-module communication framework method process based on the IoT platform is completed.
[0061] See also Figure 3 , the process of WiFi module cloud platform communication framework is as follows:
[0062] 1. The device calls the registration interface to register the device to the IoT platform cdc device center and activates the device to ensure that the device can perform subsequent data communication;
[0063] 2. The user calls the binding interface through the Zhihuijia app or mini program to bind the device to the user and establish the association between the user and the device;
[0064] 3. The device reports device-related data to the MQTT server through the MQTT specified topic (d / sn / m) to ensure that the data is transmitted in accordance with the MQTT protocol standards;
[0065] 4. Based on the device communication protocol, write and deploy the device data transparent transmission JS script to parse the device data and parse the hexadecimal data into recognizable json format data to ensure that the data can be recognized and processed;
[0066] 5. In the IoT platform, subscribe to the MQTT topic (d / sn / m). After receiving the data reported by the device, use the JS engine to execute the parsing script, store the parsed device data in the device shadow, Zhihuijia platform and big data platform, and group the data through Kafka to transfer to other data processing services;
[0067] 6. The user sends control instructions to the device through the app or applet through the MQTT specified topic (d / sn / i). The device needs to subscribe to the corresponding MQTT topic to receive control instructions;
[0068] 7. There are two ways to send control instructions. The first is to send control instructions directly through MQTT, and the device side will parse and process the data. The second is to use the IoT platform to enable the js parsing script to parse the control instructions into transparent data, and then send it to the device side.
[0069] 8. Steps 1-5 implement the reporting and processing of device data, and steps 6-7 implement the issuance and execution of control instructions;
[0070] 9. Ensure that the workflow of the WiFi module cloud platform communication framework is complete and efficient, and the workflow of the WiFi module cloud platform communication framework is completed.
[0071] See also Figure 2 , the Cat1 module cloud platform communication framework process is as follows:
[0072] 1. The device calls the registration interface, registers the device to the CAT1 platform, and initializes the device to ensure that the device can perform subsequent data communication;
[0073] 2. The device obtains device initialization information, MQTT topic, key and other configuration information through the interface;
[0074] 3. The device reports data to the CAT1 platform through MQTT, and the CAT1 platform persists the data and pushes it to the shared business platform;
[0075] 4. The shared business platform parses the data through the protocol and synchronizes the status to the mobile terminal through the socket;
[0076] 5. The mobile terminal issues a command, which is encapsulated through the shared service platform protocol and then pushed to the CAT1 platform after being processed;
[0077] 6. The CAT1 platform pushes the encapsulated original message to the device through MQTT, and the device parses and executes it according to the protocol;
[0078] 7. The Cat1 module cloud platform communication framework workflow is completed.
[0079] See also Figure 4 The process of connecting Cat1 module devices to the IoT cloud platform based on MQTT is as follows:
[0080] 1. The device calls the registration interface to register the device to the CAT1 platform and the CDC device center, and initialize the device;
[0081] 2. The user uses a mobile terminal (app / mini program) to establish a binding relationship with the device by scanning a code or other means to ensure that the device can perform subsequent data communication;
[0082] 3. The device reports data to the CAT1 platform through the MQTT specified topic (ch / device / cat / dev / #);
[0083] 4. The CAT1 platform pushes the existing device status data to the shared business platform, and after parsing, synchronizes the status to the user terminal through the socket; the incremental device status data configured on the IoT platform is transferred to the IoT platform through the MQTT topic (d / sn / m) of Zhihuijia;
[0084] 5. The IoT platform uses the pre-cached redis secret key and js parsing engine to parse the flow data based on the secret key and js protocol parsing script. After the parsing is completed, it is transferred to the device shadow, Zhihuijia platform microservice, big data platform and other data analysis and processing platforms;
[0085] 6. The device subscribes to the MQTT topic (d / sn / i) issued by the IoT platform control command. The mobile terminal directly sends the control command to the device through MQTT, or parses it through the IoT platform js and then forwards it to the device for control execution. The workflow of the method for connecting Cat1 module devices to the IoT cloud platform based on MQTT is completed.
[0086] The functional components of the multi-module communication framework method based on the IoT platform are as follows:
[0087] 1. Different module devices call the same device registration and activation interface to register the device to the IoT platform cdc device center;
[0088] 2. The user uses a mobile terminal (app / mini program) to establish a binding relationship with the device by scanning a code or other means to ensure that the device can perform subsequent data communication;
[0089] 3. The data reported by Cat1 module devices is transferred through the CAT1 platform based on MQTT, and the WiFi module devices report directly through MQTT;
[0090] 4. The IoT platform executes the device js protocol script through the device secret key and js engine to parse the device data;
[0091] 5. The IoT platform transfers the parsed data to data analysis and processing platforms such as device shadow, Zhihuijia platform microservices, and big data platforms;
[0092] 6. Users can grasp device data in real time through mobile terminals, and can send control instructions to the MQTT topic subscribed by the device through the terminal, which will be parsed by the IoT platform and forwarded to the device for control execution.
[0093] To explain the technical content of the present invention in detail, a scenario of a multi-module communication framework system and method based on an IoT platform is given as an example for detailed description.
[0094] Based on the existing WiFi module devices communicating based on the IoT platform and the Cat1 module devices communicating based on the CAT1 platform, the Cat1 module small multi-link device (hereinafter referred to as Cat1 small multi-link) is extended to access the IoT platform to realize multi-module communication. The scenario is as follows:
[0095] 1. Cat1 small multi-link calls the WiFi device registration interface to do compatibility processing, registers Cat1 small multi-link to the CAT1 platform and cdc device center, and initializes the device;
[0096] 2. The user uses a mobile terminal (app / mini program) to establish a binding relationship with the Cat1 small multi-link by scanning a code, etc., to ensure that the device can perform subsequent data communication;
[0097] 3. Cat1 Xiaoduolian reports data to the CAT1 platform through the MQTT topic (ch / device / cat / dev / #), and the CAT1 platform transfers the incremental device status data configured on the IoT platform to the IoT platform through Zhihuijia's MQTT topic (d / sn / m);
[0098] 4. The IoT platform uses the pre-cached redis secret key and js parsing engine to parse the flow data based on the secret key and js protocol parsing script. After the parsing is completed, it is transferred to the device shadow, Zhihuijia platform microservice, big data platform and other data analysis and processing platforms;
[0099] 5. Each platform collects and analyzes the data of Cat1 devices and WiFi devices;
[0100] 6. Cat1 devices and WiFi devices simultaneously subscribe to the MQTT topic (d / sn / i) issued by the IoT platform control instructions. The mobile terminal directly sends the control command to the device through MQTT, or parses it through the IoT platform js and then forwards it to the device for control execution. It can also realize data flow and communication between different modules according to the specified scenario.
[0101] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A multi-module communication framework method based on IoT platform, characterized in that: The following steps are involved: Step 1: Register the Cat1 module device and WiFi module device to the IoT platform cdc device center through the interface, register the Cat1 device to the CAT1 platform simultaneously, and activate the device; Step 2: The user binds to the device by matching the device center data, thus realizing the interconnection and communication between the user and the device; Step 3: The Cat1 device reports the configuration data and device data to the CAT1 platform through MQTT. The CAT1 platform classifies and organizes the data through the data model and transfers the device status data to the IoT platform through the specified MQTT topic. Step 4: The WiFi device directly reports the device status data to the IoT platform through the built-in SDK; Step 5: After the IoT platform receives the device data from steps 2 and 3, it starts the js protocol parsing script of the corresponding device by executing the js parsing engine, and parses the device data into recognizable json data; Step 6: The IoT platform writes the device data into the device shadow, transfers it to the services of the Zhihuijia platform through Kafka packets, analyzes and processes the data, and transfers the data to the big data platform; Step 7: The user terminal can send control instructions to the device through the specified MQTT topic. Different module devices only need to subscribe to the corresponding MQTT topic to receive control instructions. There are two ways to send instructions. The first is to send control instructions directly through MQTT, and the device side performs data analysis and processing; the second is to enable the js parsing script through the IoT platform to parse the control instructions into transparent data, and then send it to the device side; Step 8: The IoT platform analyzes, integrates and processes data from different modules based on the MQTT service to achieve multi-module communication.
2. According to a multi-module communication framework method based on IoT platform according to claim 1, it is characterized in that: The process of WiFi module cloud platform communication framework includes the following steps: The device calls the registration interface to register the device to the IoT platform cdc device center and activates the device to ensure that the device can perform subsequent data communication; The user calls the binding interface through the Zhihuijia app or mini program to bind the device to the user and establish the association between the user and the device; The device reports device-related data to the MQTT server through the MQTT specified topic to ensure that the data is transmitted in accordance with the MQTT protocol standards; Based on the device communication protocol, write and deploy the device data transparent transmission JS script to parse the device data and parse the hexadecimal data into recognizable json format data to ensure that the data can be recognized and processed; In the IoT platform, subscribe to the MQTT topic, and after receiving the data reported by the device, use the JS engine to execute the parsing script, store the parsed device data in the device shadow, Zhihuijia platform and big data platform, and group the data through Kafka to transfer to other data processing services; The user sends control instructions to the device through the app or applet through the specified MQTT topic. The device needs to subscribe to the corresponding MQTT topic to receive control instructions; There are two ways to send control instructions. The first is to send the control instructions directly through MQTT, and the device side will parse and process the data. The second is to use the IoT platform to enable the js parsing script to parse the control instructions into transparent data, and then send it to the device side.
3. According to a multi-module communication framework method based on IoT platform according to claim 1, it is characterized in that: The process of the Cat1 module cloud platform communication framework includes the following steps: The device calls the registration interface to register the device to the CAT1 platform and initialize the device to ensure that the device can perform subsequent data communication; The device obtains device initialization information, MQTT topic, key and other configuration information through the interface; The device reports data to the CAT1 platform through MQTT, and the CAT1 platform persists the data and pushes it to the shared business platform; The shared business platform parses the data through the protocol and synchronizes the status to the mobile terminal through the socket; The mobile terminal issues instructions, which are encapsulated through the shared service platform protocol and then pushed to the CAT1 platform after processing; The CAT1 platform pushes the encapsulated original message to the device through MQTT, and the device parses and executes it according to the protocol; The Cat1 module cloud platform communication framework workflow is completed.
4. According to a multi-module communication framework method based on IoT platform according to claim 1, it is characterized in that: The process of connecting Cat1 module devices to the IoT cloud platform system based on MQTT is as follows: The device calls the registration interface to register the device to the CAT1 platform and the CDC device center, and initializes the device; The user uses a mobile terminal to establish a binding relationship with the device by scanning a code or other means to ensure that the device can perform subsequent data communication; The device reports data to the CAT1 platform through the specified topic of MQTT; The CAT1 platform pushes the existing equipment status data to the shared business platform, and after parsing, synchronizes the status to the user terminal through the socket; the incremental equipment status data configured on the IoT platform is transferred to the IoT platform through the MQTT topic of Zhihuijia; The IoT platform uses the pre-cached redis secret key and js parsing engine to parse the flow data based on the secret key and js protocol parsing script. After the parsing is completed, it is transferred to the device shadow, Zhihuijia platform microservice, big data platform and other data analysis and processing platforms; The device subscribes to the MQTT topic where the IoT platform sends the control command. The mobile terminal sends the control command directly to the device through MQTT, or parses it through the IoT platform js and then forwards it to the device for control execution.
