Terminal equipment network configuration method, device, terminal equipment and storage medium

By obtaining the power-on record information of the terminal equipment and determining its working mode, an automatic distribution network is realized without the need for a user to manually enter a password, solving the problem of cumbersome distribution network operation in the existing technology, and improving the distribution network efficiency and user experience.

CN114698002BActive Publication Date: 2025-03-11SHENZHEN TCL NEW-TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202011625856.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-30
Publication Date
2025-03-11
Estimated Expiration
2040-12-30

AI Technical Summary

Technical Problem

In the prior art, users need to manually enter network passwords when distributing networks for terminal devices, especially when there are many terminal devices or the equipment has no buttons or display screens, the operation is cumbersome and inconvenient.

Method used

By obtaining the power-on record information of the equipment to be distributed, determining its working mode. If it is in the distribution mode, obtaining the distribution information and performing distribution operations, realizing automatic distribution network without the need for the user to manually enter the password.

Benefits of technology

It simplifies the distribution process of terminal equipment and improves the distribution efficiency. It is especially suitable for distribution networks with multiple devices or no buttons and display devices, providing a more convenient user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114698002B_ABST
    Figure CN114698002B_ABST
Patent Text Reader

Abstract

The present invention discloses a terminal equipment network configuration method, device, terminal equipment and storage medium, the method comprising: obtaining power-on record information of a device to be configured; determining the working mode of the device to be configured according to the power-on record information; if the working mode is the network configuration mode, obtaining the network configuration information, and performing the network configuration operation according to the network configuration information. The present invention can obtain the power-on record information of the device to be configured, and determine whether the working mode of the device to be configured is in the network configuration mode based on the power-on record information of the device to be configured. If it is in the network configuration mode, it can be determined whether the network configuration information can be obtained, and then the network configuration operation is performed according to the network configuration information, thereby eliminating the need for the user to manually enter password information and other operations, providing convenience for the user.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of network distribution technology, and in particular to a terminal device network distribution method, device, terminal device and storage medium. Background Art

[0002] In today's world where technology helps people live, people are always accompanied by various terminal devices. People have long been surrounded by mobile phones, tablets, computers, televisions, and air conditioners. Terminal devices have gradually penetrated into every corner of people's lives. However, in the prior art, when users configure the network for terminal devices, they basically need to manually enter the network password (such as the WiFi password). When there are a large number of terminal devices, it is very cumbersome to manually enter the network password for each terminal device. In addition, some terminal devices do not have buttons or even display screens, and cannot connect to the network by manually entering the network password, which brings inconvenience to users.

[0003] Therefore, the prior art still needs to be improved and enhanced. Summary of the invention

[0004] The present invention provides a terminal device network configuration method, device, terminal device and storage medium, aiming to solve the problem in the prior art that when configuring a network for a terminal device, a network password (such as a WiFi password) basically needs to be manually entered before the terminal device can connect to the network, which is very inconvenient to operate.

[0005] In order to solve the above technical problems, the technical solution adopted by the present invention is as follows:

[0006] In a first aspect, the present invention provides a terminal device network configuration method, comprising:

[0007] Obtain the power-on record information of the device to be configured;

[0008] Determine the working mode of the equipment to be networked based on the power-on record information;

[0009] If the working mode is the network distribution mode, the network distribution information is obtained and the network distribution operation is performed according to the network distribution information.

[0010] In a second aspect, an embodiment of the present invention further provides a terminal equipment network configuration device, including:

[0011] An acquisition module is used to obtain power-on record information of the device to be configured;

[0012] A determination module is used to determine the working mode of the device to be networked according to the power-on record information;

[0013] The execution module is used to obtain the network configuration information if the working mode is the network configuration mode, and perform the network configuration operation according to the network configuration information.

[0014] In a third aspect, an embodiment of the present invention further provides a terminal device, comprising a memory, a processor, and a terminal device network configuration program stored in the memory and executable on the processor, wherein when the processor executes the terminal device network configuration program, the steps of the terminal device network configuration method of any one of the above-mentioned schemes are implemented.

[0015] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, which stores a terminal device network configuration program. When the terminal device network configuration program is executed by a processor, the steps of the terminal device network configuration method of any one of the above schemes are implemented.

[0016] Beneficial effect: Compared with the prior art, the present invention provides a terminal device network configuration method, which obtains the power-on record information of the device to be configured, and determines whether the working mode of the device to be configured is in the network configuration mode based on the power-on record information of the device to be configured. If it is in the network configuration mode, it is determined whether the network configuration information can be obtained, and then the network configuration operation is performed according to the network configuration information, thereby eliminating the need for users to manually enter password information and other operations, providing convenience for users. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 A flowchart of a specific implementation of the terminal device network configuration method provided in an embodiment of the present invention.

[0018] Figure 2 A flowchart of obtaining power-on record information in a terminal device network configuration method provided in an embodiment of the present invention.

[0019] Figure 3 A flowchart for determining an operating mode in a terminal device network configuration method provided in an embodiment of the present invention.

[0020] Figure 4 A flowchart of network configuration execution operations in a terminal device network configuration method provided in an embodiment of the present invention.

[0021] Figure 5 It is a principle block diagram of a terminal equipment network distribution device provided in an embodiment of the present invention.

[0022] Figure 6 It is a block diagram of the internal structure principle of the terminal device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0023] In order to make the purpose, technical solution and effect of the present invention clearer and more specific, the present invention is further described in detail with reference to the accompanying drawings and examples. 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.

[0024] In today's world where technology helps people live better, people are inseparable from various terminal devices. People have long been surrounded by mobile phones, tablets, computers, televisions, and air conditioners in their lives. Terminal devices have slowly penetrated into every corner of people's lives. However, in the prior art, when users configure the network for terminal devices, they basically need to manually enter the network password (such as the WiFi password). When the number of terminal devices is large, it is very cumbersome to manually enter the network password for each terminal device. In addition, some terminal devices do not have buttons or even display screens, and cannot connect to the network by manually entering the network password, which brings inconvenience to users. In addition, in the prior art, when configuring the network, the network configuration is basically performed one device at a time, and the network configuration efficiency is low.

[0025] In order to solve the problems in the prior art, the present embodiment provides a terminal device network configuration method. During specific implementation, the present embodiment can obtain the power-on record information of the device to be configured, and determine whether the working mode of the device to be configured is in the network configuration mode based on the power-on record information of the device to be configured. If it is in the network configuration mode, it depends on whether the network configuration information can be obtained, and then the network configuration operation is performed according to the network configuration information, thereby eliminating the need for users to manually enter password information and other operations, thereby providing convenience for users.

[0026] For example, if the user needs to configure the network for the smart refrigerator, the power-on record information of the smart refrigerator must be obtained first, and then the working mode of the smart refrigerator must be determined based on the power-on record information. Next, it is determined whether the working mode of the smart refrigerator is the network configuration mode. If the working mode of the smart refrigerator is the network configuration mode, the network configuration information is obtained, and then the network configuration operation is performed based on the network configuration information, so that the network configuration can be performed without the user manually inputting any information, which facilitates the rapid network configuration. In addition, if the network configuration devices that need to be configured are not only smart refrigerators, but also smart TVs, smart air conditioners and other devices, in this example, the power-on record information of the smart refrigerators, smart air conditioners and smart TVs can also be obtained respectively, and then the working modes of the smart refrigerators, smart air conditioners and smart TVs can be determined based on the power-on record information. If the working mode of any of the smart refrigerators, smart air conditioners and smart TVs is the network configuration mode, the network configuration information can be obtained, and then sent to the device whose working mode is the network configuration mode, so that the device uses the network configuration information to perform the network configuration operation. It can be seen that even if there are multiple devices to be networked, this embodiment still does not require the user to manually enter any password information, and network configuration can also be quickly implemented, thereby improving network configuration efficiency.

[0027] Exemplary Methods

[0028] The terminal device network configuration method in this embodiment can be applied to the terminal device. Figure 1As shown in , the terminal device network configuration method includes the following steps:

[0029] Step S100: Obtain power-on record information of the device to be networked.

[0030] What is to be achieved in this embodiment is to avoid the traditional method of user inputting passwords when configuring the network for the terminal device, so as to improve the efficiency of network configuration. To this end, this embodiment analyzes the power-on record information of the network device to be configured, so as to implement the subsequent network configuration operation according to the power-on record information. Since in the actual use of the terminal device, if a terminal device is continuously powered on several times in a short period of time, it means that the terminal device is the device that the user wants to use. Before the existing terminal device is used, the first thing to do is to connect the terminal device to the network. To this end, this embodiment can obtain the power-on record information of the network device to be configured, and the power-on record information includes the number of power-ons of the network device to be configured, the interval time between the current power-on and the last power-on, and the number of power-ons. According to these power-on record information, the network device to be configured can be analyzed, and then it can be determined whether the network device to be configured is the device that the user wants to use. If it is the device that the user wants to use, the operation of configuring the network for the device can be performed.

[0031] In one implementation, Figure 2 As shown in , step S100 specifically includes the following steps:

[0032] Step S101, obtaining power-on time information of the device to be networked;

[0033] Step S102: According to the power-on time information, the number of consecutive power-ons of the network-to-be-connected device within a preset time period is obtained, and the number of consecutive power-ons is used as power-on record information.

[0034] During specific implementation, in order to obtain the power-on record information of the network device to be configured, this embodiment can first obtain the power-on time information of the network device to be configured, and the power-on time information is the time information of each power-on of the network device to be configured. Therefore, according to the power-on time information, the starting power-on time and the current power-on time of the network device to be configured can be determined. The starting power-on time represents the time when the network device to be configured is powered on for the first time, and the current power-on time represents the time when the network device to be configured is powered on this time. Then, after obtaining the starting power-on time and the current power-on time of the network device to be configured, the power-on time interval of the network device to be configured can be determined according to the starting power-on time and the current power-on time. The power-on time interval can represent the interval between the time when the network device to be configured is powered on this time and the time when the power is started. And what needs to be judged in this embodiment is whether the network device to be configured has multiple consecutive power-on records in a short period of time. Therefore, this embodiment can compare the power-on time interval with a preset duration (such as 1 minute) to determine whether the power-on time interval is within the preset duration. If the power-on time interval is within the preset duration, it means that the network device to be configured has a power-on record in a relatively short period of time. In actual situations, only when the network device to be configured has multiple power-on records in a relatively short period of time can it be considered that the network device to be configured is the device that the user wants to use. Therefore, when the power-on time interval is within the preset duration, this embodiment starts to obtain the number of consecutive power-ons of the network device to be configured within the power-on time interval. The number of consecutive power-ons is the power-on record information, so as to determine the working mode of the network device to be configured based on the number of power-ons. In this embodiment, after determining the power-on time interval of the device to be configured based on the initial power-on time and the current power-on time, if the power-on time interval is greater than the preset duration, it means that the device to be configured does not have a power-on record in a short period of time, that is, the power-on interval is too long. Therefore, it cannot be determined that the device to be configured is the device that the user wants to use. At this time, there is no need to perform network configuration operations for the device to be configured, and the power-on record information of the device to be configured can be re-obtained so that analysis can be started when the power-on record information of the device to be configured meets the requirements.

[0035] Of course, when the network equipment to be configured obtains the power-on record information, it can add 1 to the number of consecutive power-on times each time it obtains a power-on record, and then judge whether the power-on interval between the current power-on time and the starting power-on time is less than the preset time. If the power-on interval is less than the preset time, the number of consecutive power-ons is obtained. If the power-on interval is greater than the preset time, it means that the power-on record does not meet the requirements, so the previous operation of adding 1 to the number of consecutive power-ons will be cancelled.

[0036] For example, when analyzing the power-on record information of the smart refrigerator, this embodiment first obtains the power-on time information of the smart refrigerator, and then determines the starting power-on time and the current power-on time according to the power-on time information, and calculates the power-on time interval, such as the calculated power-on time interval is 40 seconds. Then, the power-on time interval is compared with the preset time length, such as the preset time length is 1 minute, so it can be obtained that the power-on time interval is within the preset time length, indicating that the smart refrigerator has a power-on record in a shorter time. Therefore, the number of times the smart refrigerator is powered on within the power-on time interval (i.e., 40 seconds) can be obtained, and the acquisition of the power-on record information of the smart refrigerator is completed.

[0037] Of course, when the network equipment to be configured obtains the power-on record information, it can add 1 to the number of consecutive power-on times each time it obtains a power-on record, and then judge whether the power-on interval between the current power-on time and the starting power-on time is less than the preset time. If the power-on interval is less than the preset time, the number of consecutive power-ons is obtained. If the power-on interval is greater than the preset time, it means that the power-on record does not meet the requirements, so the previous operation of adding 1 to the number of consecutive power-ons will be cancelled.

[0038] For example, when analyzing the power-on record information of a smart refrigerator, when the smart refrigerator is powered on, the number of consecutive power-ons of the smart refrigerator (the original number of consecutive power-ons is 2 times) will be increased by 1, and the number of consecutive power-ons will be 3 times. Then the current power-on time and the starting power-on time are obtained, and it is determined whether the power-on interval between the current power-on time and the starting power-on time is less than 1 minute. If the power-on time interval (such as 40 seconds) is less than 1 minute, the number of consecutive power-ons is 3 times. If the power-on time interval (such as 40 seconds) is greater than 1 minute, the number of consecutive power-ons is still 2 times.

[0039] Step S200: Determine the working mode of the device to be networked according to the power-on record information.

[0040] After obtaining the power-on record information of the network device to be configured, this embodiment can determine the working mode of the network device to be configured according to the power-on record information. In actual use, when the power-on record information of a network device to be configured meets the requirements, it can be indicated that the network device to be configured is the device that the user wants to use, and the network device to be configured will enter the corresponding working mode, thereby entering the network configuration mode. In this embodiment, the working mode of the network device to be configured refers to the operating mode entered after the power-on record information of the network device to be configured meets the requirements, such as the standby mode or the network configuration mode.

[0041] In one implementation, Figure 3 As shown, step S200 specifically includes the following steps:

[0042] Step S201, comparing the number of consecutive power-on times with a preset power-on times threshold;

[0043] Step S202: If the number of consecutive power-on times is greater than the power-on times threshold, it is determined that the working mode of the device to be networked is the network distribution mode.

[0044] In specific implementation, since the network device to be configured has a power-on record in a short time (i.e., the above-mentioned power-on time interval) during actual use, and the number of power-ons in the short time is multiple, it can be reflected that the network device to be configured is the device that the user wants to use, so the network device to be configured can be controlled to enter the network configuration mode, that is, the working mode of the network device to be configured is adjusted to the network configuration mode. To this end, after obtaining the number of consecutive power-ons of the network device to be configured, this embodiment compares the number of consecutive power-ons with a preset power-on threshold (e.g., 2 times). If the number of consecutive power-ons is greater than the power-on threshold, it means that the network device to be configured is the device that the user wants to use, so the network device to be configured will enter the network configuration mode, so it can be determined that the working mode of the network device to be configured is the network configuration mode. In this embodiment, when the working mode of the network device to be configured is the network configuration mode, the user can also be informed by the flashing indicator light on the network device to be configured. If the number of consecutive power-on times is not greater than the power-on times threshold, it means that the network device to be configured is not the device that the user wants to use, so the network device to be configured will not enter the network configuration mode, and the network device to be configured only needs to maintain the original working mode. In addition, after comparing the number of consecutive power-on times with the preset power-on times threshold, if the number of consecutive power-on times is less than the power-on times threshold, the embodiment will re-execute the step of obtaining the number of consecutive power-on times of the network device to be configured within the preset time length according to the power-on time information. Of course, when it is determined that the working mode of the network device to be configured is the network configuration mode, the embodiment will reset the obtained number of consecutive power-on times to zero.

[0045] For example, if the number of consecutive power-on times of the smart refrigerator within the power-on time interval is 3 times, it can be concluded that the number of consecutive power-on times of the smart refrigerator is greater than the preset power-on threshold (2 times), which means that the smart refrigerator is the device that the user wants to use, so it is necessary to control the smart refrigerator to enter the network distribution mode. Therefore, it can be determined that the working mode of the smart refrigerator is the network distribution mode.

[0046] Step S300: If the working mode is the network distribution mode, obtain network distribution information and perform network distribution operations according to the network distribution information.

[0047] In this embodiment, if it is determined that the working mode of the network device to be configured is the network configuration mode, the network device to be configured enters the network configuration stage. When configuring the network, this embodiment will first obtain the network configuration information, and the network configuration information includes the network address, network connection password information, etc. Therefore, after obtaining the network configuration information, this embodiment sends the network configuration information to the network device to be configured, so that the network device to be configured performs a wireless network connection according to the network configuration information, thereby eliminating the need for the user to input any network configuration information on the network device to be configured, which provides convenience for the user.

[0048] In one implementation, Figure 4 As shown in , step S300 specifically includes the following steps:

[0049] Step S301: Obtain network configuration information sent by a gateway device;

[0050] Step S302: decrypt the network configuration information to obtain network connection information, which includes network address information and network password information;

[0051] Step S303: Connect to a gateway device corresponding to the network connection information according to the network connection information.

[0052] In the specific implementation, in this embodiment, if it is determined that the working mode of the network device to be configured is in the network configuration mode, the network configuration operation is started. Specifically, when the network configuration control is performed on the network device to be configured, the network configuration information can be obtained based on the networked device, so that the network configuration can be realized based on the network configuration information, or the network configuration information sent by the gateway device in the form of broadcast information can be obtained, or the network configuration information pre-stored in the cloud server can be obtained. Specifically, after the network configuration information is obtained, the network configuration information of the network device to be configured in the network configuration mode will be decrypted to obtain the network connection information, and the network connection information includes the wireless network address information and the network password information. Then the network device to be configured can be configured according to the network connection information to connect to the gateway device corresponding to the network connection information. It can be seen that when the network device to be configured in this embodiment is configured, it is not necessary to enter any network password information in the network device to be configured. As long as the network configuration information is obtained, the network configuration can be performed according to the network configuration information. When the network device to be configured is successfully connected to the gateway device, the user can be informed by the flashing indicator light on the network device to be configured in this embodiment.

[0053] When the network configuration of the device to be configured is completed, the device to be configured is bound to the gateway device according to the device information of the device to be configured. In specific implementation, this embodiment can obtain the device information of the device to be configured from the cloud server, and then obtain the device ID, physical address and other information from the device information, and then bind the device ID and physical address and other information to the gateway device, so that the device to be configured can be directly connected to the gateway device when the network connection is made next time, thereby realizing automatic network configuration. When the binding is completed, the user can be notified that the binding is successful. In addition, this embodiment can also copy and back up the device information of all bound terminal devices in the gateway device to the cloud server. When the gateway device needs to be replaced, this embodiment can download the device information stored in the gateway device before the replacement from the cloud server, and synchronize it to the replaced gateway device to ensure that all terminal devices can be connected to the wireless network normally.

[0054] In one implementation, this embodiment also provides an embodiment of a specific application of the terminal device network configuration method of this embodiment. In this example, the device to be configured is a smart refrigerator, including the following steps:

[0055] Step 10: When the smart refrigerator is powered on for the first time, the starting power-on time time0 is recorded.

[0056] Step 20: The smart refrigerator is powered on again, and the starting power-on time timeN is recorded.

[0057] Step 30, determine whether the power-on interval between the start power-on time time0 and the start power-on time timeN is less than 1 minute. If yes, execute step 40, if not, execute step 20.

[0058] Step 40: determine whether the number of consecutive power-on times of the smart refrigerator within the power-on interval is greater than 2. If yes, execute step 50; if no, execute step 30.

[0059] Step 50: The smart refrigerator enters the network distribution mode.

[0060] Step 60: Obtain network configuration information and connect to the gateway device.

[0061] In summary, this embodiment can obtain the power-on record information of the device to be configured, and determine whether the working mode of the device to be configured is in the network configuration mode based on the power-on record information of the device to be configured. If it is in the network configuration mode, it depends on whether the network configuration information can be obtained, and then the network configuration operation is performed according to the network configuration information, thereby eliminating the need for users to manually enter password information and other operations, thereby providing convenience for users.

[0062] Exemplary Devices

[0063] like Figure 5 As shown in , an embodiment of the present invention provides a terminal equipment network configuration device, the device comprising: an acquisition module 10, a determination module 20, and an execution module 30, wherein:

[0064] An acquisition module 10 is used to acquire power-on record information of the device to be networked;

[0065] The determination module 20 is used to determine the working mode of the device to be networked according to the power-on record information;

[0066] The execution module 30 is used to obtain network configuration information if the working mode is the network configuration mode, and perform network configuration operations according to the network configuration information.

[0067] In one implementation, the acquisition module 10 includes:

[0068] A power-on time information acquisition unit, used to acquire the power-on time information of the device to be networked;

[0069] The continuous power-on times acquisition unit is used to acquire the continuous power-on times of the network device to be configured within a preset time period according to the power-on time information, and use the continuous power-on times as the power-on record information.

[0070] In one implementation, the continuous power-on times acquisition unit includes:

[0071] A power-on time determination subunit, used to determine the starting power-on time and the current power-on time of the device to be networked according to the power-on time information;

[0072] The time interval determination subunit is used to determine the power-on time interval of the network configuration device according to the starting power-on time and the current power-on time;

[0073] The continuous power-on times determining subunit is used to obtain the continuous power-on times of the device to be configured within the power-on time interval if the power-on time interval is less than a preset time length.

[0074] In one implementation, the continuous power-on times acquisition unit further includes:

[0075] The power-on time re-acquisition subunit re-executes the step of acquiring the power-on time information of the network-to-be-provisioned device if the power-on time interval is greater than a preset duration.

[0076] In one implementation, the working mode determination module 20 includes:

[0077] A power-on times comparison unit, used for comparing the number of consecutive power-on times with a preset power-on times threshold;

[0078] The network configuration mode determination unit is used to determine that the working mode of the device to be configured is the network configuration mode if the number of consecutive power-on times is greater than a power-on times threshold.

[0079] In one implementation, the working mode determination module 20 further includes:

[0080] The power-on times re-acquisition subunit is used to re-execute the step of acquiring the number of consecutive power-ons of the network-to-be-provisioned device within a preset time period according to the power-on time information if the number of consecutive power-ons is less than the power-on times threshold.

[0081] In one implementation, the network configuration operation execution module 30 includes:

[0082] A network configuration information acquisition unit, used to acquire the network configuration information sent by the gateway device;

[0083] A network configuration information processing unit, used to decrypt the network configuration information to obtain network connection information, where the network connection information includes network address information and network password information;

[0084] The network connection execution unit is used to connect to the gateway device corresponding to the network connection information according to the network connection information.

[0085] Based on the above embodiments, the present invention further provides a terminal device, whose principle block diagram can be shown as follows: Figure 6 As shown. The terminal device includes a processor, a memory, a network interface, a display screen, and a temperature sensor connected through a system bus. Among them, the processor of the terminal device is used to provide computing and control capabilities. The memory of the terminal device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the terminal device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a terminal device network configuration method is implemented. The display screen of the terminal device can be a liquid crystal display screen or an electronic ink display screen, and the temperature sensor of the terminal device is pre-set inside the terminal device to detect the operating temperature of the internal device.

[0086] Those skilled in the art will understand that Figure 6 The principle block diagram shown in the figure is only a block diagram of a partial structure related to the scheme of the present invention, and does not constitute a limitation on the terminal device to which the scheme of the present invention is applied. The specific terminal device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0087] In one embodiment, a terminal device is provided. The terminal device includes a memory, a processor, and a batch network configuration program of the terminal device stored in the memory and executable on the processor. When the processor executes the batch network configuration program of the terminal device, the following operation instructions are implemented:

[0088] Obtain the power-on record information of the device to be configured;

[0089] Determine the working mode of the equipment to be networked based on the power-on record information;

[0090] If the working mode is the network distribution mode, the network distribution information is obtained and the network distribution operation is performed according to the network distribution information.

[0091] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided by the present invention can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0092] In summary, the present invention discloses a terminal equipment network configuration method, device, terminal equipment and storage medium, the method comprising: obtaining power-on record information of the equipment to be configured; determining the working mode of the equipment to be configured according to the power-on record information; if the working mode is the network configuration mode, obtaining the network configuration information, and performing the network configuration operation according to the network configuration information. The present invention can obtain the power-on record information of the equipment to be configured, and determine whether the working mode of the equipment to be configured is in the network configuration mode based on the power-on record information of the equipment to be configured. If it is in the network configuration mode, it can be determined whether the network configuration information can be obtained, and then the network configuration operation is performed according to the network configuration information, thereby eliminating the need for the user to manually enter password information and other operations, which provides convenience for the user.

[0093] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A terminal device network configuration method, characterized in that: include: Obtain the power-on record information of the device to be configured; Determine the working mode of the device to be networked according to the power-on record information; If the working mode is the network distribution mode, obtaining network distribution information, and performing network distribution operations according to the network distribution information; The obtaining of power-on record information of the network device to be configured includes: obtaining power-on time information of the network device to be configured; obtaining the number of consecutive power-ons of the network device to be configured within a preset time period according to the power-on time information, and using the number of consecutive power-ons as the power-on record information; The obtaining, according to the power-on time information, the number of consecutive power-ons of the network device to be configured within a preset time length includes: determining the starting power-on time and the current power-on time of the network device to be configured according to the power-on time information; determining the power-on time interval of the network device to be configured according to the starting power-on time and the current power-on time; if the power-on time interval is less than the preset time length, obtaining the number of consecutive power-ons of the network device to be configured within the power-on time interval; Determining the working mode of the device to be networked according to the power-on record information includes: comparing the number of consecutive power-ons with a preset power-on threshold; if the number of consecutive power-ons is greater than the power-on threshold, determining that the working mode of the device to be networked is a network distribution mode; After the network configuration is completed, the device to be configured is bound to the gateway device according to the device information of the device to be configured, so that the device to be configured can be directly connected to the gateway device when the network connection is made next time; When the binding is completed, the device information of all bound terminal devices in the gateway device is copied and backed up to the cloud server, so that after the gateway device is replaced, it can be downloaded from the cloud server and synchronized to the replaced gateway device to ensure that all terminal devices are normally connected to the wireless network.

2. The method according to claim 1, characterized in that: After determining the power-on time interval of the to-be-connected network device according to the starting power-on time and the current power-on time, the method further includes: If the power-on time interval is greater than the preset time length, the step of obtaining the power-on time information of the device to be networked is performed again.

3. The method according to claim 1, characterized in that: After comparing the number of consecutive power-on times with a preset power-on times threshold, the method further includes: If the number of consecutive power-on times is less than the power-on times threshold, the step of obtaining the number of consecutive power-on times of the to-be-connected network device within a preset time period according to the power-on time information is performed again.

4. The method according to claim 1, characterized in that: The obtaining of network configuration information and performing network configuration operations according to the network configuration information includes: Get the network configuration information sent by the gateway device; Decrypting the network configuration information to obtain network connection information, wherein the network connection information includes network address information and network password information; According to the network connection information, a gateway device corresponding to the network connection information is connected.

5. A terminal equipment network distribution device, characterized in that: include: An acquisition module is used to obtain power-on record information of the device to be configured; A determination module, used to determine the working mode of the device to be networked according to the power-on record information; An execution module, configured to obtain network configuration information if the working mode is a network configuration mode, and perform a network configuration operation according to the network configuration information; The acquisition module includes a power-on time information acquisition unit and a continuous power-on number acquisition unit, wherein the power-on time information acquisition unit is used to acquire the power-on time information of the network device to be configured; the continuous power-on number acquisition unit is used to acquire the continuous power-on number of the network device to be configured within a preset time period according to the power-on time information, and use the continuous power-on number as the power-on record information; The continuous power-on times acquisition unit includes a power-on time determination subunit, a time interval determination subunit and a continuous power-on times determination subunit, wherein the power-on time determination subunit is used to determine the starting power-on time and the current power-on time of the network-to-be-configured device according to the power-on time information; the time interval determination subunit is used to determine the power-on time interval of the network-to-be-configured device according to the starting power-on time and the current power-on time; the continuous power-on times determination subunit is used to obtain the continuous power-on times of the network-to-be-configured device within the power-on time interval if the power-on time interval is less than a preset time length; The determination module includes a power-on times comparison unit and a network distribution mode determination unit, wherein the power-on times comparison unit is used to compare the continuous power-on times with a preset power-on times threshold; the network distribution mode determination unit is used to determine that the working mode of the to-be-connected network device is the network distribution mode if the continuous power-on times are greater than the power-on times threshold; The device is also used to bind the device to be configured with a gateway device according to the device information of the device to be configured after the network configuration is completed, so that the device to be configured is directly connected to the gateway device when the network connection is made next time; And, when the binding is completed, the device information of all bound terminal devices in the gateway device is copied and backed up to the cloud server, so that after the gateway device is replaced, it can be downloaded from the cloud server and synchronized to the replaced gateway device to ensure that all terminal devices are normally connected to the wireless network.

6. A terminal device, characterized in that: The terminal device includes a memory, a processor, and a terminal device network configuration program stored in the memory and executable on the processor. When the processor executes the terminal device network configuration program, the steps of the terminal device network configuration method as described in any one of claims 1 to 4 are implemented.

7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a terminal device network configuration program, and when the terminal device network configuration program is executed by a processor, the steps of the terminal device network configuration method according to any one of claims 1 to 4 are implemented.

Citation Information

Patent Citations

  • Network configuration method and system, intelligent terminal and Internet of Things equipment

    CN111586591A

  • ZigBee equipment networking method and related equipment

    CN111970723A