Service state control method and device, equipment and storage medium

By introducing the service management layer and network management layer into the Internet of Things devices and using specific signals for state switching, the data transmission failure caused by unstable wireless network connection is solved, and the effect of reducing meaningless power consumption and improving operational stability is achieved.

CN119653464APending Publication Date: 2025-03-18SHENZHEN YINGFENG INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411804021.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-10
Publication Date
2025-03-18

AI Technical Summary

Technical Problem

When the wireless network connection of the Internet of Things devices is unstable, it causes data transmission between business threads and servers to fail, increasing meaningless power consumption and affecting the stability of the device operation.

Method used

By introducing the business management layer and the network management layer into the Internet of Things devices, using the service wake-up signal and abnormal processing signal, we notify the two in real time for state switching, ensuring the stability and efficiency of data transmission.

Benefits of technology

It reduces the meaningless power consumption of IoT devices, improves the operation stability of devices, and ensures the reliability of data transmission between business threads and servers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119653464A_ABST
    Figure CN119653464A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of Internet of Things, and provides a service state control method and device, equipment and a storage medium. The service state control method applied to the service management layer of the Internet of Things equipment comprises the following steps: in response to a service wake-up signal, starting data transmission with a server; the service wake-up signal is output when a network management layer of the Internet of Things equipment establishes a connection with a server and enters an idle state; and determining whether an exception handling process needs to be started or not based on the data transmission state with the server. According to the invention, the meaningless power consumption of the Internet of Things equipment can be reduced, and the operation stability of the Internet of Things equipment can be effectively improved.
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 a service status control method, device, equipment and storage medium. Background Art

[0002] Generally speaking, the main functions of most IoT devices rely on data transmission between business threads and servers. In the process of performing these main functions, IoT devices need to open one or more business threads to communicate with the server via wireless network.

[0003] However, since the wireless network connection status is often not stable enough, weak network and no signal often occur, which leads to the failure of data transmission between the business thread and the server. In addition, since the running business thread is difficult to know the recovery status of the wireless network connection in real time, it is often impossible to restore the data transmission between the server and the wireless network connection in time after the wireless network connection is restored. These problems not only increase the meaningless power consumption of IoT devices, but also affect the operational stability of IoT devices. Summary of the invention

[0004] Based on this, it is necessary to provide a service status control method, device, equipment and storage medium to address the above technical issues.

[0005] In a first aspect, the present application provides a service state control method, which is applied to the service management layer of an Internet of Things device, and the method comprises:

[0006] In response to a service wake-up signal, data transmission with the server is started; the service wake-up signal is output by the network management layer of the IoT device when a connection with the server has been established and the device has entered an idle state;

[0007] Based on the data transmission status with the server, determine whether it is necessary to start the exception handling process.

[0008] In one embodiment, the determining whether to start an exception handling process based on the data transmission status with the server includes:

[0009] In case of data transmission failure with the server, an exception handling process is started; an exception handling signal is output, and the system is restored to the first initial state; the exception handling signal is used to instruct the network management layer to restore to the second initial state.

[0010] In one embodiment, the method further comprises:

[0011] In the first initial state, based on a preset interval duration, it is confirmed whether the service wake-up signal has been received.

[0012] In a second aspect, the present application provides a service status control method, characterized in that it is applied to a network management layer of an Internet of Things device, and the method includes:

[0013] After the connection with the server has been established, the device enters an idle state and outputs a service wake-up signal; the service wake-up signal is used to instruct the service management layer of the IoT device to start data transmission with the server;

[0014] When it is confirmed that the business management layer has started the exception handling process, the system is restored to the second initial state.

[0015] In one embodiment, when confirming that the service management layer has started the exception handling process, restoring to the second initial state includes:

[0016] In response to an exception handling signal, the system returns to the second initial state; the exception handling signal is output by the service management layer when data transmission between the service management layer and the server fails.

[0017] In one embodiment, the second initial state is a hardware initialization state; the method further includes:

[0018] When the SIM card is in place and the network is successfully established, a connection with the server is established.

[0019] In a third aspect, the present application further provides a service status control device, which is applied to the service management layer of an IoT device, and the device includes:

[0020] A data transmission module, used to start data transmission with the server in response to a service wake-up signal; the service wake-up signal is output by the network management layer of the IoT device when a connection with the server has been established and the device has entered an idle state;

[0021] The exception handling module is used to confirm whether it is necessary to start the exception handling process based on the data transmission status between the server and the server.

[0022] In a fourth aspect, the present application further provides a service status control device, which is applied to a network management layer of an IoT device, and the device includes:

[0023] A service wake-up module, used to enter an idle state and output a service wake-up signal after a connection with a server has been established; the service wake-up signal is used to instruct the service management layer of the IoT device to start data transmission with the server;

[0024] The state recovery module is used to restore to the second initial state when it is confirmed that the business management layer has started the exception handling process.

[0025] In a fifth aspect, the present application further provides a computer device, wherein the computer device comprises a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above method when executing the computer program.

[0026] In a sixth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the steps of the above method when executed by a processor.

[0027] In a seventh aspect, the present application further provides a computer program product, wherein the computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the above method are implemented.

[0028] The above-mentioned business status control method, device, equipment and storage medium highly abstract the running process of the business thread and the network management thread in the Internet of Things device into the business management layer and the network management layer, and transmit specific signals between the business management layer and the network management layer to notify the business management layer and the network management layer in real time to switch the state, which can not only reduce the meaningless power consumption of the Internet of Things device, but also effectively improve the operating stability of the Internet of Things device. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] Figure 1 A flowchart of a service state control method applied to a service management layer of an Internet of Things device in an embodiment provided by the present application;

[0030] Figure 2 A flowchart of a specific method of starting an exception handling process in an embodiment provided by the present application;

[0031] Figure 3 A flowchart of a specific method for confirming whether a service wake-up signal has been received in an embodiment provided by the present application;

[0032] Figure 4 A flow chart of a service state control method applied to a network management layer of an Internet of Things device in another embodiment provided by the present application;

[0033] Figure 5 A flowchart of a specific method of establishing a connection with a server in an embodiment provided by the present application;

[0034] Figure 6 A structural block diagram of a service state control device applied to a service management layer of an Internet of Things device in an embodiment provided by the present application;

[0035] Figure 7A structural block diagram of a service status control device applied to a network management layer of an Internet of Things device in another embodiment provided in the present application. DETAILED DESCRIPTION

[0036] 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.

[0037] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application.

[0038] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features.

[0039] When used herein, the singular forms "a", "an" and "said / the" may also include plural forms, unless the context clearly indicates otherwise. "Multiple" means two or more, unless otherwise clearly and specifically limited. It should also be understood that the terms "include / comprise" or "have" and the like specify the presence of stated features, wholes, steps, operations, components, parts or combinations thereof, but do not exclude the possibility of the presence or addition of one or more other features, wholes, steps, operations, components, parts or combinations thereof. At the same time, the term "and / or" used in this specification includes any and all combinations of the relevant listed items.

[0040] It should be noted that IoT devices, i.e. IoT (Internet of Things, IoT) devices, refer to physical devices that can connect and communicate through the Internet. The business management layer of IoT devices refers to the business management abstraction layer used to process data interaction between the business threads of IoT devices and servers. In practical applications, the business threads of IoT devices can run in the business management layer. The network management layer of IoT devices, i.e. the network connection management layer of IoT devices, refers to the network management abstraction layer used to manage the network connection status of IoT devices. In practical applications, the network management thread of IoT devices can run in the network management layer. The specific manifestation of the network connection management layer of IoT devices can be a 4G physical module in IoT devices (i.e. the 4G physical layer in IoT devices), based on which, the wireless communication network between IoT devices and servers can be a 4G network.

[0041] In one embodiment, Figure 1 As shown, a service state control method is provided, which is applied to the service management layer of an IoT device, and includes the following steps:

[0042] Step S110, in response to the service wake-up signal, start data transmission with the server; the aforementioned service wake-up signal is output by the network management layer of the IoT device when a connection with the server has been established and the device has entered an idle state.

[0043] Among them, the service wake-up signal refers to the service wake-up signal output by the network management layer of the Internet of Things device to the service management layer of the Internet of Things device when the connection with the server has been established and the device has entered an idle state.

[0044] In actual applications, the server that transmits data with the business management layer may be a cloud server; the business thread in the business management layer of the IoT device, after starting data transmission between the device and the server in response to a business wake-up signal, may continue to run in a loop in the data transmission state (which belongs to the normal working state of the business thread in the business management layer) until an abnormality occurs in the data transmission state between the device and the server.

[0045] Furthermore, receiving a service wake-up signal from the network management layer can be used as a starting event of a state machine of the service management layer of the IoT device.

[0046] Step S120: based on the data transmission status with the server, confirm whether it is necessary to start the exception handling process.

[0047] Among them, the data transmission status between the server refers to the data transmission status between the business management layer of the IoT device and the server; the exception handling process refers to the business management layer of the IoT device, which determines whether to start the exception handling process based on the data transmission status between the device and the server.

[0048] The above-mentioned business status control method, device, equipment and storage medium highly abstract the running process of the business thread and the network management thread in the Internet of Things device into the business management layer and the network management layer, and between the business management layer and the network management layer, by making the network management layer output a business wake-up signal to the business management layer when the network connection is successful and has entered the idle state, notifying the business management layer to start data transmission between the server, and making the business management layer confirm whether it is necessary to start the exception handling process based on the data transmission status between the server, which can not only reduce the meaningless power consumption of the Internet of Things device, but also effectively improve the operating stability of the Internet of Things device.

[0049] Regarding the specific method of starting the exception handling process, in one embodiment, as Figure 2 As shown, the above step S120 specifically includes the following steps:

[0050] Step S210, when data transmission with the server fails, start the exception handling process.

[0051] Among them, the data transmission failure between the server refers to the data transmission failure between the business management layer of the IoT device and the server; the exception handling process refers to the exception handling process initiated by the business management layer of the IoT device when the data transmission between the server fails.

[0052] In actual applications, the failure of data transmission between the business management layer of the IoT device and the server can be specifically manifested as a communication failure between the business thread in the business management layer of the IoT device and the server, a business interaction failure (for example, a heartbeat business interaction failure), etc.; the failure of data transmission between the business management layer of the IoT device and the server can be used to indicate that there may be a problem with the communication network between the business thread in the business management layer of the IoT device and the server (that is, the underlying network resources between the business management layer of the IoT device and the server).

[0053] Step S220, outputting an exception processing signal and restoring to the first initial state; the aforementioned exception processing signal is used to instruct the network management layer to restore to the second initial state.

[0054] Among them, the exception handling signal refers to the exception handling signal output by the business management layer of the Internet of Things device to the network management layer of the Internet of Things device after the exception handling process is started. The exception handling signal can be used to notify the network management layer of the Internet of Things device to check the network connection status of the Internet of Things device from the beginning; the first initial state, that is, the first initial state of the business management layer of the Internet of Things device; the second initial state, that is, the second initial state of the network management layer of the Internet of Things device.

[0055] In actual applications, the business management layer of the Internet of Things device is restored to the first initial state in the form of suspending the business threads in the business management layer and entering a cyclic sleep state (suspending the business threads can give up CPU resources, thereby reducing meaningless power consumption of the Internet of Things device), and waking up from the sleep state based on a preset interval to confirm whether the business wake-up signal output by the network management layer of the Internet of Things device has been received.

[0056] Furthermore, outputting an exception handling signal to the network management layer can serve as an endpoint event of the state machine of the business management layer of the IoT device.

[0057] The embodiment of the present application enables the business management layer to start the exception handling process when data transmission between the business management layer and the server fails, outputs an exception handling signal to the network management layer, and restores to the first initial state, thereby effectively reducing the meaningless power consumption of the Internet of Things device and ensuring the stable operation of the Internet of Things device.

[0058] Regarding the specific manner of confirming whether the service wake-up signal has been received, in one embodiment, the method further includes the following steps:

[0059] Step S310: In a first initial state, based on a preset interval duration, confirm whether a service wake-up signal has been received.

[0060] Among them, the first initial state is the first initial state of the business management layer of the Internet of Things device; the preset interval duration refers to waking up the business thread in the business management layer of the Internet of Things device from the sleep state to confirm whether a business wake-up signal has been received for a preset interval duration; the business wake-up signal refers to the business wake-up signal output by the network management layer of the Internet of Things device to the business management layer of the Internet of Things device when the connection with the server has been established and the device has entered an idle state.

[0061] Specifically, if Figure 3 As shown, the above step S310 may be performed before the above step S110.

[0062] The embodiment of the present application effectively reduces the meaningless power consumption of the Internet of Things device by allowing the service management layer to confirm whether a service wake-up signal has been received based on a preset interval duration in a first initial state.

[0063] In one embodiment, Figure 4 As shown, a service state control method is provided, which is applied to the network management layer of the Internet of Things device, including the following steps:

[0064] Step S410, after the connection with the server has been established, enter the idle state and output a service wake-up signal; the aforementioned service wake-up signal is used to instruct the service management layer of the Internet of Things device to start data transmission with the server.

[0065] Among them, the service wake-up signal refers to the service wake-up signal output by the network management layer of the IoT device to the service management layer of the IoT device when the connection with the server has been established and the device has entered an idle state. The service wake-up signal can be used to notify the service management layer of the IoT device that the network resources are now ready and to instruct the service management layer to start data transmission with the server.

[0066] In actual applications, the server can be a cloud server; when the network management layer of the IoT device has established a connection with the server and has entered an idle state, the network management thread in the network management layer will temporarily enter a cyclic sleep state (the suspended network management thread can give up CPU resources, thereby reducing meaningless power consumption of the IoT device), and wake up from the sleep state regularly to confirm that the business thread in the business management layer has started the exception handling process.

[0067] Furthermore, after the connection with the server is established, the idle state is entered, and a service wake-up signal is output to the service management layer, which can be used as the end event of the state machine of the network management layer.

[0068] Step S420, when confirming that the business management layer has started the exception handling process, restore to the second initial state.

[0069] The second initial state refers to the second initial state entered by the network management layer of the Internet of Things device when it is confirmed that the business management layer of the Internet of Things device has started the exception handling process.

[0070] In actual applications, after the network management layer of the Internet of Things device is restored to the second initial state, the network connection status of the Internet of Things device can be checked from the beginning; the specific form of the network management layer of the Internet of Things device being restored to the second initial state can be that the network management thread in the network management layer of the Internet of Things device enters the hardware initialization state.

[0071] Furthermore, entering the hardware initialization state can serve as a starting event for the state machine of the network management layer.

[0072] The above-mentioned business status control method, device, equipment and storage medium highly abstract the running process of the business thread and the network management thread in the Internet of Things device into the business management layer and the network management layer, and between the business management layer and the network management layer, by making the network management layer output a business wake-up signal to the business management layer when the network connection is successful and has entered the idle state, notifying the business management layer to start data transmission between the server, and making the network management layer restore to the second initial state when confirming that the business management layer has started the exception handling process. This can not only reduce the meaningless power consumption of the Internet of Things device, but also effectively improve the operating stability of the Internet of Things device.

[0073] Regarding the specific method of restoring to the second initial state, in one embodiment, the above step S420 specifically includes:

[0074] In response to an exception handling signal, the system returns to the second initial state; the exception handling signal is output by the business management layer when data transmission between the business management layer and the server fails.

[0075] Among them, the exception handling signal refers to the exception handling signal output by the business management layer of the Internet of Things device to the network management layer of the Internet of Things device when the data transmission between the business management layer of the Internet of Things device and the server fails. The exception handling signal can be used to indicate that the data transmission between the business management layer of the Internet of Things device and the server has failed, and the exception handling process has been initiated.

[0076] The embodiment of the present application effectively reduces the meaningless power consumption of the Internet of Things devices by causing the network management layer to recover to the second initial state in response to the exception processing signal output by the business management layer and check the network connection status of the Internet of Things device from the beginning.

[0077] Regarding the specific manner of establishing a connection with the server, in one embodiment, the second initial state is a hardware initialization state; and the method further includes:

[0078] Step S510: When the SIM card is in place and the network is successfully accessed, a connection with the server is established.

[0079] Among them, SIM card in place means that the SIM card of the IoT device has been correctly installed; successful network installation means that the IoT device has completed network installation.

[0080] Specifically, if Figure 5As shown, the above step S510 can be executed before the above step S410; in addition, before executing the above step S510, the network management thread in the network management layer can first enter the dial-up initialization state.

[0081] In actual applications, when it is detected that the SIM card of the IoT device is not in place, the presence status of the SIM card of the IoT device can be detected again after restarting the IoT device; when it is detected that the IoT device fails to log on to the network, the network can be retried by turning on the flight mode, restarting the IoT device, etc.; the network management layer of the IoT device can establish a connection with the server in a specific way, which can be a dial-up connection (that is, the network management thread in the network management layer of the IoT device can establish a network connection with the server if the dial-up is successful); if the network management thread fails to successfully establish a connection with the server, an attempt can be made to establish a connection between the network management thread and the server by retrying the connection multiple times, starting the ping program to detect whether the network is connected, and rechecking the network status of the IoT device.

[0082] The embodiment of the present application effectively ensures the operational stability of the Internet of Things device by enabling the network management layer to establish a connection with the server when the SIM card is in place and the network is successfully established.

[0083] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned 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 does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can 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 to be 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.

[0084] Based on the same inventive concept, the embodiment of the present application also provides a service state control device for implementing the service state control method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more service state control device embodiments provided below can refer to the limitations of the service state control method above, and will not be repeated here.

[0085] In one embodiment, Figure 6 As shown, a service state control device is provided, which is applied to the service management layer of an Internet of Things device, and the device includes:

[0086] The data transmission module 610 is used to start data transmission with the server in response to a service wake-up signal; the service wake-up signal is output by the network management layer of the IoT device when the connection with the server has been established and the device has entered an idle state;

[0087] The exception handling module 620 is used to confirm whether it is necessary to start the exception handling process based on the data transmission status between the server and the server.

[0088] In one embodiment, the exception handling module 620 is specifically used to start the exception handling process when the data transmission between the server fails; output an exception handling signal and restore to the first initial state; the exception handling signal is used to instruct the network management layer to restore to the second initial state.

[0089] In one of the embodiments, the above-mentioned device further includes: a wake-up detection module, which is used to confirm whether the service wake-up signal has been received based on a preset interval duration in the first initial state.

[0090] In one embodiment, Figure 7 As shown, a service status control device is provided, which is applied to the network management layer of an Internet of Things device, and the device includes:

[0091] The service awakening module 710 is used to enter an idle state and output a service awakening signal after the connection with the server has been established; the service awakening signal is used to instruct the service management layer of the IoT device to start data transmission with the server;

[0092] The state recovery module 720 is used to recover to the second initial state when confirming that the business management layer has started the exception handling process.

[0093] In one embodiment, the state recovery module 720 is specifically configured to recover to the second initial state in response to an exception handling signal; the exception handling signal is output by the business management layer when data transmission between the business management layer and the server fails.

[0094] In one embodiment, the second initial state is a hardware initialization state; the above device also includes: a dial-up connection module, which establishes a connection with the server when the SIM card is in place and the network is successfully accessed.

[0095] Each module in the above-mentioned service status control device can be implemented in whole or in part by software, hardware or a combination thereof. Each module 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 the operations corresponding to each module above.

[0096] In one embodiment, a computer device is further 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.

[0097] 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.

[0098] 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.

[0099] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods 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 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), magnetoresistive 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, etc., but are not limited to this.

[0100] 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.

[0101] 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 specification.

[0102] 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 service status control method, characterized in that: Applied to the business management layer of the Internet of Things device, the method comprises: In response to a service wake-up signal, data transmission with the server is started; the service wake-up signal is output by the network management layer of the IoT device when a connection with the server has been established and the device has entered an idle state; Based on the data transmission status with the server, determine whether it is necessary to start the exception handling process.

2. The method according to claim 1, characterized in that The determining whether to start an exception handling process based on the data transmission status between the server and the server includes: In case of data transmission failure with the server, starting an exception handling process; Output an exception processing signal and restore to the first initial state; the exception processing signal is used to instruct the network management layer to restore to the second initial state.

3. The method according to claim 2, characterized in that Before starting data transmission with the server in response to the service wake-up signal, the method further includes: In the first initial state, based on a preset interval duration, it is confirmed whether the service wake-up signal has been received.

4. A service status control method, characterized in that: Applied to the network management layer of the IoT device, the method comprises: After the connection with the server has been established, the device enters an idle state and outputs a service wake-up signal; the service wake-up signal is used to instruct the service management layer of the IoT device to start data transmission with the server; When it is confirmed that the business management layer has started the exception handling process, the system is restored to the second initial state.

5. The method according to claim 4, characterized in that The step of restoring to the second initial state upon confirming that the business management layer has started the exception handling process comprises: In response to an exception handling signal, the system returns to the second initial state; the exception handling signal is output by the service management layer when data transmission between the service management layer and the server fails.

6. The method according to claim 4 or 5, characterized in that: The second initial state is a hardware initialization state; The method further comprises: When the SIM card is in place and the network is successfully established, a connection with the server is established.

7. A service status control device, characterized in that: Applied to the service management layer of the IoT device, the device comprises: A data transmission module, used to start data transmission with the server in response to a service wake-up signal; the service wake-up signal is output by the network management layer of the IoT device when a connection with the server has been established and the device has entered an idle state; The exception handling module is used to confirm whether it is necessary to start the exception handling process based on the data transmission status between the server and the server.

8. A service status control device, characterized in that: Applied to the network management layer of the Internet of Things device, the device comprises: A service wake-up module, configured to enter an idle state and output a service wake-up signal after a connection with a server has been established; the service wake-up signal is used to instruct the service management layer of the IoT device to start data transmission with the server; The state recovery module is used to restore to the second initial state when it is confirmed that the business management layer has started the exception handling process.

9. 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.

10. 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.