Equipment communication method and system based on limited message transmission protocol, terminal and storage medium
By constructing a restricted message transmission protocol stack architecture and optimizing device communication, the problems of low communication efficiency and insufficient security between resource-constrained devices are solved, and efficient and secure communication is achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- 深圳开鸿数字产业发展有限公司
- Filing Date
- 2025-12-25
- Publication Date
- 2026-05-01
AI Technical Summary
Existing technologies suffer from excessive protocol overhead, high parsing complexity, and low security in communication between resource-constrained devices, especially in scenarios involving the transmission of simple data, where they are inefficient, resource-intensive, and lack sufficient security.
By analyzing device communication tasks, a restricted message transmission protocol stack architecture is constructed, optimizing the application layer, transport layer, network layer, and link layer structure. A simplified message format and security mechanism are adopted to reduce protocol overhead, improve parsing efficiency, and enhance security.
It reduces communication overhead and parsing complexity between resource-constrained devices, while improving security and communication efficiency.
Smart Images

Figure CN121967530A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of device communication technology, and in particular to a device communication method, system, terminal, and computer-readable storage medium based on a restricted message transmission protocol. Background Technology
[0002] With the rapid development of IoT technology, an increasing number of resource-constrained devices (such as wearable devices and smart home devices) need to connect to networks and communicate efficiently. These resource-constrained devices typically have limited computing power, storage space, and battery capacity, placing special demands on the lightweight, low-power, and high-efficiency nature of communication protocols. Currently, the mainstream communication protocol for resource-constrained devices is CoAP (Constrained Application Protocol, an application layer protocol specifically designed for IoT devices and resource-constrained networks). CoAP supports UDP (User Datagram Protocol) and TCP (Transmission Control Protocol) transmission, provides optional reliability mechanisms, and supports asynchronous message exchange and simple caching. Its message structure includes a 4-byte fixed header and a variable-length options field, supporting various request methods and a rich response code system.
[0003] However, for communication between resource-constrained devices, such as deploying temperature sensors throughout a production line, each temperature sensor needs to periodically (e.g., every minute) collect and report current temperature data, while also supporting remote commands to dynamically adjust the reporting frequency to balance monitoring accuracy and system load. Existing technologies achieve this by using the CoAP protocol, but such scenarios impose special requirements on the communication protocol, and existing methods have the following shortcomings: (1) Excessive protocol overhead: For simple scenarios where only one byte of data is transmitted per minute (e.g., temperature and monitoring area number), the existing method has an excessively high header overhead, which reduces communication efficiency. In simple scenarios of device data reporting and command issuance, there is functional redundancy, which increases resource consumption. (2) High parsing complexity: The abstract layering and variable-length fields in the existing method result in high parsing complexity, and the data parsing process places higher demands on the CPU and memory resources of the low-power microcontroller, leading to increased processing latency; (3) Low security: The existing method only provides simple duplicate detection. Its complete security relies entirely on DTLS (Datagram Transport Layer Security), and the DTLS handshake process requires a lot of computing resources and network bandwidth.
[0004] Therefore, existing technologies still need to be improved and developed. Summary of the Invention
[0005] The main objective of this invention is to provide a device communication method, system, terminal, and computer-readable storage medium based on a restricted message transmission protocol, aiming to solve the problems of excessive protocol overhead, high parsing complexity, and low security in existing technologies for communication between resource-constrained devices.
[0006] To achieve the above objectives, the present invention provides a device communication method based on a restricted message transmission protocol, the device communication method based on the restricted message transmission protocol comprising the following steps: The system acquires the user's device communication tasks, analyzes and processes the device communication tasks to obtain task analysis results, and determines whether the device communication task is a resource-constrained device communication task based on the task analysis results. If the device communication task is resource-constrained device communication, then the restricted message transmission protocol is obtained, and the protocol stack is constructed according to the restricted message transmission protocol to obtain the restricted message transmission protocol stack architecture. Obtain the communication message to be communicated from the first device in the device communication task, process the communication message according to the restricted message transmission protocol stack architecture to obtain the target communication message, and transmit the target communication message to the second device in the device communication task according to the restricted message transmission protocol.
[0007] Optionally, the device communication method based on the constrained message transmission protocol, wherein obtaining the user's device communication task, analyzing and processing the device communication task to obtain a task analysis result, and determining whether the device communication task is resource-constrained device communication based on the task analysis result, specifically includes: Pre-set task detection instructions, and perform real-time detection of task requests according to the task detection instructions; When a user sends a device communication request, the device communication request is obtained, the device communication request is authenticated, a security authentication result is obtained, and the corresponding device communication task is obtained based on the security authentication result. A multi-dimensional task analysis architecture is constructed, and the device communication tasks are analyzed in depth based on the multi-dimensional task analysis architecture to obtain task analysis results; Based on the task analysis results, determine whether the device communication task is a resource-constrained device communication task.
[0008] Optionally, the device communication method based on the constrained message transmission protocol, wherein constructing a multi-dimensional task analysis architecture and performing in-depth analysis of the device communication task based on the multi-dimensional task analysis architecture to obtain task analysis results specifically includes: A multi-dimensional task analysis architecture is constructed, which includes a resource consumption dimension structure, a time-series characteristic dimension structure, and a communication mode dimension structure. Based on the resource consumption analysis structure, the device communication task is analyzed for resource consumption to obtain a first analysis result. Based on the time sequence characteristic dimension structure, the device communication task is analyzed for time sequence characteristics to obtain a second analysis result. Based on the communication mode dimension structure, the device communication task is analyzed for communication mode to obtain a third analysis result. The task analysis results are obtained based on the first analysis result, the second analysis result, and the third analysis result.
[0009] Optionally, in the device communication method based on the constrained message transmission protocol, the step of determining whether the device communication task is resource-constrained device communication based on the task analysis result specifically includes: Obtain the device basic attribute information and communication performance information from the task analysis results. The device basic attribute information includes hardware specifications, energy information and communication method. The communication performance information includes processing energy efficiency, bandwidth utilization and processing latency. The system acquires the basic attribute standards and communication performance standards for resource-constrained devices, compares the basic attribute information with the basic attribute standards to obtain a first comparison result, and compares the communication performance information with the communication performance standards to obtain a second comparison result. Based on the first comparison result and the second comparison result, determine whether the device communication task is a resource-constrained device communication.
[0010] Optionally, the device communication method based on the restricted message transmission protocol, wherein if the device communication task is resource-constrained device communication, then obtaining the restricted message transmission protocol, constructing a protocol stack according to the restricted message transmission protocol, and obtaining a restricted message transmission protocol stack architecture, specifically includes: Based on the first comparison result and the second comparison result, if the device communication task is determined to be resource-constrained device communication, then the corresponding restricted message transmission protocol is obtained based on the device communication task. The application layer is constructed according to the restricted message transmission protocol to obtain the application layer structure, and the transport layer is constructed according to the restricted message transmission protocol to obtain the transport layer structure. The network layer structure is obtained by constructing the network layer according to the restricted message transmission protocol, and the data link layer structure is obtained by constructing the link layer according to the restricted message transmission protocol. Based on the application layer structure, the transport layer structure, the network layer structure, and the data link layer structure, a protocol stack is constructed to obtain a restricted message transmission protocol stack architecture.
[0011] Optionally, in the device communication method based on the restricted message transmission protocol, the step of obtaining the corresponding restricted message transmission protocol according to the device communication task specifically includes: The restricted application protocol is obtained according to the device communication task, and redundant fields are removed from the restricted application protocol to obtain the first optimized protocol. The first optimized protocol is simplified by encoding to obtain the second optimized protocol, and the second optimized protocol is integrated by function to obtain the restricted message transmission protocol.
[0012] Optionally, the device communication method based on the restricted message transmission protocol, wherein the step of constructing the application layer according to the restricted message transmission protocol to obtain the application layer structure specifically includes: The data format is set according to the restricted message transmission protocol to obtain the target data format, and the data content is simplified according to the restricted message transmission protocol to obtain the data simplification specification. Security mechanisms are integrated according to the restricted message transmission protocol to obtain the target security mechanism, and the application layer is constructed according to the target data format, the data simplification specification and the target security mechanism to obtain the application layer structure.
[0013] Optionally, the device communication method based on the restricted message transmission protocol, wherein the step of constructing the transport layer according to the restricted message transmission protocol to obtain the transport layer structure specifically includes: Based on the restricted message transmission protocol, a transmission protocol selection rule is formulated, and corresponding protocol optimization measures are set for the transmission protocol selection rule; The encapsulation method is set according to the restricted message transmission protocol to obtain the data encapsulation method. The transmission layer is constructed according to the protocol selection rules, the protocol optimization measures and the data encapsulation method to obtain the transmission layer structure.
[0014] Optionally, the device communication method based on the restricted message transmission protocol, wherein the step of constructing the network layer according to the restricted message transmission protocol to obtain the network layer structure specifically includes: IP address adaptation is performed according to the restricted message transmission protocol to obtain IP address adaptation results, and low-power wireless network adaptation is performed according to the restricted message transmission protocol to obtain network adaptation results. The network layer structure is obtained by constructing the network layer based on the IP address adaptation results and the network adaptation results.
[0015] Optionally, the device communication method based on the Restricted Message Transmission Protocol, wherein the step of constructing the link layer according to the Restricted Message Transmission Protocol to obtain the data link layer structure specifically includes: Multi-interface compatibility is performed according to the restricted message transmission protocol to obtain interface compatibility results, wherein the interface compatibility results include wireless network interface compatibility, wired network interface compatibility and Bluetooth interface compatibility; Energy-saving mechanisms are integrated according to the restricted message transmission protocol to obtain the mechanism integration result. Then, the link layer is constructed according to the interface compatibility result and the mechanism integration result to obtain the data link layer structure.
[0016] Optionally, the device communication method based on a restricted message transmission protocol, wherein if the device communication task is resource-constrained device communication, then the restricted message transmission protocol is obtained, a protocol stack is constructed according to the restricted message transmission protocol to obtain a restricted message transmission protocol stack architecture, and then the method further includes: Obtain the message detection frequency of the user, verify the message detection frequency according to the resource-constrained device corresponding to the resource-constrained device communication, and obtain the verification result; If the verification result indicates that the message detection frequency is not abnormal, then the target message detection frequency is obtained based on the verification result. If the verification result indicates that the message detection frequency is abnormal, the message detection frequency is adjusted according to the verification result to obtain a frequency adjustment result, and the frequency adjustment result is sent to the user to remind the user to confirm the frequency adjustment result; When it is detected that the user has confirmed the frequency adjustment result, the target message detection frequency is obtained based on the frequency adjustment result.
[0017] Optionally, the device communication method based on the restricted message transmission protocol, wherein obtaining the communication message to be communicated by the first device in the device communication task, processing the format of the communication message to be communicated according to the restricted message transmission protocol stack architecture to obtain the target communication message, and transmitting the target communication message to the second device in the device communication task according to the restricted message transmission protocol, specifically includes: The system acquires the first device and the second device in the device communication task, sends the target message detection frequency to the first device, and receives the communication message to be communicated sent by the first device, wherein the communication message to be communicated is obtained by the first device through message detection based on the target message detection frequency. The format information of the message to be communicated is obtained, and the format information is processed with a fixed header according to the restricted message transmission protocol stack architecture to obtain a first format. The fixed header processing includes identifying the version protocol, defining the transmission semantics, determining the request type, and indicating the valid format. The simplified message to be communicated is obtained according to the first format. The simplified message to be communicated is encapsulated with a payload to obtain the target message to be communicated. The target message to be communicated is then transmitted to the second device according to the restricted message transmission protocol.
[0018] Optionally, in the device communication method based on the constrained message transmission protocol, the step of encapsulating the simplified message to be communicated with a payload to obtain the target message to be communicated specifically includes: Obtain the message ID and current timestamp of the simplified message to be communicated, and combine the message ID and the current timestamp to obtain a network resource electronic tag; The simplified message to be communicated and the network resource electronic tag are encapsulated with a payload to obtain the target message to be communicated.
[0019] Optionally, the device communication method based on the restricted message transmission protocol, wherein the steps of obtaining the communication message to be communicated from the first device in the device communication task, processing the communication message to be communicated according to the restricted message transmission protocol stack architecture to obtain the target communication message, and transmitting the target communication message to the second device in the device communication task according to the restricted message transmission protocol, further include: Detect whether the second device returns a message communication result within a preset time; If the second device fails to return a message communication result within the preset time, a corresponding abnormality warning reminder is generated and sent to the user.
[0020] Furthermore, to achieve the above objectives, the present invention also provides a device communication system based on a restricted message transmission protocol, wherein the device communication system based on the restricted message transmission protocol includes: The data analysis module is used to acquire the user's device communication tasks, analyze and process the device communication tasks, obtain task analysis results, and determine whether the device communication task is a resource-constrained device communication based on the task analysis results. The architecture construction module is used to obtain a restricted message transmission protocol if the device communication task is a resource-constrained device communication, and to construct a protocol stack according to the restricted message transmission protocol to obtain a restricted message transmission protocol stack architecture. The device communication module is used to acquire the communication message to be communicated by the first device in the device communication task, process the communication message according to the restricted message transmission protocol stack architecture to obtain the target communication message, and transmit the target communication message to the second device in the device communication task according to the restricted message transmission protocol.
[0021] Optionally, in the device communication system based on the restricted message transmission protocol, the data analysis module includes: The task detection unit is used to pre-set task detection instructions and perform real-time detection of task requests according to the task detection instructions. The authentication request unit is used to obtain the device communication request when a user sends a device communication request, perform security authentication on the device communication request, obtain a security authentication result, and obtain the corresponding device communication task based on the security authentication result. The task analysis unit is used to construct a multi-dimensional task analysis architecture and perform in-depth analysis of the device communication tasks based on the multi-dimensional task analysis architecture to obtain task analysis results. The task judgment unit is used to determine whether the device communication task is resource-constrained device communication based on the task analysis results.
[0022] Optionally, in the device communication system based on the restricted message transmission protocol, the architecture construction module includes: The protocol acquisition unit is used to determine, based on the first comparison result and the second comparison result, that the device communication task is resource-constrained device communication, and then acquire the corresponding restricted message transmission protocol based on the device communication task. The first construction unit is used to construct the application layer according to the restricted message transmission protocol to obtain the application layer structure, and to construct the transport layer according to the restricted message transmission protocol to obtain the transport layer structure. The second construction unit is used to construct the network layer according to the restricted message transmission protocol to obtain the network layer structure, and to construct the link layer according to the restricted message transmission protocol to obtain the data link layer structure. The third construction unit is used to construct a protocol stack based on the application layer structure, the transport layer structure, the network layer structure, and the data link layer structure to obtain a restricted message transmission protocol stack architecture.
[0023] Optionally, in the device communication system based on the restricted message transmission protocol, the device communication module includes: A message receiving unit is configured to acquire a first device and a second device in the device communication task, send the target message detection frequency to the first device, and receive a message to be communicated sent by the first device, wherein the message to be communicated is obtained by the first device through message detection based on the target message detection frequency. The message processing unit is used to obtain the format information of the message to be communicated, and to perform fixed header processing on the format information according to the restricted message transmission protocol stack architecture to obtain a first format. The fixed header processing includes identifying the version protocol, defining transmission semantics, determining the request type, and indicating the valid format. The message transmission unit is configured to obtain a simplified message to be communicated according to the first format, perform payload encapsulation processing on the simplified message to be communicated to obtain a target message to be communicated, and transmit the target message to be communicated to the second device according to the restricted message transmission protocol.
[0024] Furthermore, to achieve the above objectives, the present invention also provides a terminal, wherein the terminal includes: a memory, a processor, and a device communication program based on a restricted message transmission protocol stored in the memory and executable on the processor, wherein when the device communication program based on the restricted message transmission protocol is executed by the processor, it implements the steps of the device communication method based on the restricted message transmission protocol as described above.
[0025] Furthermore, to achieve the above objectives, the present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a device communication program based on a restricted message transmission protocol, and the device communication program based on the restricted message transmission protocol, when executed by a processor, implements the steps of the device communication method based on the restricted message transmission protocol as described above.
[0026] In this invention, a user's device communication task is acquired, analyzed, and processed to obtain a task analysis result. Based on the task analysis result, it is determined whether the device communication task is resource-constrained device communication. If the device communication task is resource-constrained device communication, a restricted message transmission protocol is acquired, and a protocol stack is constructed according to the restricted message transmission protocol to obtain a restricted message transmission protocol stack architecture. The communication message to be communicated by the first device in the device communication task is acquired, and the communication message to be communicated is formatted according to the restricted message transmission protocol stack architecture to obtain a target communication message. The target communication message to be communicated is then transmitted to the second device in the device communication task according to the restricted message transmission protocol. This invention uses a simplified processing method to obtain a restricted message transmission protocol for inter-device communication, which not only reduces protocol overhead and parsing complexity but also ensures security while reducing resource consumption, thereby improving communication efficiency. Attached Figure Description
[0027] Figure 1 This is a flowchart of a preferred embodiment of the device communication method based on the restricted message transmission protocol of the present invention; Figure 2 This is a flowchart illustrating the specific implementation process of step S10 in a preferred embodiment of the device communication method based on the restricted message transmission protocol of the present invention. Figure 3 This is a flowchart illustrating the specific implementation process of step S13 in a preferred embodiment of the device communication method based on the restricted message transmission protocol of the present invention. Figure 4 This is a flowchart illustrating the specific implementation process of step S14 in a preferred embodiment of the device communication method based on the restricted message transmission protocol of the present invention. Figure 5 This is a flowchart illustrating the specific implementation process of step S20 in a preferred embodiment of the device communication method based on the restricted message transmission protocol of the present invention. Figure 6 This is a schematic diagram of the CoMP protocol stack architecture in a preferred embodiment of the device communication method based on the restricted message transmission protocol of the present invention. Figure 7 This is a flowchart illustrating the specific implementation process of step S30 in a preferred embodiment of the device communication method based on the restricted message transmission protocol of the present invention. Figure 8 This is a flowchart illustrating the CoMP message format processing in a preferred embodiment of the device communication method based on the Restricted Message Transmission Protocol of the present invention. Figure 9 This is a flowchart illustrating the specific implementation process of step S40 in a preferred embodiment of the device communication method based on the restricted message transmission protocol of the present invention. Figure 10 This is a schematic diagram of the experimental results of Experiment 1 in a preferred embodiment of the device communication method based on the restricted message transmission protocol of the present invention; Figure 11 This is a schematic diagram of the experimental results of Experiment 2 in a preferred embodiment of the device communication method based on the restricted message transmission protocol of the present invention; Figure 12 This is a schematic diagram of the experimental results of Experiment 3 in a preferred embodiment of the device communication method based on the restricted message transmission protocol of the present invention; Figure 13 This is a schematic diagram of the experimental results of Experiment 4 in a preferred embodiment of the device communication method based on the restricted message transmission protocol of the present invention; Figure 14 This is a schematic diagram of the experimental results of Experiment 5 in a preferred embodiment of the device communication method based on the restricted message transmission protocol of the present invention; Figure 15This is a schematic diagram of the experimental results of Experiment Six in a preferred embodiment of the device communication method based on the restricted message transmission protocol of the present invention; Figure 16 This is a schematic diagram of the experimental results of Experiment 7 in a preferred embodiment of the device communication method based on the restricted message transmission protocol of the present invention; Figure 17 This is a schematic diagram of the experimental results of Experiment 8 in a preferred embodiment of the device communication method based on the restricted message transmission protocol of the present invention; Figure 18 This is a schematic diagram of the experimental results of Experiment Nine in a preferred embodiment of the device communication method based on the restricted message transmission protocol of the present invention; Figure 19 This is a schematic diagram of the experimental results of Experiment 10 in a preferred embodiment of the device communication method based on the restricted message transmission protocol of the present invention; Figure 20 This is a schematic diagram of a device communication system based on the restricted message transmission protocol according to the present invention; Figure 21 This is another schematic diagram of the device communication system based on the restricted message transmission protocol of the present invention; Figure 22 This is a structural diagram of a preferred embodiment of the terminal of the present invention. Detailed Implementation
[0028] To make the objectives, technical solutions, and advantages of this invention clearer and more explicit, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
[0029] For communication between resource-constrained devices, such as deploying temperature sensors throughout a production line, each temperature sensor needs to periodically (e.g., every minute) collect and report current temperature data, while supporting remote commands to dynamically adjust the reporting frequency to balance monitoring accuracy and system load; existing technologies use the CoAP protocol for this purpose, but such scenarios impose special requirements on the communication protocol, and existing methods have the following shortcomings: (1) Excessive protocol overhead: The CoAP protocol's message header is fixed at 4 bytes, but its real complexity lies in its variable parts. The corresponding token and option fields use a type-length-value encoding method, and the option number uses incremental encoding, which increases the computational burden of parsing. For simple scenarios where only one byte of data is transmitted per minute (e.g., temperature and monitoring area number), the existing method has an excessively high proportion of header overhead in the CoAP protocol, which reduces communication efficiency. In simple scenarios of device data reporting and command issuance, there is functional redundancy, which increases resource consumption. (2) High parsing complexity: The abstract layering and variable-length fields in the existing method result in high parsing complexity, and the data parsing process places higher demands on the CPU and memory resources of the low-power microcontroller, leading to increased processing latency; (3) Low security: The existing method only provides simple duplicate detection. Its complete security relies entirely on DTLS (Datagram Transport Layer Security), and the DTLS handshake process requires a lot of computing resources and network bandwidth.
[0030] Therefore, this invention proposes a device communication method based on a restricted message transmission protocol to overcome the problems of excessive protocol overhead, high parsing complexity, and low security in existing technologies for communication between resource-constrained devices.
[0031] The preferred embodiment of the device communication method based on the restricted message transmission protocol described in this invention, such as... Figure 1 As shown, the device communication method based on the restricted message transmission protocol includes the following steps: Step S10: Obtain the user's device communication task, analyze and process the device communication task to obtain the task analysis result, and determine whether the device communication task is a resource-constrained device communication based on the task analysis result.
[0032] Specifically, in this embodiment of the invention, the invention is illustrated by adding temperature sensors to the entire production line to facilitate communication between resource-constrained devices that report the current temperature every minute. First, task requests are detected in real time using pre-set task detection instructions. When a user sends a device communication request (e.g., a request to query the current specific temperature), the user's device communication request is obtained. Then, for security purposes, to prevent risks associated with the device communication request, a security authentication is performed on the request, and the corresponding device communication task is obtained based on the authentication result. Second, a multi-dimensional task analysis architecture is constructed, and the device communication task is analyzed in depth based on this architecture to obtain task analysis results. Finally, the task analysis results are used to determine whether the device communication task is for resource-constrained devices.
[0033] like Figure 2 As shown, step S10 specifically includes: Step S11: Pre-set task detection instructions and perform real-time detection of task requests according to the task detection instructions.
[0034] Specifically, step S11 is implemented as follows: Before acquiring the corresponding device communication task, a task detection instruction needs to be pre-set. The task request is detected in real time through the pre-set task detection instruction, which realizes the real-time capture of communication requests and prevents the loss of important device communication tasks.
[0035] Step S12: When a user sends a device communication request, the device communication request is obtained, the device communication request is authenticated for security, a security authentication result is obtained, and the corresponding device communication task is obtained based on the security authentication result.
[0036] Specifically, step S12 is implemented as follows: When performing real-time detection of task requests according to the task detection instruction, when a user sends a device communication request, the device communication request is obtained; after obtaining the device communication request, for security purposes and to prevent the device communication request from being at risk, the device communication request is security authenticated to obtain a security authentication result, and the corresponding device communication task is obtained based on the security authentication result.
[0037] Step S13: Construct a multi-dimensional task analysis architecture, and perform in-depth analysis of the device communication tasks based on the multi-dimensional task analysis architecture to obtain task analysis results.
[0038] Specifically, after acquiring the device communication task, it is necessary to perform in-depth analysis on the device communication task. In this embodiment of the invention, the device communication task is analyzed in-depth through a constructed multi-dimensional task analysis architecture to obtain task analysis results.
[0039] Among them, such as Figure 3 As shown, step S13 specifically includes: Step S131: Construct a multi-dimensional task analysis architecture, wherein the multi-dimensional task analysis architecture includes a resource consumption dimension structure, a time sequence characteristic dimension structure, and a communication mode dimension structure.
[0040] Specifically, step S131 is implemented as follows: Before conducting in-depth analysis of the device communication tasks, it is necessary to construct a multi-dimensional task analysis architecture, which includes a resource consumption dimension structure, a timing characteristic dimension structure, and a communication mode dimension structure. The functions implemented by the resource consumption dimension structure include: (1) Analyze computational overhead: Analyze the computational overhead of data compression and protocol conversion required for the device's communication tasks; (2) Analyze storage requirements and resources: assess temporary cache, persistent storage requirements and lifecycle; (3) Analyze network resource requirements: quantify bandwidth usage, connection duration, number of data packets, and data packet size; (4) Analyze energy consumption: Establish an energy consumption estimation model based on the type of device communication task to predict the energy consumption of task execution; The functions implemented by the time-series characteristic dimension structure include: (1) Analyze task latency: Task latency tolerance analysis (millisecond, second and minute level); (2) Analyze periodic characteristics: Identify one-time tasks, periodic tasks, or event-triggered tasks; The functions implemented by the communication mode dimension structure include: (1) Analyze data flow: Analyze the characteristics of uplink, downlink or bidirectional data flow; (2) Analyze the protocol stack depth: Analyze the number of protocol layers required for communication and the overhead of each layer.
[0041] Step S132: Perform resource consumption analysis on the device communication task according to the resource consumption analysis structure to obtain a first analysis result; perform time sequence feature analysis on the device communication task according to the time sequence characteristic dimension structure to obtain a second analysis result; and perform communication mode analysis on the device communication task according to the communication mode dimension structure to obtain a third analysis result.
[0042] Specifically, step S132 is implemented as follows: Based on the resource consumption analysis structure, resource consumption analysis is performed on the device communication task to obtain a first analysis result, wherein the first analysis result includes computational overhead analysis results, storage demand resource analysis results, network demand resource analysis results, and energy consumption analysis results; based on the time-series characteristic dimension structure, time-series characteristic analysis is performed on the device communication task to obtain a second analysis result, wherein the second analysis result includes task latency analysis results and periodicity characteristic analysis results; based on the communication mode dimension structure, communication mode analysis is performed on the device communication task to obtain a third analysis result, wherein the third analysis result includes data flow analysis results and protocol stack depth analysis results.
[0043] Step S133: Obtain the task analysis result based on the first analysis result, the second analysis result, and the third analysis result.
[0044] Specifically, step S133 is implemented as follows: After obtaining the first analysis result, the second analysis result, and the third analysis result, the task analysis result is obtained based on the computational overhead analysis result, storage demand resource analysis result, network demand resource analysis result, and energy consumption analysis result of the first analysis result, the task latency analysis result and periodic characteristic analysis result of the second analysis result, and the data flow analysis result and protocol stack depth analysis result of the third analysis result.
[0045] Step S14: Determine whether the device communication task is a resource-constrained device communication task based on the task analysis results.
[0046] Specifically, step S14 is implemented as follows: After obtaining the task analysis results, it is necessary to determine whether the device communication task is a resource-constrained device communication task based on the task analysis results, so as to facilitate the subsequent use of the restricted message transmission protocol for device communication.
[0047] Among them, such as Figure 4 As shown, step S14 specifically includes: Step S141: Obtain the device basic attribute information and communication performance information from the task analysis results. The device basic attribute information includes hardware specifications, energy information and communication method. The communication performance information includes processing energy efficiency, bandwidth utilization and processing latency.
[0048] Specifically, step S141 is implemented as follows: Obtain the basic device attribute information from the task analysis results, wherein the basic device attribute information includes hardware specifications, energy information and communication method, and obtain the communication performance information from the task analysis results, wherein the communication performance information includes processing energy efficiency, bandwidth utilization and processing latency.
[0049] Step S142: Obtain the basic attribute standards and communication performance standards for resource-constrained device communication; compare the basic attribute information with the basic attribute standards to obtain a first comparison result; and compare the communication performance information with the communication performance standards to obtain a second comparison result.
[0050] Specifically, step S142 is implemented as follows: The system acquires the basic attribute standards and communication performance standards for resource-constrained devices. It then compares the basic attribute information with the basic attribute standards to obtain a first comparison result, which includes hardware specification comparison results, energy information comparison results, and communication method comparison results. Finally, it compares the communication performance information with the communication performance standards to obtain a second comparison result, which includes processing energy efficiency comparison results, bandwidth utilization comparison results, and processing latency comparison results.
[0051] Step S143: Determine whether the device communication task is a resource-constrained device communication based on the first comparison result and the second comparison result.
[0052] Specifically, step S143 is implemented as follows: Based on the first comparison result and the second comparison result, determine whether the device communication task is resource-constrained device communication; if the first comparison result and the second comparison result of the device communication task meet the conditions for resource-constrained device communication, then determine that the device communication task is resource-constrained device communication; if the first comparison result and the second comparison result of the device communication task do not meet the conditions for resource-constrained device communication, then determine that the device communication task is normal resource-constrained device communication.
[0053] Step S20: If the device communication task is resource-constrained device communication, then obtain the restricted message transmission protocol, construct the protocol stack according to the restricted message transmission protocol, and obtain the restricted message transmission protocol stack architecture.
[0054] Specifically, if the device communication task is resource-constrained device communication, a restricted message transmission protocol is obtained, which is obtained by simplifying a restricted application protocol; then, a protocol stack is constructed using the restricted message transmission protocol to obtain a restricted message transmission protocol stack architecture, which is then used to process the message format of the communication messages.
[0055] like Figure 5 As shown, step S20 specifically includes: Step S21: Based on the first comparison result and the second comparison result, if the device communication task is determined to be resource-constrained device communication, then obtain the corresponding restricted message transmission protocol according to the device communication task.
[0056] Specifically, step S21 is implemented as follows: After determining that the device communication task is resource-constrained device communication based on the first comparison result and the second comparison result, it is necessary to obtain a restricted message transmission protocol for resource-constrained device communication. Specifically, a restricted application protocol is obtained based on the device communication task, and redundant fields are removed from the restricted application protocol to obtain a first optimized protocol; the first optimized protocol is simplified by encoding to obtain a second optimized protocol, and the second optimized protocol is integrated by function to obtain a restricted message transmission protocol.
[0057] Step S22: Construct the application layer according to the restricted message transmission protocol to obtain the application layer structure, and construct the transport layer according to the restricted message transmission protocol to obtain the transport layer structure.
[0058] Specifically, step S22 is implemented as follows: After obtaining the restricted message transmission protocol, the message format of the messages to be communicated needs to be processed to facilitate device communication via the restricted message transmission protocol. This invention processes the message format of the messages to be communicated through a restricted message transmission protocol stack architecture, as shown below. Figure 6 As shown; specifically, the application layer is constructed according to the restricted message transmission protocol to obtain the application layer structure. The construction process of the application layer structure is as follows: the data format is set according to the restricted message transmission protocol to obtain the target data format, and the data content is simplified according to the restricted message transmission protocol to obtain the data simplification specification; the security mechanism is integrated according to the restricted message transmission protocol to obtain the target security mechanism, and the application layer is constructed according to the target data format, the data simplification specification, and the target security mechanism to obtain the application layer structure. The core function of the application layer structure is to encapsulate the generated raw data into standardized CoMP messages, ensure the minimization of redundant information by structuring the data content, and use a simplified message header containing only necessary fields.
[0059] Subsequently, the transport layer is constructed according to the restricted message transmission protocol to obtain the transport layer structure. The construction process of the transport layer structure is as follows: A transport protocol selection rule is formulated according to the restricted message transmission protocol; if message reliability needs to be guaranteed (e.g., control commands, status updates), the TCP protocol (Transmission Control Protocol) is used; if low latency and low overhead are desired (e.g., sensor sampling value reporting), the UDP protocol (Transmission Control Protocol) is used; protocol optimization measures corresponding to the transport protocol selection rule are set, enabling connection multiplexing on the TCP protocol to avoid resource consumption caused by frequent connection establishment or disconnection; for the UDP protocol, a retransmission mechanism (e.g., acknowledgment retransmission based on a time window) is introduced to improve reliability; an encapsulation method is set according to the restricted message transmission protocol to obtain the data encapsulation method, and the transport layer is constructed according to the protocol selection rule, the protocol optimization measures, and the data encapsulation method to obtain the transport layer structure.
[0060] Step S23: Construct the network layer according to the restricted message transmission protocol to obtain the network layer structure, and construct the link layer according to the restricted message transmission protocol to obtain the data link layer structure.
[0061] Specifically, step S23 is implemented as follows: The network layer is constructed according to the Restricted Message Transmission Protocol (RSP) to obtain a network layer structure. The construction process involves: performing IP address adaptation according to the RSP to obtain an IP address adaptation result; performing low-power wireless network adaptation according to the RSP to obtain a network adaptation result; and constructing the network layer based on the IP address adaptation result and the network adaptation result to obtain the network layer structure. This network layer structure directly supports standard IPv6 addresses (128 bits), is suitable for devices with full IP capabilities, and provides good routing scalability and address management capabilities. It is also optimized for ultra-low-power wireless networks (e.g., IEEE 802.15.4) by compressing the IPv6 header from 40 bytes to 1-2 bytes. Furthermore, it can automatically identify the underlying network type to dynamically select either IPv6 or 6LoWPAN encapsulation.
[0062] The link layer is constructed according to the restricted message transmission protocol to obtain the data link layer structure. The construction process of the data link layer structure is as follows: multi-interface compatibility is performed according to the restricted message transmission protocol to obtain interface compatibility results, wherein the interface compatibility results include wireless network interface compatibility, wired network interface compatibility, and Bluetooth interface compatibility; energy-saving mechanism integration is performed according to the restricted message transmission protocol to obtain mechanism integration results; and the link layer is constructed according to the interface compatibility results and the mechanism integration results to obtain the data link layer structure. The data link layer structure can automatically match the corresponding MAC layer protocol (e.g., IEEE 802.11, IEEE 802.3, IEEE 802.15.4).
[0063] Step S24: Construct the protocol stack based on the application layer structure, the transport layer structure, the network layer structure, and the data link layer structure to obtain the restricted message transmission protocol stack architecture.
[0064] Specifically, step S24 is implemented as follows: After completing the construction of the application layer structure, the transport layer structure, the network layer structure, and the data link layer structure, a protocol stack is constructed based on the application layer structure, the transport layer structure, the network layer structure, and the data link layer structure to obtain a restricted message transmission protocol stack architecture.
[0065] Step S30: Obtain the communication message to be communicated from the first device in the device communication task, process the communication message according to the restricted message transmission protocol stack architecture to obtain the target communication message, and transmit the target communication message to the second device in the device communication task according to the restricted message transmission protocol.
[0066] Specifically, to obtain the first and second devices in the device communication task, it is necessary to obtain the communication message to be communicated by the first device. The communication message to be communicated is obtained by the first device through message detection using a target message detection frequency. Therefore, before performing message detection, the first device needs to send the target message detection frequency. Specifically, it obtains the user's message detection frequency, verifies the message detection frequency according to the resource-constrained device corresponding to the resource-constrained device communication, and obtains a verification result. If the verification result indicates that the message detection frequency is not abnormal, the target message detection frequency is obtained based on the verification result. If the verification result indicates that the message detection frequency is abnormal, the message detection frequency is adjusted according to the verification result to obtain a frequency adjustment result, and the frequency adjustment result is sent to the user to remind the user to confirm the frequency adjustment result. When it is detected that the user has confirmed the frequency adjustment result, the target message detection frequency is obtained based on the frequency adjustment result.
[0067] Subsequently, the message to be communicated obtained by the first device through message detection based on the target message detection frequency is acquired, the message to be communicated is formatted according to the restricted message transmission protocol stack architecture to obtain the target message to be communicated, and the target message to be communicated is transmitted to the second device according to the restricted message transmission protocol.
[0068] like Figure 7 As shown, step S30 specifically includes: Step S31: Obtain the first device and the second device in the device communication task, send the target message detection frequency to the first device, and receive the communication message to be communicated sent by the first device, wherein the communication message to be communicated is obtained by the first device through message detection according to the target message detection frequency.
[0069] Specifically, step S31 is implemented as follows: The system acquires the first and second devices in the device communication task, sends the target message detection frequency to the first device, and after the first device receives the target message detection frequency, the first device performs message detection according to the target message detection frequency to obtain the message to be communicated, and returns the message to be communicated.
[0070] Step S32: Obtain the format information of the message to be communicated, and perform fixed header processing on the format information according to the restricted message transmission protocol stack architecture to obtain a first format. The fixed header processing includes identifying the version protocol, defining transmission semantics, determining the request type, and indicating the valid format.
[0071] Specifically, step S32 is implemented as follows: Before transmitting the message to be communicated, its format needs to be processed. The specific processing procedure is as follows: Figure 8 As shown, the format information of the message to be communicated is obtained, and the format information is processed with a fixed header according to the restricted message transmission protocol stack architecture to obtain a first format. The fixed header processing includes identifying the version protocol, defining transmission semantics, determining the request type, and indicating the valid format. That is, all CoMP messages start with a fixed 2-byte header, and all fields are extracted from the 2 bytes through bit operations, resulting in extremely high parsing efficiency. The detailed structure of the CoMP message is as follows: (1) Version number: VER (2 bits), which identifies the CoMP protocol version, for example, 01 represents version 1; (2) Message type: T (2 bits), which defines the transmission semantics of the message. For example, 00 represents an acknowledgment message, indicating that the receiver is required to reply with an acknowledgment; 01 represents an unacknowledgment message, indicating that no acknowledgment is required; 10 represents an acknowledgment message, indicating that the acknowledgment message is being responded to; 11 represents a reset message, indicating that the received message cannot be processed. (3) Request or response code: Code (2 bits) indicates the type of request or response. It is extremely simplified. For example, 00 represents GET (get resource); 01 represents POST (create or update resource); 10 represents Bad Request (error request); 11 represents ServiceUnavailable (service unavailable). (4) Content format: CF (2 bits), directly indicates the format of the payload, without the need for complex options, such as 00 representing application format or XML format; 01 representing application format or JSON format; (5) Message Identifier: MessageID (8 bits), used for matching requests and responses, and for detecting duplicate messages.
[0072] Step S33: Obtain the simplified message to be communicated according to the first format, perform payload encapsulation processing on the simplified message to be communicated to obtain the target message to be communicated, and transmit the target message to be communicated to the second device according to the restricted message transmission protocol.
[0073] Specifically, step S33 is implemented as follows: After obtaining the first format, a simplified message to be communicated is obtained according to the first format. The simplified message to be communicated is then encapsulated with a payload to obtain the target message to be communicated. Specifically, the message ID and current timestamp of the simplified message to be communicated are obtained, and the message ID and the current timestamp are combined by binary shifting to obtain a network resource electronic tag. The simplified message to be communicated and the network resource electronic tag are then encapsulated with a payload to obtain the target message to be communicated. The purpose is to encapsulate the necessary metadata (e.g., resource path, custom parameters) in the payload (e.g., in a JSON object), rather than transmitting it through separate option fields as in CoAP.
[0074] Subsequently, the target message to be communicated is transmitted to the second device according to the restricted message transmission protocol. After the second device receives the target message to be communicated, it performs tag calculation on the current timestamp in the target message to be communicated by binary shifting to obtain the tag calculation result. If the tag calculation result matches the network resource electronic tag, the target message to be communicated is considered to be legitimate and timely; if the tag calculation result does not match the network resource electronic tag, the target message to be communicated is discarded. The purpose is to effectively prevent message replay and spoofing attacks without increasing header overhead, and the computational overhead is much lower than that of a complete DTLS handshake.
[0075] Furthermore, such as Figure 9 As shown, the process involves obtaining the communication message to be communicated from the first device in the device communication task, processing the communication message according to the restricted message transmission protocol stack architecture to obtain the target communication message, and transmitting the target communication message to the second device in the device communication task according to the restricted message transmission protocol. The process further includes: Step S41: Detect whether the second device returns a message communication result within a preset time. Step S42: If the second device fails to return a message communication result within the preset time, a corresponding abnormal warning reminder is generated and sent to the user.
[0076] Specifically, the system checks whether the second device returns a message communication result within a preset time period; if the second device does not return a message communication result within the preset time period, a corresponding abnormal warning reminder is generated and sent to the user.
[0077] Furthermore, since CoMP primarily targets resource-constrained devices, its payload is often relatively small. In this invention, a performance metric E=1 / RTT is defined to represent the number of communications per unit time in the test environment, directly reflecting communication efficiency. Currently, this invention has been verified through numerous experiments, and the corresponding test results fully demonstrate the performance advantages of CoMP. Test data shows that in various inter-device communication scenarios, the round-trip time (RTT) of CoMP is shorter than that of CoAP, indicating higher transmission efficiency. The performance of CoMP-TCP (a TCP-based restricted message transmission protocol) is on average 17% higher than that of CoAP-TCP (a TCP-based restricted application protocol); the performance of CoMP-UDP (a UDP-based restricted message transmission protocol) is on average 35% higher than that of CoAP-UDP (a UDP-based restricted application protocol). The corresponding experimental results and related analysis are shown in the figures below. Figures 10 to 19 As shown.
[0078] (1) Experiment 1 involves point-to-point communication between two RK 3568 development boards, such as... Figure 10 As shown, the experimental results indicate that, in comparison of TCP protocols, CoMP-TCP outperforms CoAP-TCP by 5.01%, reduces RTT by 1.3 milliseconds, and improves throughput by approximately 5.28%; in comparison of UDP protocols, CoMP-UDP outperforms CoAP-UDP by 17.48%, reduces RTT by 3.957 milliseconds, and improves throughput by approximately 21.19%. (2) Experiment 2 involves point-to-point communication between an RK 3588 development board and an RK 3568 development board, such as... Figure 11 As shown, the experimental results indicate that, compared to CoAP-TCP, CoMP-TCP is 10.41% more efficient and reduces RTT by 0.933 milliseconds, resulting in an approximately 11.62% improvement in throughput. Similarly, compared to CoAP-UDP, CoMP-UDP is 18.07% more efficient and reduces RTT by 1.276 milliseconds, resulting in an approximately 22.06% improvement in throughput. (3) Experiment 3 involves point-to-point communication between an RK 3568 development board and an ESP 32 development board, such as... Figure 12 As shown, the experimental results indicate that, compared to CoAP-TCP, CoMP-TCP is 12.71% more efficient and reduces RTT by 1.281 milliseconds, resulting in a throughput improvement of approximately 14.56%; compared to CoAP-UDP, CoMP-UDP is 21.57% more efficient and reduces RTT by 1.362 milliseconds, resulting in a throughput improvement of approximately 27.50%. (4) Experiment 4 involves point-to-point communication between an RK 3588 development board and an ESP 32 development board, such as... Figure 13 As shown, the experimental results indicate that, compared to CoAP-TCP, CoMP-TCP is 14.37% more efficient and reduces RTT by 1.233 milliseconds, resulting in a throughput improvement of approximately 16.79%; compared to CoAP-UDP, CoMP-UDP is 19.97% more efficient and reduces RTT by 1.224 milliseconds, resulting in a throughput improvement of approximately 24.95%. (5) Experiment 5 involves point-to-point communication between two ESP32 development boards, such as... Figure 14As shown, the experimental results indicate that, compared to CoAP-TCP, CoMP-TCP is 11.28% more efficient and reduces RTT by 1.043 milliseconds, resulting in a throughput improvement of approximately 12.71%; compared to CoAP-UDP, CoMP-UDP is 35.07% more efficient and reduces RTT by 2.601 milliseconds, resulting in a throughput improvement of up to 54.02%. (6) Experiment 6 involves point-to-point communication between two RK 3588 development boards, such as... Figure 15 As shown, the experimental results indicate that, compared to CoAP-TCP, CoMP-TCP is 13.52% more efficient and reduces RTT by 1.664 milliseconds, resulting in a throughput improvement of approximately 15.63%. Similarly, compared to CoAP-UDP, CoMP-UDP is 43.51% more efficient and reduces RTT by 3.485 milliseconds, achieving a throughput improvement of a remarkable 77.02%. (7) Experiment 7 involves point-to-point communication between an RK 3588 development board and a mobile smart terminal, such as... Figure 16 As shown, the experimental results indicate that, compared to CoAP-TCP, CoMP-TCP is 32.12% more efficient and reduces RTT by 20.019 milliseconds, resulting in a throughput improvement of approximately 47.33%. Similarly, compared to CoAP-UDP, CoMP-UDP is 72.10% more efficient and reduces RTT by 18.080 milliseconds, achieving a throughput improvement of a remarkable 258.47%. (8) Experiment 8 involves point-to-point communication between an ESP32 development board and a mobile smart terminal, such as... Figure 17 As shown, the experimental results indicate that, compared to CoAP-TCP, CoMP-TCP is 40.47% more efficient and reduces RTT by 21.786 milliseconds, resulting in a throughput improvement of approximately 67.98%. Similarly, compared to CoAP-UDP, CoMP-UDP is 55.70% more efficient and reduces RTT by 10.776 milliseconds, achieving a throughput improvement of a remarkable 125.72%. (9) Experiment Nine involves point-to-point communication between an RK 3568 development board and a mobile smart terminal, such as... Figure 18 As shown, the experimental results indicate that, compared to CoAP-TCP, CoMP-TCP is 39.63% more efficient and reduces RTT by 21.295 milliseconds, resulting in a throughput improvement of approximately 65.66%; compared to CoAP-UDP, CoMP-UDP is 63.65% more efficient and reduces RTT by 8.805 milliseconds, resulting in a throughput improvement of a staggering 175.09%. (10) Experiment 10 involves point-to-point communication between two mobile smart terminals, such as... Figure 19 As shown, the experimental results indicate that, in comparison of TCP protocols, CoMP-TCP is 18.34% more efficient than CoAP-TCP, with a reduction of 2.510 milliseconds in RTT, resulting in an improvement of approximately 22.46% in throughput. In comparison of UDP protocols, CoMP-UDP is 20.21% more efficient than CoAP-UDP, with a reduction of 1.540 milliseconds in RTT, resulting in an improvement of approximately 25.33% in throughput.
[0079] The technical effects that this invention can bring are as follows: (1) The header is extremely simple, greatly reducing the protocol overhead. The CoMP header compresses all key information into 2 bytes and defines them through bit fields, eliminating the need for any variable length parsing. This makes the protocol data unit size of CoMP significantly smaller than that of CoAP. Smaller data packets mean lower network bandwidth usage and energy consumption. (2) The parsing complexity is drastically reduced, improving the processing speed. CoMP's fixed-length header means that the parser does not need to deal with complex variable-length fields and incremental encoding options; parsing a CoMP message only requires simple bit operations (e.g., masking and shifting) to extract all header fields. (3) Lower communication latency is directly due to the reduction in the complexity of the transmission protocol and the optimization of the data packet size; (4) Lower memory and computing resource requirements: Due to the simple protocol stack, CoMP requires less memory to store message states and processing logic during runtime, enabling CoMP to run on microcontrollers with more limited resources and lower costs, thus broadening the applicable boundaries of IoT devices. (5) The inherent ability to resist denial-of-service attacks prevents attackers from generating a "one-to-many" traffic amplification effect through the CoMP protocol, thereby improving network layer security. (6) Innovation and trade-offs in security mechanisms: Although this mechanism does not provide encryption, it provides a basic security verification scheme with lower overhead for communication between resource-constrained devices. It is particularly suitable for scenarios where encryption requirements are not high but message authenticity is required.
[0080] Furthermore, such as Figure 20 As shown, based on the above-described device communication method based on the Restricted Message Transmission Protocol (RSTP), the present invention also provides a device communication system based on the RTP, wherein the device communication system based on the RTP includes: The data analysis module 50 is used to acquire the user's device communication tasks, analyze and process the device communication tasks, obtain task analysis results, and determine whether the device communication task is resource-constrained device communication based on the task analysis results. The architecture construction module 60 is used to obtain a restricted message transmission protocol if the device communication task is a resource-constrained device communication, and to construct a protocol stack according to the restricted message transmission protocol to obtain a restricted message transmission protocol stack architecture. The device communication module 70 is used to acquire the communication message to be communicated by the first device in the device communication task, process the communication message to be communicated according to the restricted message transmission protocol stack architecture to obtain the target communication message, and transmit the target communication message to the second device in the device communication task according to the restricted message transmission protocol.
[0081] like Figure 21 As shown in this embodiment of the invention, another embodiment of the device communication system based on the restricted message transmission protocol is presented. In this embodiment, the data analysis module 50 includes: The task detection unit 501 is used to pre-set task detection instructions and perform real-time detection of task requests according to the task detection instructions. The authentication request unit 502 is used to obtain the device communication request when a user sends a device communication request, perform security authentication on the device communication request, obtain a security authentication result, and obtain the corresponding device communication task based on the security authentication result. The task analysis unit 503 is used to construct a multi-dimensional task analysis architecture and perform in-depth analysis of the device communication tasks based on the multi-dimensional task analysis architecture to obtain task analysis results. The task judgment unit 504 is used to determine whether the device communication task is a resource-constrained device communication based on the task analysis result.
[0082] In this embodiment, the architecture construction module 60 includes: The protocol acquisition unit 601 is used to determine the device communication task as resource-constrained device communication based on the first comparison result and the second comparison result, and then acquire the corresponding restricted message transmission protocol based on the device communication task. The first construction unit 602 is used to construct the application layer according to the restricted message transmission protocol to obtain the application layer structure, and to construct the transport layer according to the restricted message transmission protocol to obtain the transport layer structure. The second construction unit 603 is used to construct the network layer according to the restricted message transmission protocol to obtain the network layer structure, and to construct the link layer according to the restricted message transmission protocol to obtain the data link layer structure. The third construction unit 604 is used to construct a protocol stack based on the application layer structure, the transport layer structure, the network layer structure and the data link layer structure to obtain a restricted message transmission protocol stack architecture.
[0083] In this embodiment, the device communication module 70 includes: The message receiving unit 701 is used to acquire the first device and the second device in the device communication task, send the target message detection frequency to the first device, and receive the communication message to be communicated sent by the first device, wherein the communication message to be communicated is obtained by the first device through message detection according to the target message detection frequency; The message processing unit 702 is used to obtain the format information of the message to be communicated, and to perform fixed header processing on the format information according to the restricted message transmission protocol stack architecture to obtain a first format. The fixed header processing includes identifying the version protocol, defining transmission semantics, determining the request type, and indicating the valid format. The message transmission unit 703 is configured to obtain a simplified message to be communicated according to the first format, perform payload encapsulation processing on the simplified message to be communicated to obtain a target message to be communicated, and transmit the target message to be communicated to the second device according to the restricted message transmission protocol.
[0084] The scheduling scheme of this invention generates a time in milliseconds, provides timely dynamic response, ensures the safety of instruction execution, and can also achieve multi-objective optimization, greatly improving resource scheduling efficiency.
[0085] Furthermore, such as Figure 22 As shown, based on the above-described device communication method and system based on the restricted message transmission protocol, the present invention also provides a terminal, which includes a processor 10, a memory 20, and a display 30. Figure 22 Only some of the terminal components are shown; however, it should be understood that it is not required to implement all of the components shown, and more or fewer components may be implemented instead.
[0086] In some embodiments, the memory 20 may be an internal storage unit of the terminal, such as a hard disk or memory. In other embodiments, the memory 20 may be an external storage device of the terminal, such as a plug-in hard disk, smart media card (SMC), secure digital card (SD), flash card, etc. Further, the memory 20 may include both internal and external storage devices. The memory 20 is used to store application software and various types of data installed on the terminal, such as the program code installed on the terminal. The memory 20 can also be used to temporarily store data that has been output or will be output. In one embodiment, the memory 20 stores a device communication program 40 based on a restricted message transmission protocol, which can be executed by the processor 10 to implement the device communication method based on the restricted message transmission protocol in this application.
[0087] In some embodiments, the processor 10 may be a central processing unit (CPU), a microprocessor, or other data processing chip, used to run program code stored in the memory 20 or process data, such as executing the device communication method based on the restricted message transmission protocol.
[0088] In some embodiments, the display 30 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, or an OLED (Organic Light-Emitting Diode) touchscreen. The display 30 is used to display information on the terminal and to display a visual user interface. The terminal's processor 10, memory 20, and display 30 communicate with each other via a system bus.
[0089] In one embodiment, when the processor 10 executes the device communication program 40 based on the restricted message transmission protocol in the memory 20, the following steps are performed: The system acquires the user's device communication tasks, analyzes and processes the device communication tasks to obtain task analysis results, and determines whether the device communication task is a resource-constrained device communication task based on the task analysis results. If the device communication task is resource-constrained device communication, then the restricted message transmission protocol is obtained, and the protocol stack is constructed according to the restricted message transmission protocol to obtain the restricted message transmission protocol stack architecture. Obtain the communication message to be communicated from the first device in the device communication task, process the communication message according to the restricted message transmission protocol stack architecture to obtain the target communication message, and transmit the target communication message to the second device in the device communication task according to the restricted message transmission protocol.
[0090] The step of acquiring the user's device communication task, analyzing and processing the device communication task to obtain a task analysis result, and determining whether the device communication task is resource-constrained device communication based on the task analysis result, specifically includes: Pre-set task detection instructions, and perform real-time detection of task requests according to the task detection instructions; When a user sends a device communication request, the device communication request is obtained, the device communication request is authenticated, a security authentication result is obtained, and the corresponding device communication task is obtained based on the security authentication result. A multi-dimensional task analysis architecture is constructed, and the device communication tasks are analyzed in depth based on the multi-dimensional task analysis architecture to obtain task analysis results; Based on the task analysis results, determine whether the device communication task is a resource-constrained device communication task.
[0091] Specifically, the construction of a multi-dimensional task analysis architecture and the in-depth analysis of the device communication tasks based on this architecture to obtain task analysis results include: A multi-dimensional task analysis architecture is constructed, which includes a resource consumption dimension structure, a time-series characteristic dimension structure, and a communication mode dimension structure. Based on the resource consumption analysis structure, the device communication task is analyzed for resource consumption to obtain a first analysis result. Based on the time sequence characteristic dimension structure, the device communication task is analyzed for time sequence characteristics to obtain a second analysis result. Based on the communication mode dimension structure, the device communication task is analyzed for communication mode to obtain a third analysis result. The task analysis results are obtained based on the first analysis result, the second analysis result, and the third analysis result.
[0092] Specifically, determining whether the device communication task is resource-constrained device communication based on the task analysis results includes: Obtain the device basic attribute information and communication performance information from the task analysis results. The device basic attribute information includes hardware specifications, energy information and communication method. The communication performance information includes processing energy efficiency, bandwidth utilization and processing latency. The system acquires the basic attribute standards and communication performance standards for resource-constrained devices, compares the basic attribute information with the basic attribute standards to obtain a first comparison result, and compares the communication performance information with the communication performance standards to obtain a second comparison result. Based on the first comparison result and the second comparison result, determine whether the device communication task is a resource-constrained device communication.
[0093] Wherein, if the device communication task is resource-constrained device communication, a restricted message transmission protocol is obtained, and a protocol stack is constructed according to the restricted message transmission protocol to obtain a restricted message transmission protocol stack architecture, specifically including: Based on the first comparison result and the second comparison result, if the device communication task is determined to be resource-constrained device communication, then the corresponding restricted message transmission protocol is obtained based on the device communication task. The application layer is constructed according to the restricted message transmission protocol to obtain the application layer structure, and the transport layer is constructed according to the restricted message transmission protocol to obtain the transport layer structure. The network layer structure is obtained by constructing the network layer according to the restricted message transmission protocol, and the data link layer structure is obtained by constructing the link layer according to the restricted message transmission protocol. Based on the application layer structure, the transport layer structure, the network layer structure, and the data link layer structure, a protocol stack is constructed to obtain a restricted message transmission protocol stack architecture.
[0094] Specifically, obtaining the corresponding restricted message transmission protocol based on the device communication task includes: The restricted application protocol is obtained according to the device communication task, and redundant fields are removed from the restricted application protocol to obtain the first optimized protocol. The first optimized protocol is simplified by encoding to obtain the second optimized protocol, and the second optimized protocol is integrated by function to obtain the restricted message transmission protocol.
[0095] Specifically, the step of constructing the application layer according to the restricted message transmission protocol to obtain the application layer structure includes: The data format is set according to the restricted message transmission protocol to obtain the target data format, and the data content is simplified according to the restricted message transmission protocol to obtain the data simplification specification. Security mechanisms are integrated according to the restricted message transmission protocol to obtain the target security mechanism, and the application layer is constructed according to the target data format, the data simplification specification and the target security mechanism to obtain the application layer structure.
[0096] The step of constructing the transport layer according to the restricted message transmission protocol to obtain the transport layer structure specifically includes: Based on the restricted message transmission protocol, a transmission protocol selection rule is formulated, and corresponding protocol optimization measures are set for the transmission protocol selection rule; The encapsulation method is set according to the restricted message transmission protocol to obtain the data encapsulation method. The transmission layer is constructed according to the protocol selection rules, the protocol optimization measures and the data encapsulation method to obtain the transmission layer structure.
[0097] Specifically, the construction of the network layer according to the restricted message transmission protocol to obtain the network layer structure includes: IP address adaptation is performed according to the restricted message transmission protocol to obtain IP address adaptation results, and low-power wireless network adaptation is performed according to the restricted message transmission protocol to obtain network adaptation results. The network layer structure is obtained by constructing the network layer based on the IP address adaptation results and the network adaptation results.
[0098] Specifically, the step of constructing the data link layer according to the restricted message transmission protocol to obtain the data link layer structure includes: Multi-interface compatibility is performed according to the restricted message transmission protocol to obtain interface compatibility results, wherein the interface compatibility results include wireless network interface compatibility, wired network interface compatibility and Bluetooth interface compatibility; Energy-saving mechanisms are integrated according to the restricted message transmission protocol to obtain the mechanism integration result. Then, the link layer is constructed according to the interface compatibility result and the mechanism integration result to obtain the data link layer structure.
[0099] Wherein, if the device communication task is resource-constrained device communication, then a restricted message transmission protocol is obtained, a protocol stack is constructed according to the restricted message transmission protocol to obtain a restricted message transmission protocol stack architecture, and then the following is also included: Obtain the message detection frequency of the user, verify the message detection frequency according to the resource-constrained device corresponding to the resource-constrained device communication, and obtain the verification result; If the verification result indicates that the message detection frequency is not abnormal, then the target message detection frequency is obtained based on the verification result. If the verification result indicates that the message detection frequency is abnormal, the message detection frequency is adjusted according to the verification result to obtain a frequency adjustment result, and the frequency adjustment result is sent to the user to remind the user to confirm the frequency adjustment result; When it is detected that the user has confirmed the frequency adjustment result, the target message detection frequency is obtained based on the frequency adjustment result.
[0100] Specifically, the step of obtaining the communication message to be communicated from the first device in the device communication task, processing the communication message according to the restricted message transmission protocol stack architecture to obtain the target communication message, and transmitting the target communication message to the second device in the device communication task according to the restricted message transmission protocol includes: The system acquires the first device and the second device in the device communication task, sends the target message detection frequency to the first device, and receives the communication message to be communicated sent by the first device, wherein the communication message to be communicated is obtained by the first device through message detection based on the target message detection frequency. The format information of the message to be communicated is obtained, and the format information is processed with a fixed header according to the restricted message transmission protocol stack architecture to obtain a first format. The fixed header processing includes identifying the version protocol, defining the transmission semantics, determining the request type, and indicating the valid format. The simplified message to be communicated is obtained according to the first format. The simplified message to be communicated is encapsulated with a payload to obtain the target message to be communicated. The target message to be communicated is then transmitted to the second device according to the restricted message transmission protocol.
[0101] Specifically, the process of encapsulating the simplified message to be communicated with a payload to obtain the target message to be communicated includes: Obtain the message ID and current timestamp of the simplified message to be communicated, and combine the message ID and the current timestamp to obtain a network resource electronic tag; The simplified message to be communicated and the network resource electronic tag are encapsulated with a payload to obtain the target message to be communicated.
[0102] The process of obtaining the communication message to be communicated from the first device in the device communication task, processing the communication message according to the restricted message transmission protocol stack architecture to obtain the target communication message, and transmitting the target communication message to the second device in the device communication task according to the restricted message transmission protocol, further includes: Detect whether the second device returns a message communication result within a preset time; If the second device fails to return a message communication result within the preset time, a corresponding abnormality warning reminder is generated and sent to the user.
[0103] The present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a device communication program based on a restricted message transmission protocol, and the device communication program based on the restricted message transmission protocol, when executed by a processor, implements the steps of the device communication method based on the restricted message transmission protocol as described above.
[0104] In summary, this invention provides a device communication method, system, terminal, and computer-readable storage medium based on a restricted message transmission protocol. The method includes: acquiring a user's device communication task; analyzing and processing the device communication task to obtain a task analysis result; and determining whether the device communication task is resource-restricted device communication based on the task analysis result. If the device communication task is resource-restricted device communication, then acquiring a restricted message transmission protocol; constructing a protocol stack based on the restricted message transmission protocol to obtain a restricted message transmission protocol stack architecture; acquiring a message to be communicated from a first device in the device communication task; processing the message to be communicated according to the restricted message transmission protocol stack architecture to obtain a target message to be communicated; and transmitting the target message to be communicated to a second device in the device communication task according to the restricted message transmission protocol. This invention uses a simplified restricted message transmission protocol for device communication, which not only reduces protocol overhead and parsing complexity but also ensures security while reducing resource consumption, thereby improving communication efficiency.
[0105] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or terminal. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or terminal that includes that element.
[0106] Of course, those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware (such as a processor, controller, etc.). The program can be stored in a computer-readable storage medium, and when executed, it can include the processes described in the above method embodiments. The computer-readable storage medium can be a memory, magnetic disk, optical disk, etc.
[0107] It should be understood that the application of the present invention is not limited to the examples above. Those skilled in the art can make improvements or modifications based on the above description, and all such improvements and modifications should fall within the protection scope of the appended claims.
Claims
1. A device communication method based on a restricted message transmission protocol, characterized in that, The device communication method based on the restricted message transmission protocol includes: The system acquires the user's device communication tasks, analyzes and processes the device communication tasks to obtain task analysis results, and determines whether the device communication task is a resource-constrained device communication task based on the task analysis results. If the device communication task is resource-constrained device communication, then the restricted message transmission protocol is obtained, and the protocol stack is constructed according to the restricted message transmission protocol to obtain the restricted message transmission protocol stack architecture. Obtain the communication message to be communicated from the first device in the device communication task, process the communication message according to the restricted message transmission protocol stack architecture to obtain the target communication message, and transmit the target communication message to the second device in the device communication task according to the restricted message transmission protocol.
2. The device communication method based on the restricted message transmission protocol according to claim 1, characterized in that, The process of acquiring the user's device communication task, analyzing and processing the device communication task to obtain task analysis results, and determining whether the device communication task is resource-constrained device communication based on the task analysis results, specifically includes: Pre-set task detection instructions, and perform real-time detection of task requests based on the task detection instructions; When a user sends a device communication request, the device communication request is obtained, the device communication request is authenticated, a security authentication result is obtained, and the corresponding device communication task is obtained based on the security authentication result. A multi-dimensional task analysis architecture is constructed, and the device communication tasks are analyzed in depth based on the multi-dimensional task analysis architecture to obtain task analysis results; Based on the task analysis results, determine whether the device communication task is a resource-constrained device communication task.
3. The device communication method based on the restricted message transmission protocol according to claim 2, characterized in that, The construction of a multi-dimensional task analysis architecture, and the in-depth analysis of the device communication tasks based on the multi-dimensional task analysis architecture to obtain task analysis results, specifically include: A multi-dimensional task analysis architecture is constructed, which includes a resource consumption dimension structure, a time-series characteristic dimension structure, and a communication mode dimension structure. Based on the resource consumption analysis structure, the device communication task is analyzed for resource consumption to obtain a first analysis result. Based on the time sequence characteristic dimension structure, the device communication task is analyzed for time sequence characteristics to obtain a second analysis result. Based on the communication mode dimension structure, the device communication task is analyzed for communication mode to obtain a third analysis result. The task analysis results are obtained based on the first analysis result, the second analysis result, and the third analysis result.
4. The device communication method based on the restricted message transmission protocol according to claim 2, characterized in that, The step of determining whether the device communication task is resource-constrained device communication based on the task analysis results specifically includes: Obtain the device basic attribute information and communication performance information from the task analysis results. The device basic attribute information includes hardware specifications, energy information and communication method. The communication performance information includes processing energy efficiency, bandwidth utilization and processing latency. The system acquires the basic attribute standards and communication performance standards for resource-constrained devices, compares the basic attribute information with the basic attribute standards to obtain a first comparison result, and compares the communication performance information with the communication performance standards to obtain a second comparison result. Based on the first comparison result and the second comparison result, determine whether the device communication task is a resource-constrained device communication.
5. The device communication method based on the restricted message transmission protocol according to claim 4, characterized in that, If the device communication task is resource-constrained device communication, then a restricted message transmission protocol is obtained, and a protocol stack is constructed based on the restricted message transmission protocol to obtain a restricted message transmission protocol stack architecture, specifically including: Based on the first comparison result and the second comparison result, if the device communication task is determined to be resource-constrained device communication, then the corresponding restricted message transmission protocol is obtained based on the device communication task. The application layer is constructed according to the restricted message transmission protocol to obtain the application layer structure, and the transport layer is constructed according to the restricted message transmission protocol to obtain the transport layer structure. The network layer structure is obtained by constructing the network layer according to the restricted message transmission protocol, and the data link layer structure is obtained by constructing the link layer according to the restricted message transmission protocol. Based on the application layer structure, the transport layer structure, the network layer structure, and the data link layer structure, a protocol stack is constructed to obtain a restricted message transmission protocol stack architecture.
6. The device communication method based on the restricted message transmission protocol according to claim 5, characterized in that, The step of obtaining the corresponding restricted message transmission protocol according to the device communication task specifically includes: The restricted application protocol is obtained according to the device communication task, and redundant fields are removed from the restricted application protocol to obtain the first optimized protocol. The first optimized protocol is simplified by encoding to obtain the second optimized protocol, and the second optimized protocol is integrated by function to obtain the restricted message transmission protocol.
7. The device communication method based on the restricted message transmission protocol according to claim 5, characterized in that, The step of constructing the application layer according to the restricted message transmission protocol to obtain the application layer structure specifically includes: The data format is set according to the restricted message transmission protocol to obtain the target data format, and the data content is simplified according to the restricted message transmission protocol to obtain the data simplification specification. Security mechanisms are integrated according to the restricted message transmission protocol to obtain the target security mechanism, and the application layer is constructed according to the target data format, the data simplification specification and the target security mechanism to obtain the application layer structure.
8. The device communication method based on the restricted message transmission protocol according to claim 5, characterized in that, The construction of the transport layer according to the restricted message transmission protocol to obtain the transport layer structure specifically includes: Based on the restricted message transmission protocol, a transmission protocol selection rule is formulated, and corresponding protocol optimization measures are set for the transmission protocol selection rule; The encapsulation method is set according to the restricted message transmission protocol to obtain the data encapsulation method. The transmission layer is constructed according to the protocol selection rules, the protocol optimization measures and the data encapsulation method to obtain the transmission layer structure.
9. The device communication method based on the restricted message transmission protocol according to claim 5, characterized in that, The process of constructing the network layer according to the restricted message transmission protocol to obtain the network layer structure specifically includes: IP address adaptation is performed according to the restricted message transmission protocol to obtain IP address adaptation results, and low-power wireless network adaptation is performed according to the restricted message transmission protocol to obtain network adaptation results. The network layer structure is obtained by constructing the network layer based on the IP address adaptation results and the network adaptation results.
10. The device communication method based on the restricted message transmission protocol according to claim 5, characterized in that, The step of constructing the data link layer according to the restricted message transmission protocol to obtain the data link layer structure specifically includes: Multi-interface compatibility is performed according to the restricted message transmission protocol to obtain interface compatibility results, wherein the interface compatibility results include wireless network interface compatibility, wired network interface compatibility and Bluetooth interface compatibility; Energy-saving mechanisms are integrated according to the restricted message transmission protocol to obtain the mechanism integration result. Then, the link layer is constructed according to the interface compatibility result and the mechanism integration result to obtain the data link layer structure.
11. The device communication method based on the restricted message transmission protocol according to claim 1, characterized in that, If the device communication task is resource-constrained device communication, then a restricted message transmission protocol is obtained, and a protocol stack is constructed according to the restricted message transmission protocol to obtain a restricted message transmission protocol stack architecture. The process then further includes: Obtain the message detection frequency of the user, verify the message detection frequency according to the resource-constrained device corresponding to the resource-constrained device communication, and obtain the verification result; If the verification result indicates that the message detection frequency is not abnormal, then the target message detection frequency is obtained based on the verification result. If the verification result indicates that the message detection frequency is abnormal, the message detection frequency is adjusted according to the verification result to obtain a frequency adjustment result, and the frequency adjustment result is sent to the user to remind the user to confirm the frequency adjustment result; When it is detected that the user has confirmed the frequency adjustment result, the target message detection frequency is obtained based on the frequency adjustment result.
12. The device communication method based on the restricted message transmission protocol according to claim 11, characterized in that, The step of obtaining the communication message to be communicated from the first device in the device communication task, processing the communication message according to the restricted message transmission protocol stack architecture to obtain the target communication message, and transmitting the target communication message to the second device in the device communication task according to the restricted message transmission protocol specifically includes: The system acquires the first device and the second device in the device communication task, sends the target message detection frequency to the first device, and receives the communication message to be communicated sent by the first device, wherein the communication message to be communicated is obtained by the first device through message detection based on the target message detection frequency. The format information of the message to be communicated is obtained, and the format information is processed with a fixed header according to the restricted message transmission protocol stack architecture to obtain a first format. The fixed header processing includes identifying the version protocol, defining the transmission semantics, determining the request type, and indicating the valid format. The simplified message to be communicated is obtained according to the first format. The simplified message to be communicated is encapsulated with a payload to obtain the target message to be communicated. The target message to be communicated is then transmitted to the second device according to the restricted message transmission protocol.
13. The device communication method based on the restricted message transmission protocol according to claim 12, characterized in that, The step of encapsulating the simplified message to be communicated with a payload to obtain the target message to be communicated specifically includes: Obtain the message ID and current timestamp of the simplified message to be communicated, and combine the message ID and the current timestamp to obtain a network resource electronic tag; The simplified message to be communicated and the network resource electronic tag are encapsulated with a payload to obtain the target message to be communicated.
14. The device communication method based on the restricted message transmission protocol according to claim 1, characterized in that, The process of obtaining the communication message to be communicated from the first device in the device communication task, processing the communication message according to the restricted message transmission protocol stack architecture to obtain the target communication message, and transmitting the target communication message to the second device in the device communication task according to the restricted message transmission protocol, further includes: Detect whether the second device returns a message communication result within a preset time; If the second device fails to return a message communication result within the preset time, a corresponding abnormality warning reminder is generated and sent to the user.
15. A device communication system based on a restricted message transmission protocol, characterized in that, The device communication system based on the restricted message transmission protocol includes: The data analysis module is used to acquire the user's device communication tasks, analyze and process the device communication tasks, obtain task analysis results, and determine whether the device communication task is a resource-constrained device communication based on the task analysis results. The architecture construction module is used to obtain a restricted message transmission protocol if the device communication task is a resource-constrained device communication, and to construct a protocol stack according to the restricted message transmission protocol to obtain a restricted message transmission protocol stack architecture. The device communication module is used to acquire the communication message to be communicated by the first device in the device communication task, process the communication message according to the restricted message transmission protocol stack architecture to obtain the target communication message, and transmit the target communication message to the second device in the device communication task according to the restricted message transmission protocol.
16. The device communication system based on the restricted message transmission protocol according to claim 15, characterized in that, The data analysis module includes: The task detection unit is used to pre-set task detection instructions and perform real-time detection of task requests according to the task detection instructions. The authentication request unit is used to obtain the device communication request when a user sends a device communication request, perform security authentication on the device communication request, obtain a security authentication result, and obtain the corresponding device communication task based on the security authentication result. The task analysis unit is used to construct a multi-dimensional task analysis architecture and perform in-depth analysis of the device communication tasks based on the multi-dimensional task analysis architecture to obtain task analysis results. The task judgment unit is used to determine whether the device communication task is resource-constrained device communication based on the task analysis results.
17. The device communication system based on the restricted message transmission protocol according to claim 15, characterized in that, The architecture building module includes: The protocol acquisition unit is used to determine, based on the first comparison result and the second comparison result, that the device communication task is resource-constrained device communication, and then acquire the corresponding restricted message transmission protocol based on the device communication task. The first construction unit is used to construct the application layer according to the restricted message transmission protocol to obtain the application layer structure, and to construct the transport layer according to the restricted message transmission protocol to obtain the transport layer structure. The second construction unit is used to construct the network layer according to the restricted message transmission protocol to obtain the network layer structure, and to construct the link layer according to the restricted message transmission protocol to obtain the data link layer structure. The third construction unit is used to construct a protocol stack based on the application layer structure, the transport layer structure, the network layer structure, and the data link layer structure to obtain a restricted message transmission protocol stack architecture.
18. The device communication system based on the restricted message transmission protocol according to claim 15, characterized in that, The device communication module includes: A message receiving unit is configured to acquire a first device and a second device in the device communication task, send the target message detection frequency to the first device, and receive a message to be communicated sent by the first device, wherein the message to be communicated is obtained by the first device through message detection based on the target message detection frequency. The message processing unit is used to obtain the format information of the message to be communicated, and to perform fixed header processing on the format information according to the restricted message transmission protocol stack architecture to obtain a first format. The fixed header processing includes identifying the version protocol, defining transmission semantics, determining the request type, and indicating the valid format. The message transmission unit is configured to obtain a simplified message to be communicated according to the first format, perform payload encapsulation processing on the simplified message to be communicated to obtain a target message to be communicated, and transmit the target message to be communicated to the second device according to the restricted message transmission protocol.
19. A terminal, characterized in that, The terminal includes: a memory, a processor, and a device communication program based on a restricted message transmission protocol stored in the memory and executable on the processor. When the device communication program based on the restricted message transmission protocol is executed by the processor, it implements the steps of the device communication method based on the restricted message transmission protocol as described in any one of claims 1-14.
20. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a device communication program based on a restricted message transmission protocol, which, when executed by a processor, implements the steps of the device communication method based on a restricted message transmission protocol as described in any one of claims 1-14.