Movatterモバイル変換


[0]ホーム

URL:


CN113573384A - A terminal and terminal network distribution method, device and storage medium - Google Patents

A terminal and terminal network distribution method, device and storage medium
Download PDF

Info

Publication number
CN113573384A
CN113573384ACN202110893273.3ACN202110893273ACN113573384ACN 113573384 ACN113573384 ACN 113573384ACN 202110893273 ACN202110893273 ACN 202110893273ACN 113573384 ACN113573384 ACN 113573384A
Authority
CN
China
Prior art keywords
terminal
network
information
distribution
distribution network
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110893273.3A
Other languages
Chinese (zh)
Inventor
杨克勤
王一蒙
卢飞翔
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Tuya Information Technology Co Ltd
Original Assignee
Hangzhou Tuya Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Tuya Information Technology Co LtdfiledCriticalHangzhou Tuya Information Technology Co Ltd
Priority to CN202110893273.3ApriorityCriticalpatent/CN113573384A/en
Publication of CN113573384ApublicationCriticalpatent/CN113573384A/en
Pendinglegal-statusCriticalCurrent

Links

Images

Classifications

Landscapes

Abstract

Translated fromChinese

本申请公开了一种终端配网方法,应用于已配网的目标终端,该方法包括以下步骤:在接收到配网指令时,发出第一配网广播包;接收未配网终端基于第一配网广播包返回的终端信息;根据未配网终端的终端信息,确定待配网终端集合;向待配网终端集合中的各待配网终端发送第一配网信息,以使各待配网终端基于第一配网信息执行配网操作。应用本申请所提供的技术方案,通过已配网的目标终端与待配网终端集合中的每个待配网终端交互,可以同时触发多个待配网终端执行配网操作,不需要用户手动在待配网终端中逐一输入配网信息,简化了配网操作过程,提高了配网效率。本申请还公开了一种终端及终端配网装置、存储介质,具有相应技术效果。

Figure 202110893273

The present application discloses a terminal network distribution method, which is applied to a target terminal that has been configured with a network. The method includes the following steps: when receiving a network distribution instruction, sending a first distribution network broadcast packet; The terminal information returned by the distribution network broadcast packet; according to the terminal information of the terminal that has not been allocated to the network, the set of terminals to be allocated is determined; the first network allocation information is sent to each terminal to be allocated in the terminal set to be allocated, so that the The network terminal performs a network distribution operation based on the first network distribution information. By applying the technical solution provided by the present application, through the interaction between the target terminal that has been configured and each terminal to be configured in the terminal set to be configured, multiple terminals to be configured can be triggered to perform network distribution operations at the same time, without the need for users to manually The network distribution information is input one by one in the terminal to be distributed, which simplifies the operation process of the distribution network and improves the efficiency of the distribution network. The present application also discloses a terminal, a terminal network distribution device, and a storage medium, which have corresponding technical effects.

Figure 202110893273

Description

Terminal, terminal network distribution method and device, and storage medium
Technical Field
The present application relates to the field of network technologies, and in particular, to a terminal, a terminal network distribution method, an apparatus, and a storage medium.
Background
Nowadays, the internet is developed more and more rapidly, and brings convenience to the work and life of people. The intelligent terminal with the WiFi module can be added into a local area network established by a WiFi (wireless communication technology) router through a distribution network, so that the intelligent terminal is added into the Internet to provide services for users, and the users can obtain Internet resources.
At present, if a plurality of terminals needing distribution networks exist, a user inputs distribution network information into each terminal one by one, so that each terminal executes distribution network operation.
This approach has certain disadvantages. Firstly, the manual input process of the user is complicated, if the input is wrong, the network distribution of the terminal is failed, and the network distribution can be successfully completed only by inputting the input for many times by the user. Secondly, the user inputs the distribution network information in each terminal needing distribution network one by one, and the distribution network information is sequentially input, so that the distribution network efficiency is low.
Disclosure of Invention
The application aims to provide a terminal, a terminal network distribution method, a terminal network distribution device and a storage medium, so that the operation process of a network distribution is simplified, and the efficiency of the network distribution is improved.
In order to solve the technical problem, the application provides the following technical scheme:
a terminal network distribution method is applied to a target terminal which is already distributed, and comprises the following steps:
when a distribution network instruction is received, a first distribution network broadcast packet is sent out;
receiving terminal information returned by terminals without distribution networks based on the first distribution network broadcast packet;
determining a terminal set of a network to be distributed according to the terminal information of the terminals not distributed with the network;
and sending first distribution network information to each terminal to be distributed in the terminal set to be distributed so that each terminal to be distributed executes distribution network operation based on the first distribution network information.
In a specific embodiment of the present application, after receiving terminal information returned by a terminal not connected with a network based on the first distribution network broadcast packet, and before determining a set of terminals to be distributed according to the terminal information of the terminal not connected with the network, the method further includes:
for each terminal which does not have a distribution network and returns terminal information, authenticating the terminal which does not have the distribution network at present according to the terminal information of the terminal which does not have the distribution network at present;
and if the authentication is not passed, discarding the terminal information of the current distribution network terminal which is not distributed.
In a specific embodiment of the present application, the terminal information includes a random number, and after the authentication is performed on the current distribution network-unconnected terminal, the method further includes:
if the authentication is passed, sending verification information to the current terminal without the distribution network, wherein the verification information carries a random number included in the terminal information of the current terminal without the distribution network;
if the confirmation information returned by the current non-distribution network terminal based on the verification information is received, the terminal information of the current non-distribution network terminal is reserved, and otherwise, the terminal information of the current non-distribution network terminal is discarded.
In a specific embodiment of the present application, the determining, according to the terminal information of the terminal not connected with the network, a set of terminals to be connected with the network includes:
reporting the terminal information of the terminal without the distribution network to an instruction initiator;
and determining a terminal set of the network to be distributed according to the selection information of the instruction initiator.
In a specific embodiment of the present application, after the sending the first distribution network information to each terminal to be distributed in the terminal set to be distributed, the method further includes:
and aiming at each terminal to be distributed in the terminal set to be distributed, if the distribution network completion response information returned by the current terminal to be distributed is not received within the set time length, repeatedly sending first distribution network information to the current terminal to be distributed.
In one embodiment of the present application, the method further includes:
under the condition that the wireless connection of the target terminal is disconnected, if a second distribution network broadcast packet is detected, reporting the terminal information of the target terminal to an initiator of the second distribution network broadcast packet so that the initiator of the second distribution network broadcast packet authenticates the target terminal, and sending the second distribution network information to the target terminal after the authentication is passed;
and executing distribution network operation based on the received second distribution network information.
In one embodiment of the present application, the method further includes:
and locking a wireless network channel under the condition that the second distribution network broadcast packet is detected.
A terminal distribution network device is applied to a distributed target terminal and comprises:
the broadcast module is used for sending out a first distribution network broadcast packet when receiving a distribution network instruction;
the information receiving module is used for receiving terminal information returned by the terminals without the distribution network based on the first distribution network broadcast packet;
the network terminal to be distributed determining module is used for determining a network terminal set to be distributed according to the terminal information of the terminals not distributed;
and the distribution network control module is used for sending first distribution network information to each terminal to be distributed in the terminal set to be distributed so that each terminal to be distributed executes distribution network operation based on the first distribution network information.
A terminal, comprising:
a memory for storing a computer program;
and the processor is used for realizing the steps of the terminal network distribution method when the computer program is executed.
A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the steps of the terminal network distribution method according to any of the above.
By applying the technical scheme provided by the embodiment of the application, when a target terminal of a distributed network receives a distribution network instruction, a first distribution network broadcast packet can be sent out, a terminal set to be distributed can be determined according to terminal information returned by a terminal which is not distributed and is based on the first distribution network broadcast packet, and first distribution network information is sent to each terminal to be distributed in the terminal set to be distributed, so that each terminal to be distributed can execute distribution network operation based on the first distribution network information, and can be added into a local area network established by a WiFi router so as to be added into the Internet. The target terminals of the distributed network interact with each network terminal to be distributed in the network terminal set to be distributed, so that a plurality of network terminals to be distributed can be triggered to execute network distribution operation at the same time, a user does not need to manually input network distribution information in the network terminals to be distributed one by one, the network distribution operation process is simplified, and the network distribution efficiency is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart illustrating an implementation of a network distribution method for a terminal in an embodiment of the present application;
fig. 2 is a schematic structural diagram of a terminal distribution network device in an embodiment of the present application;
fig. 3 is a schematic structural diagram of a terminal in an embodiment of the present application.
Detailed Description
The core of the application is to provide a terminal network distribution method, and the method can be applied to a target terminal of a distributed network. The target terminal can be any one of the terminals of the current distributed network.
The target terminal can be installed with application programs such as a distribution network client and the like, and a user can control the target terminal to execute distribution network operation by inputting distribution network information such as an SSID (Service Set Identifier) and a password of a WiFi (wireless fidelity) router at the distribution network client, so that the target terminal is added into a local area network established by the WiFi router and then added into the Internet.
The method comprises the steps that when a distribution network command is received by a target terminal of a distributed network, a first distribution network broadcast packet can be sent out, a terminal set to be distributed can be determined according to terminal information returned by a terminal which is not distributed and is based on the first distribution network broadcast packet, and first distribution network information is sent to each terminal to be distributed in the terminal set to be distributed, so that each terminal to be distributed can execute distribution network operation based on the first distribution network information, and can be added into a local area network established by a WiFi router so as to be added into the Internet. The target terminals of the distributed network interact with each network terminal to be distributed in the network terminal set to be distributed, so that a plurality of network terminals to be distributed can be triggered to execute network distribution operation at the same time, a user does not need to manually input network distribution information in the network terminals to be distributed one by one, the network distribution operation process is simplified, and the network distribution efficiency is improved.
In order that those skilled in the art will better understand the disclosure, the following detailed description will be given with reference to the accompanying drawings. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Referring to fig. 1, an implementation flowchart of a terminal network distribution method provided in the embodiment of the present application is shown, where the method may include the following steps:
s110: and when the distribution network instruction is received, sending a first distribution network broadcast packet.
In the embodiment of the application, the target terminal is a distributed network terminal. When the user has the distribution network requirement on other terminals without the distribution network, a distribution network instruction can be sent to the target terminal. The distribution network instruction can carry information such as an account number, a password and the like.
After receiving the distribution network instruction, the target terminal can perform validity judgment on the distribution network instruction based on information carried in the distribution network instruction, for example, validity judgment is performed through an account number and a password. And if the distribution network command is judged to be legal, a first distribution network broadcast packet can be sent out. If the distribution network instruction is judged to be illegal, illegal prompt information can be returned to the user, so that the distribution network instruction is sent out after the user inputs information such as an account number, a password and the like again.
The first distribution network broadcast packet sent by the target terminal may be a beacon (a low-power-consumption bluetooth technology) packet.
S120: and receiving terminal information returned by the terminals without the distribution network based on the first distribution network broadcast packet.
And the target terminal sends out a first distribution network broadcast packet when receiving the distribution network instruction. If the non-distribution network terminal exists in the current environment, the non-distribution network terminal can return terminal information to the target terminal based on the first distribution network broadcast packet after detecting the first distribution network broadcast packet. The terminal information may be information such as a Media Access Control Address (MAC) Address and a serial number of the terminal.
And each non-distribution network terminal can lock a wireless network channel under the condition of detecting the first distribution network broadcast packet. To improve the reliability and stability of the connection.
S130: and determining a set of terminals to be distributed according to the terminal information of the terminals not distributed with the network.
After the target terminal receives terminal information returned by the terminal without the distribution network based on the first distribution network broadcast packet, the target terminal can determine a set of terminals to be distributed according to the terminal information of the terminal without the distribution network. If the target terminal can determine the existing terminals which are not connected with the network according to the received terminal information, and all the determined terminals which are not connected with the network are added into the terminal set to be connected with the network. Or, the target terminal may select a part of the terminals without distribution network from the determined terminals without distribution network to be added to the terminal set to be distributed according to a certain selection rule, for example, according to the terminal type.
S140: and sending first distribution network information to each terminal to be distributed in the terminal set to be distributed so that each terminal to be distributed executes distribution network operation based on the first distribution network information.
After determining the terminal set to be configured, the target terminal may send first distribution network information to each terminal to be configured in the terminal set to be configured, where the first distribution network information may include an SSID, a password, and a user password of the WiFi router. After receiving the first distribution network information, each terminal to be configured can execute corresponding distribution network operation based on the first distribution network information to join in a local area network established by the WiFi router, so as to join in the internet.
By applying the method provided by the embodiment of the application, when a target terminal of a distributed network receives a distribution network instruction, a first distribution network broadcast packet can be sent out, a terminal set to be distributed can be determined according to terminal information returned by a terminal not distributed with the network based on the first distribution network broadcast packet, and the first distribution network information is sent to each terminal to be distributed in the terminal set to be distributed, so that each terminal to be distributed can execute distribution network operation based on the first distribution network information, and can be added into a local area network established by a WiFi router so as to be added into the Internet. The target terminals of the distributed network interact with each network terminal to be distributed in the network terminal set to be distributed, so that a plurality of network terminals to be distributed can be triggered to execute network distribution operation at the same time, a user does not need to manually input network distribution information in the network terminals to be distributed one by one, the network distribution operation process is simplified, and the network distribution efficiency is improved.
In an embodiment of the application, after receiving terminal information returned by a terminal not connected with a network based on a first distribution network broadcast packet and before determining a set of terminals to be distributed according to the terminal information of the terminal not connected with the network, the method may further include the following steps:
the method comprises the following steps: for each terminal which does not have a distribution network and returns terminal information, authenticating the terminal which does not have the distribution network currently according to the terminal information of the terminal which does not have the distribution network currently; if the authentication is not passed, executing the step two;
step two: and discarding the terminal information of the current terminal without the distribution network.
For convenience of description, the above two steps are combined for illustration.
In the embodiment of the application, after receiving the terminal information returned by the non-distribution network terminal based on the first distribution network broadcast packet, the target terminal can authenticate the current non-distribution network terminal according to the terminal information of the current non-distribution network terminal for each non-distribution network terminal returning the terminal information. Specifically, the authentication operation may be performed on the current terminal not in the distribution network based on a black and white list or the like obtained in advance by the terminal, so as to obtain an authentication result, or the terminal information of the current terminal not in the distribution network is reported to the authentication server, the authentication operation is performed on the current terminal not in the distribution network through the authentication server, and the authentication result is returned.
After the target terminal determines that the authentication of the current non-distribution network terminal is not passed, the terminal information of the current non-distribution network terminal can be discarded, and the terminal information of the current non-distribution network terminal is not retained. And if the authentication of the current distribution network terminal is determined to pass, the terminal information of the current distribution network terminal can be reserved.
The target terminal can return the authentication result to the current distribution network-unavailable terminal, and if the authentication result is that the authentication is not passed, the current distribution network-unavailable terminal can return the terminal information of the target terminal to the target terminal again so that the target terminal can authenticate the terminal again.
The current non-distribution network terminal is a non-distribution network terminal aimed by the current operation. The operation is executed for each non-distribution network terminal which returns the terminal information, the terminal information of the non-distribution network terminal which fails in authentication is discarded, effective terminal information can be obtained, and then a to-be-distributed network terminal set can be accurately determined according to the terminal information of the non-distribution network terminal.
In an embodiment of the application, the terminal information may include a random number, each terminal without distribution network may generate a random number after receiving the first distribution network broadcast packet, and the terminal information returned to the target terminal includes a corresponding random number. The random numbers included in the terminal information of different terminals not connected with the network are different. And aiming at each non-distribution network terminal returning the terminal information, after the current non-distribution network terminal is authenticated according to the terminal information of the current non-distribution network terminal, if the authentication is passed, sending verification information to the current non-distribution network terminal, wherein the verification information carries a random number included in the terminal information of the current non-distribution network terminal. That is, under the condition that the authentication of the current terminal without the distribution network is passed, the random number included in the terminal information of the current terminal without the distribution network is returned to the current terminal without the distribution network. The current non-distribution network terminal can compare the random number carried in the received verification information with the random number generated by the non-distribution network terminal, if the random number and the random number are consistent, the target terminal can be determined to be a legal distribution network terminal, confirmation information can be returned to the target terminal, and if the random number and the random number are not consistent, the target terminal can be determined not to be a legal distribution network terminal, cancellation information can be returned to the target terminal, or no information can be returned. And if the target terminal receives confirmation information returned by the current non-distribution network terminal based on the verification information, the terminal information of the current non-distribution network terminal is reserved so that the finally determined to-be-distributed network terminal set comprises the current non-distribution network terminal, otherwise, the terminal information of the current non-distribution network terminal is discarded so that the finally determined to-be-distributed network terminal set does not comprise the current non-distribution network terminal.
The target terminal can be verified in legality by the non-distribution network terminal through the verification information, and the safety of a distribution network is guaranteed.
In an embodiment of the present application, determining a terminal set to be configured according to terminal information of terminals not configured to be configured to a network may include the following steps:
the first step is as follows: reporting the terminal information of the terminals without the distribution network to an instruction initiator;
the second step is that: and determining a terminal set of the network to be distributed according to the selection information of the instruction initiator.
For convenience of description, the above two steps are combined for illustration.
In the embodiment of the application, after the target terminal receives the terminal information returned by the non-distribution network terminal based on the first distribution network broadcast packet, the terminal information of the non-distribution network terminal can be reported to the instruction initiator, such as a user sending a distribution network instruction. The terminal information of the terminals without the distribution network can be output in a list mode and the like.
The instruction initiator can select the terminal of the network to be distributed from the terminals of the non-distribution network according to the actual situation and return corresponding selection information to the target terminal.
The target terminal can determine a terminal set to be networked according to the selection information of the instruction initiator. The terminal set to be configured may include a plurality of terminals to be configured.
The terminal information of the terminals without the network distribution is reported to the instruction initiator, and the instruction initiator selects the terminals to be distributed, so that an accurate terminal set to be distributed can be determined.
In an embodiment of the application, among a plurality of distribution network broadcast packets which are not received by a distribution network terminal and return terminal information, a broadcast signal of a target terminal is strongest.
In practical application, a target terminal of a distributed network sends out a first distribution network broadcast packet, and if a plurality of distributed network terminals including the target terminal exist at present, each distributed network terminal may send out the first distribution network broadcast packet when receiving a distribution network instruction. For each non-distribution network terminal, the non-distribution network terminal may receive a plurality of distribution network broadcast packets, and the non-distribution network terminal may select the distribution network terminal with the strongest broadcast signal to connect according to the strength of the broadcast signal, and return terminal information to the distribution network terminal with the strongest broadcast signal. Therefore, the connection reliability can be improved, and channel congestion caused by the connection of the same terminal without the distribution network by a plurality of terminals with the distribution network can be avoided.
In an embodiment of the application, after the first distribution network information is sent to each terminal to be distributed in the terminal set to be distributed, the method may further include the following steps:
and aiming at each terminal to be distributed in the terminal set to be distributed, if the distribution network completion response information returned by the current terminal to be distributed is not received within the set time length, repeatedly sending first distribution network information to the current terminal to be distributed.
In the embodiment of the application, after the target terminal sends the first distribution network information to each to-be-distributed terminal in the to-be-distributed terminal set, if each to-be-distributed terminal can receive the first distribution network information, the distribution network operation can be executed based on the first distribution network information, and corresponding distribution network completion response information is returned.
For each terminal to be configured in the terminal set to be configured, if the target terminal can receive the response information of completing the distribution network returned by the terminal to be configured currently, the success of the distribution network of the terminal to be configured currently is indicated, and if the response information of completing the distribution network returned by the terminal to be configured currently is not received within a set time, the terminal to be configured currently can be considered not to receive the first distribution network information, or the first distribution network information has a packet loss problem in the transmission process, so that the distribution network of the terminal to be configured currently fails, and under the condition, the first distribution network information can be repeatedly sent to the terminal to be configured currently, so that the success rate of the distribution network is improved. If the continuous sending times reach the set threshold, the prompt information aiming at the situation that the current terminal to be configured cannot be configured is returned to the instruction initiator. To facilitate the instruction initiator to check.
And the current network terminal to be configured is the network terminal to be configured for the current operation. And each terminal to be configured in the terminal set to be configured can execute the operation, so that the success rate of the distribution network is improved.
In the embodiment of the application, the target terminal and the terminal to be networked can interact through the WiFi management frame, WiFi connection does not need to be established, and communication can be more efficient.
In one embodiment of the present application, the method may further comprise the steps of:
the method comprises the following steps: under the condition that the wireless connection of the target terminal is disconnected, if a second distribution network broadcast packet is detected, reporting the terminal information of the target terminal to an initiator of the second distribution network broadcast packet so that the initiator of the second distribution network broadcast packet authenticates the target terminal, and sending the second distribution network information to the target terminal after the authentication is passed;
step two: and executing distribution network operation based on the received second distribution network information.
For convenience of description, the above two steps are combined for illustration.
In the embodiment of the application, the target terminal is a terminal already in a network, that is, a WiFi router is already configured and connected to the target terminal. In practical applications, the SSID or password modification may be performed periodically or aperiodically based on security considerations. And once the distribution network information of the WiFi router changes, the target terminal disconnects from the WiFi router. In this case, the WiFi router will send out the second distribution network broadcast packet.
Under the condition that the wireless connection of the target terminal is disconnected, if the second distribution network broadcast packet is detected, the terminal information of the target terminal can be reported to an initiator of the second distribution network broadcast packet, such as a WiFi router. Therefore, the initiator of the second distribution network broadcast packet can authenticate the target terminal. The authentication process may refer to the authentication process of the above embodiment, and is not described in detail. And after the authentication is passed, sending second distribution network information to the target terminal. The second distribution network information may include an updated SSID or password.
After the target terminal receives the second distribution network information, the distribution network operation can be executed based on the second distribution network information, so that the target terminal can be connected to the network again and be on-line.
In one embodiment of the application, the wireless network channel may be locked in the event that a second distribution network broadcast packet is detected. To improve the reliability and stability of the connection.
Corresponding to the above method embodiment, the present application further provides a terminal distribution network device, which is applied to a target terminal that has been distributed, and the terminal distribution network device described below and the terminal distribution network method described above may be referred to in a corresponding manner.
Referring to fig. 2, the apparatus may include the following modules:
thebroadcast module 210 is configured to send a first distribution network broadcast packet when receiving a distribution network instruction;
theinformation receiving module 220 is configured to receive terminal information returned by a terminal without a distribution network based on the first distribution network broadcast packet;
a network-to-be-distributedterminal determining module 230, configured to determine, according to terminal information of terminals not distributed with a network, a network-to-be-distributed terminal set;
and the distributionnetwork control module 240 is configured to send first distribution network information to each terminal to be distributed in the terminal set to be distributed, so that each terminal to be distributed executes distribution network operation based on the first distribution network information.
By applying the device provided by the embodiment of the application, when a target terminal of a distributed network receives a distribution network instruction, a first distribution network broadcast packet can be sent out, a terminal set to be distributed can be determined according to terminal information returned by a non-distribution network terminal based on the first distribution network broadcast packet, and first distribution network information is sent to each terminal to be distributed in the terminal set to be distributed, so that each terminal to be distributed can execute distribution network operation based on the first distribution network information, and can be added into a local area network established by a WiFi router so as to be added into the Internet. The target terminals of the distributed network interact with each network terminal to be distributed in the network terminal set to be distributed, so that a plurality of network terminals to be distributed can be triggered to execute network distribution operation at the same time, a user does not need to manually input network distribution information in the network terminals to be distributed one by one, the network distribution operation process is simplified, and the network distribution efficiency is improved.
In a specific implementation manner of the present application, the system further includes a terminal authentication module and an information processing module;
the terminal authentication module is used for authenticating the current non-distribution network terminal according to the terminal information of the current non-distribution network terminal aiming at each non-distribution network terminal returning the terminal information after receiving the terminal information returned by the non-distribution network terminal based on the first distribution network broadcast packet and before determining the set of the terminals to be distributed according to the terminal information of the non-distribution network terminal; if the authentication is not passed, triggering an information processing module;
and the information processing module is used for discarding the terminal information of the current terminal without the distribution network.
In a specific embodiment of the present application, the terminal information includes a random number, and further includes a verification module, configured to:
after the authentication is carried out on the current terminal without the distribution network, if the authentication is passed, the verification information is sent to the current terminal without the distribution network, and the verification information carries the random number included in the terminal information of the current terminal without the distribution network;
if the confirmation information returned by the current non-distribution network terminal based on the verification information is received, the terminal information of the current non-distribution network terminal is reserved, and otherwise, the terminal information of the current non-distribution network terminal is discarded.
In a specific embodiment of the present application, the to-be-configuredterminal determining module 230 is configured to:
reporting the terminal information of the terminals without the distribution network to an instruction initiator;
and determining a terminal set of the network to be distributed according to the selection information of the instruction initiator.
In a specific embodiment of the present application, in a plurality of distribution network broadcast packets received by a distribution network terminal that does not return terminal information, a broadcast signal of a target terminal is strongest.
In a specific embodiment of the present application, the system further includes an information repeat transmission control module, configured to:
after first distribution network information is sent to each terminal to be distributed in the terminal set to be distributed, if distribution network completion response information returned by the current terminal to be distributed is not received within a set time length for each terminal to be distributed in the terminal set to be distributed, the first distribution network information is repeatedly sent to the current terminal to be distributed.
In a specific embodiment of the present application, the distributionnetwork control module 240 is further configured to:
under the condition that the wireless connection of the target terminal is disconnected, if a second distribution network broadcast packet is detected, reporting the terminal information of the target terminal to an initiator of the second distribution network broadcast packet so that the initiator of the second distribution network broadcast packet authenticates the target terminal, and sending the second distribution network information to the target terminal after the authentication is passed;
and executing distribution network operation based on the received second distribution network information.
In an embodiment of the present application, the method further includes a channel locking module, configured to:
and locking the wireless network channel under the condition that the second distribution network broadcast packet is detected.
Corresponding to the above method embodiment, an embodiment of the present application further provides a terminal, including:
a memory for storing a computer program;
and the processor is used for realizing the steps of the terminal network distribution method when executing the computer program.
As shown in fig. 3, which is a schematic view of a composition structure of a terminal, the terminal may include: aprocessor 10, amemory 11, acommunication interface 12 and acommunication bus 13. Theprocessor 10, thememory 11 and thecommunication interface 12 all communicate with each other through acommunication bus 13.
In the embodiment of the present application, theprocessor 10 may be a Central Processing Unit (CPU), an application specific integrated circuit, a digital signal processor, a field programmable gate array or other programmable logic device, etc.
Theprocessor 10 may call a program stored in thememory 11, and in particular, theprocessor 10 may perform operations in the embodiment of the terminal distribution network method.
Thememory 11 is used for storing one or more programs, the program may include program codes, the program codes include computer operation instructions, in this embodiment, thememory 11 stores at least the program for implementing the following functions:
when a distribution network instruction is received, a first distribution network broadcast packet is sent out;
receiving terminal information returned by terminals without distribution networks based on the first distribution network broadcast packet;
determining a terminal set of a network to be distributed according to terminal information of terminals not distributed with the network;
and sending first distribution network information to each terminal to be distributed in the terminal set to be distributed so that each terminal to be distributed executes distribution network operation based on the first distribution network information.
In one possible implementation, thememory 11 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function (such as an information exchange function and an information processing function), and the like; the data storage area can store data created in the using process, such as distribution network information data, terminal data to be distributed and the like.
Further, thememory 11 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device or other volatile solid state storage device.
Thecommunication interface 12 may be an interface of a communication module for connecting with other devices or systems.
Of course, it should be noted that the structure shown in fig. 3 does not constitute a limitation of the terminal in the embodiment of the present application, and in practical applications, the terminal may include more or less components than those shown in fig. 3, or some components may be combined.
Corresponding to the above method embodiments, the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the terminal network distribution method are implemented.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The principle and the implementation of the present application are explained in the present application by using specific examples, and the above description of the embodiments is only used to help understanding the technical solution and the core idea of the present application. It should be noted that, for those skilled in the art, it is possible to make several improvements and modifications to the present application without departing from the principle of the present application, and such improvements and modifications also fall within the scope of the claims of the present application.

Claims (10)

Translated fromChinese
1.一种终端配网方法,其特征在于,应用于已配网的目标终端,所述终端配网方法包括:1. A terminal network distribution method, characterized in that it is applied to a target terminal that has been networked, and the terminal network distribution method comprises:在接收到配网指令时,发出第一配网广播包;When receiving the distribution network command, send out the first distribution network broadcast packet;接收未配网终端基于所述第一配网广播包返回的终端信息;receiving terminal information returned by an unconfigured network terminal based on the first network configuration broadcast packet;根据所述未配网终端的终端信息,确定待配网终端集合;According to the terminal information of the terminal that is not allocated to the network, determine the set of terminals to be allocated to the network;向所述待配网终端集合中的各待配网终端发送第一配网信息,以使各待配网终端基于所述第一配网信息执行配网操作。The first network distribution information is sent to each terminal to be distributed in the set of terminals to be distributed, so that each terminal to be distributed performs a network distribution operation based on the first distribution information.2.根据权利要求1所述的终端配网方法,其特征在于,在所述接收未配网终端基于所述第一配网广播包返回的终端信息之后、所述根据所述未配网终端的终端信息,确定待配网终端集合之前,还包括:2 . The terminal network configuration method according to claim 1 , wherein after receiving the terminal information returned by the unconfigured terminal based on the first network configuration broadcast packet, the method according to the unconfigured network terminal. 3 . The terminal information, before determining the terminal set to be distributed, also includes:针对返回终端信息的每个未配网终端,根据当前未配网终端的终端信息,对所述当前未配网终端进行鉴权;For each unconfigured terminal whose terminal information is returned, according to the terminal information of the currently unconfigured terminal, perform authentication on the currently unconfigured terminal;如果鉴权未通过,则丢弃所述当前未配网终端的终端信息。If the authentication fails, the terminal information of the currently unconfigured terminal is discarded.3.根据权利要求2所述的终端配网方法,其特征在于,终端信息中包括随机数,在所述对所述当前未配网终端进行鉴权之后,还包括:3 . The terminal network distribution method according to claim 2 , wherein the terminal information includes a random number, and after the authentication of the currently undistributed terminal, the method further includes: 3 .如果鉴权通过,则向所述当前未配网终端发送校验信息,所述校验信息中携带所述当前未配网终端的终端信息中包括的随机数;If the authentication is passed, send verification information to the currently unconfigured terminal, where the verification information carries the random number included in the terminal information of the currently unconfigured terminal;如果接收到所述当前未配网终端基于所述校验信息返回的确认信息,则保留所述当前未配网终端的终端信息,否则,丢弃所述当前未配网终端的终端信息。If the confirmation information returned by the currently unconfigured terminal based on the verification information is received, the terminal information of the currently unconfigured terminal is retained, otherwise, the terminal information of the currently unconfigured terminal is discarded.4.根据权利要求1所述的终端配网方法,其特征在于,所述根据所述未配网终端的终端信息,确定待配网终端集合,包括:4 . The terminal network configuration method according to claim 1 , wherein the determining the set of terminals to be networked according to the terminal information of the non-network-configured terminals comprises: 5 .将所述未配网终端的终端信息上报给指令发起方;reporting the terminal information of the unconfigured terminal to the instruction initiator;根据所述指令发起方的选择信息,确定待配网终端集合。According to the selection information of the initiating party of the instruction, the set of terminals to be distributed is determined.5.根据权利要求1所述的终端配网方法,其特征在于,在所述向所述待配网终端集合中的各待配网终端发送第一配网信息之后,还包括:5 . The terminal network distribution method according to claim 1 , wherein after the sending the first network distribution information to each terminal to be distributed in the terminal set to be distributed, the method further comprises: 6 .针对所述待配网终端集合中的每个待配网终端,如果在设定时长内未接收到当前待配网终端返回的配网完成应答信息,则重复向所述当前待配网终端发送第一配网信息。For each terminal to be deployed in the set of terminals to be deployed, if the network configuration completion response information returned by the terminal to be deployed is not received within a set period of time, repeat the transmission to the terminal to be deployed. The first distribution network information.6.根据权利要求1至5之中任一项所述的终端配网方法,其特征在于,还包括:6. The terminal network distribution method according to any one of claims 1 to 5, further comprising:在所述目标终端的无线连接断开的情况下,如果检测到第二配网广播包,则将所述目标终端的终端信息上报给所述第二配网广播包的发起方,以使所述第二配网广播包的发起方对所述目标终端进行鉴权,并在鉴权通过后,向所述目标终端发送第二配网信息;When the wireless connection of the target terminal is disconnected, if a second distribution network broadcast packet is detected, the terminal information of the target terminal is reported to the initiator of the second distribution network broadcast packet, so that all The initiator of the second distribution network broadcast packet authenticates the target terminal, and after the authentication passes, sends the second distribution network information to the target terminal;基于接收到的所述第二配网信息执行配网操作。A network distribution operation is performed based on the received second distribution network information.7.根据权利要求6所述的终端配网方法,其特征在于,还包括:7. The terminal network distribution method according to claim 6, further comprising:在检测到所述第二配网广播包的情况下,锁定无线网络信道。In the case of detecting the second distribution network broadcast packet, lock the wireless network channel.8.一种终端配网装置,其特征在于,应用于已配网的目标终端,所述终端配网装置包括:8. A terminal network distribution device, characterized in that it is applied to a target terminal that has been networked, and the terminal network distribution device comprises:广播模块,用于在接收到配网指令时,发出第一配网广播包;The broadcast module is used to send out the first distribution network broadcast packet when receiving the distribution network command;信息接收模块,用于接收未配网终端基于所述第一配网广播包返回的终端信息;an information receiving module, configured to receive terminal information returned by an unconfigured network terminal based on the first network configuration broadcast packet;待配网终端确定模块,用于根据所述未配网终端的终端信息,确定待配网终端集合;A determination module for terminals to be allocated to the network, configured to determine a set of terminals to be allocated to the network according to the terminal information of the terminals not to be allocated to the network;配网控制模块,用于向所述待配网终端集合中的各待配网终端发送第一配网信息,以使各待配网终端基于所述第一配网信息执行配网操作。The network distribution control module is configured to send first network distribution information to each terminal to be distributed in the set of terminals to be distributed, so that each terminal to be distributed performs a network distribution operation based on the first network distribution information.9.一种终端,其特征在于,包括:9. A terminal, characterized in that, comprising:存储器,用于存储计算机程序;memory for storing computer programs;处理器,用于执行所述计算机程序时实现如权利要求1至7任一项所述的终端配网方法的步骤。The processor is configured to implement the steps of the terminal network distribution method according to any one of claims 1 to 7 when executing the computer program.10.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1至7任一项所述的终端配网方法的步骤。10. A computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the terminal according to any one of claims 1 to 7 is realized The steps of the distribution network method.
CN202110893273.3A2021-08-042021-08-04 A terminal and terminal network distribution method, device and storage mediumPendingCN113573384A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202110893273.3ACN113573384A (en)2021-08-042021-08-04 A terminal and terminal network distribution method, device and storage medium

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202110893273.3ACN113573384A (en)2021-08-042021-08-04 A terminal and terminal network distribution method, device and storage medium

Publications (1)

Publication NumberPublication Date
CN113573384Atrue CN113573384A (en)2021-10-29

Family

ID=78170509

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202110893273.3APendingCN113573384A (en)2021-08-042021-08-04 A terminal and terminal network distribution method, device and storage medium

Country Status (1)

CountryLink
CN (1)CN113573384A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN114286421A (en)*2021-12-222022-04-05珠海格力电器股份有限公司 A distribution network method, device, system, electronic device and storage medium
CN115243399A (en)*2022-07-112022-10-25珠海格力电器股份有限公司 A kind of intelligent device distribution network method, device, electronic device and storage medium
CN119449511A (en)*2024-11-132025-02-14珠海格力电器股份有限公司 Device network configuration method, device, electronic device and storage medium
WO2025167285A1 (en)*2024-02-062025-08-14青岛海信日立空调系统有限公司Centralized controller, mobile terminal, network configuration method for centralized controller, and network configuration system for centralized controller

Citations (8)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN108011726A (en)*2016-11-022018-05-08九阳股份有限公司A kind of household electrical appliances distribution method and system
CN110708688A (en)*2019-09-182020-01-17芋头科技(杭州)有限公司Intelligent equipment network distribution method and device, controller and medium
CN110972232A (en)*2019-12-162020-04-07北京小米移动软件有限公司Network connection method, device, terminal and storage medium
CN111757421A (en)*2020-06-092020-10-09四川虹美智能科技有限公司Method and device for intelligent equipment network distribution
CN111867007A (en)*2020-07-242020-10-30深圳创维数字技术有限公司 Intelligent device automatic distribution network method, system and storage medium
CN112332997A (en)*2020-04-302021-02-05深圳Tcl新技术有限公司Network distribution method of terminal equipment, terminal equipment and computer readable storage medium
CN113068113A (en)*2019-12-312021-07-02佛山市云米电器科技有限公司Network distribution method, network distribution equipment and computer readable storage medium
CN113079556A (en)*2021-03-242021-07-06宁波奥克斯电气股份有限公司Intelligent household appliance distribution network control method, control device and application

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN108011726A (en)*2016-11-022018-05-08九阳股份有限公司A kind of household electrical appliances distribution method and system
CN110708688A (en)*2019-09-182020-01-17芋头科技(杭州)有限公司Intelligent equipment network distribution method and device, controller and medium
CN110972232A (en)*2019-12-162020-04-07北京小米移动软件有限公司Network connection method, device, terminal and storage medium
CN113068113A (en)*2019-12-312021-07-02佛山市云米电器科技有限公司Network distribution method, network distribution equipment and computer readable storage medium
CN112332997A (en)*2020-04-302021-02-05深圳Tcl新技术有限公司Network distribution method of terminal equipment, terminal equipment and computer readable storage medium
CN111757421A (en)*2020-06-092020-10-09四川虹美智能科技有限公司Method and device for intelligent equipment network distribution
CN111867007A (en)*2020-07-242020-10-30深圳创维数字技术有限公司 Intelligent device automatic distribution network method, system and storage medium
CN113079556A (en)*2021-03-242021-07-06宁波奥克斯电气股份有限公司Intelligent household appliance distribution network control method, control device and application

Cited By (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN114286421A (en)*2021-12-222022-04-05珠海格力电器股份有限公司 A distribution network method, device, system, electronic device and storage medium
CN115243399A (en)*2022-07-112022-10-25珠海格力电器股份有限公司 A kind of intelligent device distribution network method, device, electronic device and storage medium
WO2025167285A1 (en)*2024-02-062025-08-14青岛海信日立空调系统有限公司Centralized controller, mobile terminal, network configuration method for centralized controller, and network configuration system for centralized controller
CN119449511A (en)*2024-11-132025-02-14珠海格力电器股份有限公司 Device network configuration method, device, electronic device and storage medium

Similar Documents

PublicationPublication DateTitle
CN113573384A (en) A terminal and terminal network distribution method, device and storage medium
US12047872B2 (en)Method for provisioning of smart device, system, and readable medium
CN101771564B (en) Session context processing method, device and system
CN113411286B (en)Access processing method and device based on 5G technology, electronic equipment and storage medium
EP3614741B1 (en)Processing apparatus for terminal access to 3gpp network and communication system and corresponding system and computer program product
CN114391245B (en) Network Slicing Application Access Control
CN107872445B (en)Access authentication method, device and authentication system
CN111194035B (en)Network connection method, device and storage medium
CN105722072A (en)Business authorization method, device, system and router
CN103067407A (en)Authentication method and authentication device of user terminal access network
CN104796408A (en)Single-point live login method and single-point live login device
CN110460536B (en)Data processing method and apparatus for block chain, medium, and electronic device
CN106657034A (en)Service authentication method and authentication capability opening server
CN112532663A (en)Gateway login method and device
CN114125838B (en)MEC application access authentication and authorization method and system and MEC service management platform
CN106912049B (en)Method for improving user authentication experience
CN105656912A (en)Mobile intelligent terminal APP request process control method
Chen et al.Evaluation of UE registration performance in open-source 5G core networks
CN110971426A (en)Method for constructing group session, client and storage medium
CN113472847B (en)Method, system, device and medium for filtering invalid users
CN112398788A (en) Method and device, system, storage medium, and electronic device for bidirectional verification of machine behavior
EP2955945A1 (en)Method and system for implementing authentication and accounting in interaction between wireless local area network and fixed network
CN117643087A (en) Verification methods, devices, equipment and storage media
CN104703121B (en)Method, system and the network side equipment that control device accesses
KR101660261B1 (en)Method for configuring access point connection information and terminal device for the same

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
RJ01Rejection of invention patent application after publication
RJ01Rejection of invention patent application after publication

Application publication date:20211029


[8]ページ先頭

©2009-2025 Movatter.jp