Internet of Things equipment control method and equipment, and computer readable storage medium
By dynamically adjusting the target buffering time of the IoT device server, the problem of low real-time control of IoT device caused by base station congestion is solved, and higher real-time networking and control reliability are achieved.
Patent Information
- Application Number
- CN202311171311.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-11
- Publication Date
- 2025-03-11
AI Technical Summary
The existing IoT device control method causes increased or interruption of communication link delays when the base station is abnormal or congested, and the real-time performance of users controlling IoT devices is low.
By obtaining the cell information accessed by the cellular module, it is determined whether the cell is in a congested state. If it is in a congested state, it is determined whether the sending command of the cellular module has expired. If it is timed out, the target buffering time of the server is dynamically adjusted to prevent the loss of control commands caused by the instruction timeout.
By dynamically adjusting the target buffering time of the server, the real-time connection of IoT devices is improved, the loss of control instructions caused by instruction timeout is prevented, and the real-time and reliability of users' control of IoT devices is improved.
Smart Images

Figure CN119603334A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to an Internet of Things device control method, device and computer-readable storage medium. Background Art
[0002] The buffering time refers to the time it takes for the server to process and calculate after receiving a request from an IoT device, and then return the result to the IoT device. In the existing solution, the buffering time of the server is pre-set. When an abnormality or congestion occurs in the base station, it may cause the delay of the communication link to increase or be interrupted, and the user may fail to control the IoT device, and the real-time performance of the user's control of the IoT device is low. Summary of the invention
[0003] The main purpose of the present invention is to provide an Internet of Things device control method, device and computer-readable storage medium, aiming to improve the problem of low real-time control of Internet of Things devices.
[0004] To achieve the above object, the present invention provides a method for controlling an Internet of Things device, and the method for controlling an Internet of Things device comprises the following steps:
[0005] Acquire cell information accessed by the cellular module, the cell information including cell identification and congestion information;
[0006] If it is determined according to the cell information that the cell is in a congested state, determining whether the sending instruction of the cellular module has timed out;
[0007] If the sending instruction times out, the target buffering time length of the server is determined.
[0008] Optionally, before the step of determining the target buffering time length of the server if the sending instruction times out, the step further includes:
[0009] Determine a congestion time period of a cell according to the cell information;
[0010] After the step of determining the target buffering time length of the server if the sending instruction times out, the method further includes:
[0011] If the sending instruction of the congestion time period times out, determining the number of timeout instructions sent by the cellular module during the congestion time period;
[0012] Determine the time taken to send the last successfully sent instruction before each of the timed-out instructions;
[0013] A target buffering duration of the server corresponding to the congestion time period is determined according to the sending time duration and the quantity.
[0014] Optionally, after the step of determining whether the sending instruction of the cellular module has timed out if it is determined according to the cell information that the cell is in a congested state, the method further includes:
[0015] When there are at least two congestion time periods, if the sending instruction in the current congestion time period does not time out, determining the next congestion time period of the current congestion time period;
[0016] If the sending instruction in the next congestion time period times out, the step of determining the target buffering time length of the server is performed.
[0017] Optionally, after the step of determining whether the sending instruction of the cellular module has timed out if it is determined according to the cell information that the cell is in a congested state, the method further includes:
[0018] If the congestion time period is the last congestion time period, and the sending instructions in the previous congestion time periods are not timed out, then the target buffering time length of the server is determined to be the maximum buffering time length corresponding to the last congestion time period.
[0019] Optionally, the step of determining a target buffering duration of the server corresponding to the congestion time period according to the sending time duration and the quantity includes:
[0020] Determine the sum of the sending time durations during the congestion period;
[0021] A ratio of the sum value to the number of the timeout instructions is determined, and the target buffer duration is determined according to the ratio.
[0022] Optionally, the method further comprises:
[0023] If it is determined according to the cell information that the cell is not in a congested state, determining the number of failure events for sending the instruction;
[0024] If the number of failure events is greater than or equal to a preset number, controlling the cellular module to resynchronize the auxiliary synchronization signal according to a preset detection period to detect whether the frame number of the auxiliary synchronization signal is abnormal;
[0025] If it is detected that the frame number of the auxiliary synchronization signal is abnormal, the cell to which the cellular module accesses is re-determined.
[0026] Optionally, the step of re-determining the cell accessed by the cellular module includes:
[0027] Determine a candidate cell based on the neighboring cell relationship of the current cell;
[0028] According to the cell information of the candidate cells, a candidate cell that is not in a congested state is determined as a cell to be accessed by the cellular module.
[0029] Optionally, before the step of controlling the cellular module to resynchronize the auxiliary synchronization signal according to a preset detection period if the number of failure events is greater than a preset number, the method further includes:
[0030] Obtain the current buffering time of the server;
[0031] The detection period is determined according to the current buffering time length.
[0032] To achieve the above-mentioned purpose, the present invention also provides an Internet of Things device, which includes a memory, a processor, and an Internet of Things device control program stored in the memory and executable on the processor. When the Internet of Things device control program is executed by the processor, the various steps of the Internet of Things device control method described above are implemented.
[0033] To achieve the above objectives, the present invention also provides a computer-readable storage medium, which stores an Internet of Things device control program. When the Internet of Things device control program is executed by a processor, the various steps of the Internet of Things device control method described above are implemented.
[0034] The present invention provides an Internet of Things device control method, device and computer-readable storage medium, which obtains the cell information accessed by the cellular module, and the cell information includes the cell identification and congestion information; if the cell is determined to be in a congested state according to the cell information, it is determined whether the sending instruction of the cellular module has timed out; if the sending instruction has timed out, the target buffering time of the server is determined. By dynamically adjusting the target buffering time of the server, the loss of control instructions caused by instruction timeout is prevented, and the real-time networking of the Internet of Things device is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 A schematic diagram of the hardware structure of an Internet of Things device involved in an embodiment of the present invention;
[0036] Figure 2 A schematic diagram of a flow chart of an embodiment of a method for controlling an Internet of Things device of the present invention;
[0037] Figure 3 This is a flow chart of another embodiment of the method for controlling an Internet of Things device of the present invention;
[0038] Figure 4 A flowchart of another embodiment of the method for controlling an Internet of Things device of the present invention;
[0039] Figure 5 This is a flow chart of the latter embodiment of the method for controlling an Internet of Things device of the present invention.
[0040] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0041] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0042] The main solution of the embodiment of the present invention is: obtaining the cell information accessed by the cellular module, the cell information includes the cell identification and congestion information; if the cell is determined to be in a congested state according to the cell information, then determining whether the sending instruction of the cellular module has timed out; if the sending instruction has timed out, then determining the target buffering time of the server. By dynamically adjusting the target buffering time of the server, the loss of control instructions caused by instruction timeout is prevented, and the real-time networking of the Internet of Things devices is improved.
[0043] As an implementation solution, IoT devices can Figure 1 shown.
[0044] The embodiment of the present invention relates to an Internet of Things device, which includes: a processor 101, such as a CPU, a memory 102, and a communication bus 103. The communication bus 103 is used to realize connection and communication between these components.
[0045] The memory 102 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. Figure 1 As shown, the memory 102 as a computer-readable storage medium may include an IoT device control program; and the processor 101 may be used to call the IoT device control program stored in the memory 102 and perform the following operations:
[0046] Acquire cell information accessed by the cellular module, the cell information including cell identification and congestion information;
[0047] If it is determined according to the cell information that the cell is in a congested state, determining whether the sending instruction of the cellular module has timed out;
[0048] If the sending instruction times out, the target buffering time length of the server is determined.
[0049] Optionally, the processor 101 may be used to call the IoT device control program stored in the memory 102 and perform the following operations:
[0050] Determine a congestion time period of a cell according to the cell information;
[0051] After the step of determining the target buffering time length of the server if the sending instruction times out, the method further includes:
[0052] If the sending instruction of the congestion time period times out, determining the number of timeout instructions sent by the cellular module during the congestion time period;
[0053] Determine the time taken to send the last successfully sent instruction before each of the timed-out instructions;
[0054] A target buffering duration of the server corresponding to the congestion time period is determined according to the sending time duration and the quantity.
[0055] Optionally, the processor 101 may be used to call the IoT device control program stored in the memory 102 and perform the following operations:
[0056] When there are at least two congestion time periods, if the sending instruction in the current congestion time period does not time out, determining the next congestion time period of the current congestion time period;
[0057] If the sending instruction in the next congestion time period times out, the step of determining the target buffering time length of the server is performed.
[0058] Optionally, the processor 101 may be used to call the IoT device control program stored in the memory 102 and perform the following operations:
[0059] If the congestion time period is the last congestion time period, and the sending instructions in the previous congestion time periods are not timed out, then the target buffering time length of the server is determined to be the maximum buffering time length corresponding to the last congestion time period.
[0060] Optionally, the processor 101 may be used to call the IoT device control program stored in the memory 102 and perform the following operations:
[0061] Determine the sum of the sending time durations during the congestion period;
[0062] A ratio of the sum value to the number of the timeout instructions is determined, and the target buffer duration is determined according to the ratio.
[0063] Optionally, the processor 101 may be used to call the IoT device control program stored in the memory 102 and perform the following operations:
[0064] If it is determined according to the cell information that the cell is not in a congested state, determining the number of failure events for sending the instruction;
[0065] If the number of failure events is greater than or equal to a preset number, controlling the cellular module to resynchronize the auxiliary synchronization signal according to a preset detection period to detect whether the frame number of the auxiliary synchronization signal is abnormal;
[0066] If it is detected that the frame number of the auxiliary synchronization signal is abnormal, the cell to which the cellular module accesses is re-determined.
[0067] Optionally, the processor 101 may be used to call the IoT device control program stored in the memory 102 and perform the following operations:
[0068] Determine a candidate cell based on the neighboring cell relationship of the current cell;
[0069] According to the cell information of the candidate cells, a candidate cell that is not in a congested state is determined as a cell to be accessed by the cellular module.
[0070] Optionally, the processor 101 may be used to call the IoT device control program stored in the memory 102 and perform the following operations:
[0071] Obtain the current buffering time of the server;
[0072] The detection period is determined according to the current buffering time length.
[0073] Based on the hardware architecture of the above-mentioned Internet of Things device, an embodiment of the Internet of Things device control method of the present invention is proposed.
[0074] Reference Figure 2 , Figure 2 This is the first embodiment of the Internet of Things device control method of the present invention, and the Internet of Things device control method includes the following steps:
[0075] Step S10, obtaining the cell information to which the cellular module accesses, wherein the cell information includes a cell identifier and congestion information.
[0076] Optionally, IoT devices are connected to the server via a cellular module, and IoT devices can communicate with the cloud platform or a specific server. Users or administrators can use mobile applications, web interfaces, or other remote control methods to monitor and control the operating status of IoT devices, such as adjusting parameters such as temperature, humidity, and wind speed. In addition, cellular module connections also allow IoT devices to transmit relevant data to the server for storage and analysis. For example, IoT devices can transmit real-time temperature, energy consumption data, operation logs, and fault reports for further data analysis, energy consumption management, and troubleshooting.
[0077] Optionally, the IoT device may be a smart home device, a smart wearable device, an industrial automation device, a smart city device, etc. Furthermore, the IoT device may be an air conditioner.
[0078] Optionally, a cell ID is a unique identifier of a cell, used to distinguish different cells. A cell is a basic unit in a mobile communication system, used to divide different wireless coverage areas and service ranges.
[0079] Optionally, congestion information is information describing the current network load status and resource utilization of the cell, including indicators such as the number of users in the cell, data traffic, channel utilization, etc. The congestion information is used to determine whether the cell is in a congested state, is about to be in a congested state, or is not in a congested state.
[0080] Step S20: If it is determined according to the cell information that the cell is in a congested state, it is determined whether the sending instruction of the cellular module has timed out.
[0081] Alternatively, if Figure 5 As shown, when it is determined that the cell corresponding to the cell identifier is in a congested state according to the congestion information of the cell, it is determined whether the sending instruction of the cellular module has timed out. Optionally, according to a preset communication protocol specification such as an AT instruction set, wherein the communication protocol specification generally defines the maximum response time of each instruction, the response time requirements for different instructions are determined. Therefore, when the sending instruction of the cellular module is greater than the maximum response time, it is determined that the sending instruction of the cellular module has timed out.
[0082] Step S30: If the sending instruction times out, determine the target buffering time length of the server.
[0083] Optionally, if the sending of the instruction times out, the server's buffer time needs to be adjusted, so the server's target buffer time is re-determined, where the target buffer time is the server's buffer time under the current congestion state, and the target buffer time is the maximum interval time for instruction transmission, which is used to prevent the frequent loss of control instructions caused by instruction timeouts and reduce the impact on IoT devices.
[0084] In the technical solution of this embodiment, the cell information accessed by the cellular module is obtained, and the cell information includes the cell identification and congestion information; if the cell is determined to be in a congested state according to the cell information, it is determined whether the sending instruction of the cellular module has timed out; if the sending instruction has timed out, the target buffering time of the server is determined. By dynamically adjusting the target buffering time of the server, the loss of control instructions caused by instruction timeout is prevented, and the real-time networking of the Internet of Things devices is improved.
[0085] Reference Figure 3 , Figure 3 This is a second embodiment of the method for controlling an Internet of Things device of the present invention. Based on the first embodiment, before step S30, the method further includes:
[0086] Step S40, determining a congestion time period of the cell according to the cell information;
[0087] The step S30 comprises:
[0088] Step S31, if the sending instruction of the congestion time period times out, determining the number of timeout instructions sent by the cellular module in the congestion time period;
[0089] Step S32, determining the time taken to send the previous successfully sent instruction before each of the timed-out instructions;
[0090] Step S33: determining a target buffering duration of the server corresponding to the congestion time period according to the sending time duration and the quantity.
[0091] Alternatively, if Figure 5 As shown, the congestion time period of the cell is determined according to the cell information, wherein the congestion time period of the cell may be at least two. Exemplarily, when the number of congestion time periods of the cell is n, the congestion time periods of the cell are busy_hour[1], busy_hour[2], ..., busy_hour[n] respectively.
[0092] Optionally, determine the number of timeout instructions sent by the cellular module during the congestion time period. When the number of congestion time periods is n, determine the number of timeout instructions sent during the congestion time period busy_hour[1], determine the number of timeout instructions sent during the congestion time period busy_hour[2], and so on, until the number of timeout instructions sent during the congestion time period busy_hour[n] is determined.
[0093] Optionally, the congestion time period of the cell may be one, for example, the congestion time period busy_hour[1]. Optionally, the number of timeout instructions sent by the cellular module during the congestion time period busy_hour[1] is determined.
[0094] Optionally, in the congestion time period busy_hour[m], m=1, ..., n, determine the number Time_num of timeout instructions sent by the cellular module in the congestion time period busy_hour[m], and determine the time Com_execution_time[Time_num] taken to send the previous successfully executed instruction of each timeout instruction.
[0095] Optionally, the target buffering time of the server is determined according to the sending time duration and the number, wherein the longer the sending time duration is, the longer the target buffering time duration is, and vice versa, the shorter the sending time duration is, the shorter the target buffering time duration is. The greater the number of sending timeout instructions, the shorter the target buffering time duration is, and vice versa, the smaller the number of sending timeout instructions is, the longer the target buffering time duration is.
[0096] Optionally, the sum of the sending time durations during the congestion time period is determined; the ratio of the sum to the number of timeout instructions is determined, and the target buffer duration is determined based on the ratio.
[0097] For example, the formula is as follows:
[0098]
[0099] Among them, Buffer_Time[m] represents the target buffering time, Com_execution_time[Time_num] represents the time taken to send the last successfully sent instruction before the timeout instruction, and Time_num represents the number of timeout instructions sent by the cellular module during the congestion period.
[0100] Optionally, when there are at least two congestion time periods, if the sending instruction within the current congestion time period does not time out, the next congestion time period of the current congestion time period is determined; if the sending instruction within the next congestion time period times out, the step of determining the target buffer time of the server is executed to determine the buffer time of the server corresponding to the next congestion time period.
[0101] Optionally, if the congestion time period is the last congestion time period and all instructions sent in the previous congestion time periods do not time out, the target buffering time length of the server is determined to be the maximum buffering time length corresponding to the last congestion time period, i.e., Max(Buffer_Time[m]).
[0102] In the technical solution of this embodiment, if the sending instruction in the congestion time period times out, the number of timeout instructions sent by the cellular module in the congestion time period is determined; the sending time of the last successfully sent instruction before each timeout instruction is determined; and the target buffering time of the server corresponding to the congestion time period is determined based on the sending time and the number. The target buffering time of the server is accurately determined by the number of timeout instructions and the sending time, so as to prevent the loss of control instructions caused by instruction timeout and improve the real-time networking of IoT devices.
[0103] Reference Figure 4 , Figure 4 This is a third embodiment of the method for controlling an IoT device of the present invention. Based on the first or second embodiment, the method further includes:
[0104] Step S50, if it is determined according to the cell information that the cell is not in a congested state, then determining the number of failure events for sending the instruction;
[0105] Step S60, if the number of failure events is greater than a preset number, controlling the cellular module to resynchronize the auxiliary synchronization signal according to a preset detection period to detect whether the frame number of the auxiliary synchronization signal is abnormal;
[0106] Step S70: If it is detected that the frame number of the auxiliary synchronization signal is abnormal, the cell to which the cellular module accesses is re-determined.
[0107] Alternatively, if Figure 5 As shown, if the cell is determined not to be in a congested state according to the cell information, the number of failure events is determined according to the number of failures in command sending, wherein the number of failures in command sending Com_send_fail_num is determined. When the number of failures Com_send_fail_num is greater than or equal to the preset maximum number Num_max, the number of failure events fail_event is increased by 1.
[0108] Optionally, when the number of failure events fail_event is greater than or equal to the preset number Event_max, the cell identifier of the current cell is recorded, and the server sends the module network adaptive repair instruction RESYNC and the detection period to the cellular module, and controls the cellular module to start the periodic adaptive repair instruction RESYNC to resynchronize the auxiliary synchronization signal to detect whether the frame number of the auxiliary synchronization signal is abnormal. When encountering a base station abnormality, there is a probability that when the network side pages the module, the new and old frame numbers will be discontinuous, resulting in paging failure, and the module will be offline. The cellular module periodically resynchronizes the auxiliary synchronization signal to correct the deviation of time-frequency tracking. If the frame number is found to be abnormal, it can be repaired by re-entering the network, re-receiving system messages and establishing an RRC link.
[0109] Optionally, step S70 includes: determining a candidate cell according to the neighboring cell relationship of the current cell; and determining a candidate cell that is not in a congested state as a cell to be accessed by the cellular module according to the cell information of the candidate cell. The neighboring cell relationship includes: a primary cell, which is the current base station cell to which each mobile device is connected, also known as a service cell. A neighboring cell is another base station cell that is adjacent to the primary cell and may be switched. A directional relationship includes: a direct neighboring cell relationship established between the primary cell and the neighboring cell, where the primary cell can monitor and evaluate the signal quality and availability of the neighboring cell and make a switching decision. A list maintained by the primary cell records the neighboring cells that can be switched around it. The neighboring cell list contains relevant information about the neighboring cell, such as frequency, signal strength, priority, etc., for selection during switching. The measurement report periodically sent by the mobile device to the primary cell includes measurement results of the neighboring cell, such as signal strength, signal-to-noise ratio, etc. The primary cell evaluates and updates the neighboring cell list based on the report. The neighboring cell relationship can help mobile devices switch smoothly between different base station cells, avoid communication interruption or quality degradation, and provide better user experience and network coverage. At the same time, neighbor relations can also optimize network resource allocation and interference management, and improve overall network capacity and efficiency.
[0110] Optionally, before step S60, the method further includes: obtaining a current buffering time of the server; and determining the detection period according to the current buffering time. Exemplarily, the detection period = Buffer_Time / 2.
[0111] In the technical solution of this embodiment, if it is determined according to the cell information that the cell is not in a congested state, the number of failure events of the instruction sending is determined; if the number of failure events is greater than or equal to the preset number, the cellular module is controlled to resynchronize the auxiliary synchronization signal according to the preset detection period to detect whether the frame number of the auxiliary synchronization signal is abnormal; if the frame number of the auxiliary synchronization signal is detected to be abnormal, the cell to which the cellular module accesses is re-determined. Whether the network is abnormal is determined by the auxiliary synchronization signal, and the cell to which the cellular module accesses is re-determined in time, thereby improving the real-time networking of the Internet of Things devices.
[0112] The present invention also provides an Internet of Things device, which includes a memory, a processor, and an Internet of Things device control program stored in the memory and executable on the processor. When the Internet of Things device control program is executed by the processor, the various steps of the Internet of Things device control method described in the above embodiment are implemented.
[0113] The present invention also provides a computer-readable storage medium, which stores an Internet of Things device control program. When the Internet of Things device control program is executed by a processor, the various steps of the Internet of Things device control method described in the above embodiment are implemented.
[0114] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0115] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, system, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, system, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, system, article or device including the element.
[0116] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment system can be implemented by means of software plus a necessary general hardware platform, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a computer-readable storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a parking management device, an air conditioner, or a network device, etc.) to execute the system described in each embodiment of the present invention.
[0117] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A method for controlling an Internet of Things device, characterized in that: Applied to a server, the IoT device is connected to the server via a cellular module, and the IoT device control method includes: Acquire cell information accessed by the cellular module, the cell information including cell identification and congestion information; If it is determined according to the cell information that the cell is in a congested state, determining whether the sending instruction of the cellular module has timed out; If the sending instruction times out, the target buffering time length of the server is determined.
2. The method for controlling an Internet of Things device according to claim 1, wherein: Before the step of determining the target buffering time length of the server if the sending instruction times out, the method further includes: Determine a congestion time period of a cell according to the cell information; After the step of determining the target buffering time length of the server if the sending instruction times out, the method further includes: If the sending instruction of the congestion time period times out, determining the number of timeout instructions sent by the cellular module during the congestion time period; Determine the time taken to send the last successfully sent instruction before each of the timed-out instructions; A target buffering duration of the server corresponding to the congestion time period is determined according to the sending time duration and the quantity.
3. The method for controlling an Internet of Things device according to claim 2, wherein: After the step of determining whether the sending instruction of the cellular module has timed out if the cell is determined to be in a congested state according to the cell information, the method further includes: When there are at least two congestion time periods, if the sending instruction in the current congestion time period does not time out, determining the next congestion time period of the current congestion time period; If the sending instruction in the next congestion time period times out, the step of determining the target buffering time length of the server is performed.
4. The method for controlling an Internet of Things device according to claim 2, wherein: After the step of determining whether the sending instruction of the cellular module has timed out if the cell is determined to be in a congested state according to the cell information, the method further includes: If the congestion time period is the last congestion time period, and the sending instructions in the previous congestion time periods are not timed out, then the target buffering time length of the server is determined to be the maximum buffering time length corresponding to the last congestion time period.
5. The method for controlling an Internet of Things device according to claim 2, wherein: The step of determining the target buffering time of the server corresponding to the congestion time period according to the sending time duration and the quantity includes: Determine the sum of the sending time durations during the congestion period; A ratio of the sum value to the number of the timeout instructions is determined, and the target buffer duration is determined according to the ratio.
6. The method for controlling an Internet of Things device according to claim 1, wherein: The method further comprises: If it is determined according to the cell information that the cell is not in a congested state, determining the number of failure events for sending the instruction; If the number of failure events is greater than or equal to a preset number, controlling the cellular module to resynchronize the auxiliary synchronization signal according to a preset detection period to detect whether the frame number of the auxiliary synchronization signal is abnormal; If it is detected that the frame number of the auxiliary synchronization signal is abnormal, the cell to which the cellular module accesses is re-determined.
7. The method for controlling an Internet of Things device according to claim 6, wherein: The step of re-determining the cell accessed by the cellular module comprises: Determine a candidate cell based on the neighboring cell relationship of the current cell; According to the cell information of the candidate cells, a candidate cell that is not in a congested state is determined as a cell to be accessed by the cellular module.
8. The method for controlling an Internet of Things device according to claim 6, wherein: Before the step of controlling the cellular module to resynchronize the auxiliary synchronization signal according to a preset detection period if the number of failure events is greater than a preset number, the method further includes: Obtain the current buffering time of the server; The detection period is determined according to the current buffering time length.
9. An Internet of Things device, characterized in that: The Internet of Things device includes a memory, a processor, and an Internet of Things device control program stored in the memory and executable on the processor. When the Internet of Things device control program is executed by the processor, each step of the Internet of Things device control method as described in any one of claims 1 to 8 is implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores an Internet of Things device control program, and when the Internet of Things device control program is executed by a processor, each step of the Internet of Things device control method according to any one of claims 1 to 8 is implemented.