CN110784867B - Network configuration method, terminal and system - Google Patents

Network configuration method, terminal and system Download PDF

Info

Publication number
CN110784867B
CN110784867B CN201910925325.3A CN201910925325A CN110784867B CN 110784867 B CN110784867 B CN 110784867B CN 201910925325 A CN201910925325 A CN 201910925325A CN 110784867 B CN110784867 B CN 110784867B
Authority
CN
China
Prior art keywords
access information
router
terminal
transmission channel
wireless terminals
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.)
Active
Application number
CN201910925325.3A
Other languages
Chinese (zh)
Other versions
CN110784867A (en
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.)
Zhejiang Dahua Technology Co Ltd
Original Assignee
Zhejiang Dahua 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 Zhejiang Dahua Technology Co Ltd filed Critical Zhejiang Dahua Technology Co Ltd
Priority to CN201910925325.3A priority Critical patent/CN110784867B/en
Publication of CN110784867A publication Critical patent/CN110784867A/en
Application granted granted Critical
Publication of CN110784867B publication Critical patent/CN110784867B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/02Protecting privacy or anonymity, e.g. protecting personally identifiable information [PII]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application relates to a network configuration method, a terminal and a system. The method comprises the following steps: the method comprises the steps of obtaining access information of a plurality of wireless terminals and first access information of a router through a mobile terminal, selecting one of the wireless terminals as a first proxy terminal, establishing a transmission channel with the first proxy terminal according to the first access information of the first proxy terminal, sending the first access information of other wireless terminals and the access information of the router to the first proxy terminal through the transmission channel, so that the first proxy terminal sends the access information of the router to other wireless terminals, and enabling all the wireless terminals to establish the transmission channel with the router respectively. By adopting the method, the network configuration efficiency of a plurality of wireless terminals can be improved, and the network configuration safety can be improved.

Description

Network configuration method, terminal and system
Technical Field
The present invention relates to the field of network communications technologies, and in particular, to a network configuration method, terminal, and system.
Background
Along with the development of the internet of things technology, intelligent internet of things equipment is more and more. The intelligent internet of things device (hereinafter referred to as Wireless terminal) generally needs to connect to a Wireless router through a WiFi (Wireless Fidelity) mode, so as to access the internet. Therefore, the wireless terminal must establish an association link with the wireless router. Generally, we need to acquire Service Set Identifier of the wireless router and the service set identifier) and the password through the mobile device, then establish a transmission channel with the wireless terminal through the mobile terminal, send the network access information of the router to the wireless terminal, and connect to the wireless router through the wireless terminal, thereby entering the internet.
In an actual network configuration, it is also simpler to configure a network procedure for a wireless terminal via a mobile device. However, when a network needs to be configured for a plurality of wireless terminals, the wireless terminals need to be configured for one by one manually through the mobile terminals, which requires a great deal of repetitive operation, is time-consuming and labor-consuming, and results in low efficiency, and the passwords and SSID of each wireless terminal are the same, so that the wireless terminals are quite unsafe when configured.
Disclosure of Invention
Based on this, it is necessary to provide a network configuration method, a terminal and a system in order to solve the above technical problems.
A network configuration method, the method comprising:
acquiring first access information of a plurality of wireless terminals and access information of a router;
selecting one of the wireless terminals as a first proxy terminal, and establishing a transmission channel with the first proxy terminal according to first access information of the first proxy terminal;
and the first proxy terminal respectively establishes an encrypted transmission channel with each wireless terminal according to the first access information of the other wireless terminals so that the first proxy terminal can send the access information of the router to the other wireless terminals, and all the wireless terminals respectively establish the transmission channels with the router.
In one embodiment, the sending the first access information of the other wireless terminals and the access information of the router to the proxy terminal through the transmission channel, the first proxy terminal respectively establishing an encrypted transmission channel with each wireless terminal according to the first access information of the other wireless terminals, so that the proxy terminal sends the access information of the router to the other wireless terminals, and the respectively establishing transmission channels with the router by all wireless terminals includes:
transmitting the first access information of other wireless terminals and the access information of a router to the first proxy terminal through the transmission channel, so that the first proxy terminal establishes the transmission channel with the router according to the access information of the router;
acquiring channel establishment success information fed back by a first proxy terminal;
and sending an agent configuration starting instruction to the first proxy terminal according to the channel establishment success information, so that the first proxy terminal can send the access information of the router to other wireless terminals according to the agent configuration instruction, and all the wireless terminals can respectively establish transmission channels with the router.
In one embodiment, the method further comprises: after the router changes the access information,
Acquiring updated access information of the router; selecting one of the wireless terminals as a second proxy terminal, and establishing a transmission channel with the proxy terminal according to first access information of the second proxy terminal;
and sending the updated access information to the second proxy terminal through the transmission channel so that other wireless terminals acquire second access information of the second proxy terminal from the multicast group, establishing the transmission channel with the second proxy terminal according to the second access information, and acquiring the updated access information of the router from the second proxy terminal through the transmission channel.
In one embodiment, the manner of establishing the transmission channel includes:
through any one of wifi, bluetooth and NFC.
The method also provides a mobile terminal, which comprises the following steps:
the acquisition module is used for acquiring access information of a plurality of wireless terminals and access information of a router;
the selecting module is used for selecting one of the wireless terminals as a proxy terminal and establishing a transmission channel with the proxy terminal according to the access information of the proxy terminal;
and the transmission module is used for transmitting the access information of other wireless terminals and the access information of the router to the proxy terminal through the transmission channels, and the proxy terminal respectively establishes an encrypted transmission channel with each wireless terminal according to the access information of the other wireless terminals so that the proxy terminal transmits the access information of the router to the other wireless terminals and all the wireless terminals respectively establish the transmission channels with the router.
The method also provides a network configuration method, which comprises the following steps:
establishing a transmission channel with a mobile terminal, and acquiring access information of a router and first access information of other wireless terminals through the transmission channel;
according to the access information of the router, a transmission channel is established with the router, and channel establishment success information is sent to the mobile terminal through the transmission channel, so that the mobile terminal feeds back a start agent configuration instruction according to the channel establishment success information;
and acquiring a starting agent configuration instruction, respectively establishing encrypted transmission channels with other wireless terminals in an AP mode according to the starting agent configuration instruction, and sending the access information of the router to the other wireless terminals so that all the wireless terminals respectively establish the transmission channels with the router.
In one embodiment, the obtaining the start agent configuration instruction, respectively establishing encrypted transmission channels with other wireless terminals by using an AP according to the start agent configuration instruction, and sending the access information of the router to the other wireless terminals, so that all wireless terminals respectively establish transmission channels with the router includes: the first access information includes: SSID and password;
Acquiring a starting agent configuration instruction, and entering a server mode according to the starting agent configuration instruction;
scanning APs of other wireless terminals, searching for a matched wireless terminal according to SSIDs of the other wireless terminals, and establishing a transmission channel with the matched wireless terminal by using a password corresponding to the SSID;
and sending the access information of the router to the matched wireless terminal through the transmission channel so as to enable the matched wireless terminal to establish the transmission channel with the router.
In one embodiment, the sending the access information of the router to the matched wireless terminal through the transmission channel, so that the matched wireless terminal and the router establish the transmission channel further includes: and establishing a multicast group with other wireless terminals, periodically sending second access information of the wireless terminals to the multicast group, monitoring the multicast group, acquiring the second access information of the other wireless terminals from the multicast group, utilizing the second access information of the other wireless terminals, and forming a second access information queue.
The method also provides a wireless terminal, which comprises the following steps:
the acquisition module is used for establishing a transmission channel with the mobile terminal, and acquiring access information of a router and access information of other wireless terminals through the transmission channel;
The connection module is used for establishing a transmission channel with the router according to the access information of the router, and sending channel establishment success information to the mobile terminal through the transmission channel so that the mobile terminal feeds back a start agent configuration instruction according to the channel establishment success information;
the instruction execution module is used for acquiring a starting agent configuration instruction, respectively establishing encrypted transmission channels with other wireless terminals in an AP mode according to the starting agent configuration instruction, and sending the access information of the router to the other wireless terminals so that all the wireless terminals respectively establish the transmission channels with the router.
The method also provides a network configuration method, which comprises the following steps: after the router changes the access information, the router is disconnected with the router;
and establishing a transmission channel with the mobile terminal, acquiring updated access information of the router through the transmission channel, starting an AP mode, so that other wireless terminals find second access information of a second proxy terminal according to second access information queuing, establishing the transmission channel with the second proxy terminal by utilizing the second access information, and acquiring the updated access information of the router from the second proxy terminal through the transmission channel.
The method also provides a wireless terminal, which comprises the following steps:
the connection module is used for establishing a transmission channel with the mobile terminal, acquiring updated access information of the router through the transmission channel, starting an AP mode, enabling other wireless terminals to find second access information of a second proxy terminal according to second access information queuing, establishing the transmission channel with the second proxy terminal by utilizing the second access information, and acquiring the updated access information of the router from the second proxy terminal through the transmission channel.
The method also provides a network configuration method, which comprises the following steps:
powering up to enter an AP mode, establishing a transmission channel with a first proxy terminal, and receiving access information of a router through the transmission channel;
and establishing a transmission channel with the router according to the access information of the router, and exiting the AP mode.
In one embodiment, after the establishing a transmission channel with the router according to the access information of the router, the method further includes: and establishing a multicast group with the proxy terminal, sending second access information of the proxy terminal to the multicast group, monitoring the multicast group, acquiring second access information of other wireless terminals from the multicast group, and forming a second access information queue.
In one embodiment, the method further comprises: after the router changes the access information,
disconnecting from the router;
scanning the AP of the second proxy terminal, establishing a transmission channel with the second proxy terminal according to the second access information of the second proxy terminal, and acquiring updated access information of a router from the second proxy terminal through the transmission channel;
and establishing a transmission channel with the router according to the updated access information of the router.
The present method also provides a wireless terminal, the wireless terminal comprising:
the receiving module is used for powering on to enter an AP mode, establishing a transmission channel with the proxy terminal, and receiving access information of the router through the transmission channel;
and the connection module is used for establishing a transmission channel with the router according to the access information of the router and exiting the AP mode.
The method also provides a network configuration system, which comprises a mobile terminal, a plurality of wireless terminals and a router;
the mobile terminal acquires first access information of a plurality of wireless terminals and access information of a router, selects one of the wireless terminals as a first proxy terminal, establishes a transmission channel with the first proxy terminal, and sends the access information of other wireless terminals and the access information of the router to the first proxy terminal through the transmission channel;
The first proxy terminal establishes a transmission channel with the mobile terminal, acquires access information of a router and first access information of other wireless terminals through the transmission channel, is connected with the router according to the access information of the router, and sends the wireless configuration success information to the mobile terminal through the wireless channel; the mobile terminal acquires wireless configuration success information and feeds back an agent configuration starting instruction to an agent terminal according to the wireless configuration success information;
the first proxy terminal acquires a starting proxy configuration instruction, establishes encrypted transmission channels respectively with other wireless terminals in an AP mode according to the starting proxy configuration instruction, and sends the access information of the router to the other wireless terminals through the transmission channels;
the other wireless terminals start an AP mode, establish a transmission channel with a first proxy terminal, receive access information of a router through the transmission channel, connect with the router according to the access information of the router, and close the AP after successful connection;
after each wireless terminal is connected to the router, a multicast group is established, second access information of the wireless terminal is periodically sent to the multicast group, the multicast group is monitored, the second access information of other wireless terminals is obtained from the multicast group, and a second access information queue is formed according to the second access information;
After the router changes the access information, the mobile terminal acquires the updated access information of the router; selecting one of the wireless terminals as a second proxy terminal, establishing a transmission channel with the proxy terminal according to the first access information of the second proxy terminal, and sending the updated access information to the second proxy terminal through the transmission channel so that other wireless terminals acquire the second access information of the second proxy terminal from a multicast group, establishing the transmission channel with the second proxy terminal according to the second access information, and acquiring the updated access information of the router from the second proxy terminal through the transmission channel;
the second proxy terminal is disconnected with the router, a transmission channel is established with the mobile terminal, updated access information of the router is obtained through the transmission channel, an AP mode is started, so that other wireless terminals find out second access information of the second proxy terminal according to second access information queuing, the transmission channel is established with the second proxy terminal by utilizing the second access information, and the updated access information of the router is obtained from the second proxy terminal through the transmission channel;
The other wireless terminals are disconnected with the router, the AP of the second proxy terminal is scanned, a transmission channel is established with the second proxy terminal according to the second access information of the second proxy terminal, and updated access information of the router is acquired from the second proxy terminal through the transmission channel; and establishing a transmission channel with the router according to the updated access information of the router.
According to the network configuration method, terminal and system, access information of a plurality of wireless terminals and access information of a router are obtained through the mobile terminal, one wireless terminal is selected to serve as a proxy terminal, a transmission channel is established between the proxy terminal and the access information of the proxy terminal according to the access information of the proxy terminal, the access information of other wireless terminals and the access information of the router are sent to the proxy terminal through the transmission channel, so that the proxy terminal sends the access information of the router to other wireless terminals, and all wireless terminals respectively establish transmission channels with the router. Therefore, only one wireless terminal is required to be manually configured, the wireless terminal is used as a proxy terminal, and then the proxy terminal automatically performs network configuration for other wireless terminals, so that the network configuration operation is simpler and the efficiency is higher. And the wireless terminals are provided with respective access information, so that the proxy terminal establishes encrypted transmission channels with other wireless terminals through different access information, and the security is improved when the network is configured.
Drawings
FIG. 1 is a flow diagram of a method of network configuration of a wireless terminal in one embodiment;
FIG. 2 is a block diagram of a mobile terminal in one embodiment;
FIG. 3 is an internal block diagram of a computer device in one embodiment;
FIG. 4 is a flow diagram of a method of network configuration of a wireless terminal in one embodiment;
FIG. 5 is a block diagram of a mobile terminal in one embodiment;
FIG. 6 is an internal block diagram of a computer device in one embodiment;
FIG. 7 is a flow diagram of a method of network configuration of a wireless terminal in one embodiment;
FIG. 8 is a block diagram of a mobile terminal in one embodiment;
FIG. 9 is an internal block diagram of a computer device in one embodiment;
FIG. 10 is a timing diagram of a network configuration system of a wireless terminal in one embodiment;
fig. 11 is a timing diagram of a network configuration system of a wireless terminal in another embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
In one embodiment, as shown in fig. 1, there is provided a network configuration method of a wireless terminal, the method comprising the steps of:
step 102, access information of a plurality of wireless terminals and access information of a router are obtained.
In this embodiment, first access information of a plurality of wireless terminals that need to configure a network and access information of a router are acquired by a mobile terminal. Each wireless terminal randomly generates unique first access information when leaving the factory, and writes the first access information into the firmware of the wireless terminal, that is to say, each wireless terminal has independent first access information. In order to make it easier for the mobile terminal to acquire the first access information of the wireless terminals, the first access information of each wireless terminal is displayed on the wireless terminal device body in a plurality of modes.
In this embodiment, the first access information of each wireless terminal is respectively generated into corresponding two-dimensional codes, and the two-dimensional codes are attached to the wireless terminal body, so that the mobile terminal can obtain the access information of the wireless terminal only by scanning the two-dimensional codes by using related application programs. And scanning the two-dimensional codes on each wireless terminal one by one through the mobile terminal to acquire the access information of each wireless terminal.
In other embodiments, the second access information of the wireless terminal may also be generated into a corresponding bar code, or may be directly attached to the wireless terminal body in the form of a label.
In this embodiment, the mobile terminal obtains access information of the router in a conventional manner. Typically, the access information of the router is marked on the surface of the router housing, and the user manually inputs the access information into the mobile terminal, so that the mobile terminal obtains the access information of the router.
In this embodiment, the mobile terminal is a mobile phone, and obtains each first access information through an APP (Application program) related to network configuration on the mobile phone.
In this embodiment, the first access information includes an SSID (Service Set Identifier, service set identification) and a password. Each wireless terminal has a respective SSID and corresponding password as authentication to facilitate the establishment of a communication network with the associated or designated terminal. Likewise, the router also has an independent SSID and corresponding password.
Step 104, selecting one of the wireless terminals as a first proxy terminal, and establishing a transmission channel with the proxy terminal according to the first access information of the first proxy terminal.
In this embodiment, the mobile terminal randomly selects one of the plurality of wireless terminals as the first proxy terminal, and establishes a transmission channel with the first proxy terminal according to the first access information of the first proxy terminal.
And step 106, transmitting the first access information of other wireless terminals and the access information of the router to the first proxy terminal through the transmission channels, wherein the first proxy terminal respectively establishes an encrypted transmission channel with each wireless terminal according to the first access information of the other wireless terminals so that the proxy terminal transmits the access information of the router to the other wireless terminals, and respectively establishes the transmission channels with the routers.
In this embodiment, the mobile terminal sends the first access information of the other wireless terminals and the access information of the router to the first proxy terminal through the transmission channel. And the first proxy terminal replaces the mobile terminal to establish transmission channels with the other wireless terminals by utilizing the acquired first access information one by one, and the access information of the router is sent to the other wireless terminals through the transmission channels. And the other wireless terminals are automatically connected to the router by using the received router access information, so that all the wireless terminals complete network configuration and access the Internet.
In this embodiment, since the other wireless proxy terminals have their SSID and password independent of each other, when the first proxy terminal establishes a transmission channel with the other wireless terminal, the transmission channel is an encrypted transmission channel.
In this embodiment, the manner in which the mobile terminal establishes the transmission channel with the first proxy terminal includes: wifi and bluetooth.
Specifically, wifi modes include a Smartconfig (one-key configuration) mode. When the Smartconfig mode is adopted, the first proxy terminal is in a hybrid mode, monitors all messages in the network, and the mobile terminal encodes access information of the router into the messages and sends the messages through multicast packets. And the first proxy terminal decodes the received message to obtain access information of the router, and actively connects to the router corresponding to the acquired SSID.
Specifically, the wifi mode also includes an AP (wireless access point) mode. When an AP (wireless access point) mode is adopted, the first proxy terminal is in an AP mode, the mobile terminal is used in a station (client) mode, the mobile terminal is connected with the first proxy terminal to form a local area network, access information of a wireless router is sent to the first proxy terminal, and the first proxy terminal is actively connected to the router corresponding to the acquired SSID.
Specifically, when the bluetooth mode is adopted, a bluetooth module needs to be set in the proxy terminal, and a transmission channel is established with the mobile terminal through bluetooth. After the mobile terminal is connected with the first proxy terminal, the access information of the wireless router is sent to the first proxy terminal, so that the first proxy terminal is actively connected to the router corresponding to the acquired SSID.
Preferably, the mobile terminal and the first proxy terminal establish a transmission channel in an AP manner, and the first proxy terminal after power-on generates a soft AP, which is in a passive mode of the AP, and the mobile terminal is in a station (client) mode at this time, so that the mobile terminal can be connected to the soft AP generated by the first proxy terminal according to the acquired first access information unique to the first proxy terminal, thereby enabling the mobile terminal and the first proxy terminal to establish the transmission channel. By adopting the method, the information security is ensured, and the configuration rate is high.
Specifically, the mobile terminal acquires the SSID of the soft AP started by all the wireless terminal devices, and can sort according to the intensity of the wireless signals of all the SSID, preferentially select the SSID with the strongest wireless signal for connection, and serve as the first proxy terminal.
Step 106 further includes: and sending the first access information of other wireless terminals and the access information of the router to the first proxy terminal through the transmission channel, so that the first proxy terminal establishes the transmission channel with the router according to the access information of the router. And acquiring channel establishment success information fed back by the proxy terminal. And sending an agent configuration starting instruction to the first proxy terminal according to the channel establishment success information, so that the first terminal can send the access information of the router to other wireless terminals according to the agent configuration instruction, and all the wireless terminals can respectively establish transmission channels with the router.
In this embodiment, after the mobile terminal transmits the access information to the proxy terminal through the transmission channel, the connection is disconnected, and then the mobile terminal is connected to a router corresponding to the access information according to the access information of the router, thereby accessing the wireless network provided by the router. And the first proxy terminal acquires the access information of the router through the transmission channel, and then automatically connects to the router corresponding to the access information according to the acquired access information, so that the first proxy terminal and the mobile terminal access the same wireless network. After the proxy equipment finishes networking, the successful information of the establishment of the channel is fed back through the wireless network. The mobile device obtains the channel establishment success information fed back by the proxy terminal, and sends a proxy configuration starting instruction to the proxy terminal through the wireless network according to the channel establishment success information, so that the first proxy terminal sends the access information of the router to other wireless terminals according to the proxy configuration instruction, and all the wireless terminals respectively establish transmission channels with the router.
In other embodiments, the mobile terminal transmits the access information of the router to the first proxy terminal in step 106 so that the first proxy terminal can connect to the router. After the mobile terminal acquires the information of successful channel establishment fed back by the proxy terminal, the first access information of other wireless terminals and the start proxy configuration instruction are sent to the proxy terminal through the router, so that the first proxy terminal can perform network configuration on other wireless terminals according to the instruction and the first access information of other wireless terminals.
In this embodiment, after the router changes the access information, the mobile terminal actively acquires the updated access information of the router. And selecting one wireless terminal as a second proxy terminal, establishing a transmission channel with the second proxy terminal in the mode, and transmitting the updated access information of the router to the second proxy terminal through the transmission channel. And the other wireless terminals acquire second access information of a second proxy terminal from the multicast group, establish a transmission channel with the second proxy terminal according to the second access information, and acquire new access information of the router from the second proxy terminal through the transmission channel.
The first proxy terminal that initially performs the network configuration selection and the proxy terminal that changes the password at the router may select the same wireless terminal as the second proxy terminal, or may select a different wireless terminal as the second proxy terminal. Each time a wireless terminal is selected as a proxy terminal, it is arbitrarily selected.
According to the network configuration method of the wireless terminal, access information of a plurality of wireless terminals and access information of a router are acquired through the mobile terminal, one wireless terminal is selected to serve as an agent terminal, a transmission channel is established between the agent terminal and the access information of the agent terminal according to the access information of the agent terminal, the access information of other wireless terminals and the access information of the router are sent to the agent terminal through the transmission channel, the agent terminal sends the access information of the router to other wireless terminals, and all wireless terminals respectively establish the transmission channel with the router. Thus, the mobile terminal only needs to be manually configured by a user, establishes a transmission channel with the selected proxy terminal, and then transmits the access information of other wireless terminals and the access information of the router through the transmission channel. The proxy terminal completes the network configuration of other wireless terminals. The network configuration method is simple to operate and high in working efficiency. And the wireless terminals are provided with respective access information, so that the proxy terminal establishes encrypted transmission channels with other wireless terminals through different access information, and the security is improved when the network is configured. And after the router changes the password, selecting one wireless terminal through the mobile terminal, sending the access information to the wireless terminal, and respectively acquiring the access information of the wireless terminal from the multicast group by other wireless terminals and acquiring the updated access information of the router from the wireless terminal. Therefore, after the password of the router is changed, the work of re-distributing the network can be completed only by establishing a transmission channel with one wireless terminal.
In one embodiment, as shown in fig. 2, there is provided a mobile terminal including: an acquisition module 202, a selection module 204, and a transmission module 206, wherein:
the obtaining module 202 is configured to obtain access information of a plurality of wireless terminals and access information of a router.
And the selecting module 204 is configured to select one of the wireless terminals as a proxy terminal, and establish a transmission channel with the proxy terminal according to access information of the proxy terminal.
And the transmission module 206 is configured to send the access information of the other wireless terminals and the access information of the router to the proxy terminal through the transmission channels, where the proxy terminal respectively establishes an encrypted transmission channel with each wireless terminal according to the access information of the other wireless terminals so that the proxy terminal sends the access information of the router to the other wireless terminals, and all wireless terminals respectively establish transmission channels with the router.
For specific limitations of the mobile terminal, reference may be made to the above limitation of the network configuration method of the wireless terminal, and no further description is given here. The various modules in the mobile terminal described above may be implemented in whole or in part by software, hardware, and combinations thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a terminal, and the internal structure of which may be as shown in fig. 3. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer 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 computer programs in the non-volatile storage media. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a network configuration method of a wireless terminal. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, can also be keys, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the structure shown in fig. 3 is merely a block diagram of some of the structures associated with the present application and is not limiting of the computer device to which the present application may be applied, and that a particular computer device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided comprising a memory and a processor, the memory having stored therein a computer program, the processor when executing the computer program performing the steps of:
acquiring access information of a plurality of wireless terminals and access information of a router;
selecting one of the wireless terminals as an agent terminal, and establishing a transmission channel with the agent terminal according to the access information of the agent terminal;
and sending the access information of other wireless terminals and the access information of the router to the proxy terminal through the transmission channel, so that the proxy terminal sends the access information of the router to the other wireless terminals, and all the wireless terminals respectively establish the transmission channel with the router.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of:
Acquiring access information of a plurality of wireless terminals and access information of a router;
selecting one of the wireless terminals as an agent terminal, and establishing a transmission channel with the agent terminal according to the access information of the agent terminal;
and sending the access information of other wireless terminals and the access information of the router to the proxy terminal through the transmission channel, so that the proxy terminal sends the access information of the router to the other wireless terminals, and all the wireless terminals respectively establish the transmission channel with the router.
In one embodiment, as shown in fig. 4, there is provided a network configuration method of a wireless terminal, the method comprising the steps of:
and step 302, establishing a transmission channel with the mobile terminal, and acquiring access information of a router and first access information of other wireless terminals through the transmission channel.
In this embodiment, a first proxy terminal first establishes a transmission channel with a mobile terminal, and obtains access information of a router and first access information of other wireless terminals through the transmission channel.
In this embodiment, the wireless terminal may be an intelligent home device, and the plurality of intelligent home devices in the same scene are connected to the same wireless network, so as to realize intelligent functions such as remote control of a user. The wireless terminal may also be other intelligent devices, and in a specific scenario, multiple intelligent devices need to be connected to the same wireless network to achieve simultaneous control, and so on.
In this embodiment, the manner in which the mobile terminal establishes the transmission channel with the first proxy terminal includes: wifi and bluetooth.
Preferably, the mobile terminal and the first proxy terminal establish a transmission channel in an AP manner, and after the first proxy terminal is powered on, the mobile terminal determines its own state, if the state is an uninitialized state, that is, an access information state of a router is not configured, the mobile terminal automatically reads its own first access information from the firmware, and starts a soft AP. The mobile terminal is in a station (client) mode, so that the mobile terminal can be connected to a soft AP generated by the first proxy terminal according to the acquired first access information unique to the first proxy terminal, and a transmission channel is established between the mobile terminal and the first proxy terminal. By adopting the method, the information security is ensured, and the configuration rate is high.
Step 304, according to the access information of the router, a transmission channel is established with the router, and channel establishment success information is sent to the mobile terminal through the transmission channel, so that the mobile terminal feeds back a start agent configuration instruction according to the channel establishment success information.
In this embodiment, after the first proxy terminal accesses the wireless network provided by the router according to the access information of the router, the mobile terminal sends the channel establishment success information through the wireless network line, so that the mobile terminal feeds back the start proxy configuration instruction according to the channel establishment success information.
Step 306, acquiring a start agent configuration instruction, respectively establishing transmission channels with other wireless terminals in an AP mode according to the start agent configuration instruction, and sending the access information of the router to the other wireless terminals so that all the wireless terminals respectively establish the transmission channels with the router.
Step 306 further comprises: the first access information includes: SSID and password. And acquiring a starting agent configuration instruction, and entering a server mode according to the starting agent configuration instruction. And scanning the APs of other wireless terminals, searching the matched wireless terminals according to the SSIDs of the other wireless terminals, and establishing a transmission channel with the matched wireless terminals by using the password corresponding to the SSID. And sending the access information of the router to the matched wireless terminal through the transmission channel so as to enable the matched wireless terminal to establish the transmission channel with the router.
In this embodiment, after receiving a start agent configuration instruction sent by a mobile terminal through a router wireless network, a first proxy terminal establishes a transmission channel with other wireless terminals according to the start agent configuration instruction and first access information of other wireless terminals, and sends access information of the router to the other wireless terminals respectively.
In this embodiment, the first proxy terminal establishes a transmission channel with other wireless terminals by way of an AP. The proxy terminal obtains the proxy configuration starting instruction, enters an AP server mode, scans surrounding soft APs generated by other wireless terminals, and if the soft APs are matched with the SSID, the proxy terminal is connected with the wireless terminal by using a corresponding password, and after the connection is successful, the access information of the wireless router is sent to the device. The proxy terminal repeats this process and can automatically configure the access information of the router to other wireless terminals so that the other wireless terminals can automatically connect to the wireless network provided by the router. And after the proxy terminal cannot scan the acquired SSID, confirming that all the wireless terminals are configured, actively connecting to the router, completing proxy work, and informing the mobile terminal.
In this embodiment, after all wireless routes are connected to a router, the first proxy terminal establishes a multicast group with other wireless terminals, listens to the multicast group, acquires second access information of other wireless terminals from the multicast group, and uses the second access information of other wireless terminals to form a second access information queue.
When all routers are connected to the router, access information of each wireless terminal is shared through the established multicast group. And when a new wireless terminal is added, the access information of the new wireless terminal can be shared in real time through the multicast group.
In this embodiment, the multicast group is preset with a fixed address.
According to the network configuration method of the wireless terminal, the transmission channel is established through the proxy terminal and the mobile terminal, the access information of the router and the access information of other wireless terminals are obtained through the transmission channel, then the transmission channel is established with the router according to the access information of the router, and the channel establishment success information is sent to the mobile terminal through the transmission channel, so that the mobile terminal feeds back the starting proxy configuration instruction according to the channel establishment success information. The proxy terminal acquires a proxy configuration starting instruction, establishes transmission channels with other wireless terminals in an AP mode according to the proxy configuration starting instruction, and sends the access information of the router to the other wireless terminals so that all the wireless terminals establish the transmission channels with the router respectively. In the method, the proxy terminal respectively sends the access information of the router to other wireless terminals, and establishes a transmission channel by an AP mode. In this way, when the proxy terminal establishes communication connection with other wireless terminals in the whole proxy configuration process, the proxy terminal is connected by identifying different SSIDs and independent passwords of the wireless terminals, so that the risk of router password leakage caused by open connection and fixed password connection is avoided. In addition, the SSID of each device is generated at any time when leaving the factory, and compared with a fixed SSID mode, the SSID of each device is not easy to cause interference with other terminals with the same SSID and transmission channels in the environment. And thus, the security is improved in the network allocation process.
It should be understood that, although the steps in the flowchart of fig. 4 are shown in sequence as indicated by the arrows, the steps are not necessarily performed in sequence as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in fig. 4 may include multiple sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor do the order in which the sub-steps or stages are performed necessarily performed in sequence, but may be performed alternately or alternately with at least a portion of the sub-steps or stages of other steps or other steps.
In one embodiment, as shown in fig. 5, there is provided a proxy terminal apparatus including: an acquisition module 402, a connection module 404, and an instruction execution module 406, wherein:
and the obtaining module 402 is configured to establish a transmission channel with the mobile terminal, and obtain access information of the router and access information of other wireless terminals through the transmission channel.
And the connection module 404 is configured to establish a transmission channel with the router according to the access information of the router, and send channel establishment success information to the mobile terminal through the transmission channel, so that the mobile terminal feeds back a start agent configuration instruction according to the channel establishment success information.
The instruction execution module 406 is configured to obtain a start agent configuration instruction, respectively establish transmission channels with other wireless terminals by using an AP according to the start agent configuration instruction, and send access information of the router to the other wireless terminals, so that all wireless terminals respectively establish transmission channels with the router.
For specific limitations of the proxy terminal apparatus, reference may be made to the above limitation of the network configuration method of the wireless terminal, and no further description is given here. The various modules in the wireless terminal described above may be implemented in whole or in part by software, hardware, and combinations thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a terminal, and the internal structure of which may be as shown in fig. 6. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer 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 computer programs in the non-volatile storage media. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a network configuration method of a wireless terminal. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, can also be keys, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the structure shown in fig. 6 is merely a block diagram of some of the structures associated with the present application and is not limiting of the computer device to which the present application may be applied, and that a particular computer device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided comprising a memory and a processor, the memory having stored therein a computer program, the processor when executing the computer program performing the steps of:
establishing a transmission channel with a mobile terminal, and acquiring access information of a router and access information of other wireless terminals through the transmission channel;
according to the access information of the router, a transmission channel is established with the router, and channel establishment success information is sent to the mobile terminal through the transmission channel, so that the mobile terminal feeds back a start agent configuration instruction according to the channel establishment success information;
and acquiring a starting agent configuration instruction, respectively establishing transmission channels with other wireless terminals in an AP mode according to the starting agent configuration instruction, and sending the access information of the router to the other wireless terminals so that all the wireless terminals respectively establish the transmission channels with the router.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of:
establishing a transmission channel with a mobile terminal, and acquiring access information of a router and access information of other wireless terminals through the transmission channel;
according to the access information of the router, a transmission channel is established with the router, and channel establishment success information is sent to the mobile terminal through the transmission channel, so that the mobile terminal feeds back a start agent configuration instruction according to the channel establishment success information;
and acquiring a starting agent configuration instruction, respectively establishing transmission channels with other wireless terminals in an AP mode according to the starting agent configuration instruction, and sending the access information of the router to the other wireless terminals so that all the wireless terminals respectively establish the transmission channels with the router.
In one embodiment, a network method of a wireless terminal is provided, the method comprising the steps of:
after the router changes the access information, the router is disconnected with the router;
and establishing a transmission channel with the mobile terminal, acquiring updated access information of the router through the transmission channel, starting an AP mode, so that other wireless terminals find second access information of a second proxy terminal according to second access information queuing, establishing the transmission channel with the second proxy terminal by utilizing the second access information, and acquiring the updated access information of the router from the second proxy terminal through the transmission channel.
In this embodiment, each wireless terminal is disconnected from the router after the router changes the access information. At this time, the mobile terminal will randomly select one wireless terminal as a second proxy terminal, the second proxy terminal obtains updated access information of the router from the mobile terminal, and starts the AP mode, so that other wireless terminals can scan and use the second access information of the proxy terminal obtained from the multicast group to connect with the second proxy terminal, and obtain updated access information of the router from the second proxy terminal. And the second proxy terminal may establish a connection with the router directly using updated access information obtained from the mobile terminal.
It should be noted that, each wireless terminal is provided with a first access information and a second access information. The first access information and the second access information each include an SSID and a password. The first access information is set outside the wireless terminal device, so that an operator can simply acquire the first access information of each wireless terminal for configuring the network for the first time. The second access information is solidified inside each wireless terminal and is not displayed to the outside, and is used for replacing the password in the router so that each wireless terminal is connected to the router.
In this embodiment, the first proxy terminal and the second proxy terminal are both selected by the mobile terminal at will, and may be the same wireless terminal or may not be the same wireless terminal.
In one embodiment, there is provided a wireless terminal including: the connection module is used for establishing a transmission channel with the mobile terminal, acquiring updated access information of the router through the transmission channel, starting an AP mode, enabling other wireless terminals to find second access information of a second proxy terminal according to second access information queuing, establishing the transmission channel with the second proxy terminal by utilizing the second access information, and acquiring the updated access information of the router from the second proxy terminal through the transmission channel.
In one embodiment, as shown in fig. 7, there is provided a network configuration method of a wireless terminal, the method comprising the steps of:
step 502, power-on enters an AP mode, establishes a transmission channel with a first proxy terminal, and receives access information of a router through the transmission channel.
In this embodiment, after other wireless terminals are powered on, the state of the wireless terminal is determined, if the wireless terminal is in an uninitialized state, that is, the wireless terminal is not configured with access information of a router, the SSID and the password are automatically read from the firmware of the wireless terminal, and a soft AP is started. At this time, the first proxy terminal switches to the station mode, starts scanning the soft APs opened by the surrounding wireless terminals, if the soft APs are matched with the SSID, establishes a transmission channel by using a corresponding password, and sends the access information of the router to the corresponding wireless terminal through the transmission channel.
And step 504, establishing a transmission channel with the router according to the access information of the router, and exiting the AP mode.
In this embodiment, the wireless terminal automatically connects to the router and accesses the wireless network through the acquired SSID and password of the router. After the wireless terminal completes the wireless network configuration, the wireless terminal automatically exits the AP mode and closes the soft AP.
In this embodiment, after establishing a transmission channel with the router according to the access information of the router, the method further includes: and establishing a multicast group with the proxy terminal, sending second access information of the proxy terminal to the multicast group, monitoring the multicast group, acquiring second access information of other wireless terminals from the multicast group, forming second access information of other wireless terminals, and queuing each second access information. Specifically, after each wireless terminal establishes a transmission channel with the router, each wireless terminal also establishes a multicast group, sends respective second access information to the multicast group, acquires second access information of other wireless terminals from the multicast group, and forms a second access information queue. And the second access information of each wireless terminal is listed in the second access information list, so that after the router changes the access information, each wireless terminal searches the second proxy terminal password in the second access list and is connected with the second proxy terminal password to acquire the updated access information of the router.
In this embodiment, after the router changes the access information, the router is disconnected from the router, scans the second proxy terminal, establishes a transmission channel with the second proxy terminal according to the second access information of the second proxy terminal, and obtains updated access information of the router from the second proxy terminal through the transmission channel. And establishing a transmission channel with the router according to the updated access information of the router.
Specifically, after the router changes the access information, each wireless terminal scans other wireless terminals until a second proxy terminal in an AP mode is started, searches a matched password according to the SSID of the second proxy terminal in a second access information list, establishes connection with the second proxy terminal through the searched password, acquires updated access information of the router from the second proxy terminal, and establishes connection with the router again through the updated access information.
According to the network configuration method of the wireless terminal, the wireless terminal is electrified to enter the AP mode, a transmission channel is established with the first proxy terminal, access information of the router is received through the transmission channel, the transmission channel is established with the router according to the access information of the router, and the AP mode is exited. Each non-terminal obtains the access information of the router from the second proxy terminal and then automatically connects to the router. The method ensures that the user only needs to manually configure the network for the proxy terminal, other wireless terminals are automatically configured one by the proxy terminal, and the network configuration efficiency can be improved.
In one embodiment, as shown in fig. 8, there is provided a wireless terminal apparatus including: a receiving module 602 and a connecting module 604, wherein:
and the receiving module 602 is configured to power up to enter an AP mode, establish a transmission channel with the first proxy terminal, and receive the access information of the router through the transmission channel.
And the connection module 604 is configured to establish a transmission channel with the router according to the access information of the router, and exit the AP mode.
For specific limitations of the wireless terminal apparatus, reference may be made to the above limitation of the network configuration method of the wireless terminal, and no further description is given here. The various modules in the wireless terminal described above may be implemented in whole or in part by software, hardware, and combinations thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a terminal, and the internal structure thereof may be as shown in fig. 9. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer 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 computer programs in the non-volatile storage media. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a network configuration method of a wireless terminal. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, can also be keys, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the structure shown in fig. 9 is merely a block diagram of a portion of the structure associated with the present application and is not limiting of the computer device to which the present application applies, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In one embodiment, a computer device is provided comprising a memory and a processor, the memory having stored therein a computer program, the processor when executing the computer program performing the steps of:
the receiving module is used for powering on to enter an AP mode, establishing a transmission channel with the proxy terminal, and receiving access information of the router through the transmission channel;
and the connection module is used for establishing a transmission channel with the router according to the access information of the router and exiting the AP mode.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of:
the receiving module is used for powering on to enter an AP mode, establishing a transmission channel with the proxy terminal, and receiving access information of the router through the transmission channel;
And the connection module is used for establishing a transmission channel with the router according to the access information of the router and exiting the AP mode.
In one embodiment, a network configuration system is provided that includes a mobile terminal, a plurality of wireless terminals, and a router.
The mobile terminal acquires first access information of a plurality of wireless terminals and access information of a router, selects one of the wireless terminals as a first proxy terminal, establishes a transmission channel with the first proxy terminal, and sends the first access information of other wireless terminals and the access information of the router to the first proxy terminal through the transmission channel;
the first proxy terminal establishes a transmission channel with the mobile terminal, acquires access information of a router and first access information of other wireless terminals through the transmission channel, is connected with the router according to the access information of the router, and sends the wireless configuration success information to the mobile terminal through the wireless channel;
the mobile terminal acquires wireless configuration success information and feeds back an agent configuration starting instruction to an agent terminal according to the wireless configuration success information;
The first proxy terminal acquires a start proxy configuration instruction, establishes transmission channels respectively with other wireless terminals in an AP mode according to the start proxy configuration instruction, and sends the access information of the router to the other wireless terminals through each transmission channel;
the other wireless terminals start an AP mode, establish a transmission channel with a first proxy terminal, receive access information of a router through the transmission channel, connect with the router according to the access information of the router, and close the AP after successful connection;
after each wireless terminal is connected to the router, a multicast group is established, second access information of the wireless terminal is periodically sent to the multicast group, the multicast group is monitored, the second access information of other wireless terminals is obtained from the multicast group, and a second access information queue is formed according to the second access information;
after the router changes the access information, the mobile terminal acquires the updated access information of the router; selecting one of the wireless terminals as a second proxy terminal, establishing a transmission channel with the proxy terminal according to the first access information of the second proxy terminal, and sending the updated access information to the second proxy terminal through the transmission channel so that other wireless terminals acquire the second access information of the second proxy terminal from a multicast group, establishing the transmission channel with the second proxy terminal according to the second access information, and acquiring the updated access information of the router from the second proxy terminal through the transmission channel;
The second proxy terminal is disconnected with the router, a transmission channel is established with the mobile terminal, updated access information of the router is obtained through the transmission channel, an AP mode is started, so that other wireless terminals find out second access information of the second proxy terminal according to second access information queuing, the transmission channel is established with the second proxy terminal by utilizing the second access information, and the updated access information of the router is obtained from the second proxy terminal through the transmission channel;
the other wireless terminals are disconnected with the router, the AP of the second proxy terminal is scanned, a transmission channel is established with the second proxy terminal according to the second access information of the second proxy terminal, and updated access information of the router is acquired from the second proxy terminal through the transmission channel; and establishing a transmission channel with the router according to the updated access information of the router.
In a specific embodiment, as shown in fig. 10, a timing diagram of interactions between a mobile terminal, a plurality of wireless terminals, and a router in a network configuration system is provided.
Firstly, after a plurality of wireless terminals are powered on, respectively using unique first access information: SSID and password turn on AP, e.g., a plurality of wireless terminals is three wireless terminals, including: wireless terminal 1, wireless terminal 2, and wireless terminal 3, wherein wireless terminal 1 turns on AP1 using SSID1 and password 1; the wireless terminal 2 starts the AP2 by using the SSID2 and the password 2; the wireless terminal 3 turns on the AP3 using the SSID3 and the password 3.
The mobile terminal is a mobile phone APP, and the two-dimensional codes on the surfaces of the wireless terminals are scanned in sequence to obtain the SSID and the password of each wireless terminal. And the mobile phone APP randomly selects one wireless terminal as a proxy terminal. As an example, the wireless terminal 1 is selected as a proxy terminal. The handset APP connects to the AP1 of the wireless terminal 1 using SSID1 and password 1, and transmits SSIDk and password of the wireless router to the wireless terminal 1, and then disconnects from the wireless terminal 1 and connects to the wireless router.
After acquiring the SSID and the password of the wireless router from the mobile phone end, the wireless terminal 1 closes the AP1, switches to a station mode, and connects to the wireless router by using the SSIDk and the password k. After the wireless terminal 1 is successfully connected with the wireless router, the wireless router sends the connection success information to the mobile phone.
After receiving the feedback information of the wireless terminal 1 through the wireless router, the mobile phone terminal sends SSID and password of other wireless terminals to the wireless terminal 1 through the wireless router, and starts the proxy process.
After receiving the SSID and the password of the other wireless terminals, the wireless terminal 1 connects the wireless terminal 2 and the wireless terminal 3 in sequence, and after establishing connection with the other wireless terminals, sends the SSID and the password of the wireless router to the other wireless terminals.
After the SSID and the password of the wireless router are acquired by other wireless terminals, the wireless terminals are automatically connected to the wireless router. In a specific embodiment, as shown in fig. 11, a timing diagram of interaction between a mobile terminal, a plurality of wireless terminals and a router in a network configuration system after the router changes access information is provided.
Firstly, the wireless router changes the access information into SSIDy and password y, so that each wireless terminal is disconnected with the router respectively.
The mobile terminal is a mobile phone APP, after the mobile phone APP obtains updated access information of the wireless router, the wireless terminal 1 is selected as a second proxy terminal, and SSIDy and the password y of the wireless router are configured in the wireless terminal 1.
The wireless terminal 1 turns on the AP mode.
The wireless terminal 2 and the wireless terminal 3 start the station mode, and establish connection with the wireless terminal 1 by searching the password of the wireless terminal 1 from the second access information list of each other wireless terminal acquired from the multicast group, and acquire the SSIDy and the password y of the wireless router from the wireless terminal 1 through the connection, thereby re-establishing connection with the wireless router.
In the network configuration system of the wireless terminal, the proxy terminal acquires the access information of the router and the access information of other wireless terminals after passing through the transmission channel established with the mobile terminal. After the proxy terminal is successfully connected to the router, switching to an AP client mode according to a start proxy configuration instruction sent by the mobile terminal, scanning soft APs generated by other surrounding wireless terminals in an AP active mode, after the soft APs are matched to the SSID, connecting the soft APs to the wireless terminal according to a corresponding password, and then sending access information of the router to the matched wireless terminal. In this way, the proxy terminal scans surrounding soft APs to configure the network for other wireless terminals one by one. The key point is that each wireless terminal comprises an agent terminal with unique SSID and password, and the wireless terminal and the agent terminal are in AP passive mode when acquiring information through a transmission channel, so that when other terminals send information like the wireless terminal, the wireless terminal needs to know the unique SSID and password of the wireless terminal to send the information successfully. Therefore, the information security is ensured, the access information of the router is not revealed, and meanwhile, the situation of mismatching is avoided. And after each wireless terminal is connected to the router, the multicast group is established together, and the respective second access information is sent to the multicast group, and meanwhile, each wireless terminal acquires the second access information of other wireless terminals from the multicast group, and forms the second access information list by each second access information and stores the second access information list. After the router replaces the password, one wireless terminal is selected as a second proxy terminal through the mobile terminal, updated access information of the router is sent to the wireless terminal, other wireless terminals acquire second access information of the wireless terminal from a second access information list respectively, and updated access information of the router is acquired from the wireless terminal. Therefore, after the password of the router is changed, the work of re-distributing the network can be completed only by establishing a transmission channel with one wireless terminal.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the various embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile 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. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples merely represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the invention. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application is to be determined by the claims appended hereto.

Claims (14)

1. A method of network configuration, the method comprising:
acquiring first access information of a plurality of wireless terminals and access information of a router;
selecting one of the wireless terminals as a first proxy terminal, and establishing a transmission channel with the first proxy terminal according to first access information of the first proxy terminal; wherein the first access information includes an SSID and a password;
And the first proxy terminal respectively establishes an encrypted transmission channel with each wireless terminal according to the first access information of the other wireless terminals so that the first proxy terminal can send the access information of the router to the other wireless terminals, and all the wireless terminals respectively establish the transmission channels with the router.
2. The method of claim 1, wherein the transmitting the first access information of the other wireless terminals and the access information of the router to the first proxy terminal through the transmission channel, the first proxy terminal respectively establishing an encrypted transmission channel with each of the wireless terminals according to the first access information of the other wireless terminals to cause the proxy terminal to transmit the access information of the router to the other wireless terminals, and causing all wireless terminals to respectively establish transmission channels with the router comprises:
transmitting the first access information of other wireless terminals and the access information of a router to the first proxy terminal through the transmission channel, so that the first proxy terminal establishes the transmission channel with the router according to the access information of the router;
Acquiring channel establishment success information fed back by a first proxy terminal;
and sending an agent configuration starting instruction to the first proxy terminal according to the channel establishment success information, so that the first proxy terminal can send the access information of the router to other wireless terminals according to the agent configuration instruction, and all the wireless terminals can respectively establish transmission channels with the router.
3. The method according to claim 1, wherein the method further comprises: after the router changes the access information,
acquiring updated access information of the router; selecting one of the wireless terminals as a second proxy terminal, and establishing a transmission channel with the proxy terminal according to first access information of the second proxy terminal;
and sending the updated access information to the second proxy terminal through the transmission channel so that other wireless terminals acquire second access information of the second proxy terminal from the multicast group, establishing the transmission channel with the second proxy terminal according to the second access information, and acquiring the updated access information of the router from the second proxy terminal through the transmission channel.
4. The method of claim 1, wherein the manner in which the transmission channel is established comprises:
Through any one of wifi, bluetooth and NFC.
5. A mobile terminal, the mobile terminal comprising:
the acquisition module is used for acquiring access information of a plurality of wireless terminals and access information of a router;
the selecting module is used for selecting one of the wireless terminals as a proxy terminal and establishing a transmission channel with the proxy terminal according to the access information of the proxy terminal; wherein the access information comprises an SSID and a password;
and the transmission module is used for transmitting the access information of other wireless terminals and the access information of the router to the proxy terminal through the transmission channels, and the proxy terminal respectively establishes an encrypted transmission channel with each wireless terminal according to the access information of the other wireless terminals so that the proxy terminal transmits the access information of the router to the other wireless terminals and all the wireless terminals respectively establish the transmission channels with the router.
6. A method of network configuration, the method comprising:
establishing a transmission channel with a mobile terminal, and acquiring access information of a router and first access information of other wireless terminals through the transmission channel;
According to the access information of the router, a transmission channel is established with the router, and channel establishment success information is sent to the mobile terminal through the transmission channel, so that the mobile terminal feeds back a start agent configuration instruction according to the channel establishment success information;
the first access information includes: SSID and password;
acquiring a starting agent configuration instruction, and entering a server mode according to the starting agent configuration instruction;
scanning APs of other wireless terminals, searching for a matched wireless terminal according to SSIDs of the other wireless terminals, and establishing a transmission channel with the matched wireless terminal by using a password corresponding to the SSID;
and sending the access information of the router to the matched wireless terminal through the transmission channel so as to enable the matched wireless terminal to establish the transmission channel with the router.
7. The method of claim 6, wherein said transmitting access information of said router to said matched wireless terminal over said transmission channel such that said matched wireless terminal establishes a transmission channel with said router further comprises: and establishing a multicast group with other wireless terminals, periodically sending second access information of the wireless terminals to the multicast group, monitoring the multicast group, acquiring the second access information of the other wireless terminals from the multicast group, utilizing the second access information of the other wireless terminals, and forming a second access information queue.
8. A wireless terminal, the wireless terminal comprising:
the acquisition module is used for establishing a transmission channel with the mobile terminal, and acquiring access information of a router and access information of other wireless terminals through the transmission channel;
the connection module is used for establishing a transmission channel with the router according to the access information of the router, and sending channel establishment success information to the mobile terminal through the transmission channel so that the mobile terminal feeds back a start agent configuration instruction according to the channel establishment success information;
the instruction execution module is used for acquiring a starting agent configuration instruction and entering a server mode according to the starting agent configuration instruction; scanning APs of other wireless terminals, searching for a matched wireless terminal according to SSIDs of the other wireless terminals, and establishing a transmission channel with the matched wireless terminal by using a password corresponding to the SSID; transmitting the access information of the router to the matched wireless terminal through the transmission channel so as to enable the matched wireless terminal to establish the transmission channel with the router; wherein the access information includes: SSID and password.
9. A method of network configuration, the method comprising: after the router changes the access information, disconnecting the router from the router;
Establishing a transmission channel with a mobile terminal, acquiring updated access information of a router through the transmission channel, and starting an AP mode so that other wireless terminals can find second access information of a second proxy terminal according to second access information queuing, establishing the transmission channel with the second proxy terminal by utilizing the second access information, and acquiring the updated access information of the router from the second proxy terminal through the transmission channel; wherein the second access information includes an SSID and a password.
10. A wireless terminal, the wireless terminal comprising:
the connection module is used for establishing a transmission channel with the mobile terminal, acquiring updated access information of the router through the transmission channel, starting an AP mode, enabling other wireless terminals to find second access information of a second proxy terminal according to second access information queuing, establishing the transmission channel with the second proxy terminal by utilizing the second access information, and acquiring the updated access information of the router from the second proxy terminal through the transmission channel; wherein, the second access information comprises SSID and password.
11. A method of network configuration, the method comprising:
Powering up to enter an AP mode, establishing a transmission channel with a first proxy terminal, and receiving access information of a router through the transmission channel;
establishing a transmission channel with the router according to the access information of the router, and exiting the AP mode;
after the router changes the access information, the router is disconnected with the router;
scanning an AP of a second proxy terminal, establishing a transmission channel with the second proxy terminal according to second access information of the second proxy terminal, and acquiring updated access information of a router from the second proxy terminal through the transmission channel;
and establishing a transmission channel with the router according to the updated access information of the router.
12. The method of claim 11, wherein the establishing a transmission channel with the router according to the access information of the router further comprises: and establishing a multicast group with the proxy terminal, sending second access information of the proxy terminal to the multicast group, monitoring the multicast group, acquiring second access information of other wireless terminals from the multicast group, and forming a second access information queue.
13. A wireless terminal, the wireless terminal comprising:
The receiving module is used for powering on to enter an AP mode, establishing a transmission channel with the first proxy terminal, and receiving access information of the router through the transmission channel;
the connection module is used for establishing a transmission channel with the router according to the access information of the router and exiting the AP mode; after the router changes the access information, the router is disconnected with the router; scanning an AP of a second proxy terminal, establishing a transmission channel with the second proxy terminal according to second access information of the second proxy terminal, and acquiring updated access information of a router from the second proxy terminal through the transmission channel; and establishing a transmission channel with the router according to the updated access information of the router.
14. A network configuration system, the system comprising a mobile terminal, a plurality of wireless terminals, and a router;
the mobile terminal acquires first access information of a plurality of wireless terminals and access information of a router, selects one of the wireless terminals as a first proxy terminal, establishes a transmission channel with the first proxy terminal, and sends the access information of other wireless terminals and the access information of the router to the first proxy terminal through the transmission channel; wherein the first access information includes an SSID and a password;
The first proxy terminal establishes a transmission channel with the mobile terminal, acquires access information of a router and first access information of other wireless terminals through the transmission channel, is connected with the router according to the access information of the router, and sends wireless configuration success information to the mobile terminal through a wireless channel; the mobile terminal acquires wireless configuration success information and feeds back an agent configuration starting instruction to an agent terminal according to the wireless configuration success information;
the first proxy terminal acquires a starting proxy configuration instruction, establishes encrypted transmission channels respectively with other wireless terminals in an AP mode according to the starting proxy configuration instruction, and sends the access information of the router to the other wireless terminals through the transmission channels;
the other wireless terminals start an AP mode, establish a transmission channel with a first proxy terminal, receive access information of a router through the transmission channel, connect with the router according to the access information of the router, and close the AP after successful connection;
after each wireless terminal is connected to the router, a multicast group is established, second access information of the wireless terminal is periodically sent to the multicast group, the multicast group is monitored, the second access information of other wireless terminals is obtained from the multicast group, and a second access information queue is formed according to the second access information;
After the router changes the access information, the mobile terminal acquires the updated access information of the router; selecting one of the wireless terminals as a second proxy terminal, establishing a transmission channel with the proxy terminal according to the first access information of the second proxy terminal, and sending the updated access information to the second proxy terminal through the transmission channel so that other wireless terminals acquire the second access information of the second proxy terminal from a multicast group, establishing the transmission channel with the second proxy terminal according to the second access information, and acquiring the following new access information of the router from the second proxy terminal through the transmission channel;
the second proxy terminal is disconnected with the router, a transmission channel is established with the mobile terminal, updated access information of the router is obtained through the transmission channel, an AP mode is started, so that other wireless terminals find out second access information of the second proxy terminal according to second access information queuing, the transmission channel is established with the second proxy terminal by utilizing the second access information, and the updated access information of the router is obtained from the second proxy terminal through the transmission channel;
The other wireless terminals are disconnected with the router, the AP of the second proxy terminal is scanned, a transmission channel is established with the second proxy terminal according to the second access information of the second proxy terminal, and updated access information of the router is acquired from the second proxy terminal through the transmission channel; and establishing a transmission channel with the router according to the updated access information of the router.
CN201910925325.3A 2019-09-27 2019-09-27 Network configuration method, terminal and system Active CN110784867B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910925325.3A CN110784867B (en) 2019-09-27 2019-09-27 Network configuration method, terminal and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910925325.3A CN110784867B (en) 2019-09-27 2019-09-27 Network configuration method, terminal and system

Publications (2)

Publication Number Publication Date
CN110784867A CN110784867A (en) 2020-02-11
CN110784867B true CN110784867B (en) 2023-04-25

Family

ID=69384650

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910925325.3A Active CN110784867B (en) 2019-09-27 2019-09-27 Network configuration method, terminal and system

Country Status (1)

Country Link
CN (1) CN110784867B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105430647A (en) * 2015-11-04 2016-03-23 广东欧珀移动通信有限公司 Wireless sound box networking method and mobile terminal
CN106358265A (en) * 2016-11-15 2017-01-25 贝斯拓欧洲控股有限公司 Internet access method and device for intelligent terminal equipment
CN106658659A (en) * 2016-11-15 2017-05-10 贝斯拓欧洲控股有限公司 Method and device for intelligent terminal equipment to access Internet

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7986666B2 (en) * 2007-01-17 2011-07-26 Qualcomm Incorporated Creation and transmittal of add messages

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105430647A (en) * 2015-11-04 2016-03-23 广东欧珀移动通信有限公司 Wireless sound box networking method and mobile terminal
CN106358265A (en) * 2016-11-15 2017-01-25 贝斯拓欧洲控股有限公司 Internet access method and device for intelligent terminal equipment
CN106658659A (en) * 2016-11-15 2017-05-10 贝斯拓欧洲控股有限公司 Method and device for intelligent terminal equipment to access Internet

Also Published As

Publication number Publication date
CN110784867A (en) 2020-02-11

Similar Documents

Publication Publication Date Title
CN101605330B (en) Method and device for building wireless distribution system connection
CN110139271B (en) Method, system and device for configuring intelligent household equipment to access network in batch
US9907016B2 (en) Communication device
US10009947B2 (en) Wireless communication terminal, wireless communication system, and storage medium storing wireless communication program
CN111866998A (en) Bluetooth network distribution method, equipment and storage medium
US8886833B1 (en) Method and apparatus for peer-to-peer networking
US11452156B2 (en) Configuration system, client device, embedded device configuration method, and storage medium
CN104967596A (en) Method and apparatus for realizing binding and communication between user terminal and Internet of things device
US10887804B2 (en) Pre-roaming security key distribution for faster roaming transitions over cloud-managed Wi-Fi networks of heterogeneous IP subnets
US11395121B2 (en) Communication device, non-transitory computer-readable recording medium storing computer-readable instructions for communication device, and method executed by communication device
JP5167322B2 (en) Data transfer method and terminal
CN103327644A (en) Method and equipment for wireless connection
CN111918256A (en) Intelligent device network distribution method and device based on Bluetooth and storage medium
CN105472699A (en) Access method and system of smart home device
CN108282521B (en) BIP protocol data transmission method and device, computer equipment and storage medium
CN106413047A (en) Method and device for enabling intelligent device to be accessed to wireless network
CN105847048B (en) The configuration method and device of smart machine
CN107211265B (en) Method and device for secure interaction between terminals
CN111954199A (en) Wireless network access method, mobile terminal and readable storage medium
CN105828274A (en) Terminal connection method, first terminal and second terminal
CN110784867B (en) Network configuration method, terminal and system
EP4021082A1 (en) Method and device for networking, and storage medium
JP2019050446A (en) Access control method and device thereof
CN106102050A (en) Wireless network configuration method, wireless router and smart machine
WO2020199019A1 (en) Method and device for establishing wifi communication connection and computer-readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant