Data interaction method and system for multiple embedded devices based on CAT.1 module
By building a data interaction network and optimizing flow direction, the response delay problem of the CAT.1 module when facing a large number of embedded devices is solved, and communication efficiency and data interaction between embedded devices are improved.
Patent Information
- Application Number
- CN202411110199.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-14
- Publication Date
- 2024-11-12
- Estimated Expiration
- 2044-08-14
AI Technical Summary
The CAT.1 module has weak data transmission capabilities and cannot meet the needs of a large number of embedded devices to interact simultaneously, resulting in response delays.
By receiving instructions, the data interaction instructions of the device are initiated, the instruction type is determined, the historical interaction records are obtained, the data interaction network is built, the optimal data interaction flow direction is confirmed, and the CAT.1 module is used to optimize the data interaction flow direction, and priority is given to serving high-priority devices.
The communication efficiency of the CAT.1 module is improved, the response delay caused by a large number of device interactions is avoided, and the data interaction between embedded devices is smooth.
Smart Images

Figure CN118945193A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a data interaction method and system for multiple embedded devices based on CAT.1 modules, belonging to the technical field of communication transmission. Background Art
[0002] With the rapid development of Internet of Things (IoT) technology, embedded devices are increasingly used in smart cities, industrial automation, smart homes, etc. Existing embedded devices generally have the capabilities of perception, data processing and communication, and can collect and exchange data to support complex decision-making and automation processes.
[0003] As a low-cost, low-power solution for 4G LTE communication technology, the CAT.1 module provides stable and efficient data transmission capabilities for embedded devices. Through the CAT.1 module, it can help embedded devices achieve remote monitoring, real-time data sharing and rapid response, greatly improving flexibility and efficiency.
[0004] However, there are still technical problems that need to be solved in providing data interaction for embedded devices based on CAT.1 modules. Since the data transmission capability of CAT.1 modules is relatively weak, when it is necessary to provide data interaction services for a large number of embedded devices at the same time, the limited communication capability of CAT.1 modules cannot meet this demand. Therefore, how to achieve data interaction using low-cost and low-power CAT.1 modules and overcome the disadvantages of weak communication capability of CAT.1 modules to the greatest extent is a technical problem that needs to be solved urgently. Summary of the invention
[0005] The present invention provides a data interaction method, device and computer-readable storage medium for multiple embedded devices based on a CAT.1 module, the main purpose of which is to construct an optimal data interaction flow between embedded devices, help the CAT.1 module to confirm the service priority of the embedded device, thereby avoiding the problem that the CAT.1 module cannot respond in time due to the need for a large number of embedded devices to provide data interaction.
[0006] To achieve the above object, the present invention provides a data interaction method for multiple embedded devices based on CAT.1 modules, comprising: Receive a data exchange instruction initiated by an instruction initiating device, and send the data exchange instruction to the CAT.1 module, wherein the device type of the instruction initiating device is embedded; Determine the type of data exchange instruction in the CAT.1 module, obtain the instruction type, determine other embedded devices that have data exchange possibilities with the instruction initiating device according to the instruction type, and obtain one or more instruction receiving devices; Acquire the data interaction records between the instruction initiating device and each instruction receiving device in the historical time period, and construct a data interaction network centered on the instruction initiating device according to the data interaction records in the historical time period; Determining an optimal data interaction flow direction according to the data interaction network; Based on the optimal data interaction flow, the CAT.1 module is used to realize the data interaction between the command initiating device and other command receiving devices, thereby completing the purpose of data interaction between multiple embedded devices.
[0007] Optionally, sending the data exchange instruction to the CAT.1 module includes: Start the CAT.1 module, wherein the CAT.1 module includes a wireless transmission unit, a modem, a radio frequency front end and a controller; Confirm the wireless network where the command initiating device is located, obtain the available wireless network, and the IP address of the command initiating device; The data exchange instruction is sent to the CAT.1 module using the available wireless network, and when the CAT.1 module receives the data exchange instruction, the wireless transmission unit is used to generate a data test instruction; Use the available wireless network to send the data test command to the IP address of the command initiating device, and wait for the test response command sent back by the command initiating device; If the CAT.1 module successfully receives the test response instruction, it uses the wireless transmission unit to receive the data exchange instruction.
[0008] Optionally, determining the type of the data exchange instruction in the CAT.1 module to obtain the instruction type includes: Parsing the data exchange instruction in the wireless transmission unit to obtain the data interaction purpose; The instruction type is determined based on the data interaction purpose, wherein the instruction type includes arithmetic calculation instructions, data transmission instructions, logic calculation instructions, data encryption instructions and code modification instructions.
[0009] Optionally, the acquiring of the data interaction record between the instruction initiating device and each instruction receiving device in a historical time period includes: Receiving a historical time period set by an operator of a command initiating device, wherein the historical time period consists of a start time point and an end time point; Send the test response command returned by the command initiating device directly to the database supporting the operation of the CAT.1 module; The test response instruction in the database is directly forwarded to the wireless transmission unit in the CAT.1 module for verification. If the verification passes, when the database is used to respond to the test response instruction, a connection channel between the instruction initiating device and the database is established, and the historical time period consisting of the starting time point and the ending time point is sent to the database using the connection channel; The data interaction record between the instruction initiating device and other instruction receiving devices is obtained by searching the database using the start time point and the end time point as search conditions, and the structure of the data interaction record is: ; in, Indicates the data interaction record between the jth instruction initiating device and other instruction receiving devices. represents the number of data interactions between the j-th instruction initiating device and the ith instruction receiving device, and m represents the number of instruction receiving devices.
[0010] Optionally, constructing a data interaction network centered on the instruction initiating device according to the data interaction records of the historical time period includes: According to the data interaction instruction initiated by the instruction initiating device, determine the data flow direction of the instruction initiating device in performing data interaction with other instruction receiving devices, wherein the data flow direction is divided into unidirectional and bidirectional; According to the data flow directionality, the data interaction record is optimized to obtain the flow interaction record, wherein the structure of the flow interaction record is: ; in, It represents the flow interaction record between the jth instruction initiating device and other instruction receiving devices. Indicates the number of data interactions between the jth instruction initiator and the first instruction receiver, and the data flow direction of the data interaction is bidirectional. Indicates the number of data interactions between the jth instruction initiating device and the second instruction receiving device, and the data flow direction of the data interaction is unidirectional, that is, the jth instruction initiating device flows data to the second instruction receiving device. Indicates the number of data interactions between the jth instruction initiating device and the mth instruction receiving device, and the data flow direction of the data interaction is unidirectional, that is, the mth instruction receiving device flows data to the jth instruction initiating device; According to the flow interaction records, a data interaction network centered on the instruction initiating device is constructed.
[0011] Optionally, constructing a data interaction network centered on the instruction initiating device according to the flow interaction record includes: The command initiating device is taken as the dot, and the radius value is calculated according to the number of command receiving devices in the flow interaction record; The instruction receiving devices are evenly distributed around the instruction issuing device, and the distance between each instruction receiving device and the instruction issuing device is the radius value; According to the flow interaction records, weighted connection lines including directions are constructed; The instruction initiating device and each instruction receiving device are connected by weighted connection lines to obtain the data interaction network, wherein the connection direction of the weighted connection lines is the same as the data flow direction recorded in the flow interaction record.
[0012] Optionally, the calculating the radius value according to the number of instruction receiving devices in the flow interaction record includes: The radius value is calculated according to the following formula: ; in, represents the radius value of the jth instruction initiating device as a dot, m represents the number of instruction receiving devices, Indicates the preset maximum radius value, and the maximum radius value must be less than or equal to the number of command receiving devices.
[0013] Optionally, the calculation formula of the weight of the weighted connection line is: ; in, represents the weight of the weighted connection line between the jth instruction initiator and the ith instruction receiver, represents the number of data interactions between the j-th instruction initiating device and the ith instruction receiving device, k represents a preset slope value, and b represents a preset bias value.
[0014] Optionally, determining an optimal data interaction direction according to the data interaction network includes: The weight judgment value is calculated according to the following formula: ; in, represents the weight judgment value of the jth instruction initiating device, and m is the number of the instruction receiving devices; Determine the relationship between the weight of each weight connection line in the data interaction network and the weight judgment value; The command receiving device corresponding to the weight less than or equal to the weight judgment value is confirmed as a low priority device, and the command receiving device corresponding to the weight greater than the weight judgment value is confirmed as a high priority device, and a low priority device set and a high priority device set are obtained respectively, wherein the CAT.1 module gives priority to serving the high priority device set; According to the principle of CAT.1 module serving bidirectionality first and unidirectionality later, each instruction receiving device is sorted in the low-priority device set and the high-priority device set respectively to obtain the optimal data interaction flow.
[0015] To achieve the above object, the present invention also provides a data interaction system for multiple embedded devices based on CAT.1 modules, comprising: The instruction receiving module is used to receive the data exchange instruction initiated by the instruction initiating device, and send the data exchange instruction to the CAT.1 module, wherein the device type of the instruction initiating device is embedded, the type of the data exchange instruction is determined in the CAT.1 module, the instruction type is obtained, and other embedded devices with the possibility of data exchange with the instruction initiating device are determined according to the instruction type, and one or more instruction receiving devices are obtained; The interactive network construction module is used to obtain the data interaction records between the instruction initiating device and each instruction receiving device in the historical time period, and construct a data interaction network centered on the instruction initiating device based on the data interaction records in the historical time period: An interaction flow direction calculation module, used to determine the optimal data interaction flow direction according to the data interaction network; The CAT.1 module implementation module is used to implement data interaction between the instruction initiating device and other instruction receiving devices based on the optimal data interaction flow, using the CAT.1 module to complete the purpose of data interaction between multiple embedded devices.
[0016] In order to solve the above problem, the present invention further provides an electronic device, the electronic device comprising: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to implement the above-mentioned data interaction method for multiple embedded devices based on the CAT.1 module.
[0017] In order to solve the above problems, the present invention also provides a computer-readable storage medium, which stores at least one instruction, and the at least one instruction is executed by a processor in an electronic device to implement the above-mentioned data interaction method for multiple embedded devices based on CAT.1 modules.
[0018] Compared with the problem described in the background technology, the present invention first receives a data exchange instruction initiated by an instruction initiating device, and sends the data exchange instruction to the CAT.1 module, wherein the device type of the instruction initiating device is embedded, and receiving an interaction request from the instruction initiating device indicates the need and starting point for data interaction; then, the type of the data exchange instruction is determined in the CAT.1 module to obtain the instruction type, and other embedded devices with the possibility of data interaction with the instruction initiating device are determined according to the instruction type to obtain one or more instruction receiving devices. It can be seen that according to the instruction type, the CAT.1 module can be used to identify other embedded devices that may need to participate in data interaction, which helps to narrow the scope of interaction and communicate only with related devices. , improve communication efficiency; further, obtain the data interaction records between the instruction initiating device and each instruction receiving device in the historical time period, and construct a data interaction network centered on the instruction initiating device according to the data interaction records of the historical time period, confirm the optimal data interaction flow according to the data interaction network, and use historical data to construct a data interaction network diagram centered on the instruction initiating device. The network diagram can reveal the connection strength and data flow between devices, thereby helping the CAT.1 module to determine which instruction receiving devices need to be served first, that is, based on the optimal data interaction flow, use the CAT.1 module to realize the data interaction between the instruction initiating device and other instruction receiving devices, and complete the purpose of data interaction of multiple embedded devices. Therefore, the data interaction method and system for multiple embedded devices based on the CAT.1 module proposed in the present invention mainly aims to construct the optimal data interaction flow between embedded devices, help the CAT.1 module to confirm the service priority of embedded devices, and thus avoid the problem that the CAT.1 module cannot respond in time due to the need to provide data interaction for a large number of embedded devices. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 A schematic flow chart of a data interaction method for multiple embedded devices based on a CAT.1 module provided in one embodiment of the present invention; Figure 2 A functional module diagram of a data interaction system for multiple embedded devices based on CAT.1 modules provided in one embodiment of the present invention; Figure 3 A schematic diagram of the structure of an electronic device for implementing the data interaction method of multiple embedded devices based on the CAT.1 module provided in one embodiment of the present invention.
[0020] The purpose, features and advantages of the present invention will be further described with reference to the accompanying drawings in conjunction with the embodiments. DETAILED DESCRIPTION
[0021] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0022] The embodiment of the present application provides a data interaction method for multiple embedded devices based on a CAT.1 module. The execution subject of the data interaction method for multiple embedded devices based on a CAT.1 module includes but is not limited to at least one of the electronic devices such as a server, a terminal, etc. that can be configured to execute the method provided by the embodiment of the present application. In other words, the data interaction method for multiple embedded devices based on a CAT.1 module can be executed by software or hardware installed in a terminal device or a server device. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, etc.
[0023] Embodiment 1: Reference Figure 1 FIG. 1 is a flow chart of a data interaction method for multiple embedded devices based on a CAT.1 module provided by an embodiment of the present invention. In this embodiment, the data interaction method for multiple embedded devices based on a CAT.1 module includes: S1. Receive a data exchange instruction initiated by an instruction initiating device, and send the data exchange instruction to a CAT.1 module, wherein the device type of the instruction initiating device is embedded.
[0024] It should be explained that the device type of the instruction initiating device described in the embodiment of the present invention is embedded. For example, Xiao Zhang is an engineer of an automobile parts manufacturing company. There are multiple production lines in the automobile parts manufacturing company, each of which can independently produce automobile parts, and each production line includes a programmable logic controller (PLC) and a microcontroller (MCU) for controlling the production links of the production line, and the network environment where the production line is located includes routers, switches, monitoring equipment, etc., then the programmable logic controller (PLC) and microcontroller (MCU), routers, switches, monitoring equipment, etc. can all be called embedded devices.
[0025] For example, if Xiao Zhang wants to adjust the equipment parameters of a certain production link in the production line, he plans to rewrite the logic code through PLC. Therefore, he first uses PLC to initiate data interaction instructions to notify all other embedded devices that are related to the purpose of rewriting the logic code.
[0026] In addition, the CAT.1 module (Category 1 module) is a communication module implemented based on LTE (Long-Term Evolution) technology. The CAT.1 module supports some basic functions in the LTE network, and has a lower data transmission rate and lower cost. It is generally used in a less complex data interaction environment, especially in the data interaction between embedded devices described in the embodiment of the present invention. Further, the data exchange instruction is sent to the CAT.1 module, including: Start the CAT.1 module, wherein the CAT.1 module includes a wireless transmission unit, a modem, a radio frequency front end and a controller; Confirm the wireless network where the command initiating device is located, obtain the available wireless network, and the IP address of the command initiating device; The data exchange instruction is sent to the CAT.1 module using the available wireless network, and when the CAT.1 module receives the data exchange instruction, the wireless transmission unit is used to generate a data test instruction; Use the available wireless network to send the data test command to the IP address of the command initiating device, and wait for the test response command sent back by the command initiating device; If the CAT.1 module successfully receives the test response instruction, it uses the wireless transmission unit to receive the data exchange instruction.
[0027] For example, Xiao Zhang plans to modify the logic code through PLC, so he first uses PLC to initiate data interaction instructions, and PLC is the instruction initiator. Therefore, before executing PLC to modify the logic code, it is necessary to start the CAT.1 module. The role of the CAT.1 module is to assist PLC in distributing the task of modifying the logic code to other embedded devices that are related to the modification of the logic code. In order to ensure the security of the entire process, the embodiment of the present invention needs to first confirm the feasibility of data interaction between the CAT.1 module and the PLC, so the wireless transmission unit of the CAT.1 module is used to generate a data test instruction, and the data test instruction is used to test whether the PLC can return the test response instruction.
[0028] S2. Determine the type of data exchange instruction in the CAT.1 module to obtain the instruction type, determine other embedded devices that have the possibility of data interaction with the instruction initiating device according to the instruction type, and obtain one or more instruction receiving devices.
[0029] It should be explained that different types of data interaction instructions may involve different embedded devices, so determining the type of data interaction instructions can achieve more refined screening of instruction receiving devices.
[0030] In detail, determining the type of data exchange instruction in the CAT.1 module to obtain the instruction type includes: Parsing the data exchange instruction in the wireless transmission unit to obtain the data interaction purpose; The instruction type is determined based on the data interaction purpose, wherein the instruction type includes arithmetic calculation instructions, data transmission instructions, logic calculation instructions, data encryption instructions and code modification instructions.
[0031] For example, if Xiao Zhang plans to modify the logic code through PLC, the corresponding data interaction instructions belong to the code modification category. Arithmetic calculation instructions include addition (ADD), subtraction (SUB), multiplication (MUL), division (DIV), etc., and logic calculation instructions include executing operations such as AND, OR, NOT, XOR, or executing unconditional jumps (JUMP), conditional jumps, and loop control.
[0032] It should be explained that different instruction types correspond to different embedded devices. For example, if the PLC is the instruction initiator and plans to modify the logic code, then the embedded device that needs to execute the code is definitely related to the code modification instruction, such as the PLC of other production lines. Through the instruction type, the instruction receiving device that has the possibility of data interaction with the instruction initiator can be preliminarily confirmed. If Xiao Zhang wants to obtain the situation of the production line for automobile parts production through the microcontroller (MCU), he needs to execute the data transmission instruction to obtain the production monitoring diagram of the production line, and the equipment related to the data transmission instruction may include monitoring equipment, etc.
[0033] S3. Obtain data interaction records between the instruction initiating device and each instruction receiving device in a historical time period, and construct a data interaction network centered on the instruction initiating device based on the data interaction records in the historical time period.
[0034] In detail, the acquisition of data interaction records between the instruction initiating device and each instruction receiving device in a historical time period includes: Receiving a historical time period set by an operator of a command initiating device, wherein the historical time period consists of a start time point and an end time point; Send the test response command returned by the command initiating device directly to the database supporting the operation of the CAT.1 module; The test response instruction in the database is directly forwarded to the wireless transmission unit in the CAT.1 module for verification. If the verification passes, when the database is used to respond to the test response instruction, a connection channel between the instruction initiating device and the database is established, and the historical time period consisting of the starting time point and the ending time point is sent to the database using the connection channel; The start time point and the end time point are used as search conditions in the database to search for data interaction records between the instruction initiating device and other instruction receiving devices.
[0035] It should be explained that when the CAT.1 module is running, a large amount of module operation data, network traffic data, device interaction data, etc. will be generated, and the database that supports the operation of the CAT.1 module is used to store such data. In addition, since the database and the CAT.1 module have a direct relationship of data interaction, in order to maximize the simplification of the process, the embodiment of the present invention directly sends the test response instruction returned by the instruction initiating device to the database. If the database receives the test response instruction, it will forward the test response instruction to the CAT.1 module for confirmation. If the CAT.1 module confirms that the test response instruction has been received by the infinite transmission unit before (that is, the above-mentioned verification process), the database will respond to the test response instruction.
[0036] Furthermore, the structure of the data interaction record is: ; in, Indicates the data interaction record between the jth instruction initiating device and other instruction receiving devices. represents the number of data interactions between the j-th instruction initiating device and the ith instruction receiving device, and m represents the number of instruction receiving devices.
[0037] For example, if Xiao Zhang plans to modify the logic code through PLC, and there are 5 production lines where Xiao Zhang is located, and there are 3 PLCs on each production line, then the embodiment of the present invention needs to obtain the data interaction records between PLC and other 14 PLCs, that is, The value of is 14.
[0038] In detail, the data interaction network centered on the instruction initiating device is constructed based on the data interaction records of the historical time period, including: According to the data interaction instruction initiated by the instruction initiating device, determine the data flow direction of the instruction initiating device in performing data interaction with other instruction receiving devices, wherein the data flow direction is divided into unidirectional and bidirectional; According to the data flow directionality, the data interaction record is optimized to obtain the flow interaction record, wherein the structure of the flow interaction record is: ; in, It represents the flow interaction record between the jth instruction initiating device and other instruction receiving devices. Indicates the number of data interactions between the jth instruction initiator and the first instruction receiver, and the data flow direction of the data interaction is bidirectional. Indicates the number of data interactions between the jth instruction initiating device and the second instruction receiving device, and the data flow direction of the data interaction is unidirectional, that is, the jth instruction initiating device flows data to the second instruction receiving device. Indicates the number of data interactions between the jth instruction initiating device and the mth instruction receiving device, and the data flow direction of the data interaction is unidirectional, that is, the mth instruction receiving device flows data to the jth instruction initiating device; According to the flow interaction records, a data interaction network centered on the instruction initiating device is constructed.
[0039] Exemplarily, there are 5 production lines, each with 3 PLCs. The embodiment of the present invention needs to obtain the data interaction records between the PLC and the other 14 PLCs, that is, the value of m is 14. If it is found through the data interaction records of the historical time period that the data interaction between the PLC used by Xiao Zhang and the other 14 PLCs is unidirectional and bidirectional, then it is necessary to sort out the specific data flow between the PLC used by Xiao Zhang and the other 14 PLCs, so as to construct the above-mentioned flow interaction records.
[0040] Furthermore, the data interaction network centered on the instruction initiating device is constructed according to the flow interaction record, including: The command initiating device is taken as the dot, and the radius value is calculated according to the number of command receiving devices in the flow interaction record; The instruction receiving devices are evenly distributed around the instruction issuing device, and the distance between each instruction receiving device and the instruction issuing device is the radius value; According to the flow interaction records, weighted connection lines including directions are constructed; The instruction initiating device and each instruction receiving device are connected by weighted connection lines to obtain the data interaction network, wherein the connection direction of the weighted connection lines is the same as the data flow direction recorded in the flow interaction record.
[0041] In detail, the radius value is calculated according to the number of instruction receiving devices in the flow interaction record, including: The radius value is calculated according to the following formula: ; in, represents the radius value of the jth instruction initiating device as a dot, m represents the number of instruction receiving devices, Indicates the preset maximum radius value, and the maximum radius value must be less than or equal to the number of command receiving devices.
[0042] Exemplarily, after taking the PLC used by Xiao Zhang as the dot, the PLC used by Xiao Zhang is the instruction initiating device. Assuming that the PLC used by Xiao Zhang has a total of 30 instruction receiving devices, the radius value of the PLC used by Xiao Zhang can be calculated according to the above formula, and it can be understood that the larger the number of instruction receiving devices, the larger the corresponding radius value.
[0043] Furthermore, the weighted connection line described in the embodiment of the present invention includes two important parameters, the first is the direction, and the second is the weight. The direction mainly depends on the flow interaction record The upper arrow symbol, such as The data flow direction of data interaction is bidirectional, so both ends of the weight connection line between the jth instruction initiator and the first instruction receiving device have arrows, indicating bidirectionality, such as It means that the j-th instruction initiating device will flow data to the second instruction receiving device. Then, among the weighted connection lines between the j-th instruction initiating device and the second instruction receiving device, only the port of the second instruction receiving device has an arrow, which means that the j-th instruction initiating device will flow data to the second instruction receiving device.
[0044] In addition, the second important parameter of the weighted connection line is the weight, and the size of the weight is positively correlated with the number of data interactions, that is, the greater the number of data interactions, the greater the weight of the weighted connection line, and in the performance of the data interaction network, the thicker the weighted connection line, and vice versa, the smaller the number of data interactions, the thinner the weighted connection line. In detail, the calculation formula of the weight of the weighted connection line is: ; in, represents the weight of the weighted connection line between the jth instruction initiator and the ith instruction receiver, represents the number of data interactions between the j-th instruction initiating device and the ith instruction receiving device, k represents a preset slope value, and b represents a preset bias value.
[0045] According to the above description, each instruction receiving device and the instruction initiating device has a one-to-one corresponding weight connection line, and because the weight connection line has a distinction in direction and thickness, the instruction initiating device and each instruction receiving device are connected through different weight connection lines, thereby obtaining a data interaction network with the instruction initiating device as the center and the instruction receiving devices scattered around the instruction initiating device.
[0046] S4. Determine the optimal data interaction flow according to the data interaction network.
[0047] It should be explained that, since the communication capability of the CAT.1 module is relatively weak, if a large number of command initiating devices are responded to in a short period of time, the CAT.1 module needs to bear a greater communication burden. Therefore, determining the optimal data interaction flow direction for each command initiating device can reduce the communication burden of the CAT.1 module. In detail, determining the optimal data interaction flow direction according to the data interaction network includes: The weight judgment value is calculated according to the following formula: ; in, represents the weight judgment value of the jth instruction initiating device, and m is the number of the instruction receiving devices; Determine the relationship between the weight of each weight connection line in the data interaction network and the weight judgment value; The command receiving device corresponding to the weight less than or equal to the weight judgment value is confirmed as a low priority device, and the command receiving device corresponding to the weight greater than the weight judgment value is confirmed as a high priority device, and a low priority device set and a high priority device set are obtained respectively, wherein the CAT.1 module gives priority to serving the high priority device set; According to the principle of CAT.1 module serving bidirectionality first and unidirectionality later, each instruction receiving device is sorted in the low-priority device set and the high-priority device set respectively to obtain the optimal data interaction flow.
[0048] For example, if the above weighted judgment value is calculated The value of is 0.5, which means that we need to further judge whether 0.5 and The size relationship between 0.5 and the weight of each weight connection line is determined in turn, so as to confirm the corresponding instruction receiving device as a low priority device or a high priority device.
[0049] For example, assuming that there are 10 low-priority devices in the low-priority device set and 5 high-priority devices in the high-priority device set, then among the 10 low-priority devices and the 5 high-priority devices, each instruction receiving device is served in turn according to the principle of serving the bidirectionality first and then the unidirectionality, so as to obtain the optimal data interaction flow.
[0050] S5. Based on the optimal data interaction flow, the CAT.1 module is used to realize the data interaction between the command initiating device and other command receiving devices, thereby completing the purpose of data interaction between multiple embedded devices.
[0051] It should be explained that the CAT.1 module includes a wireless transmission unit, a modem, a radio frequency front end and a controller, wherein the wireless transmission unit is responsible for testing the connectivity of the instruction initiating device, and is also responsible for converting the signal between the instruction initiating device and the instruction receiving device into a wireless signal for transmission, the modem is responsible for modulating and demodulating the wireless signal, the radio frequency front end is responsible for amplifying and filtering the wireless signal, and the controller is responsible for executing the data interaction between the instruction initiating device and other instruction receiving devices according to the optimal data interaction flow direction. In other words, the embodiment of the present invention transmits the optimal data interaction flow direction to the controller, and the controller controls the wireless transmission unit, the modem, and the radio frequency front end based on the optimal data interaction flow direction to realize the data interaction between the instruction initiating device and other instruction receiving devices, thereby completing the purpose of data interaction.
[0052] Compared with the problem described in the background technology, the present invention first receives a data exchange instruction initiated by an instruction initiating device, and sends the data exchange instruction to the CAT.1 module, wherein the device type of the instruction initiating device is embedded, and receiving an interaction request from the instruction initiating device indicates the need and starting point for data interaction; then, the type of the data exchange instruction is determined in the CAT.1 module to obtain the instruction type, and other embedded devices with the possibility of data interaction with the instruction initiating device are determined according to the instruction type to obtain one or more instruction receiving devices. It can be seen that according to the instruction type, the CAT.1 module can be used to identify other embedded devices that may need to participate in data interaction, which helps to narrow the scope of interaction and communicate only with related devices. , improve communication efficiency; further, obtain the data interaction records between the instruction initiating device and each instruction receiving device in the historical time period, and construct a data interaction network centered on the instruction initiating device according to the data interaction records of the historical time period, confirm the optimal data interaction flow according to the data interaction network, and use historical data to construct a data interaction network diagram centered on the instruction initiating device. The network diagram can reveal the connection strength and data flow between devices, thereby helping the CAT.1 module to determine which instruction receiving devices need to be served first, that is, based on the optimal data interaction flow, use the CAT.1 module to realize the data interaction between the instruction initiating device and other instruction receiving devices, and complete the purpose of data interaction of multiple embedded devices. Therefore, the data interaction method and system for multiple embedded devices based on the CAT.1 module proposed in the present invention mainly aims to construct the optimal data interaction flow between embedded devices, help the CAT.1 module to confirm the service priority of embedded devices, and thus avoid the problem that the CAT.1 module cannot respond in time due to the need to provide data interaction for a large number of embedded devices.
[0053] Embodiment 2: like Figure 2 1 is a functional module diagram of a data interaction system for multiple embedded devices based on CAT.1 modules provided in one embodiment of the present invention.
[0054] The data interaction system 100 for multiple embedded devices based on CAT.1 modules of the present invention can be installed in an electronic device. According to the functions to be implemented, the data interaction system 100 for multiple embedded devices based on CAT.1 modules can include an instruction receiving module 101, an interactive network building module 102, an interactive flow calculation module 103 and a CAT.1 module implementation module 104. The module of the present invention can also be called a unit, which refers to a series of computer program segments that can be executed by an electronic device processor and can complete fixed functions, which are stored in the memory of the electronic device.
[0055] The instruction receiving module 101 is used to receive a data exchange instruction initiated by an instruction initiating device, and send the data exchange instruction to the CAT.1 module, wherein the device type of the instruction initiating device is embedded, the type of the data exchange instruction is determined in the CAT.1 module, the instruction type is obtained, and other embedded devices with the possibility of data exchange with the instruction initiating device are determined according to the instruction type, and one or more instruction receiving devices are obtained; The interactive network construction module 102 is used to obtain the data interaction records between the instruction initiating device and each instruction receiving device in the historical time period, and construct a data interaction network centered on the instruction initiating device according to the data interaction records in the historical time period; The interaction flow direction calculation module 103 is used to determine the optimal data interaction flow direction according to the data interaction network; The CAT.1 module implementation module 104 is used to implement data interaction between the instruction initiating device and other instruction receiving devices based on the optimal data interaction flow using the CAT.1 module, thereby achieving the purpose of data interaction between multiple embedded devices.
[0056] In detail, each module in the data interaction system 100 of multiple embedded devices based on CAT.1 modules in the embodiment of the present invention adopts the same method as above when used. Figure 1 The data interaction method for multiple embedded devices based on CAT.1 modules described in the present invention is the same as the technical means and can produce the same technical effects, which will not be repeated here.
[0057] Embodiment 3: like Figure 3 FIG. 1 is a schematic diagram of the structure of an electronic device for implementing a data interaction method for multiple embedded devices based on a CAT.1 module provided by an embodiment of the present invention.
[0058] The electronic device 1 may include a processor 10, a memory 11, a bus 12 and a communication interface 13, and may also include a computer program stored in the memory 11 and executable on the processor 10, such as a data interaction program for multiple embedded devices based on a CAT.1 module.
[0059] The memory 11 includes at least one type of readable storage medium, and the readable storage medium includes a flash memory, a mobile hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a magnetic memory, a disk, an optical disk, etc. The memory 11 may be an internal storage unit of the electronic device 1 in some embodiments, such as a mobile hard disk of the electronic device 1. The memory 11 may also be an external storage device of the electronic device 1 in other embodiments, such as a plug-in mobile hard disk, a smart memory card (SmartMediaCard, SMC), a secure digital (SecureDigital, SD) card, a flash card (FlashCard), etc. equipped on the electronic device 1. Further, the memory 11 may also include both an internal storage unit of the electronic device 1 and an external storage device. The memory 11 may not only be used to store application software and various types of data installed in the electronic device 1, such as the code of a data interaction program of multiple embedded devices based on the CAT.1 module, but also be used to temporarily store data that has been output or is to be output.
[0060] The processor 10 may be composed of an integrated circuit in some embodiments, for example, a single packaged integrated circuit, or a plurality of packaged integrated circuits with the same or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and combinations of various control chips, etc. The processor 10 is the control core (Control Unit) of the electronic device, and uses various interfaces and lines to connect various components of the entire electronic device, and executes or executes programs or modules stored in the memory 11 (such as data interaction programs for multiple embedded devices based on CAT.1 modules, etc.), and calls data stored in the memory 11, so as to execute various functions of the electronic device 1 and process data.
[0061] The bus may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. The bus is configured to realize connection and communication between the memory 11 and at least one processor 10, etc.
[0062] Figure 3 Only an electronic device with components is shown, and those skilled in the art will understand that Figure 2The structure shown does not constitute a limitation on the electronic device 1, and may include fewer or more components than shown in the figure, or combine certain components, or arrange the components differently.
[0063] For example, although not shown, the electronic device 1 may also include a power source (such as a battery) for supplying power to various components. Preferably, the power source may be logically connected to the at least one processor 10 through a power management device, so that the power management device can realize functions such as charging management, discharging management, and power consumption management. The power source may also include one or more DC or AC power sources, recharging devices, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components. The electronic device 1 may also include a variety of sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be repeated here.
[0064] Furthermore, the electronic device 1 may also include a network interface. Optionally, the network interface may include a wired interface and / or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is generally used to establish a communication connection between the electronic device 1 and other electronic devices.
[0065] Optionally, the electronic device 1 may further include a user interface, which may be a display (Display), an input unit (such as a keyboard (Keyboard)), and optionally, the user interface may also be a standard wired interface or a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an OLED (Organic Light-Emitting Diode) touch device, etc. The display may also be appropriately referred to as a display screen or a display unit, which is used to display information processed in the electronic device 1 and to display a visual user interface.
[0066] It should be understood that the embodiment is for illustration only and the scope of the patent application is not limited to this structure.
[0067] The data interaction program for multiple embedded devices based on the CAT.1 module stored in the memory 11 of the electronic device 1 is a combination of multiple instructions. When running in the processor 10, it can achieve: Receive a data exchange instruction initiated by an instruction initiating device, and send the data exchange instruction to the CAT.1 module, wherein the device type of the instruction initiating device is embedded; Determine the type of data exchange instruction in the CAT.1 module, obtain the instruction type, determine other embedded devices that have data exchange possibilities with the instruction initiating device according to the instruction type, and obtain one or more instruction receiving devices; Acquire the data interaction records between the instruction initiating device and each instruction receiving device in the historical time period, and construct a data interaction network centered on the instruction initiating device according to the data interaction records in the historical time period; Determining an optimal data interaction flow direction according to the data interaction network; Based on the optimal data interaction flow, the CAT.1 module is used to realize the data interaction between the command initiating device and other command receiving devices, thereby completing the purpose of data interaction between multiple embedded devices.
[0068] Specifically, the specific implementation method of the processor 10 for the above instructions can refer to Figure 1 to Figure 2 The description of the relevant steps in the corresponding embodiments will not be repeated here.
[0069] Furthermore, if the module / unit integrated in the electronic device 1 is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. The computer-readable storage medium can be volatile or non-volatile. For example, the computer-readable medium can include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, and a read-only memory (ROM).
[0070] The present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor of an electronic device, the computer program can implement: Receive a data exchange instruction initiated by an instruction initiating device, and send the data exchange instruction to the CAT.1 module, wherein the device type of the instruction initiating device is embedded; Determine the type of data exchange instruction in the CAT.1 module, obtain the instruction type, determine other embedded devices that have data exchange possibilities with the instruction initiating device according to the instruction type, and obtain one or more instruction receiving devices; Acquire the data interaction records between the instruction initiating device and each instruction receiving device in the historical time period, and construct a data interaction network centered on the instruction initiating device according to the data interaction records in the historical time period; Determining an optimal data interaction flow direction according to the data interaction network; Based on the optimal data interaction flow, the CAT.1 module is used to realize the data interaction between the command initiating device and other command receiving devices, thereby completing the purpose of data interaction between multiple embedded devices.
[0071] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0072] In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional modules.
[0073] It is obvious to those skilled in the art that the present invention is not limited to the details of the above exemplary embodiments, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.
[0074] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention.
Claims
1. A data interaction method for multiple embedded devices based on CAT.1 module, characterized in that: The method comprises: Receive a data exchange instruction initiated by an instruction initiating device, and send the data exchange instruction to the CAT.1 module, wherein the device type of the instruction initiating device is embedded; Determine the type of data exchange instruction in the CAT.1 module, obtain the instruction type, determine other embedded devices that have data exchange possibilities with the instruction initiating device according to the instruction type, and obtain one or more instruction receiving devices; Acquire the data interaction records between the instruction initiating device and each instruction receiving device in the historical time period, and construct a data interaction network centered on the instruction initiating device according to the data interaction records in the historical time period; Determining an optimal data interaction flow direction according to the data interaction network; Based on the optimal data interaction flow, the CAT.1 module is used to realize the data interaction between the command initiating device and other command receiving devices, thereby completing the purpose of data interaction between multiple embedded devices.
2. The data interaction method for multiple embedded devices based on CAT.1 module as claimed in claim 1, characterized in that: The step of sending the data exchange instruction to the CAT.1 module includes: Start the CAT.1 module, wherein the CAT.1 module includes a wireless transmission unit, a modem, a radio frequency front end and a controller; Confirm the wireless network where the command initiating device is located, obtain the available wireless network, and the IP address of the command initiating device; The data exchange instruction is sent to the CAT.1 module using the available wireless network, and when the CAT.1 module receives the data exchange instruction, the wireless transmission unit is used to generate a data test instruction; Use the available wireless network to send the data test command to the IP address of the command initiating device, and wait for the test response command sent back by the command initiating device; If the CAT.1 module successfully receives the test response instruction, it uses the wireless transmission unit to receive the data exchange instruction.
3. The data interaction method for multiple embedded devices based on CAT.1 module as claimed in claim 2, characterized in that: Determining the type of the data exchange instruction in the CAT.1 module to obtain the instruction type includes: Parsing the data exchange instruction in the wireless transmission unit to obtain the data interaction purpose; The instruction type is determined based on the data interaction purpose, wherein the instruction type includes arithmetic calculation instructions, data transmission instructions, logic calculation instructions, data encryption instructions and code modification instructions.
4. The data interaction method for multiple embedded devices based on CAT.1 modules as claimed in claim 3, characterized in that: The acquisition of data interaction records between the instruction initiating device and each instruction receiving device in a historical time period includes: Receiving a historical time period set by an operator of a command initiating device, wherein the historical time period consists of a start time point and an end time point; Send the test response command returned by the command initiating device directly to the database supporting the operation of the CAT.1 module; The test response instruction in the database is directly forwarded to the wireless transmission unit in the CAT.1 module for verification. If the verification passes, when the database is used to respond to the test response instruction, a connection channel between the instruction initiating device and the database is established, and the historical time period consisting of the starting time point and the ending time point is sent to the database using the connection channel; The data interaction record between the instruction initiating device and other instruction receiving devices is obtained by searching the database using the start time point and the end time point as search conditions, and the structure of the data interaction record is: ;in, Indicates the data interaction record between the jth instruction initiating device and other instruction receiving devices. represents the number of data interactions between the j-th instruction initiating device and the ith instruction receiving device, and m represents the number of instruction receiving devices.
5. The data interaction method for multiple embedded devices based on CAT.1 modules as claimed in claim 4, characterized in that: The data interaction network centered on the instruction initiating device is constructed based on the data interaction records of the historical time period, including: According to the data interaction instruction initiated by the instruction initiating device, determine the data flow direction of the instruction initiating device in performing data interaction with other instruction receiving devices, wherein the data flow direction is divided into unidirectional and bidirectional; According to the data flow directionality, the data interaction record is optimized to obtain the flow interaction record, wherein the structure of the flow interaction record is: ; in, It represents the flow interaction record between the jth instruction initiating device and other instruction receiving devices. Indicates the number of data interactions between the jth instruction initiator and the first instruction receiver, and the data flow direction of the data interaction is bidirectional. Indicates the number of data interactions between the jth instruction initiating device and the second instruction receiving device, and the data flow direction of the data interaction is unidirectional, that is, the jth instruction initiating device flows data to the second instruction receiving device. Indicates the number of data interactions between the jth instruction initiating device and the mth instruction receiving device, and the data flow direction of the data interaction is unidirectional, that is, the mth instruction receiving device flows data to the jth instruction initiating device; According to the flow interaction records, a data interaction network centered on the instruction initiating device is constructed.
6. The data interaction method of multiple embedded devices based on CAT.1 module as claimed in claim 5, characterized in that: The data interaction network centered on the instruction initiating device is constructed according to the flow interaction record, including: The command initiating device is taken as the dot, and the radius value is calculated according to the number of command receiving devices in the flow interaction record; The instruction receiving devices are evenly distributed around the instruction issuing device, and the distance between each instruction receiving device and the instruction issuing device is the radius value; According to the flow interaction records, weighted connection lines including directions are constructed; The instruction initiating device and each instruction receiving device are connected by weighted connection lines to obtain the data interaction network, wherein the connection direction of the weighted connection lines is the same as the data flow direction recorded in the flow interaction record.
7. The data interaction method of multiple embedded devices based on CAT.1 module as claimed in claim 6, characterized in that: The step of calculating the radius value according to the number of instruction receiving devices in the flow interaction record includes: The radius value is calculated according to the following formula: ; in, represents the radius value of the jth instruction initiating device as a dot, m represents the number of instruction receiving devices, Indicates the preset maximum radius value, and the maximum radius value must be less than or equal to the number of command receiving devices.
8. The data interaction method for multiple embedded devices based on CAT.1 module as claimed in claim 6, characterized in that: The calculation formula of the weight of the weighted connecting line is: ; in, represents the weight of the weighted connection line between the jth instruction initiator and the ith instruction receiver, represents the number of data interactions between the j-th instruction initiating device and the ith instruction receiving device, k represents a preset slope value, and b represents a preset bias value.
9. The data interaction method of multiple embedded devices based on CAT.1 module as claimed in claim 8, characterized in that: Determining the optimal data interaction flow direction according to the data interaction network includes: The weight judgment value is calculated according to the following formula: ; in, represents the weight judgment value of the jth instruction initiating device, and m is the number of the instruction receiving devices; Determine the relationship between the weight of each weight connection line in the data interaction network and the weight judgment value; The command receiving device corresponding to the weight less than or equal to the weight judgment value is confirmed as a low priority device, and the command receiving device corresponding to the weight greater than the weight judgment value is confirmed as a high priority device, and a low priority device set and a high priority device set are obtained respectively, wherein the CAT.1 module gives priority to serving the high priority device set; According to the principle of CAT.1 module serving bidirectionality first and unidirectionality later, each instruction receiving device is sorted in the low-priority device set and the high-priority device set respectively to obtain the optimal data interaction flow.
10. A data interaction system for multiple embedded devices based on CAT.1 modules, characterized in that: The system comprises: The instruction receiving module is used to receive the data exchange instruction initiated by the instruction initiating device, and send the data exchange instruction to the CAT.1 module, wherein the device type of the instruction initiating device is embedded, the type of the data exchange instruction is determined in the CAT.1 module, the instruction type is obtained, and other embedded devices with the possibility of data exchange with the instruction initiating device are determined according to the instruction type, and one or more instruction receiving devices are obtained; The interactive network construction module is used to obtain the data interaction records between the instruction initiating device and each instruction receiving device in the historical time period, and construct a data interaction network centered on the instruction initiating device based on the data interaction records in the historical time period: An interaction flow direction calculation module, used to determine the optimal data interaction flow direction according to the data interaction network; The CAT.1 module implementation module is used to implement data interaction between the instruction initiating device and other instruction receiving devices based on the optimal data interaction flow, using the CAT.1 module to complete the purpose of data interaction between multiple embedded devices.
Citation Information
Patent Citations
Internet of Things equipment data interaction method and device
CN112383642A
Equipment network access control method and device and terminal equipment
CN114885393A
Transmission link analysis method, device and equipment and readable storage medium
CN116248509A
Internet of Things communication system based on intelligent gateway
CN118041875A
Method and system for realizing data interaction of network communication equipment based on edge communication
CN118488062A
