Internet of Things equipment communication method and device, computer equipment, readable storage medium and program product

By establishing and maintaining the communication link between the low-power communication module and the gateway in the Internet of Things devices, the problems of limited equipment battery life and poor communication stability in traditional solutions are solved, and the balance between low power consumption and high connection stability is achieved, which extends the battery life of the device and improves communication efficiency.

CN119729725APending Publication Date: 2025-03-28LONGSE ELECTRONICS
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411980539.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-31
Publication Date
2025-03-28

AI Technical Summary

Technical Problem

Traditional IoT device communication solutions have problems such as limited battery life, poor communication stability and high response delay in low-power devices. Especially in complex environments, links are interrupted, making it difficult to meet communication efficiency.

Method used

By introducing a communication link establishment and maintenance mechanism between the low-power communication module and the gateway in the Internet of Things devices, it is ensured that when the equipment service processing module is in a sleep state, the low-power communication module continues to maintain the connection with the gateway, and wakes up the equipment service processing module when the gateway sends a wake-up instruction to perform business tasks.

Benefits of technology

The balance between low power consumption and high connection stability is achieved, the battery life of the device is extended, the communication efficiency is improved, and the device can quickly respond to external requests in a sleep state, and automatically restore the low-power mode after completing business tasks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119729725A_ABST
    Figure CN119729725A_ABST
Patent Text Reader

Abstract

The invention relates to an Internet of Things equipment communication method and device, computer equipment, a computer readable storage medium and a computer program product, relates to the technical field of Internet of Things, and can improve communication efficiency while reducing energy consumption. The Internet of Things equipment comprises a low-power-consumption communication module and an equipment service processing module, the method is applied to the low-power-consumption communication module, and the method comprises the following steps: establishing a communication link between the low-power-consumption communication module and a gateway; when the equipment service processing module is in a dormant state, the low-power-consumption communication module is continuously connected with the gateway through the communication link; and in the process of keeping the connection, in response to an awakening instruction sent by the gateway, awakening the equipment service processing module in the dormant state so as to trigger the equipment service processing module to execute the corresponding equipment service and enter the dormant state after the equipment service is executed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of Internet of Things, and in particular to an Internet of Things device communication method, apparatus, computer equipment, computer-readable storage medium and computer program product. Background Art

[0002] With the development of Internet of Things technology, low-power communication technology has gradually emerged. Its characteristics are to achieve efficient communication between devices while reducing energy consumption by optimizing protocols and hardware design. It is widely used in smart homes, industrial monitoring and other fields.

[0003] In traditional communication solutions, devices usually rely on high-performance network modules to connect to gateways. Although this can meet high-frequency transmission requirements, battery-powered devices need to frequently wake up to communicate, which limits their battery life. In addition, in complex environments, traditional solutions have poor communication stability and links are prone to interruption; low-power devices have high response delays due to deep sleep, making it difficult to meet communication efficiency requirements. Summary of the invention

[0004] Based on this, it is necessary to provide an Internet of Things device communication method, device, computer equipment, computer readable storage medium and computer program product to address the above technical problems.

[0005] In a first aspect, the present application provides an Internet of Things device communication method, wherein the Internet of Things device includes a low-power communication module and a device service processing module, and the method is applied to the low-power communication module; the method includes:

[0006] Establishing a communication link between the low-power communication module and the gateway;

[0007] When the device service processing module is in a dormant state, the low-power communication module continuously maintains a connection with the gateway through the communication link;

[0008] In the process of maintaining the connection, in response to the wake-up instruction sent by the gateway, the device service processing module in the dormant state is awakened to trigger the device service processing module to execute the corresponding device service and enter the dormant state after the device service is executed.

[0009] In one embodiment, establishing a communication link between the low-power communication module and the gateway includes:

[0010] Obtaining communication link data of the device service processing module for IoT device registration;

[0011] The communication link data and the gateway subscription request are sent to the gateway, so that the gateway registers the Internet of Things device according to the communication link data and the gateway subscription request to complete the connection with the gateway.

[0012] In one embodiment, the obtaining of the communication link data of the device service processing module for IoT device registration includes:

[0013] Obtaining the device identification information and gateway routing address sent by the device service processing module;

[0014] The communication link data is determined according to the device identification information and the gateway routing address.

[0015] In one embodiment, the communication link includes a command link and a data transmission link; and the low-power communication module continuously maintains a connection with the gateway through the communication link, including:

[0016] Sending a heartbeat signal to the gateway via the command link to maintain continuous connection with the gateway;

[0017] After the low-power communication module continues to maintain connection with the gateway through the communication link, the method further includes:

[0018] Acquire status data of the device service processing module in a dormant state;

[0019] The status data is sent to the gateway through the data transmission link, so that the gateway sends the status data to the server.

[0020] In one embodiment, in response to the wake-up instruction sent by the gateway, waking up the device service processing module in the dormant state includes:

[0021] The wake-up instruction sent by the gateway is received through the command link to wake up the device service processing module in the dormant state; wherein the wake-up instruction is determined by the gateway according to the service request data of the server to the device service processing module.

[0022] In one embodiment, the device service processing module in the awakening sleep state includes:

[0023] Sending a confirmation message to the gateway to confirm receipt of the wake-up instruction;

[0024] A sleep interrupt signal is sent to the device service processing module through a physical link to wake up the device service processing module to complete the service corresponding to the service request data and send indication information indicating the completion of the service to the gateway.

[0025] In a second aspect, the present application also provides an Internet of Things device, including:

[0026] A communication link establishing unit, used to establish a communication link between the low-power communication module and the gateway;

[0027] A communication link keep-alive unit, used for, when the device service processing module is in a dormant state, allowing the low-power communication module to continuously maintain a connection with the gateway through the communication link;

[0028] The service processing wake-up unit is used to wake up the device service processing module in the dormant state in response to the wake-up instruction sent by the gateway during the process of maintaining the connection, so as to trigger the device service processing module to execute the corresponding device service and enter the dormant state after the device service is executed.

[0029] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0030] Establishing a communication link between the low-power communication module and the gateway;

[0031] When the device service processing module is in a dormant state, the low-power communication module continuously maintains a connection with the gateway through the communication link;

[0032] In the process of maintaining the connection, in response to the wake-up instruction sent by the gateway, the device service processing module in the dormant state is awakened to trigger the device service processing module to execute the corresponding device service and enter the dormant state after the device service is executed.

[0033] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:

[0034] Establishing a communication link between the low-power communication module and the gateway;

[0035] When the device service processing module is in a dormant state, the low-power communication module continuously maintains a connection with the gateway through the communication link;

[0036] In the process of maintaining the connection, in response to the wake-up instruction sent by the gateway, the device service processing module in the dormant state is awakened to trigger the device service processing module to execute the corresponding device service and enter the dormant state after the device service is executed.

[0037] In a fifth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:

[0038] Establishing a communication link between the low-power communication module and the gateway;

[0039] When the device service processing module is in a dormant state, the low-power communication module continuously maintains a connection with the gateway through the communication link;

[0040] In the process of maintaining the connection, in response to the wake-up instruction sent by the gateway, the device service processing module in the dormant state is awakened to trigger the device service processing module to execute the corresponding device service and enter the dormant state after the device service is executed.

[0041] The above-mentioned IoT device communication method, device, computer device, computer-readable storage medium and computer program product establish a communication link between a low-power communication module and a gateway; when the device service processing module is in a dormant state, the low-power communication module maintains a continuous connection with the gateway through the communication link; in the process of maintaining the connection, in response to the wake-up instruction sent by the gateway, the device service processing module in the dormant state is awakened to trigger the device service processing module to execute the corresponding device service and enter the dormant state after the device service is executed. In this application, the establishment of the communication link provides a reliable channel for subsequent instruction transmission and data interaction, avoiding the delay and energy consumption problems caused by frequent reconnection; after the device service processing module enters the dormant state, the low-power communication module continuously maintains the communication link with the gateway, achieving a balance between low power consumption and high connection stability, and extending the battery life of the device; on the basis of maintaining the communication link, when the gateway sends a wake-up instruction, the low-power communication module receives and parses the instruction content, wakes up the device service processing module, so that the device can quickly respond to external requests in the dormant state, and automatically restores the low-power mode after completing the specified service task, avoiding long-term high-power operation, thereby reducing energy consumption and improving communication efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0043] Figure 1 An application environment diagram of an Internet of Things device communication method in one embodiment;

[0044] Figure 2 A schematic diagram of a flow chart of a method for communicating with an Internet of Things device in one embodiment;

[0045] Figure 3 A schematic diagram of a flow chart of a method for communicating with an Internet of Things device in another embodiment;

[0046] Figure 4 It is a structural block diagram of an IoT device communication device in one embodiment;

[0047] Figure 5 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0048] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0049] The IoT device communication method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown. Among them, the low-power communication module refers to a communication unit module with low energy consumption characteristics. The module supports multiple communication modes (such as Bluetooth, WiFi, 433M, etc.) and can strike a balance between power consumption and performance. Technically, the role of the low-power module is not limited to data transmission, but also includes the establishment and maintenance of links to ensure reliable communication under the premise of power consumption optimization.

[0050] A gateway is a bridge device that connects different network protocols or communication systems. It is responsible for coordinating data exchange between low-power communication modules and higher-level systems (such as servers). The gateway runs in normal power mode and has high reliability, long-term online and multi-device management capabilities. The main function of the gateway is to accept data requests from low-power devices, perform protocol conversion, link maintenance, and connect to upper-level servers. In terms of operation, the gateway implements management and communication scheduling of low-power devices through server-side protocols (such as MQTT server).

[0051] The device business processing module is the core unit in the IoT device, which is mainly responsible for processing the business logic and functional operations of the device. This module usually consumes a lot of power. In order to save energy, the device will put it into a dormant state when it is not necessary. The business processing module in the dormant state maintains minimum power consumption and is only awakened when it needs to process specific tasks.

[0052] The server can be an independent physical server, a server cluster or distributed system consisting of multiple physical servers, or a cloud server that provides cloud computing services.

[0053] In an exemplary embodiment, Figure 2 As shown, a method for communication of an Internet of Things device is provided, and the method is applied to Figure 1 The low-power communication module in the embodiment is used as an example to illustrate the method, which includes the following steps S202 to S206. Among them:

[0054] Step S202: establishing a communication link between the low power consumption communication module and the gateway.

[0055] Among them, the communication link refers to the logical data transmission channel established between the low-power communication module and the gateway. The establishment of the communication link requires the completion of device identity authentication, link parameter configuration and connection status confirmation, so as to ensure the stability and security of subsequent data transmission.

[0056] Exemplarily, after the device is started, the low-power communication module first enters the link establishment mode. In this mode, the communication module loads the built-in initialization parameters, such as the communication configuration. After the initialization is completed, the low-power communication module sends a connection request to the gateway. After receiving the connection request, the gateway enters the verification process, compares the device identification information, and confirms its legitimacy and validity. After the verification is passed, the gateway allocates a communication channel to the low-power communication module according to the initialization parameters, and generates link status information. Once the link status is confirmed, the communication link is formally established. At this point, the low-power communication module completes the exit from the link establishment mode and enters the connection standby state to provide support for subsequent data interaction.

[0057] Optionally, the low-power communication module establishes a communication link using a dynamic link configuration method. Specifically, the communication module does not load fixed initialization parameters when starting up, but performs adaptive adjustment through dynamic configuration data (such as network protocol type, channel range) sent by the gateway.

[0058] Step 204: When the device service processing module is in a dormant state, the low-power communication module continuously maintains a connection with the gateway via a communication link.

[0059] Exemplarily, when the device service processing module enters the dormant state, the low-power communication module is responsible for maintaining the communication link with the gateway. The low-power communication module maintains the communication link with the gateway through the monitoring mode of the radio frequency band and regularly confirms the connection status according to the broadcast signal of the gateway.

[0060] Optionally, the low-power module has a link anomaly detection function, and when a communication anomaly is found, it can try to reconnect or report to the gateway.

[0061] Optionally, the connection process of the communication link is completely independent of the device service processing module, and the service processing module in a dormant state does not affect the maintenance of the communication link. The low-power communication module ensures that its energy consumption during operation is at a minimum level through hardware design.

[0062] Step S206, in the process of maintaining the connection, in response to the wake-up instruction sent by the gateway, the device service processing module in the dormant state is awakened to trigger the device service processing module to execute the corresponding device service and enter the dormant state after the device service is executed.

[0063] Among them, the wake-up instruction is a specific signal or message sent by the gateway to trigger the device business processing module of the IoT device to switch from the sleep state to the working state. The wake-up instruction can be implemented through a variety of communication protocols, including but not limited to the identification information of the target device and the instruction type, which is used to ensure the accuracy of the wake-up operation. The sleep state is a low-power operation mode of the device business processing module. In this state, the module retains the minimum basic functions (such as data storage and wake-up response), but stops normal business operations. Through the control of the low-power communication module, the device can switch to the sleep state frequently as needed.

[0064] Exemplarily, the low-power communication module maintains a communication link with the gateway. When the gateway requires the device service processing module to perform a specific task, it sends a wake-up instruction to the low-power communication module. The wake-up instruction is transmitted to the low-power communication module through the communication link, and the module parses the instruction content and confirms that the target device matches. After confirming the match, the low-power communication module wakes up the device service processing module.

[0065] After being awakened, the device service processing module enters the working state and executes the tasks specified in the awakening instruction. For example, in the application scenario of monitoring equipment, the service processing module may need to read sensor data, process data, and feed the results back to the gateway. After the task is completed, the device service processing module sends a sleep request through the internal control unit and enters the sleep state again.

[0066] Optionally, the wake-up command is cached by the low-power communication module, and multiple tasks are processed in batches after confirmation. This is used to complete multiple business tasks in a short period of time. By reducing the number of wake-ups, the energy consumption performance of the device is further optimized.

[0067] In the above-mentioned IoT device communication method, a communication link is established between a low-power communication module and a gateway; when the device service processing module is in a dormant state, the low-power communication module continuously maintains a connection with the gateway through the communication link; in the process of maintaining the connection, in response to a wake-up instruction sent by the gateway, the device service processing module in the dormant state is awakened to trigger the device service processing module to execute the corresponding device service and enter the dormant state after the device service is executed.

[0068] In this embodiment, the establishment of a communication link provides a reliable channel for subsequent command transmission and data interaction, avoiding delays and energy consumption problems caused by frequent reconnection; after the device business processing module enters the sleep state, the low-power communication module achieves a balance between low power consumption and high connection stability by continuously maintaining the communication link with the gateway, thereby extending the battery life of the device; on the basis of maintaining the communication link, when the gateway sends a wake-up command, the low-power communication module receives and parses the command content, wakes up the device business processing module, and enables the device to respond quickly to external requests in the sleep state, and automatically resume low power consumption mode after completing the specified business task, avoiding long-term high power consumption operation, thereby reducing energy consumption while improving communication efficiency.

[0069] In an exemplary embodiment, establishing a communication link between a low-power communication module and a gateway includes:

[0070] Obtain the communication link data for IoT device registration from the device business processing module; send the communication link data and the gateway subscription request to the gateway, so that the gateway registers the IoT device according to the communication link data and the gateway subscription request to complete the connection with the gateway.

[0071] Among them, the communication link data refers to the data information required when the low-power communication module establishes a communication link with the gateway; the gateway subscription request is a subscription operation initiated by the low-power communication module to the gateway, which is used to realize the connection between the device and the gateway through the communication protocol.

[0072] Specifically, the low-power communication module is responsible for extracting the communication link data for IoT device registration from the device business processing module. All data is read and stored by the initialization program in the module. After the reading is completed, the low-power module generates a communication link data packet and merges it with the gateway subscription request. The low-power communication module sends the data packet to the gateway running the MQTT server. The data packet contains the communication link data and the parameters of the subscription request (such as the device's topic name and data encryption mode). After the gateway receives the data packet, it confirms the device's registration request by verifying the legitimacy and validity of the device identification information.

[0073] After registration is completed, the gateway allocates a communication channel for the device and returns a confirmation message of successful registration to the low-power communication module. The confirmation message contains the routing address of the gateway and the key information required for subsequent communication. The low-power module saves this information to maintain the normal operation of the communication link.

[0074] Optionally, after registration is completed, the gateway allocates a communication channel for the device and returns a confirmation message of successful registration to the low-power communication module. The confirmation message contains the routing address of the gateway and the key information required for subsequent communication. The low-power module saves this information to maintain the normal operation of the communication link.

[0075] In this embodiment, through the accurate extraction of communication link data and the efficient transmission of gateway subscription requests, a fast connection between the IoT device and the gateway is achieved, the delay and power consumption during the link establishment process are reduced, and technical support is provided for the large-scale deployment of IoT devices.

[0076] In an exemplary embodiment, obtaining communication link data of a device service processing module for IoT device registration includes: obtaining device identification information and a gateway routing address sent by the device service processing module; and determining the communication link data according to the device identification information and the gateway routing address.

[0077] Among them, the device identification information is the unique identity mark of the device business processing module, which is used to identify the location and identity of the device in the network. The device identification information usually includes the MAC address, device serial number (such as CISN number), etc., to ensure that each device is unique in the IoT environment. The gateway routing address is the unique identifier of the gateway in the network, which is used for the data transmission path between the low-power communication module and the gateway. The routing address may include an IP address, a logical routing number, or a protocol-specific identifier, which is used to locate the gateway and establish a communication connection.

[0078] Specifically, the low-power communication module extracts device identification information from the device service processing module, including the MAC address and CISN number. This information is read through the device's initialization program or storage unit. At the same time, the low-power communication module obtains the gateway's routing address through a broadcast signal or a gateway service query. The gateway routing address can be in IPv4 / IPv6 format or a protocol-specific routing identifier.

[0079] The low-power communication module matches the device identification information with the gateway routing address and generates communication link data. Specifically, the communication link data includes the device identification information, the gateway routing address, and additional link parameters (such as communication protocol type, encryption algorithm).

[0080] In this embodiment, through the coordinated processing of device identification information and gateway routing address, accurate generation of communication link data is achieved, reliable support is provided for the connection between the low-power communication module and the gateway, and the time and energy consumption in the link establishment process are reduced.

[0081] In an exemplary embodiment, the communication link includes a command link and a data transmission link; the low-power communication module continuously maintains a connection with the gateway through the communication link, including: sending a heartbeat signal to the gateway through the command link to continuously maintain a connection with the gateway; after the low-power communication module continuously maintains a connection with the gateway through the communication link, it also includes: obtaining status data of the device business processing module in a sleep state; sending the status data to the gateway through the data transmission link, so that the gateway sends the status data to the server.

[0082] Among them, the heartbeat signal is a periodic signal sent by the low-power communication module to the gateway through the command link to confirm the connection status of the link. Status data refers to the key information of the device business processing module in the dormant state, including the current operating status of the device (such as battery power, module temperature) or environmental information (such as data collected by sensors). The transmission of status data can provide gateways and servers with real-time device health status monitoring basis.

[0083] Specifically, the communication link consists of a command link and a data transmission link. The low-power communication module maintains a connection with the gateway through the command link. The low-power communication module sends a heartbeat signal to the gateway at regular intervals. The content of the heartbeat signal includes the unique identification information of the device and the connection status data, which is used to confirm the continuity of the link. When the link is interrupted, the low-power communication module attempts to resend the heartbeat signal to recover.

[0084] When the command link is running stably, the low-power communication module obtains the status data of the device business processing module in the dormant state through the data transmission link. The status data can include the battery power of the device, the operation mode of the business processing module, and the real-time information collected by the sensor. These data can be packaged by an optimized compression algorithm and uploaded to the gateway. After receiving the data, the gateway forwards it to the server for further processing.

[0085] In this embodiment, the heartbeat signal mechanism in the command link ensures that the connection between the low-power communication module and the gateway is continuous and stable, and can be quickly restored even when the link is interrupted, thereby improving the reliability of communication. By uploading the status data of the device through the data transmission link, the gateway can timely understand the operating status of the device and provide real-time support for the analysis and scheduling of the server.

[0086] In an exemplary embodiment, in response to a wake-up instruction sent by a gateway, waking up a device service processing module in a dormant state includes:

[0087] The wake-up instruction sent by the gateway is received through the command link to wake up the device service processing module in the dormant state; wherein the wake-up instruction is determined by the gateway according to the service request data of the server to the device service processing module.

[0088] The wake-up instruction is a control instruction generated by the gateway according to the service request of the server and sent to the low-power communication module, which is used to wake up the device service processing module in the dormant state.

[0089] Specifically, after the gateway receives the service request data sent by the server, it generates a wake-up instruction containing the target device identification information and instruction parameters. The wake-up instruction is sent to the low-power communication module through the command link. The low-power communication module parses the wake-up instruction and triggers the wake-up operation after confirming that the target device identification of the instruction matches itself. After waking up, the business processing module executes the corresponding business task according to the instruction parameters.

[0090] In this embodiment, the wake-up command is received and parsed in a timely manner through the command link, ensuring that the device responds to the service request in the shortest time, thereby improving the real-time processing capability of the device. At the same time, the device service processing module is activated according to the wake-up command and completes the specified task, ensuring the flexibility and efficiency of the device when operating with low power consumption.

[0091] In an exemplary embodiment, waking up the device service processing module in the sleep state includes: sending a confirmation message to the gateway to confirm receipt of the wake-up command; sending a sleep interrupt signal to the device service processing module through a physical link to wake up the device service processing module to complete the service corresponding to the service request data and send an indication message to the gateway to indicate the completion of the service.

[0092] Specifically, after receiving the wake-up instruction from the gateway through the command link, the low-power communication module first sends confirmation information to the gateway to confirm the reception status of the instruction.

[0093] Subsequently, the low-power communication module sends a sleep interrupt signal to the device service processing module through a physical link. The signal triggers the core circuit of the device service processing module to start, enter the working state and execute the specific tasks in the service request.

[0094] After completing the task, the device service processing module passes the generated task result or status data back to the low-power communication module. The low-power module sends the task completion indication information to the gateway through the command link. The indication information includes the task completion status and related data for further processing by the gateway or server.

[0095] In this embodiment, by sending confirmation information to the gateway, the reception status of the wake-up instruction is ensured to be accurate, thereby avoiding task failure or resource waste due to lost or repeated instructions; through the interrupt signal of the physical link, the device business processing module is quickly awakened to achieve seamless switching from sleep to task execution, greatly improving the task response speed of the device; by sending indication information to notify the gateway of the task completion status, the gateway is supported to further schedule and optimize the device, forming a complete closed loop of device task management.

[0096] In order to enable those skilled in the art to better understand the above steps, the embodiment of the present application is illustrated below by using an example, but it should be understood that the embodiment of the present application is not limited to this.

[0097] In an exemplary embodiment, Figure 3 As shown in the figure, when the IoT device is a low-power device and the business processing module is the main control SOC chip, when the device starts, the main control SOC sends the device's identification information (such as MAC address and CISN) and initialization parameters through the low-power communication module. The low-power communication module encapsulates this information as communication link data and sends a device registration request to the gateway through the command link. After receiving the request, the gateway verifies the device's identification information, allocates an IP address and related communication parameters, and returns them to the low-power communication module.

[0098] After receiving the registration result, the low-power communication module saves the routing address and communication parameters of the gateway, establishes a command link and a data transmission link, and maintains connection with the gateway.

[0099] After registration is completed, the main control SOC hands over the device initialization task to the low-power communication module and enters a dormant state. At this time, the low-power communication module sends periodic heartbeat signals through the command link to maintain the stability of the link with the gateway and listen to the gateway's instructions.

[0100] After receiving the service request from the server, the gateway generates a wake-up command and sends it to the low-power communication module through the command link. After the low-power communication module parses the wake-up command and confirms that the target device is the current device, it sends an interrupt signal to the main control SOC through the physical link.

[0101] The master SOC is awakened from sleep mode and enters working mode, executing the tasks specified in the wake-up instruction. For example, the master SOC can read sensor data, process it, and send the result to the gateway through the data transmission link. The gateway then forwards it to the server and responds to the server's request for device data.

[0102] After completing the specified task, the master SOC sends a confirmation message (including the task execution result or status) to the gateway through the low-power communication module. Then, the master SOC enters the sleep state again, and the low-power communication module continues to maintain the connection with the gateway.

[0103] If the communication link is interrupted (for example, the heartbeat signal cannot reach the gateway), the low-power communication module will try to reestablish the connection until the link is restored.

[0104] In this embodiment, the whole process management of IoT devices from registration, sleep, wake-up to task completion is realized, and the technical goals of high efficiency, low power consumption and high reliability are achieved through low-power design and reliable communication mechanism.

[0105] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0106] Based on the same inventive concept, the embodiment of the present application also provides an IoT device communication device for implementing the IoT device communication method involved above. The implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above method, so the specific limitations in one or more IoT device communication device embodiments provided below can refer to the limitations of the IoT device communication method above, and will not be repeated here.

[0107] In an exemplary embodiment, Figure 4 As shown, the IoT device includes a low-power communication module and a device service processing module, and provides an IoT device communication device, including: a communication link establishment unit 410, a communication link keep-alive unit 420 and a service processing wake-up unit 430, wherein:

[0108] The communication link establishing unit 410 is used to establish a communication link between the low-power communication module and the gateway;

[0109] A communication link keep-alive unit 420, configured to enable the low-power communication module to maintain a connection with the gateway through the communication link when the device service processing module is in a dormant state;

[0110] The service processing wake-up unit 430 is used to wake up the device service processing module in the sleep state in response to the wake-up instruction sent by the gateway during the process of maintaining the connection, so as to trigger the device service processing module to execute the corresponding device service and enter the sleep state after the device service is executed.

[0111] In one embodiment, the communication link establishment unit 410 is also used to obtain the communication link data used for IoT device registration of the device business processing module; the communication link data and the gateway subscription request are sent to the gateway, so that the gateway registers the IoT device according to the communication link data and the gateway subscription request to complete the connection with the gateway.

[0112] In one embodiment, the communication link establishing unit 410 is further used to obtain the device identification information and the gateway routing address sent by the device service processing module; and determine the communication link data according to the device identification information and the gateway routing address.

[0113] In one embodiment, the communication link keep-alive unit 420 is also used to send a heartbeat signal to the gateway through the command link to maintain a continuous connection with the gateway; after the low-power communication module maintains a continuous connection with the gateway through the communication link, it also includes: obtaining status data of the device business processing module in a sleep state; sending the status data to the gateway through the data transmission link, so that the gateway sends the status data to the server.

[0114] In one embodiment, the business processing wake-up unit 420 is also used to receive a wake-up instruction sent by the gateway through the command link to wake up the device business processing module in a dormant state; wherein the wake-up instruction is determined by the gateway based on the business request data of the server to the device business processing module.

[0115] In one embodiment, the service processing wake-up unit 430 is also used to send a confirmation message to the gateway to confirm receipt of the wake-up instruction; send a sleep interrupt signal to the device service processing module through a physical link to wake up the device service processing module to complete the service corresponding to the service request data and send an indication message to the gateway to indicate the completion of the service.

[0116] Each module in the above-mentioned IoT device communication device can be implemented in whole or in part by software, hardware, or a combination thereof. Each of the above-mentioned modules can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each of the above modules.

[0117] In an exemplary embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as shown in FIG. Figure 5As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a communication method for an Internet of Things device is implemented.

[0118] Those skilled in the art will understand that Figure 5 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0119] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.

[0120] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0121] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0122] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.

[0123] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.

[0124] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0125] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A communication method for an Internet of Things device, characterized in that: The Internet of Things device includes a low-power communication module and a device service processing module, and the method is applied to the low-power communication module; the method includes: Establishing a communication link between the low-power communication module and the gateway; When the device service processing module is in a dormant state, the low-power communication module continuously maintains a connection with the gateway through the communication link; In the process of maintaining the connection, in response to the wake-up instruction sent by the gateway, the device service processing module in the dormant state is awakened to trigger the device service processing module to execute the corresponding device service and enter the dormant state after the device service is executed.

2. The method according to claim 1, characterized in that The establishing of a communication link between the low-power communication module and the gateway comprises: Obtaining communication link data of the device service processing module for IoT device registration; The communication link data and the gateway subscription request are sent to the gateway, so that the gateway registers the Internet of Things device according to the communication link data and the gateway subscription request to complete the connection with the gateway.

3. The method according to claim 2, characterized in that The obtaining of the communication link data of the device service processing module for IoT device registration includes: Obtaining the device identification information and gateway routing address sent by the device service processing module; The communication link data is determined according to the device identification information and the gateway routing address.

4. The method according to claim 2, characterized in that: The communication link includes a command link and a data transmission link; The low-power communication module continuously maintains connection with the gateway through the communication link, including: Sending a heartbeat signal to the gateway via the command link to maintain continuous connection with the gateway; After the low-power communication module continues to maintain connection with the gateway through the communication link, the method further includes: Acquire status data of the device service processing module in a dormant state; The status data is sent to the gateway through the data transmission link, so that the gateway sends the status data to the server.

5. The method according to claim 4, characterized in that In response to the wake-up instruction sent by the gateway, waking up the device service processing module in the dormant state, including: The wake-up instruction sent by the gateway is received through the command link to wake up the device service processing module in the dormant state; wherein the wake-up instruction is determined by the gateway according to the service request data of the server to the device service processing module.

6. The method according to claim 5, characterized in that The device service processing module in the awakening sleep state includes: Sending a confirmation message to the gateway to confirm receipt of the wake-up instruction; A sleep interrupt signal is sent to the device service processing module through a physical link to wake up the device service processing module to complete the service corresponding to the service request data and send indication information indicating the completion of the service to the gateway.

7. An IoT device communication device, characterized in that: The Internet of Things device includes a low-power communication module and a device service processing module, and the device includes: A communication link establishing unit, used to establish a communication link between the low-power communication module and the gateway; A communication link keep-alive unit, used for, when the device service processing module is in a dormant state, allowing the low-power communication module to continuously maintain a connection with the gateway through the communication link; The service processing wake-up unit is used to wake up the device service processing module in the dormant state in response to the wake-up instruction sent by the gateway during the process of maintaining the connection, so as to trigger the device service processing module to execute the corresponding device service and enter the dormant state after the device service is executed.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.