Networking method, device, electronic device and storage medium for Internet of Things devices

By querying network signals within the preset networking time in the Internet of Things device and detecting signal strength and number of query times, if the conditions are met, the network injection operation is carried out, which solves the problem of excessive energy consumption in the networking process and improves battery life .

CN116456436BActive Publication Date: 2024-11-22CIMC TRANSPACK TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310433441.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-04-13
Publication Date
2024-11-22
Estimated Expiration
2043-04-13

AI Technical Summary

Technical Problem

IoT devices consume too much energy during the Internet of Things and injecting the network, resulting in insufficient power and affecting battery life.

Method used

Query the network signal of the surrounding environment within the preset networking time, detect whether the signal strength and number of query times meet the networking conditions. If it is met, perform network injection operations, limit the time during network connection and network injection, and reduce power consumption.

Benefits of technology

It effectively reduces the power consumption of IoT devices during the Internet connection and injection process, and optimizes the battery life of the device, especially in extreme environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116456436B_ABST
    Figure CN116456436B_ABST
Patent Text Reader

Abstract

The present application provides a networking method, device, electronic device and storage medium for an Internet of Things device. The networking method for an Internet of Things device includes: querying the network signal of the surrounding environment of the Internet of Things device within a preset networking time; when the network signal is queried, detecting whether the network signal meets the networking condition of the Internet of Things device within the preset networking time, and the networking condition is related to the number of queries and signal strength of the network signal; if the networking condition is met, performing a network injection operation. The present application can effectively reduce the power consumption of Internet of Things devices by setting networking conditions during the networking process, further limiting the time consumed by Internet of Things devices during the networking and injection processes.
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 networking method, device, electronic device and storage medium for Internet of Things devices. Background Art

[0002] For IoT devices, the process of connecting to the Internet and injecting data into the network often consumes a lot of energy, resulting in insufficient power, thus affecting the battery life of the IoT devices.

[0003] The existing networking process is as follows: the device enters the networking state after powering on, and enters the shutdown or sleep state after completing the business functions.

[0004] Before entering the networking state, you need to keep trying to connect to the network until the network registration is completed. In this process, the long time spent on trying to connect to the network will also affect the power consumption of the IoT device. If the strength of the network signal cannot meet the requirements of networking, it will also cause excessive power consumption of the IoT device. Summary of the invention

[0005] One purpose of the present application is to provide a networking method, device, electronic device and storage medium for an Internet of Things device, so as to reduce the power consumption of the Internet of Things device during the networking process.

[0006] According to one aspect of an embodiment of the present application, a method for networking an Internet of Things device is provided, comprising:

[0007] Query the network signal of the surrounding environment of the IoT device within the preset networking time;

[0008] When the network signal is queried, detecting whether the network signal meets the networking condition of the IoT device within the preset networking time, wherein the networking condition is related to the number of queries and signal strength of the network signal;

[0009] If the networking conditions are met, the network injection operation is performed.

[0010] According to one aspect of an embodiment of the present application, a networking device for an Internet of Things device is provided, including:

[0011] A signal query module, used to query the network signal of the surrounding environment of the IoT device within a preset networking time;

[0012] A networking module, for detecting, when the network signal is queried, whether the network signal satisfies the networking condition of the IoT device within the preset networking time, wherein the networking condition is related to the number of queries and signal strength of the network signal;

[0013] The function execution module is used to perform the network injection operation if the network connection condition is met.

[0014] According to one aspect of an embodiment of the present application, an electronic device is provided, comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the electronic device implements the networking method of an Internet of Things device provided in the above-mentioned various optional implementation modes.

[0015] According to one aspect of an embodiment of the present application, a computer program medium is provided, on which computer-readable instructions are stored. When the computer-readable instructions are executed by a processor of a computer, the computer executes the networking method of an Internet of Things device provided in the above-mentioned various optional implementations.

[0016] According to one aspect of the embodiments of the present application, a computer program product or a computer program is provided, the computer program product or the computer program including computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the networking method of an Internet of Things device provided in the above-mentioned various optional implementations.

[0017] In this application, within the preset networking time, the network signal of the surrounding environment of the IoT device is queried. When the network signal is queried, it is detected whether the network signal meets the networking conditions of the IoT device within the preset networking time, and the networking conditions are related to the number of queries of the network signal; if the networking conditions are met, the network injection operation is performed. During the networking process, the networking conditions are related to the number of queries of the network signal and the signal strength of the network signal, thereby limiting the time consumed by the IoT device during the networking and injection process, which can effectively reduce the power consumption of the IoT device during the networking and injection process.

[0018] Other features and advantages of the present application will become apparent from the following detailed description, or may be learned in part by the practice of the present application.

[0019] It should be understood that the foregoing general description and the following detailed description are exemplary only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The above and other objects, features and advantages of the present application will become more apparent by describing in detail exemplary embodiments thereof with reference to the attached drawings.

[0021] Figure 1 A schematic diagram of a process for networking an Internet of Things device according to an embodiment of the present application is shown.

[0022] Figure 2A schematic diagram of a specific process of a networking method for an Internet of Things device according to an embodiment of the present application is shown.

[0023] Figure 3 A schematic diagram showing a specific process of a networking method for an Internet of Things device according to another embodiment of the present application is shown.

[0024] Figure 4 A schematic structural diagram of a networking device for an Internet of Things device according to an embodiment of the present application is shown.

[0025] Figure 5 A schematic structural diagram of an electronic device according to an embodiment of the present application is shown. DETAILED DESCRIPTION

[0026] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these example embodiments are provided so that the description of the present application will be more comprehensive and complete and the concepts of the example embodiments will be fully conveyed to those skilled in the art. The accompanying drawings are only schematic illustrations of the present application and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and thus their repeated description will be omitted.

[0027] In addition, the described features, structures or characteristics may be combined in one or more example embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the example embodiments of the present application. However, those skilled in the art will appreciate that the technical solution of the present application may be practiced while omitting one or more of the specific details, or other methods, components, steps, etc. may be adopted. In other cases, known structures, methods, implementations or operations are not shown or described in detail to avoid obscuring the present application and making the various aspects of the present application obscure.

[0028] Some of the blocks shown in the accompanying drawings are functional entities that do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0029] For IoT devices, the process of connecting to the Internet and injecting data into the network often consumes too much time, resulting in excessive power consumption, which will eventually affect the battery power of the IoT devices.

[0030] There are two main ways to connect to the Internet. The first is to power on the IoT device, enable the connection function, set a timeout during the connection process, and query the network signal in a loop. When the network signal is found, the IoT device performs the connection operation. After the connection is successful, the service operation is processed and the device enters the shutdown and sleep state. The first method can protect the power supply to a certain extent in extreme environments, but it cannot guarantee that the signal strength of the queried network signal can meet the connection requirements. If the signal strength becomes weak during the connection and the connection cannot be connected, the network signal needs to be queried again and a new round of connection attempts will be made, which will increase the power consumption of the IoT device.

[0031] The second method is to directly inject network, which is also to continuously inject network automatically within the set timeout period until the network signal strength is strong enough to inject network. In the second method, during the continuous injection attempt, the instantaneous current consumption is very large, and it takes a long time, and the power consumption also increases accordingly.

[0032] The Internet of Things networking method provided in this embodiment improves the process of the Internet of Things device in the networking stage, reduces the power consumption of the Internet of Things device in the networking stage, and optimizes the power consumption of the Internet of Things device.

[0033] Figure 1 A schematic diagram of a method for networking an Internet of Things device according to an embodiment of the present application is shown, and the method comprises the following steps:

[0034] S100, within a preset networking time, query the network signal of the surrounding environment of the IoT device.

[0035] Before the IoT device queries the network signal, power on the IoT device to wake it up and enable the networking mode.

[0036] After entering the networking mode, the network signal of the surrounding environment of the IoT device is queried within the preset networking time. After the preset networking time, if the IoT device is not connected to the Internet, the IoT device is controlled to enter the sleep state.

[0037] The preset networking time refers to the time that the IoT device attempts to connect to the Internet. It is used to limit the time that the IoT device attempts to connect to the Internet and reduce the power consumption of the IoT device during the networking stage.

[0038] The surrounding environment of the IoT device specifically refers to the surrounding location of the assembly location of the IoT device.

[0039] According to the surrounding environment of the assembly location, query the base station information and obtain the network signal based on the base station information.

[0040] S110, when a network signal is queried, whether the network signal meets the networking conditions of the IoT device within a preset networking time is detected, and the networking conditions are related to the number of queries for the network signal and the signal strength.

[0041] Specifically, when a network signal is found, it is detected whether the network signal meets the networking conditions of the IoT device within a preset networking time. The network signal is related to the number of network signal queries and the signal strength of the network signal.

[0042] The number of queries refers to the number of times the network signal is queried within the preset networking time, and the signal strength of the network signal refers to whether the signal quality of the network signal can meet the networking conditions.

[0043] As an optional implementation, within the preset networking time, the network signal is queried according to a preset query number, and it is determined whether the signal strength of the network signal meets the requirement.

[0044] Optionally, in order to determine whether the network signal has stable signal quality, it is continuously determined whether the signal strength of the network signal meets the networking conditions.

[0045] S120: If the networking conditions are met, perform a network registration operation.

[0046] When the queried network signal meets the networking conditions, the IoT device implements the networking and network injection process based on the network signal.

[0047] Optionally, after the IoT device is successfully registered on the network, it is used to implement the business functions corresponding to the IoT device. The business functions are related to the type of IoT device. For example, a device used to monitor the IoT system is used to receive sensor data sent by a sensor.

[0048] In this embodiment, within the preset networking time, the network signal of the surrounding environment of the IoT device is queried. When the network signal is queried, it is detected whether the network signal meets the networking conditions of the IoT device within the preset networking time. The networking conditions are related to the number of network signal queries and the signal strength of the network signal. If the networking conditions are met, the IoT device performs the network injection operation. During the networking process, the networking conditions are related to the number of network signal queries and the signal strength of the network signal, thereby limiting the time consumed by the IoT device in the networking and injection process, which can effectively reduce the power consumption of the IoT device during the networking and injection process.

[0049] As an optional implementation, in S110, when a network signal is queried, detecting whether the network signal meets the networking condition of the IoT device within a preset networking time includes:

[0050] S112: within the preset networking time, if the number of network signal queries is less than the query number threshold, obtain the signal strength of the network signal.

[0051] Specifically, when setting the preset networking time, the network signal query count threshold can be set at the same time. For example, if the network signal is queried periodically, the specific value of the query count threshold can be set according to the cycle of a query operation and the preset networking time.

[0052] The number of network signal queries refers to the number of network signal queries during the preset networking time. When the number of network signal queries is less than the query number threshold, the signal strength of the network signal is obtained.

[0053] S114, judging whether the network signal meets the networking conditions of the IoT device according to the relationship between the signal strength and the preset strength threshold.

[0054] The preset strength threshold refers to the minimum threshold of the signal strength of the network signal that enables the IoT device to connect to the Internet.

[0055] Specifically, for network signals of different network standards, the strength values ​​corresponding to the preset strength thresholds are also different.

[0056] By comparing the signal strength with the preset strength threshold, it is determined whether the network signal meets the networking conditions of the IoT device based on the size of the two.

[0057] In order to ensure the stability of IoT devices when connected to the Internet, it is necessary to continuously compare the signal strength with the preset strength threshold to determine the stability of the network signal.

[0058] It should be noted that, because the IoT device is fixed, the queried network signal will not change during the continuous query of the network signal, and only the signal strength of the same network signal is continuously compared to see whether it is greater than the preset strength threshold.

[0059] In this embodiment, within the preset networking time, by limiting the number of queries for the network signal, the time that the IoT device attempts to connect to the network during the networking process is reduced. If the number of queries is less than the query number threshold, the signal strength of the network signal is obtained, and based on the relationship between the signal strength and the preset strength threshold, it is determined whether the network signal meets the networking conditions of the IoT device, and the networking conditions are limited by the number of queries and the signal strength. Increasing the conditional limits of the IoT device during the networking process can avoid the IoT device constantly trying to connect to the network, which causes the networking time process and thus increases the power consumption during the networking process, and to a certain extent plays a role in optimizing the power consumption of the IoT device.

[0060] As an optional implementation, in S114, judging whether the network signal meets the networking condition of the IoT device according to the relationship between the signal strength and the preset strength threshold includes:

[0061] S116: If the signal strength is greater than the preset strength threshold, continue to obtain the signal strength of the network signal until the signal strength is continuously greater than the preset strength threshold and the number of consecutive times is equal to the preset threshold, and determine that the network signal meets the networking conditions of the Internet of Things device.

[0062] Specifically, during the current query process, if the signal strength of the network signal is greater than the preset strength threshold, the next network signal query is performed. When the signal strength of the queried network signal is greater than the preset strength threshold, the above process is repeated until the number of consecutive occurrences of the signal strength being greater than the preset strength threshold is equal to the preset threshold, then it is determined that the network signal meets the networking conditions of the Internet of Things device.

[0063] For example, the preset threshold is that it appears twice in a row; during the current query process, if the signal strength of the network signal is greater than the preset strength threshold, the next network signal query is performed. When the signal strength of the queried network signal is greater than the preset strength threshold, it means that the signal strength has been greater than the preset strength threshold twice in a row, indicating that the network signal meets the conditions for the IoT device to connect to the Internet.

[0064] S118: If the signal strength is less than or equal to the preset strength threshold, continue to query the network signal of the surrounding environment of the IoT device.

[0065] Specifically, if the signal strength is less than or equal to the preset strength threshold, the network signal of the surrounding environment of the IoT device continues to be queried until the signal strength is greater than the preset signal strength for a number of consecutive times equal to the preset number of times, then it is determined that the network signal meets the networking conditions; or, within the preset networking time, the number of queries exceeds the query number threshold, then the IoT device is controlled to enter a sleep state.

[0066] In this embodiment, after the network signal is queried, the relationship between the signal strength of the network signal and the preset strength threshold is compared, and the signal strength is required to continuously meet the requirement of being greater than the preset signal strength, and the number of consecutive times is equal to the preset threshold, which indicates that the signal quality of the network signal is stable. When the Internet of Things device is connected to the network based on the network signal, the situation where the network connection fails due to unstable network signal will not occur, which avoids the time spent by the Internet of Things device on connecting to the network and can reduce the power consumption of the Internet of Things device to a certain extent.

[0067] As an optional implementation, in S120, after performing the network injection operation if the network connection condition is met, the method further includes:

[0068] S130, obtaining a total power consumption value and a battery capacity of the IoT device.

[0069] S140, obtaining the current power of the IoT device according to the total power consumption value and the battery capacity in accordance with a preset mapping relationship.

[0070] Optionally, after the IoT device performs the network injection operation, the business functions of the IoT device need to be executed.

[0071] Furthermore, after the business function is executed, the total power consumption value of the IoT device and the battery capacity of the IoT device are obtained.

[0072] According to the total power consumption value and battery capacity, the current device of the IoT device is calculated according to the mapping relationship.

[0073] S150, adjusting the networking condition of the IoT device according to the current power.

[0074] The networking condition of the IoT device is adjusted according to the current power. It should be noted that the adjusted networking condition is used to limit the networking state of the IoT device when it is awakened and performs the networking function next time.

[0075] If the power level of the IoT device when it is woken up next time is the calculated current power level, the power consumption of the IoT device when connected to the Internet can be optimized by adjusting the networking conditions to ensure the endurance of the IoT device in extreme environments.

[0076] For example, according to the current power level, the number of times the signal strength in the networking condition is continuously greater than the preset signal strength and / or the length of the preset networking time is adjusted.

[0077] When the current power level is less than the preset power threshold, the number of consecutive times is increased and / or the preset networking time is shortened to reduce the power consumption of the IoT device when connected to the Internet. This can optimize the power consumption of the IoT device in extreme environments to a certain extent.

[0078] In this embodiment, the current power of the IoT device is calculated, and the networking conditions of the IoT device are adjusted according to the current power, so that the power consumption of the IoT device is reduced, thereby optimizing the power consumption of the IoT device.

[0079] As an optional implementation, in S150, adjusting the networking condition of the network signal according to the current power includes:

[0080] S151, adjusting the query times threshold of the network signal according to the current power.

[0081] S153, when the number of network signal queries is greater than or equal to the query number threshold, the Internet of Things device is controlled to enter a sleep state.

[0082] Specifically, after the current power is calculated, the query number threshold of the network signal is adjusted according to the current power;

[0083] Optionally, the query number threshold is related to the preset networking time. If the duration of a network signal is A seconds, and the query number threshold is set to B, then the preset networking time is equal to A seconds*B.

[0084] When the query times are greater than or equal to the query times threshold, the IoT device is controlled to enter a dormant state.

[0085] It should be noted that, in this embodiment, adjusting the query times threshold of the network signal by the current power takes effect when the IoT device is awakened again.

[0086] It is understandable that in this operation, after the IoT device has completed its function, it is controlled to enter a dormant state. After the networking condition is adjusted according to the current power, the adjusted networking condition is to limit the networking state of the IoT device when it is operated next time.

[0087] In this embodiment, the current power consumption is calculated to adjust the networking conditions so that the IoT device can maintain a low power consumption level during subsequent operation, thereby optimizing the power consumption of the IoT device to a certain extent.

[0088] As an optional implementation, in S130, obtaining the total power consumption value of the IoT device includes:

[0089] S131, obtaining a dynamic power consumption value of the IoT device according to the operating time and average power consumption value of the IoT device.

[0090] S133, obtaining a static power consumption value of the IoT device, and obtaining a total power consumption value according to the dynamic power consumption value and the static power consumption value.

[0091] Specifically, the running time of an IoT device refers to the start time and end time of the current operation.

[0092] The start time refers to the time when the IoT device is awakened, and the end time refers to the time when the IoT device enters the sleep state.

[0093] The average power consumption of IoT devices is a value measured through experiments, which indicates the general level of power consumption of IoT devices during operation.

[0094] The total power consumption can be calculated using the following formula:

[0095]

[0096] P a is the total power consumption, P av is the average power consumption, Te is the end time, T s is the starting time, P b

[0097] is the energy consumption value of the IoT device when it was last running, P p is the power consumption of IoT devices in sleep mode, T pp It is the sleep cycle of IoT devices.

[0098] Among them, the dynamic power consumption value is the power consumption value of the IoT device during operation, and the static power consumption value is the historical power consumption value of the IoT device and the power consumption during sleep period.

[0099] Therefore, the total power consumption value can be calculated through the dynamic power consumption value and the static power consumption value, and then the current power consumption of the IoT device can be calculated based on the total power consumption value.

[0100] The current power of the IoT device can be calculated using the following formula:

[0101]

[0102] B c is the current power, B a is the battery capacity.

[0103] In this embodiment, the power consumption value of the IoT device during operation is obtained, the current power consumption is calculated, and then the networking conditions are adjusted according to the current power consumption, so that the power consumption of the IoT device can be continuously optimized.

[0104] As an optional implementation, in S120, after performing the network injection operation if the network connection condition is met, the method further includes:

[0105] S160, controlling the IoT device to enter a dormant state.

[0106] S170: Set a wake-up period of the IoT device according to the current power level of the IoT device.

[0107] Specifically, after the IoT device completes the network injection operation and calculates the current power, the IoT device is controlled to enter a sleep state.

[0108] Furthermore, the wake-up period of the IoT device is set according to the current power level. For example, if the current power level is less than the power threshold, the wake-up period of the IoT device is increased; if the current power level is greater than or equal to the power threshold, the wake-up period of the IoT device is shortened.

[0109] If the current battery power is too low, increasing the wake-up cycle of the IoT device can reduce the number of wake-up times of the IoT device to a certain extent, thereby reducing the power consumption of the IoT device and optimizing the power consumption of the IoT device.

[0110] As an optional implementation, Figure 2 The specific process of the networking method of the Internet of Things device provided by this embodiment is shown.

[0111] S20, IoT devices wake up and enter networking mode;

[0112] S21, querying the network signal of the surrounding environment;

[0113] In the S21 stage, a query number threshold for querying the network signal is set, where N represents the current query number and T represents the query number threshold. When N is greater than or equal to T, the IoT device is controlled to enter a dormant state.

[0114] S22, network signal is found;

[0115] When a network signal is found, the number N is incremented by 1.

[0116] S23, determining that the signal strength is greater than a preset strength threshold;

[0117] Determine whether the signal strength of the network signal is greater than the preset strength threshold. If the signal strength is greater than the preset strength threshold, C increases by 1, and C represents the number of times the signal strength is greater than the preset strength threshold. If the signal strength is less than or equal to the preset strength threshold, C decreases by 1; if C = 0 at this time, the decrease operation is not performed.

[0118] S24, the number of consecutive times that the signal strength is greater than the preset strength threshold is equal to the preset threshold;

[0119] M represents the number of times the signal strength meets the requirement continuously. When C=M, it means that the network signal meets the networking requirements of the IoT device. If C≠M, C is reduced by 1; if C=0 at this time, the reduction operation is not performed.

[0120] S25, performing the network injection operation;

[0121] S26, enter the sleep state.

[0122] After the IoT device is connected to the Internet and performs the network registration operation, it enters the dormant state.

[0123] Optional, Figure 3 The specific process of the networking method of the Internet of Things device provided by this embodiment is shown.

[0124] S30, the IoT device wakes up and enters networking mode;

[0125] S31, querying the network signal of the surrounding environment;

[0126] S32, network signal is found;

[0127] S33, determining that the signal strength is greater than a preset strength threshold;

[0128] S34, the number of consecutive times that the signal strength is greater than the preset strength threshold is equal to the preset threshold;

[0129] C represents the number of times the signal strength is greater than the preset strength threshold, and M represents the number of times the signal strength continuously meets the requirement. When C=M, it means that the network signal meets the networking requirements of the IoT device.

[0130] S35, performing a network injection operation;

[0131] S36, calculating the current power;

[0132] S37, enter sleep mode.

[0133] When the IoT device is connected to the network and the network connection operation is completed, the current power consumption is calculated and then it enters the sleep state.

[0134] The current power is used to adjust the networking conditions of the IoT device and to set the wake-up cycle of the IoT device after the IoT device enters the sleep state.

[0135] Figure 4 A schematic diagram of the structure of a networking device for an Internet of Things device according to an embodiment of the present application is shown, and the networking device for the Internet of Things device includes:

[0136] The signal query module 41 is used to query the network signal of the surrounding environment of the Internet of Things device within a preset networking time.

[0137] The networking module 42 is used to detect whether the network signal meets the networking conditions of the Internet of Things device within a preset networking time when the network signal is queried. The networking conditions are related to the number of queries and signal strength of the network signal.

[0138] The function execution module 43 is used to perform a network injection operation if the network connection conditions are met.

[0139] Furthermore, the networking module 42 includes:

[0140] The signal strength acquisition unit is used to acquire the signal strength of the network signal if the number of network signal queries is less than a query number threshold within a preset networking time.

[0141] The networking detection unit is used to determine whether the network signal meets the networking conditions of the Internet of Things device based on the relationship between the signal strength and the preset strength threshold.

[0142] Furthermore, the networked detection unit includes:

[0143] The first judgment unit is used to continue to obtain the signal strength of the network signal if the signal strength is greater than a preset strength threshold, until the signal strength is continuously greater than the preset strength threshold and the number of consecutive times is equal to the preset threshold, so as to determine that the network signal meets the networking conditions of the Internet of Things device.

[0144] The second judgment unit is used to continue to query the network signal of the surrounding environment of the Internet of Things device if the signal strength is less than or equal to a preset strength threshold.

[0145] Furthermore, the networking device of the IoT device includes:

[0146] The parameter acquisition module is used to obtain the total power consumption value and battery capacity of the IoT device.

[0147] The power calculation module is used to obtain the current power of the IoT device according to the total power consumption value and the battery capacity according to a preset mapping relationship.

[0148] The condition adjustment module is used to adjust the networking conditions of IoT devices according to the current power level.

[0149] Furthermore, the power calculation module includes:

[0150] The power consumption value acquisition unit is used to obtain the dynamic power consumption value of the IoT device according to the operating time and average power consumption value of the IoT device.

[0151] The power calculation unit is used to obtain the static power consumption value of the IoT device, and obtain the total power consumption value according to the dynamic power consumption value and the static power consumption value.

[0152] Furthermore, the condition adjustment module includes:

[0153] The threshold adjustment unit is used to adjust the query times threshold of the network signal according to the current power level.

[0154] The sleep control unit is used to control the Internet of Things device to enter a sleep state when the number of network signal queries is greater than or equal to the query number threshold.

[0155] Furthermore, the networking device of the IoT device includes:

[0156] The second control module is used to control the Internet of Things device to enter a dormant state.

[0157] The periodic device module is used to set the wake-up period of the IoT device according to the current power of the IoT device.

[0158] Reference below Figure 5 An electronic device 50 according to an embodiment of the present application is described. Figure 5The electronic device 50 shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0159] As an optional implementation, the electronic device 50 is an Internet of Things device, which is connected to the Internet of Things through a wireless network. The Internet of Things device runs the storage medium of the Internet of Things device provided in the above embodiment through a read-only storage unit (ROM), and stores data through an erasable programmable read-only memory (EPROM or flash memory).

[0160] like Figure 5 As shown, the electronic device 50 is in the form of a general computing device. The components of the electronic device 50 may include but are not limited to: at least one processing unit 510, at least one storage unit 520, and a bus 530 connecting different system components (including the storage unit 520 and the processing unit 510).

[0161] The storage unit stores program codes, which can be executed by the processing unit 510, so that the processing unit 510 executes the steps according to various exemplary embodiments of the present application described in the description of the exemplary method described above in this specification. For example, the processing unit 510 can execute the following steps: Figure 1 The steps shown in .

[0162] The storage unit 520 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 5201 and / or a cache storage unit 5202 , and may further include a read-only storage unit (ROM) 5203 .

[0163] The storage unit 520 may also include a program / utility 5204 having a set (at least one) of program modules 5205, such program modules 5205 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.

[0164] Bus 530 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.

[0165] The electronic device 50 may also communicate with one or more external devices 600 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 50, and / or may communicate with any device that enables the electronic device 50 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 550. The input / output (I / O) interface 550 is connected to a display unit 540. Furthermore, the electronic device 50 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), a wireless network, and / or a public network, such as the Internet) via a network adapter 360. As shown, the network adapter 560 communicates with other modules of the electronic device 50 via a bus 530. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 50, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RA ID systems, tape drives, and data backup storage systems.

[0166] Through the description of the above implementation methods, it is easy for those skilled in the art to understand that the example implementation methods described here can be implemented by software or by combining software with necessary hardware. Therefore, the technical solution according to the implementation method of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a mobile terminal, etc.) to execute the networking method of the Internet of Things device according to the implementation method of the present application.

[0167] In an exemplary embodiment of the present application, a computer-readable storage medium is also provided, on which computer-readable instructions are stored. When the computer-readable instructions are executed by a processor of a computer, the computer executes the networking method of an Internet of Things device described in the above method embodiment part.

[0168] According to one embodiment of the present application, a program product for implementing the method in the above method embodiment is also provided, which can adopt a portable compact disk read-only memory (CD-ROM) and include program code, and can be run on a terminal device, such as a personal computer. However, the program product of the present application is not limited thereto, and in this document, a readable storage medium can be any tangible medium containing or storing a program, which can be used by or in combination with an instruction execution system, an apparatus or a device.

[0169] The program product may use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0170] Computer readable signal media may include data signals propagated in baseband or as part of a carrier wave, in which readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Readable signal media may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0171] The program code embodied on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.

[0172] Program code for performing the operations of the present application may be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as JAVA, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., via the Internet using an Internet service provider).

[0173] It should be noted that, although several modules or units of the equipment for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into being embodied by multiple modules or units.

[0174] In addition, although the steps of the method in the present application are described in a specific order in the drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps, etc.

[0175] Through the description of the above implementation methods, it is easy for those skilled in the art to understand that the example implementation methods described here can be implemented by software or by combining software with necessary hardware. Therefore, the technical solution according to the implementation methods of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a mobile terminal, etc.) to execute the method according to the implementation methods of the present application.

[0176] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the appended claims.

Claims

1. A networking method for an Internet of Things device, characterized in that: include: Query the network signal of the surrounding environment of the IoT device within the preset networking time; Within the preset networking time, if the query number of the network signal is less than the query number threshold, obtaining the signal strength of the network signal; If the query number of the network signal is greater than the query number threshold, controlling the Internet of Things device to enter a dormant state; According to the relationship between the signal strength and the preset strength threshold, determining whether the network signal meets the networking condition of the Internet of Things device; The determining, based on the relationship between the signal strength and a preset strength threshold, whether the network signal meets the networking condition of the IoT device includes: If the signal strength is greater than the preset strength threshold, continue to obtain the signal strength of the network signal until the signal strength is greater than the preset strength threshold continuously and the number of consecutive times is equal to the preset threshold, and determine that the network signal meets the networking condition of the Internet of Things device; If the networking conditions are met, the network injection operation is performed.

2. The networking method of the Internet of Things device according to claim 1, characterized in that: The determining, based on the relationship between the signal strength and a preset strength threshold, whether the network signal meets the networking condition of the IoT device includes: If the signal strength is less than or equal to the preset strength threshold, continue to query the network signal of the surrounding environment of the Internet of Things device.

3. The networking method of the Internet of Things device according to claim 1, characterized in that: After performing the network injection operation if the network condition is met, the method further includes: Obtaining the total power consumption value and battery capacity of the IoT device; According to the total power consumption value and the battery capacity, according to a preset mapping relationship, the current power of the IoT device is obtained; The networking condition of the Internet of Things device is adjusted according to the current power level.

4. The networking method of the Internet of Things device according to claim 3, characterized in that: The adjusting the networking condition of the network signal by using the current power includes: Adjusting the query times threshold of the network signal according to the current power; When the number of queries of the network signal is greater than or equal to the query number threshold, the Internet of Things device is controlled to enter a dormant state.

5. The networking method of the Internet of Things device according to claim 3, characterized in that: The obtaining of the total power consumption value of the IoT device includes: Obtaining a dynamic power consumption value of the Internet of Things device according to the operating time and average power consumption value of the Internet of Things device; The static power consumption value of the IoT device is obtained, and the total power consumption value is obtained according to the dynamic power consumption value and the static power consumption value.

6. The networking method of the Internet of Things device according to claim 4, characterized in that: After performing the network injection operation if the network connection condition is met, the method further includes: Controlling the IoT device to enter a dormant state; According to the current power of the IoT device, a wake-up period of the IoT device is set.

7. A networking device for an Internet of Things device, characterized in that: The device comprises: A signal query module, used to query the network signal of the surrounding environment of the IoT device within a preset networking time; A networking module, for detecting, when the network signal is queried, whether the network signal satisfies the networking condition of the IoT device within the preset networking time, wherein the networking condition is related to the number of queries and signal strength of the network signal; Wherein, the networking module includes: Within the preset networking time, if the query number of the network signal is less than the query number threshold, obtaining the signal strength of the network signal; If the query number of the network signal is greater than the query number threshold, controlling the Internet of Things device to enter a dormant state; According to the relationship between the signal strength and the preset strength threshold, determining whether the network signal meets the networking condition of the Internet of Things device; The determining, based on the relationship between the signal strength and a preset strength threshold, whether the network signal meets the networking condition of the IoT device includes: If the signal strength is greater than the preset strength threshold, continue to obtain the signal strength of the network signal until the signal strength is greater than the preset strength threshold continuously and the number of consecutive times is equal to the preset threshold, and determine that the network signal meets the networking condition of the Internet of Things device; The function execution module is used to perform the network injection operation if the network connection condition is met.

8. An electronic device, characterized in that: include: one or more processors; A storage device for storing one or more programs, which, when executed by the one or more processors, enables the electronic device to implement the networking method of an Internet of Things device as described in any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that: Computer-readable instructions are stored thereon, and when the computer-readable instructions are executed by a processor of a computer, the computer is caused to execute the networking method for an Internet of Things device according to any one of claims 1 to 6.