CN110730114B - Method and equipment for configuring network configuration information - Google Patents

Method and equipment for configuring network configuration information Download PDF

Info

Publication number
CN110730114B
CN110730114B CN201910824319.9A CN201910824319A CN110730114B CN 110730114 B CN110730114 B CN 110730114B CN 201910824319 A CN201910824319 A CN 201910824319A CN 110730114 B CN110730114 B CN 110730114B
Authority
CN
China
Prior art keywords
network
wireless
information
configuration information
electronic device
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
CN201910824319.9A
Other languages
Chinese (zh)
Other versions
CN110730114A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201910824319.9A priority Critical patent/CN110730114B/en
Publication of CN110730114A publication Critical patent/CN110730114A/en
Priority to PCT/CN2020/111470 priority patent/WO2021043045A1/en
Priority to US17/639,425 priority patent/US20220303180A1/en
Priority to EP20860656.6A priority patent/EP4020896A4/en
Application granted granted Critical
Publication of CN110730114B publication Critical patent/CN110730114B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2807Exchanging configuration information on appliance services in a home automation network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0806Configuration setting for initial configuration or provisioning, e.g. plug-and-play
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/084Configuration by using pre-existing information, e.g. using templates or copying from other elements
    • H04L41/0843Configuration by using pre-existing information, e.g. using templates or copying from other elements based on generic templates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/085Retrieval of network configuration; Tracking network configuration history
    • H04L41/0853Retrieval of network configuration; Tracking network configuration history by actively collecting configuration information or by backing up configuration information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/085Retrieval of network configuration; Tracking network configuration history
    • H04L41/0853Retrieval of network configuration; Tracking network configuration history by actively collecting configuration information or by backing up configuration information
    • H04L41/0856Retrieval of network configuration; Tracking network configuration history by actively collecting configuration information or by backing up configuration information by backing up or archiving configuration information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • H04W12/065Continuous authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/025Services making use of location information using location based information parameters
    • 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
    • H04W8/00Network data management
    • H04W8/22Processing or transfer of terminal data, e.g. status or physical capabilities
    • H04W8/24Transfer of terminal data
    • H04W8/245Transfer of terminal data from a network towards a terminal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/12Discovery or management of network topologies

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Automation & Control Theory (AREA)
  • Databases & Information Systems (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the application provides a method and equipment for configuring network configuration information, relates to the technical field of electronics, and can reduce user operation and improve user experience when wireless access equipment is replaced. The specific scheme is as follows: the electronic equipment accesses a first wireless network provided by first wireless access equipment; if the electronic equipment determines that the electronic equipment meets the preset condition according to the first wireless network and the stored historical information, the electronic equipment sends the network configuration information of the second wireless access equipment to the first wireless access equipment; the preset condition is used for indicating that the electronic equipment is changed from being accessed into the second wireless access equipment to being accessed into the first wireless access equipment, the network configuration information is used for configuring the first wireless access equipment, and the network configuration information comprises a network name and a network password of the wireless network. The embodiment of the application is used for configuring the information of the wireless access equipment.

Description

Method and equipment for configuring network configuration information
Technical Field
The embodiment of the application relates to the technical field of electronics, in particular to a method and equipment for configuring network configuration information.
Background
The wireless router can convert signals such as broadband network signals or mobile network signals into wireless signals through the antenna to form a wireless network. The wireless network equipment near the wireless router can access the wireless router and access a wireless network provided by the wireless router, so that the internet surfing and communication are carried out through wireless signals.
When a new wireless router and an old wireless router are replaced, a solution generally adopted in the prior art is that a user sets each wireless network device accessing the old wireless router, so that the wireless network devices access wireless networks provided by the new wireless router and the new wireless router respectively. The scheme requires complex operation of a user, and the user experience is poor.
Disclosure of Invention
The embodiment of the application provides a method and equipment for configuring network configuration information, which can reduce user operation and improve user experience when wireless access equipment is updated.
In order to achieve the above purpose, the embodiment of the present application adopts the following technical solutions:
in one aspect, a technical solution of the present application provides a method for configuring network configuration information, including: the electronic equipment accesses a first wireless network provided by the first wireless access equipment. And if the electronic equipment determines that the electronic equipment meets the preset condition according to the first wireless network and the stored historical information, the electronic equipment sends the network configuration information of the second wireless access equipment to the first wireless access equipment. The preset condition is used for indicating that the electronic equipment is changed from being accessed into the second wireless access equipment to being accessed into the first wireless access equipment, the network configuration information is used for configuring the first wireless access equipment, and the network configuration information comprises a network name and a network password of the wireless network.
In this scheme, the electronic device may automatically determine that the accessed wireless access device is replaced according to the stored history information, so that the network configuration information of the second wireless access device before replacement may be sent to the replaced second wireless access device. The first radio access device may configure its own network configuration information to be consistent with the network configuration information of the second radio access device before replacement. According to the scheme, the wireless network equipment which is accessed to the second wireless network provided by the second wireless access equipment can be automatically accessed to the first wireless network provided by the first wireless access equipment according to the network configuration information of the second wireless access equipment, and the complex operation of a user is reduced.
In one possible design, the determining, by the electronic device, that the electronic device satisfies the preset condition according to the first wireless network and the stored history information includes: if the electronic equipment determines that the first wireless network is not accessed before, the electronic equipment acquires first position information, and the first position information is used for indicating the current position of the electronic equipment. The electronic equipment determines that the electronic equipment meets a preset condition according to the first position information and the historical information; the preset condition includes that the first position information is the same as the second position information in the history information. Or the preset condition includes that the first position information is the same as the second position information in the historical information, and the access times of the second wireless network corresponding to the second position information in the historical information are greater than or equal to a preset value. The second wireless network is a wireless network provided by the second wireless access equipment, and the first wireless network is different from the second wireless network.
In this scenario, the electronic device may determine whether the wireless access device is replaced based on the first location information and the history information. If the electronic device has previously accessed the second wireless network at the location indicated by the first location information or has accessed the second wireless network for multiple times, and the first wireless network is accessed at the same location this time, it may be indicated that the wireless access device providing the wireless network has changed, and the second wireless access device is replaced with the first wireless access device.
In another possible design, the method further includes: if the electronic equipment determines that the electronic equipment does not meet the preset condition according to the first position information and the history information, the electronic equipment stores the corresponding relation between the first position information and the first wireless network and records that the access frequency of the first wireless network is 1.
In this way, the electronic device may subsequently determine access to the first wireless network based on the stored information.
In another possible design, the method further includes: if the electronic device determines that the first wireless network is accessed before, the electronic device adds 1 to the number of accesses corresponding to the first wireless network.
In this scheme, if the electronic device determines that the first wireless network is accessed before, the number of times of access may be increased, so that it may be determined whether the wireless access device has changed according to the number of times when accessing other wireless networks later.
In another possible design, the history information includes a correspondence between a network name of the wireless network, access location information, identification information of the wireless access device, and access times.
In another possible design, the history information includes a correspondence between a network name of the wireless network, a network password, and the access location information.
In another possible design, the history information includes a correspondence of a network name, a network password, access location information, and access times of the wireless network.
In this way, the electronic device can determine whether the wireless access device is replaced according to the related content stored in the history information.
In another possible design, the determining, by the electronic device, that the electronic device satisfies the preset condition according to the first wireless network and the stored history information includes: if the electronic device determines that the first wireless network is not accessed before, the electronic device scans first adjacent network information, wherein the first adjacent network information is network information of wireless networks around the first wireless network. The electronic equipment determines that the electronic equipment meets a preset condition according to the first adjacent network information and the history information; the preset condition includes that the similarity between the first adjacent network information and the second adjacent network information of the second wireless network in the history information is greater than or equal to a preset value. The second wireless network is provided by the second wireless access device, the second adjacent network information is network information of wireless networks around the second wireless network, and the first wireless network is different from the second wireless network.
In this scheme, the electronic device may determine whether to replace the wireless access device according to the first neighboring network information and the history information. If the scanned first neighboring network information after accessing the first wireless network at this time is matched with the second neighboring network information of the second wireless network stored before the electronic device, it may be indicated that the neighboring network information is not changed basically, the geographic environment where the electronic device is located may not be changed, but the accessed wireless network is changed, and the wireless access device providing the wireless network may be changed.
In another possible design, the method further includes: and if the electronic equipment determines that the electronic equipment does not meet the preset condition according to the first adjacent network information and the historical information, the electronic equipment stores the corresponding relation between the first adjacent network information and the first wireless network.
In this way, the electronic device may subsequently determine access to the first wireless network based on the stored information.
In another possible design, the first neighboring network information includes network names of wireless networks surrounding the first wireless network, which are scanned by the electronic device; or, the first adjacent network information includes network names and network signal strengths of wireless networks surrounding the first wireless network, which are scanned by the electronic device.
It is understood that the first neighboring network information may be used to indicate a situation of a wireless network around the electronic device when the electronic device accesses the first wireless network.
In another possible design, the history information includes a correspondence between a network name of the wireless network, neighboring network information, and the number of accesses.
In another possible design, the history information includes a correspondence between a network name of the wireless network, neighboring network information, and location information.
In another possible design, the history information includes a correspondence between a network name of the wireless network, neighboring network information, location information, and access times.
In this way, the electronic device can determine whether the wireless access device is replaced according to the related content stored in the history information.
In another possible design, the electronic device sends network configuration information of the second wireless access device to the first wireless access device, including: the electronic equipment prompts a user to input management configuration information corresponding to the first wireless access equipment, wherein the management configuration information comprises a management account and/or a management password. And if the electronic equipment determines that the management configuration information input by the user is correct, the electronic equipment sends the network configuration information of the second wireless access equipment to the first wireless access equipment.
In the scheme, the electronic device can authenticate the identity of the user according to the management configuration information, and after the identity of the user is authenticated, the electronic device can send the network configuration information so that the first wireless access device can update the network configuration information.
In another possible design, before the electronic device accesses the first wireless network, the method further includes: the electronic equipment accesses a second wireless network provided by a second wireless access device. The electronic device obtains network management configuration information of the second wireless access device. The electronic equipment determines that the management configuration information input by the user is correct, and comprises the following steps: and if the management configuration information input by the user is consistent with the network management configuration information of the second wireless access device acquired by the electronic device, the electronic device determines that the management configuration information input by the user is correct.
In this way, the electronic device may acquire the network management configuration information of the second wireless access device when the second wireless network is previously accessed, so that the management configuration information input by the user may be authenticated.
In another possible design, the network configuration information further includes at least one of: a data encryption mode, a Media Access Control (MAC) address filtering rule, an Access Point (AP) isolation policy, a management frame encryption (PMF) switch state or Service Set Identifier (SSID) configuration rule.
The scheme can keep user configurations such as a data encryption mode, an MAC address filtering rule, an AP isolation strategy, a PMF switch state or an SSID configuration rule and the like, and the consistency between the first wireless access equipment and the second wireless access equipment enables a user to normally use the first wireless access equipment according to the previous setting on the second wireless access equipment, so that the use habit of the user is met, and the user is prevented from carrying out related configuration again.
In another possible design, the first wireless network and the second wireless network are Wi-Fi networks and the first wireless access device and the second wireless access device are wireless routers.
In this way, the electronic device may update network configuration information for a wireless router providing a Wi-Fi network.
On the other hand, an embodiment of the present application provides a method for configuring network configuration information, including: the wireless access equipment receives network configuration information of another wireless access equipment sent by the electronic equipment, wherein the network configuration information comprises a network name and a network password of a wireless network; the wireless access equipment configures the network configuration information of the wireless access equipment to be consistent with the network configuration information of another wireless access equipment.
In this scheme, the wireless access device may configure its own network configuration information to be consistent with the network configuration information of another wireless access device before replacement according to the network configuration information sent by the electronic device. Therefore, the scheme can enable the wireless network device which is previously accessed to the second wireless network provided by the other wireless access device according to the network configuration information of the other wireless access device to automatically access to the first wireless network provided by the wireless access device according to the network configuration information of the other wireless access device, and reduce the complex operation of a user.
In another aspect, an embodiment of the present application provides an electronic device, including: one or more processors; and a memory having code stored therein. The code, when executed by the electronic device, causes the electronic device to perform the steps of: accessing a first wireless network provided by a first wireless access device. And if the preset condition is determined to be met according to the first wireless network and the stored historical information, sending the network configuration information of the second wireless access equipment to the first wireless access equipment. The preset condition is used for indicating that the electronic equipment is changed from being accessed into the second wireless access equipment to being accessed into the first wireless access equipment, the network configuration information is used for configuring the first wireless access equipment, and the network configuration information comprises a network name and a network password of the wireless network.
In one possible design, determining that a preset condition is met according to the first wireless network and the stored historical information specifically includes: if the first wireless network is not accessed before, first position information is obtained, and the first position information is used for indicating the current position of the electronic equipment. Determining that a preset condition is met according to the first position information and the historical information; the preset condition includes that the first position information is the same as the second position information in the history information. Or the preset condition includes that the first position information is the same as the second position information in the historical information, and the access times of the second wireless network corresponding to the second position information in the historical information are greater than or equal to a preset value. The second wireless network is a wireless network provided by the second wireless access equipment, and the first wireless network is different from the second wireless network.
In another possible design, the code, when executed by the electronic device, further causes the electronic device to perform the steps of: and if the preset condition is determined not to be met according to the first position information and the historical information, storing the corresponding relation between the first position information and the first wireless network, and recording the access times of the first wireless network as 1.
In another possible design, the code, when executed by the electronic device, further causes the electronic device to perform the steps of: and if the first wireless network is determined to be accessed before, adding 1 to the access times corresponding to the first wireless network.
In another possible design, determining that a preset condition is met according to the first wireless network and the stored historical information specifically includes: if the first wireless network is determined not to be accessed before, scanning first adjacent network information, wherein the first adjacent network information is network information of wireless networks around the first wireless network. Determining that a preset condition is met according to the first adjacent network information and the historical information; the preset condition includes that the similarity between the first adjacent network information and the second adjacent network information of the second wireless network in the history information is greater than or equal to a preset value. The second wireless network is provided by the second wireless access device, the second adjacent network information is network information of wireless networks around the second wireless network, and the first wireless network is different from the second wireless network.
In another possible design, the code, when executed by the electronic device, further causes the electronic device to perform the steps of: and if the preset condition is determined not to be met according to the first adjacent network information and the historical information, storing the corresponding relation between the first adjacent network information and the first wireless network.
In another possible design, the first neighboring network information includes network names of wireless networks surrounding the first wireless network, which are scanned by the electronic device. Or, the first adjacent network information includes network names and network signal strengths of wireless networks surrounding the first wireless network, which are scanned by the electronic device.
In another possible design, sending the network configuration information of the second radio access device to the first radio access device specifically includes: and prompting a user to input management configuration information corresponding to the first wireless access equipment, wherein the management configuration information comprises a management account and/or a management password. And if the management configuration information input by the user is determined to be correct, sending the network configuration information of the second wireless access equipment to the first wireless access equipment.
In another possible design, the code, when executed by the electronic device, further causes the electronic device to perform the steps of: the second wireless network is accessed prior to accessing the first wireless network. And acquiring network management configuration information of second wireless access equipment, wherein the second wireless network is a wireless network provided by the second wireless access equipment. Determining that the management configuration information input by the user is correct specifically includes: and if the management configuration information input by the user is consistent with the network management configuration information of the second wireless access device acquired by the electronic device, determining that the management configuration information input by the user is correct.
In another aspect, an embodiment of the present application provides a wireless access device, including: one or more processors; and a memory having code stored therein; the code, when executed by the electronic device, causes the electronic device to perform the steps of: and receiving network configuration information of another wireless access device, which is sent by the electronic device, wherein the network configuration information comprises a network name and a network password of the wireless network. The wireless access equipment configures the network configuration information of the wireless access equipment to be consistent with the network configuration information of another wireless access equipment.
In another aspect, an information configuring apparatus is provided in an embodiment of the present application, where the apparatus is included in an electronic device or a first radio access device. The apparatus has the functionality to implement the behavior of the electronic device in any of the above aspects and possible designs. The function can be realized by hardware, and can also be realized by executing corresponding software by hardware. The hardware or software includes at least one module or unit corresponding to the above functions. E.g. access means/unit, determination means/unit, sending means/unit, acquisition means/unit, saving means/unit, etc.
In another aspect, an embodiment of the present application provides a computer storage medium, which includes computer instructions, and when the computer instructions are executed on an electronic device, the electronic device is caused to perform a method for configuring network configuration information in any one of the possible designs of the foregoing aspects.
In another aspect, an embodiment of the present application provides a computer storage medium, which includes computer instructions, and when the computer instructions are executed on a wireless access device, the wireless access device executes a method for configuring network configuration information in any one of the possible designs of the foregoing aspects.
In yet another aspect, the present application provides a computer program product, which when run on a computer, causes the computer to execute the method for configuring network configuration information in any one of the possible designs of the above aspect.
On the other hand, the embodiment of the present application provides a chip system, which is applied to an electronic device; the chip system includes one or more interface circuits and one or more processors; the interface circuit and the processor are interconnected through a line; the interface circuit is used for receiving signals from a memory of the electronic equipment and sending the signals to the processor, and the signals comprise computer instructions stored in the memory; when the processor executes the computer instructions, the electronic device performs a method of configuring network configuration information in any of the possible designs of the above aspects.
In another aspect, an embodiment of the present application provides a communication system, which includes an electronic device, a first wireless access device, and at least one wireless network device. The electronic device and the first radio access device may perform a configuration method of network configuration information in any possible design of the above aspects; the wireless network device can automatically access the first wireless network provided by the first wireless access device according to the network configuration information of the second wireless access device.
For the advantageous effects of the other aspects, reference may be made to the description of the advantageous effects of the method aspects, which is not repeated herein.
Drawings
Fig. 1 is a schematic diagram of a wireless system according to an embodiment of the present application;
fig. 2 is a schematic diagram of a wireless system in an intelligent home scenario provided in an embodiment of the present application;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure;
fig. 4A is a flowchart of a method for configuring network configuration information according to an embodiment of the present disclosure;
fig. 4B is a schematic diagram illustrating an effect of replacing a wireless router according to an embodiment of the present application;
FIGS. 5A-5D are a set of schematic diagrams of interfaces provided by embodiments of the present application;
fig. 6 is a flowchart of another method for configuring network configuration information according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of another electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application. In the description of the embodiments herein, "/" means "or" unless otherwise specified, for example, a/B may mean a or B; "and/or" herein is merely an association describing an associated object, and means that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, in the description of the embodiments of the present application, "a plurality" means two or more than two.
In the prior art, when wireless access devices such as a wireless router are replaced, a user needs to set each wireless network device accessing an old wireless access device, so that each wireless network device is respectively accessed to a new wireless access device and a wireless network provided by the new wireless access device, and therefore, the user operation is complex and the user experience is poor.
After the wireless access equipment is replaced, if the network configuration information of the new wireless access equipment is consistent with the network configuration information of the old wireless access equipment, the wireless network equipment which is previously accessed into the old wireless access equipment can be automatically accessed into the new wireless access equipment and the wireless network provided by the new wireless access equipment. The network configuration information may include a network name and a network password of the wireless network. The network name of the wireless network may be an SSID of a wireless module in the wireless access device.
Thus, in some existing implementations, the user may set the network configuration information of the new wireless access device to be consistent with the network configuration information of the old wireless access device. In this way, the user does not need to set for each wireless network device accessing the old wireless access device, and thus, the user's operation can be reduced.
However, many users do not know to set the network configuration information of the new wireless access device to be consistent with the network configuration information of the old wireless access device, and can automatically access the wireless network device that has previously accessed the old wireless access device to the new wireless access device. Alternatively, some users know that the network configuration information of the new wireless access device can be set to be consistent with the network configuration information of the old wireless access device, but do not know or forget the related information such as the network password of the old wireless access device, so that the setting cannot be performed. In addition, the existing method for setting the new wireless access device is also troublesome, and the user experience is poor.
In other existing embodiments, if the wireless network is a Wi-Fi network, the user may open a Wi-Fi protected setup (WPS) copy (copy) function of the new wireless access device and the old wireless access device, respectively. And carrying out WPS protocol interaction between the new wireless access equipment and the old wireless access equipment. In the interaction process, the new wireless access device can acquire the Wi-Fi configuration information of the old wireless access device and copy the Wi-Fi configuration information of the old wireless access device to the Wi-Fi configuration of the new wireless access device. Thus, the new wireless access device can set the network name and the network password of the provided Wi-Fi network to be consistent with the network name and the network password of the old wireless access device. This method requires the old wireless access device to function properly, and cannot be used if the old wireless access device is damaged. This approach also requires that both the new and old wireless access devices support WPS functionality. Moreover, this method requires the user to operate two wireless access devices simultaneously, which requires high operation requirements and is complicated to operate. Thus, this approach is not easy for the user to use.
The embodiment of the present application provides a method for configuring network configuration information, which can be applied to a wireless system 10 shown in fig. 1. The wireless system includes a wireless access device 01 and a plurality of wireless network devices 02. The wireless access device 01 includes a wireless module that can radiate wireless signals to the surroundings, thereby forming a wireless network. A plurality of wireless network devices 02 can access the wireless access device 01 and a wireless network provided by the wireless access device 01. The plurality of wireless network devices 02 includes a configuration device 03.
The configuration device can automatically recognize that the wireless access device is replaced, and automatically send the network configuration information of the old wireless access device to the new wireless access device, so that the new wireless access device sets the network configuration information of the new wireless access device to be consistent with the network configuration information of the old wireless access device. Therefore, the configuration information of the wireless network can be automatically copied and set under the condition that the wireless access equipment is replaced without manual operation of a user, so that a plurality of other wireless network equipment can be automatically accessed into the wireless network provided by the new wireless access equipment, and the user experience is better. In addition, the method does not require the normal function of the old wireless access equipment, and does not require that the new wireless access equipment and the old wireless access equipment support the WPS function.
For example, the wireless network may be a wireless communication network based on wireless communication technology such as wireless fidelity (Wi-Fi), bluetooth (bluetooth, BT), Near Field Communication (NFC), Infrared (IR), ZigBee (ZigBee), Frequency Modulation (FM), or Global Navigation Satellite System (GNSS). It is to be understood that the wireless network may also be other wireless communication networks not listed in the embodiments of the present application, and the embodiments of the present application do not limit the specific type of the wireless network.
The wireless access device can convert a broadband network signal or a mobile network signal and the like into a wireless signal through an antenna, thereby forming a wireless network. The wireless access device can also provide a wireless network and access the wireless network device to the devices of the wireless network. For example, the wireless access device may be a wireless access point, a wireless router or other electronic device with wireless access function. In the embodiment of the application, the wireless network device accesses the wireless access device, that is, accesses the wireless network provided by the wireless access device; the wireless access device accesses the wireless network, that is, accesses the wireless access device configuring the wireless network.
The wireless network device may be a mobile phone, a tablet computer, a notebook computer, a smart home device, an ultra-mobile personal computer (UMPC), a Personal Digital Assistant (PDA), a wearable device, or an Augmented Reality (AR)/Virtual Reality (VR) device, etc.
The configuration device may be an electronic device having a configuration function of the network configuration information provided in the embodiment of the present application, for example, a mobile phone or a tablet computer.
In one example, referring to fig. 2, the wireless system 10 is a smart home system, the wireless network is a Wi-Fi network, and the wireless access device 01 is a wireless router. The wireless router comprises a Wi-Fi module, and the Wi-Fi module can radiate wireless signals to the surroundings to form a Wi-Fi network. The wireless network device 02 may include electronic devices such as a mobile phone and a smart home device. The configuration device 03 may be a mobile phone. The intelligent household equipment can comprise electronic equipment such as a television, a refrigerator, an intelligent sound box, an air conditioner, an intelligent lamp, a curtain or an intelligent door lock. As a configuration device, the handset may automatically recognize that the wireless router has been replaced, and automatically set the network configuration information of the new wireless router to be consistent with the network configuration information of the old wireless router. Therefore, the intelligent household equipment can automatically access the wireless network provided by the new wireless router after replacement according to the network configuration information of the old wireless router.
By way of example, fig. 3 shows a schematic diagram of a configuration device 100. The configuration device 100 may be a configuration device or a wireless device. The configuration device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a Universal Serial Bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a key 190, a motor 191, an indicator 192, a camera 193, a display screen 194, a Subscriber Identification Module (SIM) card interface 195, and the like. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
Processor 110 may include one or more processing units, such as: the processor 110 may include an Application Processor (AP), a modem processor, a Graphics Processing Unit (GPU), an Image Signal Processor (ISP), a controller, a memory, a video codec, a Digital Signal Processor (DSP), a baseband processor, and/or a neural-Network Processing Unit (NPU), etc. The different processing units may be separate devices or may be integrated into one or more processors.
The controller may be, among other things, a neural center and a command center of the configuration device 100. The controller can generate an operation control signal according to the instruction operation code and the timing signal to complete the control of instruction fetching and instruction execution.
A memory may also be provided in processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to reuse the instruction or data, it can be called directly from memory. Avoiding repeated accesses reduces the latency of the processor 110, thereby increasing the efficiency of the system.
In some embodiments, processor 110 may include one or more interfaces. The interface may include an integrated circuit (I2C) interface, an integrated circuit built-in audio (I2S) interface, a Pulse Code Modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a Mobile Industry Processor Interface (MIPI), a general-purpose input/output (GPIO) interface, a Subscriber Identity Module (SIM) interface, and/or a Universal Serial Bus (USB) interface, etc.
The I2C interface is a bi-directional synchronous serial bus that includes a serial data line (SDA) and a Serial Clock Line (SCL). In some embodiments, processor 110 may include multiple sets of I2C buses. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, etc. through different I2C bus interfaces, respectively. For example: the processor 110 may be coupled to the touch sensor 180K via an I2C interface, such that the processor 110 and the touch sensor 180K communicate via an I2C bus interface to enable configuring touch functionality of the device 100.
The I2S interface may be used for audio communication. In some embodiments, processor 110 may include multiple sets of I2S buses. The processor 110 may be coupled to the audio module 170 via an I2S bus to enable communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 may communicate audio signals to the wireless communication module 160 via the I2S interface, enabling answering of calls via a bluetooth headset.
The PCM interface may also be used for audio communication, sampling, quantizing and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 may be coupled by a PCM bus interface. In some embodiments, the audio module 170 may also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to implement a function of answering a call through a bluetooth headset. Both the I2S interface and the PCM interface may be used for audio communication.
The UART interface is a universal serial data bus used for asynchronous communications. The bus may be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is generally used to connect the processor 110 with the wireless communication module 160. For example: the processor 110 communicates with a bluetooth module in the wireless communication module 160 through a UART interface to implement a bluetooth function. In some embodiments, the audio module 170 may transmit the audio signal to the wireless communication module 160 through a UART interface, so as to realize the function of playing music through a bluetooth headset.
MIPI interfaces may be used to connect processor 110 with peripheral devices such as display screen 194, camera 193, and the like. The MIPI interface includes a Camera Serial Interface (CSI), a Display Serial Interface (DSI), and the like. In some embodiments, processor 110 and camera 193 communicate through a CSI interface to enable configuring the capture functionality of device 100. Processor 110 and display screen 194 communicate via a DSI interface to implement the display functions of configuration device 100.
The GPIO interface may be configured by software. The GPIO interface may be configured as a control signal and may also be configured as a data signal. In some embodiments, a GPIO interface may be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, and the like. The GPIO interface may also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, and the like.
The USB interface 130 is an interface conforming to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. USB interface 130 may be used to connect a charger to charge configuration device 100 and may also be used to transfer data between configuration device 100 and peripheral devices. And the earphone can also be used for connecting an earphone and playing audio through the earphone. The interface may also be used to connect other electronic devices, such as AR devices and the like.
It should be understood that the interfacing relationship between the modules illustrated in the embodiments of the present application is only an illustration, and does not form a structural limitation on the configuration device 100. In other embodiments of the present application, the configuration device 100 may also adopt different interface connection manners or a combination of a plurality of interface connection manners in the above embodiments.
The charging management module 140 is configured to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of the configuration device 100. The charging management module 140 may also supply power to the configuration device through the power management module 141 while charging the battery 142.
The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140 and provides power to the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 may also be used to monitor parameters such as battery capacity, battery cycle count, battery state of health (leakage, impedance), etc. In some other embodiments, the power management module 141 may also be disposed in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may be disposed in the same device.
The wireless communication function of the configuration apparatus 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the configuration device 100 may be used to cover a single or multiple communication bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution including wireless communication of 2G/3G/4G/5G, etc. applied on the configuration device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a Low Noise Amplifier (LNA), and the like. The mobile communication module 150 may receive the electromagnetic wave from the antenna 1, filter, amplify, etc. the received electromagnetic wave, and transmit the electromagnetic wave to the modem processor for demodulation. The mobile communication module 150 may also amplify the signal modulated by the modem processor, and convert the signal into electromagnetic wave through the antenna 1 to radiate the electromagnetic wave. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the same device as at least some of the modules of the processor 110.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating a low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then passes the demodulated low frequency baseband signal to a baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.) or displays an image or video through the display screen 194. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be provided in the same device as the mobile communication module 150 or other functional modules, independent of the processor 110.
The wireless communication module 160 may provide a solution for wireless communication applied to the configuration device 100, including Wireless Local Area Networks (WLANs) (e.g., wireless fidelity (Wi-Fi) networks), bluetooth (bluetooth, BT), Global Navigation Satellite System (GNSS), Frequency Modulation (FM), Near Field Communication (NFC), Infrared (IR), and the like. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering processing on electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, perform frequency modulation and amplification on the signal, and convert the signal into electromagnetic waves through the antenna 2 to radiate the electromagnetic waves.
The wireless communication module 160 may scan for and access a wireless network. The wireless communication module 160 may obtain a network name of the accessed wireless network and configure network information (e.g., network name or signal strength, etc.) of the wireless network around the device 100.
The mobile communication module 150 or the wireless communication module 160 may also be used for positioning to determine geographic location information when configuring the device 100 for access to a wireless network. For example, GPS positioning, base station positioning, Wi-Fi or Bluetooth indoor positioning can be performed.
In some embodiments, antenna 1 of the configuration device 100 is coupled to the mobile communication module 150 and antenna 2 is coupled to the wireless communication module 160 so that the configuration device 100 can communicate with networks and other devices via wireless communication techniques. The wireless communication technology may include global system for mobile communications (GSM), General Packet Radio Service (GPRS), code division multiple access (code division multiple access, CDMA), Wideband Code Division Multiple Access (WCDMA), time-division code division multiple access (time-division code division multiple access, TD-SCDMA), Long Term Evolution (LTE), LTE, BT, GNSS, WLAN, NFC, FM, and/or IR technologies, among others. GNSS may include Global Positioning System (GPS), global navigation satellite system (GLONASS), beidou satellite navigation system (BDS), quasi-zenith satellite system (QZSS), and/or Satellite Based Augmentation System (SBAS).
The device 100 is configured to implement display functions via the GPU, the display screen 194, and the application processor, among other things. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and an application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
The display screen 194 is used to display images, video, and the like. The display screen 194 includes a display panel. The display panel may adopt a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (active-matrix organic light-emitting diode, AMOLED), a flexible light-emitting diode (FLED), a miniature, a Micro-oeld, a quantum dot light-emitting diode (QLED), and the like. In some embodiments, the configuration device 100 may include 1 or N display screens 194, with N being a positive integer greater than 1.
The configuration device 100 may implement a camera function via the ISP, camera 193, video codec, GPU, display screen 194, application processor, etc.
The ISP is used to process the data fed back by the camera 193. For example, when a photo is taken, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converting into an image visible to naked eyes. The ISP can also carry out algorithm optimization on the noise, brightness and skin color of the image. The ISP can also optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, the ISP may be provided in camera 193.
The camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image to the photosensitive element. The photosensitive element may be a Charge Coupled Device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The light sensing element converts the optical signal into an electrical signal, which is then passed to the ISP where it is converted into a digital image signal. And the ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into image signal in standard RGB, YUV and other formats. In some embodiments, the configuration device 100 may include 1 or N cameras 193, N being a positive integer greater than 1.
The digital signal processor is used for processing digital signals, and can process digital image signals and other digital signals. For example, when the device 100 is configured for frequency bin selection, the digital signal processor is used to perform fourier transform or the like on the frequency bin energy.
Video codecs are used to compress or decompress digital video. The configuration device 100 may support one or more video codecs. In this way, the device 100 may be configured to play or record video in a variety of encoding formats, such as: moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, and the like.
The NPU is a neural-network (NN) computing processor that processes input information quickly by using a biological neural network structure, for example, by using a transfer mode between neurons of a human brain, and can also learn by itself continuously. Applications such as intelligent awareness for configuring the device 100 may be implemented by the NPU, for example: image recognition, face recognition, speech recognition, text understanding, and the like.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to extend the memory capability of the configuration device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music, video, etc. are saved in an external memory card.
The internal memory 121 may be used to store computer-executable program code, which includes instructions. The processor 110 executes various functional applications configuring the device 100 and data processing by executing instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. The storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required by at least one function, and the like. The data storage area may store data (e.g., audio data, phone book, etc.) created during use of the configuration device 100, and the like. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (UFS), and the like.
In the embodiment of the present application, the internal memory 121 stores a correspondence between a network name and a geographical location of a wireless network to which the configuration device 100 accesses, or stores network information of surrounding wireless networks scanned after the configuration device 100 accesses the wireless network.
The processor 110 may determine that the wireless access device is replaced according to a correspondence between a network name and a geographic location of the accessed wireless network, or according to network information of surrounding wireless networks scanned after the configuration device 100 accesses the wireless network. Then, the processor 110 may configure the network configuration information of the old wireless access device to the new wireless access device, so that the wireless network device previously accessing the old wireless access device may automatically access the new wireless access device according to the network configuration information of the old wireless access device.
The device 100 may be configured to implement audio functions via an audio module 170, a speaker 170A, a microphone 170B, a headset interface 170C, an application processor, and the like. Such as music playing, recording, etc.
The audio module 170 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be disposed in the processor 110, or some functional modules of the audio module 170 may be disposed in the processor 110.
The speaker 170A, also called a "horn", is used to convert the audio electrical signal into an acoustic signal. Device 100 may be configured to listen to music through speaker 170A or to listen to hands-free conversations.
The receiver 170B, also called "earpiece", is used to convert the electrical audio signal into an acoustic signal. When the device 100 is configured to receive telephone calls or voice messages, the voice can be received by placing the receiver 170B close to the ear of the person.
The microphone 170C, also referred to as a "microphone," is used to convert sound signals into electrical signals. When making a call or transmitting voice information, the user can input a voice signal to the microphone 170C by speaking the user's mouth near the microphone 170C. The configuration device 100 may provide at least one microphone 170C. In other embodiments, the configuration device 100 may be provided with two microphones 170C to achieve noise reduction functions in addition to collecting sound signals. In other embodiments, three, four or more microphones 170C may be provided to configure the apparatus 100 to collect sound signals, reduce noise, identify sound sources, perform directional recording, and so on.
The headphone interface 170D is used to connect a wired headphone. The headset interface 170D may be the USB interface 130, or may be a 3.5mm open mobile electronic device platform (OMTP) standard interface, a cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
The pressure sensor 180A is used for sensing a pressure signal, and converting the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194. The pressure sensor 180A can be of a wide variety, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, and the like. The capacitive pressure sensor may be a sensor comprising at least two parallel plates having an electrically conductive material. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The device 100 is configured to determine the strength of the pressure based on the change in capacitance. When a touch operation is applied to the display screen 194, the apparatus 100 is configured to detect the intensity of the touch operation based on the pressure sensor 180A. The configuration apparatus 100 can also calculate the position of the touch from the detection signal of the pressure sensor 180A. In some embodiments, the touch operations that are applied to the same touch position but different touch operation intensities may correspond to different operation instructions. For example: and when the touch operation with the touch operation intensity smaller than the first pressure threshold value acts on the short message application icon, executing an instruction for viewing the short message. And when the touch operation with the touch operation intensity larger than or equal to the first pressure threshold value acts on the short message application icon, executing an instruction of newly building the short message.
The gyro sensor 180B may be used to determine the motion attitude of the configuration device 100. In some embodiments, the angular velocity of configuration device 100 about three axes (i.e., x, y, and z axes) may be determined by gyroscope sensor 180B. The gyro sensor 180B may be used for photographing anti-shake. Illustratively, when the shutter is pressed, the gyro sensor 180B detects the shake angle of the configuration device 100, calculates the distance to be compensated for by the lens module according to the shake angle, and allows the lens to counteract the shake of the configuration device 100 through a reverse movement, thereby achieving anti-shake. The gyroscope sensor 180B may also be used for navigation, somatosensory gaming scenes.
The air pressure sensor 180C is used to measure air pressure. In some embodiments, device 100 is configured to calculate altitude, aid in positioning and navigation, from barometric pressure values measured by barometric pressure sensor 180C.
The magnetic sensor 180D includes a hall sensor. The configuration device 100 may detect the opening and closing of the flip holster using the magnetic sensor 180D. In some embodiments, when the configuration device 100 is a flip phone, the configuration device 100 may detect the opening and closing of the flip according to the magnetic sensor 180D. And then according to the opening and closing state of the leather sheath or the opening and closing state of the flip cover, the automatic unlocking of the flip cover is set.
The acceleration sensor 180E can detect the magnitude of acceleration of the configuration apparatus 100 in various directions (typically three axes). The magnitude and direction of gravity may be detected when the configuration apparatus 100 is at rest. The method can also be used for recognizing the posture of the electronic equipment, and is applied to horizontal and vertical screen switching, pedometers and other applications.
A distance sensor 180F for measuring a distance. The configuration device 100 may measure distance by infrared or laser. In some embodiments, the scene is photographed and the configuration device 100 may utilize the range sensor 180F to range to achieve fast focus.
The proximity light sensor 180G may include, for example, a Light Emitting Diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The device 100 is configured to emit infrared light outwardly through the light emitting diodes. The device 100 is configured to detect infrared reflected light from nearby objects using a photodiode. When sufficient reflected light is detected, it can be determined that there is an object in the vicinity of the configuration device 100. When insufficient reflected light is detected, the configuration device 100 may determine that there are no objects near the configuration device 100. The configuration device 100 can use the proximity light sensor 180G to detect that the user holds the configuration device 100 close to the ear for talking, so as to automatically turn off the screen for power saving. The proximity light sensor 180G may also be used in a holster mode, a pocket mode automatically unlocks and locks the screen.
The ambient light sensor 180L is used to sense the ambient light level. The device 100 may be configured to adaptively adjust the brightness of the display screen 194 in accordance with the perceived ambient light level. The ambient light sensor 180L may also be used to automatically adjust the white balance when taking a picture. The ambient light sensor 180L may also cooperate with the proximity light sensor 180G to detect whether the configuration device 100 is in a pocket to prevent inadvertent contact.
The fingerprint sensor 180H is used to collect a fingerprint. The configuration device 100 may utilize the collected fingerprint characteristics to implement fingerprint unlocking, access an application lock, fingerprint photographing, fingerprint incoming call answering, and the like.
The temperature sensor 180J is used to detect temperature. In some embodiments, the temperature sensor 180J detects a temperature at which the device 100 is configured to perform a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the device 100 is configured to perform a reduction in performance of a processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection. In other embodiments, the configuration device 100 heats the battery 142 when the temperature is below another threshold to avoid a low temperature causing the configuration device 100 to shut down abnormally. In other embodiments, device 100 is configured to boost the output voltage of battery 142 when the temperature is below a further threshold to avoid abnormal shutdown due to low temperatures.
The touch sensor 180K is also referred to as a "touch panel". The touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is used to detect a touch operation applied thereto or nearby. The touch sensor can communicate the detected touch operation to the application processor to determine the touch event type. Visual output associated with the touch operation may be provided through the display screen 194. In other embodiments, the touch sensor 180K can be disposed on a surface of the configuration device 100 at a different location than the display screen 194.
The bone conduction sensor 180M may acquire a vibration signal. In some embodiments, the bone conduction sensor 180M may acquire a vibration signal of the human vocal part vibrating the bone mass. The bone conduction sensor 180M may also contact the human pulse to receive the blood pressure pulsation signal. In some embodiments, the bone conduction sensor 180M may also be disposed in a headset, integrated into a bone conduction headset. The audio module 170 may analyze a voice signal based on the vibration signal of the bone mass vibrated by the sound part acquired by the bone conduction sensor 180M, so as to implement a voice function. The application processor can analyze heart rate information based on the blood pressure beating signals acquired by the bone conduction sensor 180M, and the heart rate detection function is realized.
The keys 190 include a power-on key, a volume key, and the like. The keys 190 may be mechanical keys. Or may be touch keys. The configuration device 100 may receive a key input, and generate a key signal input related to user settings and function control of the configuration device 100.
The motor 191 may generate a vibration cue. The motor 191 may be used for incoming call vibration cues, as well as for touch vibration feedback. For example, touch operations applied to different applications (e.g., photographing, audio playing, etc.) may correspond to different vibration feedback effects. The motor 191 may also respond to different vibration feedback effects for touch operations applied to different areas of the display screen 194. Different application scenes (such as time reminding, receiving information, alarm clock, game and the like) can also correspond to different vibration feedback effects. The touch vibration feedback effect may also support customization.
Indicator 192 may be an indicator light that may be used to indicate a state of charge, a change in charge, or a message, missed call, notification, etc.
The SIM card interface 195 is used to connect a SIM card. The SIM card may be attached to and detached from the device 100 by being inserted into the SIM card interface 195 or being pulled out of the SIM card interface 195. The configuration device 100 may support 1 or N SIM card interfaces, N being a positive integer greater than 1. The SIM card interface 195 may support a Nano SIM card, a Micro SIM card, a SIM card, etc. The same SIM card interface 195 can be inserted with multiple cards at the same time. The types of the plurality of cards may be the same or different. The SIM card interface 195 may also be compatible with different types of SIM cards. The SIM card interface 195 may also be compatible with external memory cards. The configuration device 100 interacts with the network through the SIM card to implement functions such as call and data communication. In some embodiments, the configuration device 100 employs esims, namely: an embedded SIM card. The eSIM card can be embedded in the configuration device 100 and cannot be separated from the configuration device 100.
It is to be understood that the illustrated structure of the embodiments of the present application does not constitute a specific limitation to the configuration apparatus 100. In other embodiments of the present application, the configuration device 100 may include more or fewer components than shown, or combine certain components, or split certain components, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
In an embodiment of the present application, the wireless communication module 160 may scan and access a wireless network, obtain a network name of the accessed wireless network, or configure network information of wireless networks around the device 100. The wireless communication module 160 or the mobile communication module 150 may also perform positioning to determine geographic location information when configuring the device 100 for access to a wireless network. The internal memory 121 may store a correspondence relationship between a network name and a geographical location of a wireless network to which the configuration device 100 accesses, or store network information of surrounding wireless networks scanned after the configuration device 100 accesses the wireless network. The processor 110 may determine that the wireless access device is replaced according to a correspondence between a network name and a geographic location of the accessed wireless network, or according to network information of surrounding wireless networks scanned after the configuration device 100 accesses the wireless network. Then, the processor 110 may configure the network configuration information of the old wireless access device to the new wireless access device, so that the wireless network device previously accessing the old wireless access device may automatically access the new wireless access device according to the network configuration information of the old wireless access device.
In the following embodiment of the present application, in a scenario shown in fig. 2, a wireless system is an intelligent home system, a wireless network is a Wi-Fi network, a wireless access device is a wireless router, the wireless router includes a Wi-Fi module for providing the Wi-Fi network, a configuration device is a mobile phone, and other wireless network devices are intelligent home devices, which are used as examples, and a configuration method of network configuration information provided in the embodiment of the present application is explained.
In the embodiment of the application, after the mobile phone accesses the first Wi-Fi network and the first wireless router, if it is determined that the mobile phone is changed from accessing the second wireless router to accessing the first wireless router according to the historical information stored in the first Wi-Fi network and the mobile phone, the network configuration information of the second wireless router is sent to the first wireless router. And then, the first wireless router configures the network configuration information of the first wireless router to be consistent with the network configuration information of the second wireless router, so that the intelligent home equipment can automatically access the replaced first wireless router and the replaced first Wi-Fi network according to the network configuration information of the second wireless router before replacement.
In some embodiments, the historical information maintained by the handset includes a correspondence between a Wi-Fi network and location information of the handset when accessing the Wi-Fi network. After the mobile phone accesses a Wi-Fi network for the first time, whether the wireless router is replaced or not can be determined according to the corresponding relation. For example, if the mobile phone determines that first location information corresponding to a first Wi-Fi network accessed for the first time is the same as second location information in the history information, and the number of times of access to a second Wi-Fi network corresponding to the second location information in the history information is greater than or equal to a preset value, the mobile phone may determine that the wireless router is replaced.
This scheme is specifically described below. Referring to fig. 4A, the method may include:
401. the user purchases a wireless router 1 and handset.
A user purchases a wireless router 1, and the wireless router 1 may be associated with initial configuration information. For example, the initial configuration information of the wireless router 1 may be attached to the housing by a label (or name plate), or may be recorded in the instruction manual of the wireless router 1. The initial configuration information may include one or more of initial network configuration information, initial management configuration information, or a management IP address, etc. Wherein, the initial network configuration information may include an initial network name and/or an initial network password of the wireless network. The initial management configuration information may include an initial management account and/or an initial management password.
402. The wireless router 1 provides a Wi-Fi network 1, the wireless router 1 and the Wi-Fi network 1 correspond to network configuration information 1, and the mobile phone and the intelligent household equipment access the Wi-Fi network 1.
The user may configure the wireless router 1 in a number of ways to enable the wireless router 1 to provide the Wi-Fi network 1.
For example, the initial configuration information of the wireless router 1 includes the initial network configuration information and the management IP address, and does not include the initial management configuration information. The initial network configuration information includes an initial network name of the wireless network. Illustratively, the initial network name of the wireless network is HUAWEI-abc. The user can log in the management IP address designated by the wireless router 1 through the browser using a mobile phone such as a computer or a mobile phone. After the mobile phone opens the management interface according to the management IP address, the mobile phone can prompt the user to configure the management password of the wireless router 1. The user enters the administration password 1. The mobile phone can send the management password 1 to the wireless router 1 for storage, and the mobile phone itself can also store the management password 1. Illustratively, the management password 1 is joba 596.
The handset can display the network name of the Wi-Fi as an initial network name on the management interface by default. The user may modify the initial network name or may keep using the initial network name. For example, to reduce operations, the user does not enter a new network name, which is retained as the original network name.
The handset may also prompt the user to configure a wireless network password on the management interface. The user enters a network password 1. Illustratively, the network password 1 may be 123456.
And then, the wireless router 1 restarts the Wi-Fi module, or the wireless router 1 restarts the whole machine to restart the Wi-Fi module.
The wireless router 1 restarts the Wi-Fi module and then provides the Wi-Fi network 1. The network configuration information 1 of the Wi-Fi network 1 comprises a network name 1 and a network password 1, wherein the network name 1 is an initial network name, namely, a HUAWEI-abc; the network password 1 is 123456.
The mobile phone can search the Wi-Fi network after the Wi-Fi switch is turned on. After searching the Wi-Fi network with the network name of HUAWEI-abc, if the operation that the user indicates to access the Wi-Fi network 1 is detected, the mobile phone can prompt the user to input the network password of the Wi-Fi network 1. If the user correctly inputs the network password 1, the mobile phone successfully accesses the wireless router 1 and the Wi-Fi network 1 provided by the wireless router 1.
The intelligent household equipment such as a refrigerator, an air conditioner and the like can be accessed to the Wi-Fi network 1 in a mode similar to that of a mobile phone. Illustratively, the smart home device may access the Wi-Fi network 1 through the smart home APP on the mobile phone. Further exemplarily, the smart home devices such as the refrigerator and the air conditioner are provided with a remote controller, and the smart home devices enter a Wi-Fi connection mode after detecting that the user presses the key 1 on the remote controller for a long time. The smart home device may scan to the Wi-Fi network 1. After the user inputs the correct network password 1 through the remote controller, the intelligent home equipment can successfully access the Wi-Fi network 1.
In addition, the mobile phone and the smart home device can also store the network configuration information 1 of the Wi-Fi network 1, so that the mobile phone and the smart home device can access the Wi-Fi network 1 again according to the network configuration information 1.
As another example, the initial configuration information of the wireless router 1 includes initial network configuration information and initial management configuration information. The initial network configuration information includes an initial network name and an initial network password of the wireless network. The initial management information includes an initial management account and an initial management password.
In a technical scheme, a mobile phone opens a router management APP. The handset scans for nearby wireless routers and Wi-Fi networks according to the user's instructions. If the mobile phone APP prompts to scan the wireless router 1 and the Wi-Fi network with the initial network name, the mobile phone APP can access the wireless router 1 according to the instruction of the user. The mobile phone APP may then prompt the user to enter initial management configuration information for the wireless router 1. If the mobile phone determines that the user inputs the correct initial management account and initial management password, the mobile phone displays a setting interface of the wireless router 1. On the setting interface, the user can keep the initial network configuration information and the initial management configuration information, and can also modify the initial network configuration information, the initial management configuration information and other information.
Illustratively, the user modifies the initial network configuration information into network configuration information 1 and modifies the initial management configuration information into management configuration information 1. The network configuration information 1 includes a network name 1 and a network password 1, and the management configuration information 1 includes a management account 1 and a management password 1.
And then, the wireless router 1 restarts the Wi-Fi module, or the wireless router 1 restarts the whole machine to restart the Wi-Fi module. The wireless router 1 provides a Wi-Fi network 1.
Then, similar to the above method, the mobile phone and the smart home device may access the Wi-Fi network 1. Or, the mobile phone can automatically access the Wi-Fi network 1 according to the network name 1 and the network password 1 stored in the APP. In addition, the mobile phone and the smart home device can also store the network configuration information 1 of the Wi-Fi network 1, so that the mobile phone and the smart home device can access the Wi-Fi network 1 again according to the network configuration information 1.
In another solution, the wireless router 1 may provide the Wi-Fi network 1 according to initial network configuration information. The mobile phone scans the Wi-Fi network according to the instruction of the user. The handset prompts the user to scan to the Wi-Fi network 1. If the mobile phone detects that the user indicates the operation of accessing the Wi-Fi network 1, the mobile phone sends a data packet to the wireless router 1 providing the Wi-Fi network 1.
After receiving the data packet, the wireless router 1 prompts the user if it is determined that the mobile phone is the device matching the wireless router 1 (for example, the Hi key on the wireless router 1 is turned on to prompt the user). For example, if the wireless router and the handset are devices of the same manufacturer, or if the wireless router and the handset follow a mutually agreed protocol, the handset may determine that the wireless router 1 is a device matching the handset.
Then, if the wireless router 1 detects an operation of the user instructing connection of the mobile phone (for example, an operation of the user pressing the Hi key), it transmits the initial network password to the mobile phone. The mobile phone accesses the Wi-Fi network 1 of the wireless router 1 according to the initial network password. In this case, the network name 1 of the Wi-Fi network 1 is the initial network name, and the network password 1 of the Wi-Fi network 1 is the initial network password 1.
Thereafter, similar to the above method, the smart home device may access the Wi-Fi network 1. In addition, the mobile phone and the smart home device can also store the network configuration information 1 of the Wi-Fi network 1, so that the mobile phone and the smart home device can access the Wi-Fi network 1 again according to the network configuration information 1.
In the following embodiments of the present application, an example is described in which the network configuration information 1 of the Wi-Fi network 1 includes a network name 1, the network name 1 is a HUAWEI-abc, and the network password 1 is 123456.
The wireless router 1 may correspond to the management configuration information 1, and the management configuration information 1 may serve as an authentication credential for subsequent users to manage and modify the network configuration information 1 and the management configuration information 1 of the wireless router 1. The management configuration information 1 may be initial management configuration information of the wireless router 1, or may be management configuration information modified by a user. In addition, the handset as a configuration device may also save the management configuration information 1. Subsequently, after detecting that the user inputs the correct management configuration information 1, the mobile phone allows the user to modify the management configuration information 1 and the network configuration information 1 of the wireless router 1.
403. After the mobile phone accesses the Wi-Fi network 1, whether the mobile phone has accessed the Wi-Fi network 1 before is determined. If the mobile phone does not access the Wi-Fi network 1 before, the mobile phone executes the step 404; if the handset has previously accessed the Wi-Fi network 1, the handset performs step 407.
After the mobile phone accesses one Wi-Fi network each time, the network name of the accessed Wi-Fi network can be recorded. If the network name of the Wi-Fi network 1 is stored in the mobile phone before, the mobile phone determines that the Wi-Fi network 1 is accessed in the mobile phone before; if the network name of the Wi-Fi network 1 is not stored in the mobile phone before, the mobile phone determines that the Wi-Fi network 1 is not accessed before.
Since wireless router 1 is the device that the user has just purchased, the handset has not previously accessed Wi-Fi network 1 provided by wireless router 1, and step 404 may be performed.
404. The mobile phone obtains the position information 1 of the position through a positioning technology. The handset then proceeds to step 405.
If the mobile phone does not access the Wi-Fi network 1 before, the mobile phone may acquire the location information 1 of the location of the mobile phone after accessing the Wi-Fi network 1. For example, the positioning technology may include GPS positioning technology, beidou positioning technology, base station positioning technology, Wi-Fi positioning technology, bluetooth positioning technology, or the like. The location information 1 may be a coordinate location, a geographical location name, or other information, and the embodiment of the present application is not limited.
In the example of the smart home system, the wireless router 1 is located at the home of the user, and the mobile phone accesses the Wi-Fi network 1 many times when the mobile phone is at home or near home. The position information 1 stored when the mobile phone accesses the Wi-Fi network 1 is the position information of a home. For example, location information 1 may be N34 ° 11 '45.07 "east longitude E108 ° 50' 3.77", or location information 1 may be west ampere city sunny cell No. 3 building.
405. The mobile phone determines whether a condition 1 is met, wherein the condition 1 includes that when the mobile phone accesses the current Wi-Fi network, corresponding position information is the same as position information a stored before, and the access frequency of the Wi-Fi network a corresponding to the position information a stored before is larger than or equal to a preset value N.
The Wi-Fi network a is one of historical information stored in the mobile phone, and the position information a is position information corresponding to the Wi-Fi network a in the historical information stored in the mobile phone.
The mobile phone is a newly purchased mobile phone of the user and has not been accessed to the Wi-Fi network before, so that the mobile phone has not stored the corresponding relation among the position information, the Wi-Fi network and the access times. Therefore, the handset determines that condition 1 is not satisfied. The handset then proceeds to step 406.
406. The mobile phone stores the corresponding relation between the network name 1 of the Wi-Fi network 1 and the position information 1 of the position where the mobile phone is located, and stores the access frequency of the Wi-Fi network 1 as 1. Then, the handset executes step 407.
When a handset accesses the Wi-Fi network 1, the handset is typically in the vicinity of the wireless router 1. Or, the handset can access the Wi-Fi network 1 when it is near the wireless router 1. That is, the position where the wireless router 1 is located in the vicinity of the position indicated by the position information 1.
If the mobile phone does not access the Wi-Fi network 1 before and does not meet the condition 1, the mobile phone can store the corresponding relation between the network name 1 of the Wi-Fi network 1 and the position information 1 of the position where the mobile phone is located, and record the access times, so that the mobile phone can determine that the mobile phone accesses the Wi-Fi network 1 according to the stored information later.
If the mobile phone has previously accessed the Wi-Fi network 1, the mobile phone may add 1 to the number of accesses after accessing the Wi-Fi network 1 again. So that whether the wireless router is replaced or not can be determined according to the times after other Wi-Fi networks are accessed.
For example, if the mobile phone has previously accessed the Wi-Fi network 1, the mobile phone may add 1 to the number of times of access to the Wi-Fi network 1 after each subsequent re-access to the Wi-Fi network 1. For another example, if the mobile phone has previously accessed the Wi-Fi network 1, the mobile phone may add 1 to the access times after the subsequent mobile phone has accessed the Wi-Fi network 1 again and the total time for using the Wi-Fi network 1 is longer than m minutes. For another example, if the mobile phone has previously accessed the Wi-Fi network 1, the subsequent mobile phone accesses the Wi-Fi network 1 again, and after the total time for using the Wi-Fi network 1 by the mobile phone on the current access day is longer than m minutes, the mobile phone may add 1 to the access times.
407. The mobile phone accesses the Wi-Fi network 1 for a plurality of times.
After the mobile phone is accessed to the Wi-Fi network 1 for the first time, the mobile phone can also be accessed to the Wi-Fi network 1 for multiple times, and the access times are correspondingly recorded. If the mobile phone has access to the Wi-Fi network 0 provided by another wireless router in another place (for example, a Wi-Fi network set in an office), the mobile phone may also store the network name 0 of the accessed Wi-Fi network 0, the location information 0 of the location where the mobile phone is located when accessing the Wi-Fi network 0, and the number of times of access.
For example, the correspondence between the network name of the Wi-Fi network stored in the mobile phone, the location information when the mobile phone accesses the Wi-Fi network, and the access times can be seen in table 1.
TABLE 1
Wi-Fi network Location information Number of accesses
Network name 0: office Position information 0 n=6
Network name 1: HUAWEI-abc Location information 1 n=35
408. The user replaces the wireless router 1 with the wireless router 2.
When the wireless router 1 is damaged, the performance of the wireless router 1, such as the communication speed, is poor, or the user does not want to continue using the wireless router 1 due to other reasons, the user can replace the wireless router 1 with the wireless router 2.
409. The wireless router 2 provides a Wi-Fi network 2, and the wireless router 2 and the Wi-Fi network 2 correspond to the network configuration information 2.
410. The handset accesses the Wi-Fi network 2 provided by the wireless router 2.
In a similar manner to that described in step 402, the handset may access the Wi-Fi network 2 provided by the wireless router 2 by managing the IP address specified by the wireless router 2, by managing the APP by the router, or by interacting with the Hi key on the wireless router 2 in a variety of ways. The handset may obtain and store network configuration information 2 for the Wi-Fi network 2. The network configuration information 2 of the Wi-Fi network 2 may include a network name 2 and a network password 2.
The network name 2 and the network password 2 may be an initial network name and an initial network password corresponding to the wireless router 2; or the network name and the network password modified by the user with respect to the initial network name or the initial network password, which is not limited in the embodiment of the present application. Illustratively, the network name 2 of the Wi-Fi network 2 is HUAWEI-xyz, and the network password 2 is 654321.
In some embodiments, during the process of accessing the Wi-Fi network 2 provided by the wireless router 2, the user may also input the management configuration information 2 of the wireless router 2, and the handset may also store the management configuration information 2. For example, the management configuration information 2 may include a management account 2 and a management password 2. The management configuration information 2 is used for subsequent use as an authentication voucher for managing and modifying the network configuration information 2 and the management configuration information 2. Illustratively, the management account 2 may be John and the management password 2 may be qwerty. Subsequently, after detecting that the user inputs the correct management configuration information 2, the mobile phone allows the user to modify the management configuration information 2 and the network configuration information 2 of the wireless router 2.
Wherein the network names of the Wi-Fi networks provided by different wireless routers are usually different. That is, the network name 2 of the Wi-Fi network 2 provided by the wireless router 2 is generally different from the network name 1 of the Wi-Fi network 1 provided by the wireless router 1.
For example, in some cases, to avoid complicated operations, a user typically does not modify the initial network name of the Wi-Fi network corresponding to the wireless router, but only modifies the initial network password. Or, in the scheme of accessing through the Hi key, the mobile phone can access the Wi-Fi network without inputting a network password by the user, and the network password of the Wi-Fi network is the initial network password. And the initial network names of the Wi-Fi networks corresponding to different wireless routers are different. Thus, different wireless routers provide different network names for Wi-Fi networks.
411. After the mobile phone accesses the Wi-Fi network 2, whether the mobile phone has accessed the Wi-Fi network 2 before is determined. If not, go to step 412; if so, go to step 414.
As previously described, the handset may save the network name of the accessed Wi-Fi network. The handset may determine whether the handset has previously accessed the Wi-Fi network 2 based on whether the network name 2 of the Wi-Fi network 2 matches the network name of the Wi-Fi network in the previously stored history information.
For example, the network names of Wi-Fi networks that the handset has previously accessed may be stored in table 1 above. The handset can determine whether the network names recorded in table 1 include network name 2. If yes, the mobile phone can determine that the Wi-Fi network 2 is accessed previously; if not, the handset may determine that Wi-Fi network 2 has not been previously accessed.
Step 412 may be performed because the handset is currently accessing the Wi-Fi network 2 for the first time.
412. The mobile phone obtains the position information 2 of the position through a positioning technology. Then, the handset performs step 413.
413. The mobile phone determines whether a condition 1 is met, wherein the condition 1 includes that when the mobile phone accesses the current Wi-Fi network, corresponding position information is the same as position information a stored before, and the access frequency of the Wi-Fi network a corresponding to the position information a stored before is larger than or equal to a preset value N. If the condition 1 is not satisfied, the mobile phone performs step 415; if condition 1 is satisfied, the handset performs step 416.
As described above, the Wi-Fi network a is one of the history information stored in the mobile phone, and the location information a is the location information corresponding to the Wi-Fi network a in the history information stored in the mobile phone.
The value of N may be large, for example, 10. For example, the Wi-Fi network a is a Wi-Fi network 1, the location information a is location information 1, and if the number of times of access corresponding to the location information 1 and the Wi-Fi network 1 exceeds a preset value N, that is, the number of times of access of the mobile phone to the Wi-Fi network 1 at the location 1 indicated by the location information 1 exceeds N, it may be indicated that the wireless router 1 providing the Wi-Fi network 1 is a wireless router of the user itself, or a wireless router that the user can safely use, and the user often uses the Wi-Fi network 1 provided by the wireless router 1.
If the corresponding location information is also the location information 1 when the mobile phone currently accesses the Wi-Fi network 2, the mobile phone suddenly accesses the Wi-Fi network 2 at the location 1 indicated by the location information 1, that is, the network name of the Wi-Fi network accessed by the mobile phone at the location 1 is changed.
And because the network names of the Wi-Fi networks provided by different wireless routers are usually different, the mobile phone can determine that the wireless router of the user is switched, and the previous wireless router 1 is replaced by the wireless router 2.
For example, if the mobile phone stores table 1, the location information 2 corresponding to the Wi-Fi network huabei-xyz is consistent with the location information 1 in table 1, and the number of times N of access to another Wi-Fi network huabei-abc corresponding to the location information 1 in table 1 is greater than or equal to the preset value N, the mobile phone may determine that the wireless router is switched. That is, the wireless router for providing the Wi-Fi network may be replaced if the handset frequently accesses the HUAWEI-abc at the location indicated by the location information 1 and suddenly accesses the HUAWEI-xyz at the location indicated by the location information 1.
In other embodiments, the condition 1 may be replaced by that the corresponding location information when the mobile phone accesses the current Wi-Fi network is the same as the location information a in the history information saved before. When the mobile phone determines that the corresponding location information when accessing the current Wi-Fi network is the same as the location information a in the history information stored before, it may be indicated that the mobile phone previously accessed the Wi-Fi network a corresponding to the location information a at the location indicated by the location information a, and this time accessed another Wi-Fi network at the location indicated by the location information a, so that the wireless router for providing the Wi-Fi network may be replaced.
414. The mobile phone adds 1 to the access times of the Wi-Fi network 2.
The mobile phone adds 1 to the access frequency of the Wi-Fi network 2, so that whether the wireless router is replaced or not can be determined according to the frequency after other Wi-Fi networks are accessed subsequently.
It is understood that, in some other schemes, if the mobile phone has previously accessed the Wi-Fi network 2, the subsequent mobile phone accesses the Wi-Fi network 2 again, and after the total time of using the Wi-Fi network 2 by the mobile phone on the current day is longer than m minutes, the mobile phone may add 1 to the access times.
415. The mobile phone stores the corresponding relation between the network name 2 of the Wi-Fi network 2 and the position information 2 of the position where the mobile phone is located, and stores the access times of the Wi-Fi network 2 as 1.
If the mobile phone does not access the Wi-Fi network 2 before and does not meet the condition 1, the mobile phone can store the corresponding relation between the network name 2 of the Wi-Fi network 2 and the position information 2 of the position where the mobile phone is located, and record the access times, so that the mobile phone can determine that the mobile phone has accessed the Wi-Fi network 2 according to the stored information later.
416. The mobile phone sends the network configuration information 1 of the wireless router 1 to the wireless router 2.
As described above, after accessing the Wi-Fi network 1, the mobile phone may store the network configuration information 1 corresponding to the wireless router 1 and the Wi-Fi network 1. After the mobile phone accesses the Wi-Fi network 2, it can acquire the communication address (e.g., MAC address) of the wireless router 2. After the mobile phone determines that the condition 1 is satisfied, the network configuration information 1 of the wireless router 1 stored in the mobile phone can be sent to the wireless router 2 according to the communication address of the wireless router 2.
417. The wireless router 2 sets the network configuration information to be identical to the network configuration information 1.
After receiving the network configuration information 1 sent by the mobile phone, the wireless router 2 may set the network configuration information 2 corresponding to the wireless router 2 to be consistent with the network configuration information 1.
418. The wireless router 2 restarts the Wi-Fi module and provides the Wi-Fi network 1 according to the network configuration information 1.
The wireless router 2 may only restart the Wi-Fi module, or may restart the Wi-Fi module by restarting the whole router. The wireless router 2 provides the Wi-Fi network 1, and the corresponding network configuration information is the network configuration information 1.
419. The intelligent household equipment automatically accesses the Wi-Fi network 1 provided by the wireless router 2 according to the network configuration information 1.
After the intelligent household equipment is accessed to the Wi-Fi network provided by the wireless router 1 before, the network configuration information 1 of the Wi-Fi network 1 is stored. After the wireless router 2 provides the Wi-Fi network 1 according to the network configuration information 1, the smart home devices may scan the Wi-Fi network 1 provided by the wireless router 2, so as to automatically access the Wi-Fi network 1 provided by the wireless router 2 according to the previously stored network configuration information 1, without requiring the user to perform manual access operation for each smart home device. For an example, a schematic diagram of a smart home scene after replacing a wireless router may be shown in fig. 4B.
Therefore, under the condition that the wireless router is replaced, a user does not need to manually set the intelligent household equipment respectively, and does not need to simultaneously configure new and old wireless routers. The mobile phone serving as the configuration device can automatically determine that the wireless router is replaced according to the corresponding relation between the network identifier and the position information, and provide the network configuration information of the old wireless router for the new wireless router. The new wireless router can set the network configuration information of the new wireless router to be consistent with the network configuration information of the old wireless router, so that other wireless network equipment such as intelligent home equipment can automatically access the Wi-Fi network provided by the new wireless router according to the network configuration information of the old wireless router.
In addition, it should be noted that the network configuration information 1 provided by the handset to the wireless router 2 may also include some other related information besides the network name and the network password. For example, the network configuration information 1 may further include a data encryption manner, and information such as a media access control address (MAC) filtering rule, an AP isolation policy, a PMF switch status, or an SSID configuration rule. The mobile phone provides the network configuration information 1 for the wireless router 2 to update and configure, and can keep consistency between the configuration of the user on the wireless router 2 and the configuration on the wireless router 1, so that the user can normally use the wireless router 2 according to the previous setting on the wireless router 1, the use habit of the user is met, and the user is prevented from performing related configuration again.
In some embodiments, before the handset sends the network configuration information 1 of the wireless router 1 to the wireless router 2, the handset may also prompt the user whether to configure the network configuration information of the old wireless router to the new wireless router. After the mobile phone detects the operation of the user indication configuration, the identity of the user can be authenticated.
Specifically, before step 416 and after step 413, the method may further include:
420. the handset prompts the user whether to update the network configuration information of the wireless router 2.
The mobile phone may prompt the user whether to update the network configuration information of the wireless router 2 through various manners such as interface display prompt, voice prompt, vibration prompt or indicator light prompt, so as to update the network configuration information 2 corresponding to the wireless router 2 to the network configuration information 1 corresponding to the wireless router 1.
For example, referring to fig. 5A, the handset may prompt the user through a prompt box 501 to detect that the wireless router is replaced, and ask the user whether to update the network configuration information of the wireless router 2. For further example, referring to fig. 5B, the handset may prompt via a prompt interface 504.
421. After detecting that the user indicates an update operation, the mobile phone prompts the user to input the management configuration information 2 of the wireless router 2.
After the mobile phone detects that the user indicates an update operation, for example, after the mobile phone detects that the user clicks the control 502, the mobile phone may prompt the user to input the management configuration information 2 of the wireless router 2 to be updated, so as to authenticate the identity of the user, and improve the security of the information configuration process. After the user identity authentication is passed, the mobile phone can send the network configuration information 1 corresponding to the wireless router 1 to the wireless router 2 for updating.
If the user does not change the wireless router, or if the user determines that the user does not want to update the network configuration information of the wireless router 2, the handset may be instructed not to update, for example, the user may click on the control 503 to instruct not to update.
422. The mobile phone detects that the user inputs the management configuration information.
423. The handset determines whether the management configuration information input by the user matches the management configuration information 2 of the wireless router 2.
If the mobile phone determines that the management configuration information input by the user matches the management configuration information 2 of the wireless router 2, it determines that the management configuration information input by the user is correct, and determines that the user identity authentication passes, so that step 416 may be executed to send the network configuration information 1 corresponding to the wireless router 1 to the wireless router 2 for updating. If the handset determines that the management configuration information input by the user does not match the management configuration information 2 of the wireless router 2, no processing is performed, so that step 416 is not performed, and the network configuration information of the wireless router 2 is not updated.
In some embodiments, the handset previously stored the management configuration information 2 for the wireless router 2, so the handset can determine whether the management configuration information entered by the user matches the management configuration information 2 stored by the handset. For example, the handset may save the management configuration information 2 input by the user during the process of accessing the Wi-Fi network 2. Or, after accessing the Wi-Fi network 2, the mobile phone may acquire the management configuration information 2 from the management configuration information. In other embodiments, the management configuration information 2 of the wireless router 2 is not stored in the mobile phone before, and the mobile phone may send the management configuration information input by the user to the wireless router 2 for authentication, and obtain an authentication result returned by the wireless router 1.
In other embodiments, the management configuration information 2 of the wireless router 2 may also be in other forms besides the management account and/or the management password, for example, the management configuration information 2 may be fingerprint information or other biometric information such as iris information previously set by the user.
In other embodiments, after step 417, the wireless router 2 may also prompt the user by voice, indicator light, vibration, or display information, etc. that the network configuration information has been updated to the network configuration information of the old wireless router.
In other embodiments, wireless router 2 may notify the handset that the network configuration information has been updated after step 417 above. Then, the mobile phone can prompt the user through display information, voice, indicator lights or vibration modes, and the new wireless router updates the network configuration information into the network configuration information of the old wireless router. For example, referring to fig. 5C, the handset may prompt the user through a prompt box 505. For further example, referring to fig. 5D, the handset may prompt the user with a prompt message 506.
In the history information stored before the mobile phone, the access times of a plurality of Wi-Fi networks a corresponding to the positions where the mobile phone currently accesses the Wi-Fi networks are more than or equal to a preset value N. For example, the user may have multiple wireless routers in the home, multiple Wi-Fi networks may be provided, and the number of times that the mobile phone accesses each Wi-Fi network at home is greater than or equal to N. For example, the mobile phone accesses the Wi-Fi network 2 at home, and the times that the mobile phone accesses the Wi-Fi network 0 and the Wi-Fi network 1 at home before are both greater than or equal to N.
For this case, the handset may also prompt the user to select a target Wi-Fi network in step 420; or the mobile phone can determine that the Wi-Fi network with the most access times at home is the target Wi-Fi network in the plurality of Wi-Fi networks; alternatively, the handset may randomly select one of the Wi-Fi networks as the target Wi-Fi network. Then, in step 416, the handset may provide the network configuration information corresponding to the wireless router of the target Wi-Fi network to the wireless router 2 for configuration.
In other embodiments, the user and handset are typically in different geographic locations that may access Wi-Fi networks provided by different wireless routers at different time periods. For example, time period 1 includes Monday through Friday operating hours. During period 1, the handset typically accesses a Wi-Fi network provided by the office's wireless router. As another example, period 2 includes the evening on Monday through Friday and weekends. During period 2, the handset typically accesses a Wi-Fi network provided by the wireless router in the home. That is, the handset typically accesses Wi-Fi networks provided by different wireless routers for different time periods. Therefore, the location information in the configuration flow shown in fig. 4A may be replaced by the access time period information, and the mobile phone may determine whether the wireless router is replaced according to the correspondence between the network name, the time period information, and the access times.
For example, the correspondence between the network name, the time period information, and the access times stored in the mobile phone can be seen in table 2.
TABLE 2
Wi-Fi network Time period Number of accesses
Network name 0: office Period 1 n=13
Network name 1: HUAWEI-abc Period 2 n=28
If the mobile phone accesses the HUAWEI-xyz currently, the corresponding time period is the time period 2, and the access times N of another Wi-Fi network HUAWEI-abc corresponding to the time period 2 in the table 2 are greater than the preset value N, the mobile phone can determine that the wireless router is switched. That is, the mobile phone always accesses the HUAWEI-abc in the time period 2, and suddenly accesses the HUAWEI-xyz in the time period 2, the wireless router may be changed.
In some cases, a user may set the network names of Wi-Fi networks of different wireless routers to the same network name for ease of use, memory, or lookup. For example, the network names of the Wi-Fi networks provided by the wireless router 1 and the wireless router 2 are both myhome. Therefore, in the scene of replacing the wireless router, the network name and the position information of the Wi-Fi network accessed by the mobile phone are not changed, and the mobile phone cannot determine that the wireless router is replaced.
For such a situation, in other embodiments of the present application, after accessing the Wi-Fi network, the mobile phone may obtain the device identifier of the wireless router corresponding to the Wi-Fi network. The mobile phone can store the corresponding relation between the network name of the accessed Wi-Fi network, the equipment identification of the corresponding wireless router, the position information and the access times. For example, the device identification of the wireless router may include a MAC address or a serial number of the wireless router, or the like.
Therefore, if the mobile phone determines that the device identifier of the wireless router of the same Wi-Fi network successfully accessed at the same position changes suddenly, the wireless router can be indicated to be replaced. Therefore, the mobile phone can provide the network configuration information of the old wireless router to the new wireless router so that the new wireless router can update the setting, and other wireless network equipment can automatically access the Wi-Fi network provided by the new wireless router according to the network configuration information of the old wireless router.
In other cases, if the wireless router 1 restores the factory settings, the network configuration information such as the network password of the wireless router 1 after restoring the factory settings is usually different from the network configuration information before restoring the factory settings. Therefore, the smart home device which is previously connected to the wireless router 1 before factory restoration cannot be automatically connected to the wireless router 1 after factory restoration.
Under the scene that the wireless router restores the factory settings, the equipment identification of the wireless router cannot be changed. Moreover, as can be seen from the above description, in order to simplify the operation, the user usually does not change the network name of the Wi-Fi network of the wireless router, that is, the network name of the Wi-Fi network is usually the same before and after the factory setting is restored. Therefore, the network name of the Wi-Fi network accessed by the mobile phone, the equipment identification and the position information of the wireless router are not changed, and the mobile phone cannot determine that the wireless router is replaced.
However, to improve the security of a Wi-Fi network, a user typically modifies the initial network password of the Wi-Fi network of the wireless router. That is, before and after the Wi-Fi network is restored to factory settings, the network passwords of the Wi-Fi network are usually different. For such a situation, in other embodiments of the present application, the mobile phone may store not only the network name, the location information, and the number of times of the accessed Wi-Fi network, but also the network password of the accessed Wi-Fi network.
Therefore, if the mobile phone determines that the network password of the same Wi-Fi network successfully accessed at the same position changes suddenly, the change of the wireless router can be indicated, so that the network configuration information of the old wireless router can be provided for the new wireless router, the new wireless router can update and set, and other wireless network equipment can automatically access the Wi-Fi network provided by the new wireless router according to the network configuration information of the old wireless router.
In other embodiments, the history information of the mobile phone may store the corresponding relationship between the network name, the network password and the location information of the Wi-Fi network. If the Wi-Fi network accessed at the first position indicated by the first position information of the mobile phone is the same as the network name of the Wi-Fi network accessed at the first position stored in the historical information but different from the network password, the mobile phone determines that the wireless router is possibly replaced, so that a user can be prompted whether to configure the network configuration information of the wireless router.
In some embodiments, the historical information maintained by the handset includes a correspondence between the Wi-Fi network and the adjacent network information of the Wi-Fi network. After the mobile phone accesses a Wi-Fi network for the first time, whether the wireless router is replaced or not can be determined according to the corresponding relation. For example, if the mobile phone determines that the first adjacent network information of the first Wi-Fi network matches the second adjacent network information of the second Wi-Fi network in the history information after accessing the first Wi-Fi network for the first time, the mobile phone may determine that the wireless router is replaced.
This scheme is specifically described below. Referring to fig. 6, the method may include:
600. the user purchases a wireless router 1 and handset.
601. The wireless router 1 provides a Wi-Fi network 1, the wireless router 1 and the Wi-Fi network 1 correspond to network configuration information 1, and the mobile phone and the intelligent household equipment access the Wi-Fi network 1.
For a description of this step, reference may be made to the related description in step 402 above. After the mobile phone and the smart home device are accessed to the Wi-Fi network 1, the network configuration information 1 of the Wi-Fi network 1 can be stored, so that the mobile phone and the smart home device can be accessed to the Wi-Fi network 1 again according to the network configuration information 1.
602. After the mobile phone accesses the Wi-Fi network 1, whether the mobile phone has accessed the Wi-Fi network 1 before is determined.
The handset determines that the Wi-Fi network has not been previously accessed and may then perform step 603.
603. The mobile phone scans the adjacent network information 1 of the Wi-Fi network 1.
The adjacent network information may include network information of nearby Wi-Fi networks that can be scanned by the mobile phone, including network information of Wi-Fi networks that the mobile phone has connected to and network information of Wi-Fi networks that the mobile phone has not connected to.
Wherein the network information may include a network name. In some embodiments, the network information may also include signal strength of nearby Wi-Fi networks, and the like. The adjacent side network information scanned after the mobile phone accesses the Wi-Fi network 1, that is, the adjacent side network information of the wireless router 1 of the Wi-Fi network 1 is provided.
The signal strength of a Wi-Fi network can be characterized in a number of ways. For example, the signal strength of a Wi-Fi network can be characterized by the magnitude of the decibel-milliwatt dbm value. As another example, the signal strength of a Wi-Fi network can be indicated by how many signal lattices are used or the signal strength level is high or low.
604. The mobile phone determines whether a condition 2 is satisfied, where the condition 2 includes whether the neighboring network information currently accessed by the mobile phone matches the neighboring network information a of the Wi-Fi network a previously stored by the mobile phone.
The Wi-Fi network a is one Wi-Fi network in the history information stored in the mobile phone, and the adjacent network information a is adjacent network information corresponding to the Wi-Fi network a in the history information stored in the mobile phone.
Since the newly purchased mobile phone has not previously accessed the Wi-Fi network and has not previously stored the adjacent network information, the mobile phone determines that condition 2 is not satisfied. The handset may then perform step 605.
605. The mobile phone stores the corresponding relation between the network name 1 of the Wi-Fi network 1 and the adjacent network information 1. The handset may then perform step 606.
If the mobile phone does not access the Wi-Fi network 1 before and does not meet the condition 2, the mobile phone may store the corresponding relationship between the network name 1 of the Wi-Fi network 1 and the adjacent network information 1, so that the mobile phone may determine that the mobile phone has accessed the Wi-Fi network 1 subsequently according to the stored information.
606. The mobile phone accesses the Wi-Fi network 1 and other Wi-Fi networks for multiple times.
It should be noted that, as time goes on, the adjacent network information of the same Wi-Fi network may actually have a small amount of change, so as to make the adjacent network information of the same Wi-Fi network stored in the mobile phone consistent with the actual information. The mobile phone can also scan and update the adjacent network information after accessing the Wi-Fi network 1.
For example, the handset scans and updates the adjacent network information every time it accesses the Wi-Fi network 1. For another example, after the mobile phone accesses the Wi-Fi network 1, the neighboring network information may be periodically scanned (for example, once every 1 hour) and updated. As another example, at a preset time of day (e.g., 10 pm), if the handset has access to the Wi-Fi network 1, the handset may scan and store the neighboring network information.
607. The user replaces the wireless router 1 with the wireless router 2.
608. The wireless router 2 provides a Wi-Fi network 2, and the wireless router 2 and the Wi-Fi network 2 correspond to the network configuration information 2.
609. The handset accesses the Wi-Fi network 2 provided by the wireless router 2.
610. The handset determines whether the Wi-Fi network 2 was previously accessed. If the Wi-Fi network 2 has not been accessed before, the mobile phone performs step 611; if the Wi-Fi network 2 was previously accessed, the handset may not process it.
611. The handset scans the adjacent network information 2 of the Wi-Fi network 2. The handset then proceeds to step 612.
612. The handset determines whether condition 2 is satisfied, where condition 2 includes whether the adjacent side network information 2 matches the adjacent side network information a of the Wi-Fi network a previously stored by the handset. If the condition 2 is satisfied, the above-mentioned steps 416 to 423 are executed. If not, go to step 613.
613. The mobile phone stores the corresponding relation between the network name 2 of the Wi-Fi network 2 and the adjacent network information 2.
If the mobile phone does not access the Wi-Fi network 2 before and does not meet the condition 2, the mobile phone may store the corresponding relationship between the network name 2 of the Wi-Fi network 1 and the adjacent network information 2, so that the mobile phone may determine that the mobile phone has accessed the Wi-Fi network 2 subsequently according to the stored information.
Typically, neighboring network information around the same wireless router in the same geographic location is substantially or substantially invariant. For example, the adjacent network information around the wireless router in the user's home is usually the network information of the Wi-Fi network of the surrounding neighboring home, and the network information of the Wi-Fi network of the surrounding neighboring home is basically stable and unchangeable.
As described above, the Wi-Fi network a is one Wi-Fi network in the history information stored in the mobile phone, and the adjacent network information a is adjacent network information corresponding to the Wi-Fi network a in the history information stored in the mobile phone.
For example, the Wi-Fi network a is the Wi-Fi network 1, and the adjacent network information a is the adjacent network information 1. If the adjacent network information 2 scanned after accessing the Wi-Fi network 2 at this time is matched with the adjacent network information 1 of the Wi-Fi network 1 stored before the mobile phone, it can be shown that the adjacent network information is basically unchanged, the geographical environment where the mobile phone is located may not be changed, but the accessed Wi-Fi network is changed, and the wireless router providing the Wi-Fi network may be changed. Then, the handset may execute the above-mentioned steps 416-423 to configure the replaced wireless router 2 as the network configuration information 1 of the wireless router 1 before replacement.
The matching between the adjacent network information 2 and the adjacent network information 1 previously stored in the mobile phone means that the adjacent network information 2 is substantially consistent with the adjacent network information 1 previously stored in the mobile phone, that is, the similarity between the adjacent network information 2 and the adjacent network information 1 is greater than or equal to a preset value.
For example, the matching between the adjacent network information 2 and the adjacent network information 1 previously stored in the mobile phone may include that a repetition rate between the network name of the adjacent network in the adjacent network information 2 and the network name of the adjacent network in the adjacent network information 1 is greater than or equal to a preset value 1.
For another example, in addition to the repetition rate of the network name, matching the adjacent side network information 2 with the adjacent side network information 1 previously stored in the mobile phone may further include that the similarity between the signal strength of the adjacent side network in the adjacent side network information 2 and the signal strength of the adjacent side network in the adjacent side network information 1 is greater than or equal to the preset value 2.
For example, the previous saved history neighboring network information of the mobile phone can be referred to table 3; the neighboring network information 2 currently scanned by the handset can be seen in table 4.
TABLE 3
Figure BDA0002188580200000241
TABLE 4
Figure BDA0002188580200000242
Comparing the information in table 3 and table 4, the mobile phone can determine that the adjacent network information 2 is substantially consistent with the adjacent network information 1 in table 3, and satisfies the condition 2, and further can execute the above steps 416 to 423 to configure the network configuration information of the wireless router 2 after replacement as the network configuration information 1 of the wireless router 1 before replacement.
Among the adjacent network information of the Wi-Fi network stored before the mobile phone, there may be a plurality of adjacent network information a corresponding to a plurality of Wi-Fi networks a matching the adjacent network information 2 of the Wi-Fi network 2. For example, there may be multiple wireless routers in the user's home, multiple Wi-Fi networks may be provided, and the adjacent network information corresponding to the multiple Wi-Fi networks is substantially the same and may all match the adjacent network information 2 of the Wi-Fi network 2. For example, the adjacent side network information 0 of the Wi-Fi network 0 matches the adjacent side network information 2 of the Wi-Fi network 2, and the adjacent side network information 1 of the Wi-Fi network 1 also matches the adjacent side network information 2 of the Wi-Fi network 2.
For this case, the handset may also prompt the user to select a target Wi-Fi network in step 420; or, the mobile phone may determine a target Wi-Fi network corresponding to the neighboring network information with the highest matching degree with the neighboring network information 2, among the plurality of neighboring network information a; or, the mobile phone may randomly select one Wi-Fi network from the Wi-Fi networks corresponding to the multiple adjacent network information a as the target Wi-Fi network. Then, in step 416, the handset may provide the network configuration information corresponding to the wireless router of the target Wi-Fi network to the wireless router 2 for configuration.
Therefore, under the condition that the wireless router is replaced, a user does not need to manually set the intelligent household equipment respectively, and does not need to simultaneously configure new and old wireless routers. The mobile phone serving as the configuration device can automatically determine that the wireless router is replaced according to the adjacent network information, and copy the network configuration information of the old wireless router to the new wireless router. The new wireless router can set the network configuration information of the new wireless router to be consistent with the network configuration information of the old wireless router, so that other wireless network equipment such as intelligent home equipment can automatically access the Wi-Fi network provided by the new wireless router according to the network configuration information of the old wireless router.
In other embodiments, the handset may store the correspondence between the network name of the accessed Wi-Fi network, the adjacent network information, and the access times, so as to determine whether the wireless router is replaced according to the information.
For example, in the step 612, if the adjacent network information 2 of the Wi-Fi network 2 matches the adjacent network information 1 of the Wi-Fi network 1 previously stored in the mobile phone, and the number of times that the mobile phone accesses the Wi-Fi network 1 exceeds the preset number N, the mobile phone may more accurately determine that the wireless router 1 corresponding to the Wi-Fi network 1 is replaced with the wireless router 2 corresponding to the Wi-Fi network 2.
In other embodiments, the handset may store the correspondence between the network name of the accessed Wi-Fi network, the adjacent network information, and the location information, so that the handset may determine whether the wireless router has been replaced according to the information.
For example, in step 612, if the adjacent network information 2 of the Wi-Fi network 2 matches the adjacent network information 1 of the Wi-Fi network 1 previously stored in the mobile phone, and the location information 2 when the mobile phone accesses the two Wi-Fi networks is the same as the location information 1, the mobile phone may more accurately determine that the wireless router 1 corresponding to the Wi-Fi network 1 is replaced with the wireless router 2 corresponding to the Wi-Fi network 2.
In other embodiments, the mobile phone may store the correspondence between the network name of the accessed Wi-Fi network, the adjacent network information, the location information, and the access times, so as to determine whether the wireless router is replaced according to the information.
For example, in step 612, if the adjacent network information 2 of the Wi-Fi network 2 matches the adjacent network information 1 of the Wi-Fi network 1 previously stored in the mobile phone, the location information 2 when the mobile phone accesses the two Wi-Fi networks is the same as the location information 1, and the number of times that the mobile phone accesses the Wi-Fi network 1 at the location 1 indicated by the location information 1 exceeds the preset value N times, the mobile phone may more accurately determine that the wireless router 1 corresponding to the Wi-Fi network 1 is replaced with the wireless router 2 corresponding to the Wi-Fi network 2.
It should be noted that, in the process of executing the configuration method provided in the above embodiment, the mobile phone may interact with the user through the interface displayed by the APP, or may directly interact with the user through the support of the operating system without the APP. The APP may be a native application of an operating system or a third-party application.
It can be understood that, the above description takes the mobile phone as the configuration device as an example, and when the configuration device is other electronic devices such as a tablet, the method provided in the above embodiment may also be used to configure the network configuration information of the wireless router, which is not described herein again.
In addition, the above mainly takes the wireless network as a Wi-Fi network as an example for explanation, and when the wireless network is other wireless networks such as bluetooth, the method provided in the above embodiment may also be used to configure the network configuration information of the wireless router, which is not described herein again.
An electronic device is also provided in the embodiment of the present application, referring to fig. 7, where the electronic device is the above configuration device, and the electronic device 700 may include an information obtaining module 701, a history information recording module 702, a logic determining module 703, an information configuration module 704, and the like. The modules shown in fig. 7 may cooperate with each other to implement the configuration method of the network configuration information.
In some embodiments, the information obtaining module may obtain location information of the electronic device when accessing the wireless network, and related information such as network configuration information of the wireless network. The history information recording module can record the network name of the wireless network accessed by the electronic equipment, the corresponding relation between the position information and the access times during the access, the corresponding network configuration information and other related information. The logic judgment module can judge whether the electronic equipment is accessed to a new wireless network. When the electronic equipment is accessed to a new wireless network, the logic judgment module can also determine whether the wireless access equipment is replaced or not according to the corresponding relation stored by the historical information recording module. If the wireless access device is replaced, the information configuration module may provide the network configuration information corresponding to the wireless access device before replacement, which is stored in the history information recording module, to the new wireless access device after replacement for network information configuration.
For example, the information acquisition module may enable the electronic device to perform steps 404, 412, etc. of the flow illustrated in fig. 4, and/or other processes for the techniques described herein. The history information recording module may enable the electronic device to perform step 406, step 415, etc. of the flow illustrated in fig. 4, and/or other processes for the techniques described herein. The logic determination module may enable the electronic device to perform steps 403, 405, 411, 413, etc. of the flow illustrated in fig. 4, and/or other processes for the techniques described herein. The information configuration module may enable the electronic device to perform step 416, etc. of the flow illustrated in fig. 4, and/or other processes for the techniques described herein.
In other embodiments, the information obtaining module may obtain neighboring network information when the electronic device accesses the wireless network, and related information such as network configuration information of the wireless network. The history information recording module can record the corresponding relation between the network name of the wireless network accessed by the electronic equipment and the adjacent network information, and the corresponding network configuration information and other related information. The logic judgment module can judge whether the electronic equipment is accessed to a new wireless network. When the electronic equipment is accessed to a new wireless network, the logic judgment module can also determine whether the wireless access equipment is replaced or not according to the corresponding relation stored by the historical information recording module. If the wireless access device is replaced, the information configuration module may provide the network configuration information corresponding to the wireless access device before replacement, which is stored in the history information recording module, to the new wireless access device after replacement for network information configuration.
For example, the information acquisition module may enable the electronic device to perform step 603, step 611, etc., of the flow illustrated in fig. 6, and/or other processes for the techniques described herein. The history information recording module may enable the electronic device to perform step 605, step 613, etc. in the flow illustrated in fig. 6, and/or other processes for the techniques described herein. The logic determination module may enable the electronic device to perform steps 602, 604, 610, 612, etc. of the flow illustrated in fig. 6, and/or other processes for the techniques described herein. The information configuration module may enable the electronic device to perform step 416, etc. of the flow illustrated in fig. 6, and/or other processes for the techniques described herein.
The embodiment of the application also provides electronic equipment which can comprise an access unit, a determining unit, a sending unit, an obtaining unit, a storing unit and the like. The units in the electronic device may cooperate with each other to implement the configuration method of the network configuration information.
An embodiment of the present application further provides an electronic device, including one or more processors; a memory; and one or more computer programs. One or more computer programs are stored in the memory, the one or more computer programs including instructions. When executed by one or more processors, the instructions cause the electronic device to perform the steps of the above embodiments to implement the configuration method of the network configuration information.
The embodiment of the present application further provides a computer storage medium, where a computer instruction is stored in the computer storage medium, and when the computer instruction runs on an electronic device, the electronic device is enabled to execute the relevant method steps to implement the method for configuring the network configuration information in the foregoing embodiment.
The embodiments of the present application further provide a computer program product, which when running on a computer, causes the computer to execute the above related steps, so as to implement the method for configuring network configuration information in the above embodiments.
In addition, the embodiment of the application also provides a device, and the device can be a chip system. The chip system is applied to electronic equipment. The chip system includes one or more interface circuits and one or more processors; the interface circuit and the processor are interconnected through a line; the interface circuit is configured to receive signals from a memory of the electronic device and to send signals to the processor, the signals including computer instructions stored in the memory; when the processor executes the computer instructions, the electronic device executes the relevant steps to implement the configuration method of the network configuration information in the above embodiment.
In addition, embodiments of the present application also provide an apparatus, which may be specifically a component or a module, and may include a processor and a memory connected to each other; the memory is used for storing computer execution instructions, and when the device runs, the processor can execute the computer execution instructions stored in the memory, so that the chip can execute the configuration method of the network configuration information in the above-mentioned method embodiments.
The electronic device, the chip, the computer storage medium, the computer program product, or the chip provided in the embodiments of the present application are all configured to execute the corresponding method provided above, and therefore, the beneficial effects achieved by the electronic device, the chip, the computer storage medium, the computer program product, or the chip may refer to the beneficial effects in the corresponding method provided above, and are not described herein again.
Through the description of the above embodiments, those skilled in the art will understand that, for convenience and simplicity of description, only the division of the above functional modules is used as an example, and in practical applications, the above function distribution may be completed by different functional modules as needed, that is, the internal structure of the device may be divided into different functional modules to complete all or part of the above described functions.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described device embodiments are merely illustrative, and for example, the division of the modules or units is only one logical functional division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another device, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may be one physical unit or a plurality of physical units, that is, may be located in one place, or may be distributed in a plurality of different places. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially or partially contributed to by the prior art, or all or part of the technical solutions may be embodied in the form of a software product, where the software product is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, or the like) or a processor (processor) to execute all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (22)

1. A method for configuring network configuration information is characterized by comprising the following steps:
the electronic equipment accesses a first wireless network provided by first wireless access equipment;
if the electronic equipment determines that the electronic equipment meets a preset condition according to the first wireless network and the stored historical information, the electronic equipment sends network configuration information of second wireless access equipment to the first wireless access equipment;
the preset condition is used for indicating that the electronic device is changed from being accessed to the second wireless access device to be accessed to the first wireless access device, the network configuration information is used for configuring the first wireless access device, and the network configuration information comprises a network name and a network password of a wireless network.
2. The method of claim 1, wherein determining, by the electronic device, that the electronic device satisfies a preset condition according to the first wireless network and stored history information comprises:
if the electronic equipment determines that the first wireless network is not accessed before, the electronic equipment acquires first position information, wherein the first position information is used for representing the current position of the electronic equipment;
the electronic equipment determines that the electronic equipment meets the preset condition according to the first position information and the historical information; the preset condition comprises that the first position information is the same as second position information in the historical information, or
The preset condition comprises that the first position information is the same as second position information in the historical information, and the access times of a second wireless network corresponding to the second position information in the historical information are larger than or equal to a preset value;
the second wireless network is a wireless network provided by the second wireless access device, and the first wireless network is different from the second wireless network.
3. The method of claim 2, further comprising:
if the electronic device determines that the electronic device does not meet the preset condition according to the first location information and the history information, the electronic device stores the corresponding relationship between the first location information and the first wireless network, and records that the access times of the first wireless network is 1.
4. A method according to claim 2 or 3, characterized in that the method further comprises:
and if the electronic equipment determines that the first wireless network is accessed before, the electronic equipment adds 1 to the access times corresponding to the first wireless network.
5. The method of claim 1, wherein determining, by the electronic device, that the electronic device satisfies a preset condition according to the first wireless network and stored history information comprises:
if the electronic equipment determines that the first wireless network is not accessed before, the electronic equipment scans first adjacent network information, wherein the first adjacent network information is network information of wireless networks around the first wireless network;
the electronic equipment determines that the electronic equipment meets the preset condition according to the first adjacent network information and the historical information; the preset condition comprises that the similarity between the first adjacent network information and second adjacent network information of a second wireless network in the historical information is greater than or equal to a preset value;
the second wireless network is a wireless network provided by the second wireless access device, the second adjacent network information is network information of wireless networks around the second wireless network, and the first wireless network is different from the second wireless network.
6. The method of claim 5, further comprising:
if the electronic equipment determines that the electronic equipment does not meet the preset condition according to the first adjacent network information and the historical information, the electronic equipment stores the corresponding relation between the first adjacent network information and the first wireless network.
7. The method of claim 6,
the first adjacent network information includes network names of wireless networks around the first wireless network scanned by the electronic device, or
The first adjacent network information includes network names and network signal strengths of wireless networks surrounding the first wireless network, which are scanned by the electronic device.
8. The method of claim 1, wherein the electronic device sends network configuration information of a second wireless access device to the first wireless access device, and wherein the sending comprises:
the electronic equipment prompts a user to input management configuration information corresponding to the first wireless access equipment, wherein the management configuration information comprises a management account and/or a management password;
and if the electronic equipment determines that the management configuration information input by the user is correct, the electronic equipment sends the network configuration information of the second wireless access equipment to the first wireless access equipment.
9. The method of claim 8, wherein before the electronic device accesses the first wireless network, the method further comprises:
the electronic equipment accesses a second wireless network provided by the second wireless access equipment;
the electronic equipment acquires network management configuration information of the second wireless access equipment;
the electronic device determining that the management configuration information input by the user is correct, including:
and if the management configuration information input by the user is consistent with the network management configuration information of the second wireless access device acquired by the electronic device, the electronic device determines that the management configuration information input by the user is correct.
10. The method of claim 1, wherein the network configuration information further comprises at least one of: data encryption mode, Media Access Control (MAC) address filtering rule, Access Point (AP) isolation strategy, management frame encryption (PMF) switch state or Service Set Identifier (SSID) configuration rule.
11. The method of claim 1, wherein the first wireless network is a Wi-Fi network, and wherein the first wireless access device and the second wireless access device are wireless routers.
12. A method for configuring network configuration information is characterized by comprising the following steps:
the method comprises the steps that the wireless access equipment receives network configuration information of another wireless access equipment sent by the electronic equipment, wherein the network configuration information comprises a network name and a network password of a wireless network;
and the wireless access equipment configures the network configuration information of the wireless access equipment to be consistent with the network configuration information of the other wireless access equipment.
13. An electronic device, comprising: one or more processors;
and a memory having code stored therein;
the code, when executed by the electronic device, causes the electronic device to perform the steps of:
accessing a first wireless network provided by a first wireless access device;
if the preset condition is determined to be met according to the first wireless network and the stored historical information, sending network configuration information of second wireless access equipment to the first wireless access equipment;
the preset condition is used for indicating that the electronic device is changed from being accessed to the second wireless access device to be accessed to the first wireless access device, the network configuration information is used for configuring the first wireless access device, and the network configuration information comprises a network name and a network password of a wireless network.
14. The electronic device according to claim 13, wherein the determining that a preset condition is satisfied according to the first wireless network and the stored history information specifically includes:
if the first wireless network is not accessed before, acquiring first position information, wherein the first position information is used for indicating the current position of the electronic equipment;
determining that the preset condition is met according to the first position information and the historical information; the preset condition comprises that the first position information is the same as second position information in the historical information, or
The preset condition comprises that the first position information is the same as second position information in the historical information, and the access times of a second wireless network corresponding to the second position information in the historical information are larger than or equal to a preset value;
the second wireless network is a wireless network provided by the second wireless access device, and the first wireless network is different from the second wireless network.
15. The electronic device of claim 14, wherein the code, when executed by the electronic device, further causes the electronic device to perform the steps of:
if the preset condition is determined not to be met according to the first position information and the historical information, storing the corresponding relation between the first position information and the first wireless network, and recording the access times of the first wireless network as 1.
16. The electronic device of claim 14 or 15, wherein the code, when executed by the electronic device, further causes the electronic device to perform the steps of:
and if the first wireless network is determined to be accessed before, adding 1 to the access times corresponding to the first wireless network.
17. The electronic device according to claim 13, wherein the determining that a preset condition is satisfied according to the first wireless network and the stored history information specifically includes:
if the first wireless network is not accessed before, scanning first adjacent network information, wherein the first adjacent network information is network information of wireless networks around the first wireless network;
determining that the preset condition is met according to the first adjacent network information and the historical information; the preset condition comprises that the similarity between the first adjacent network information and second adjacent network information of a second wireless network in the historical information is greater than or equal to a preset value;
the second wireless network is a wireless network provided by the second wireless access device, the second adjacent network information is network information of wireless networks around the second wireless network, and the first wireless network is different from the second wireless network.
18. The electronic device of claim 17, wherein the code, when executed by the electronic device, further causes the electronic device to perform the steps of:
and if the preset condition is determined not to be met according to the first adjacent network information and the historical information, storing the corresponding relation between the first adjacent network information and the first wireless network.
19. The electronic device of claim 17 or 18,
the first adjacent network information includes network names of wireless networks around the first wireless network scanned by the electronic device, or
The first adjacent network information includes network names and network signal strengths of wireless networks surrounding the first wireless network, which are scanned by the electronic device.
20. The electronic device according to claim 13, wherein the sending the network configuration information of the second radio access device to the first radio access device specifically includes:
prompting a user to input management configuration information corresponding to the first wireless access equipment, wherein the management configuration information comprises a management account and/or a management password;
and if the management configuration information input by the user is determined to be correct, sending the network configuration information of the second wireless access equipment to the first wireless access equipment.
21. The electronic device of claim 20, wherein the code, when executed by the electronic device, further causes the electronic device to perform the steps of:
accessing a second wireless network provided by the second wireless access equipment before accessing the first wireless network;
acquiring network management configuration information of the second wireless access equipment, wherein the second wireless network is a wireless network provided by the second wireless access equipment;
the determining that the management configuration information input by the user is correct specifically includes:
and if the management configuration information input by the user is consistent with the network management configuration information of the second wireless access device acquired by the electronic device, determining that the management configuration information input by the user is correct.
22. A computer storage medium comprising computer instructions that, when run on an electronic device, cause the electronic device to perform the method of configuring network configuration information of any of claims 1-11.
CN201910824319.9A 2019-09-02 2019-09-02 Method and equipment for configuring network configuration information Active CN110730114B (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
CN201910824319.9A CN110730114B (en) 2019-09-02 2019-09-02 Method and equipment for configuring network configuration information
PCT/CN2020/111470 WO2021043045A1 (en) 2019-09-02 2020-08-26 Method and device for configuring network configuration information
US17/639,425 US20220303180A1 (en) 2019-09-02 2020-08-26 Network Configuration Information Configuration Method and Device
EP20860656.6A EP4020896A4 (en) 2019-09-02 2020-08-26 Method and device for configuring network configuration information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910824319.9A CN110730114B (en) 2019-09-02 2019-09-02 Method and equipment for configuring network configuration information

Publications (2)

Publication Number Publication Date
CN110730114A CN110730114A (en) 2020-01-24
CN110730114B true CN110730114B (en) 2021-02-12

Family

ID=69218842

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910824319.9A Active CN110730114B (en) 2019-09-02 2019-09-02 Method and equipment for configuring network configuration information

Country Status (4)

Country Link
US (1) US20220303180A1 (en)
EP (1) EP4020896A4 (en)
CN (1) CN110730114B (en)
WO (1) WO2021043045A1 (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110730114B (en) * 2019-09-02 2021-02-12 华为技术有限公司 Method and equipment for configuring network configuration information
CN111556119B (en) * 2020-04-23 2023-04-21 杭州涂鸦信息技术有限公司 Device information changing method and related device
WO2021253378A1 (en) * 2020-06-19 2021-12-23 Arris Enterprises Llc Method and program for synchronizing user configuration between different devices
CN112019409B (en) * 2020-08-12 2022-05-03 深圳市欧瑞博科技股份有限公司 Equipment distribution network processing method, equipment distribution network processing device and electronic equipment
CN114666823A (en) * 2020-12-23 2022-06-24 艾锐势企业有限责任公司 Network device, method for executing the same, and computer-readable medium
CN113031884A (en) * 2021-03-22 2021-06-25 珠海奔图电子有限公司 Method, device and system for configuring image forming device network
CN113365274B (en) * 2021-06-10 2023-11-14 荣耀终端有限公司 Network access method and electronic equipment
US20230297299A1 (en) * 2022-03-17 2023-09-21 Xerox Corporation Multi-function device communities for troubleshooting and maintenance

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107645495A (en) * 2017-08-24 2018-01-30 上海斐讯数据通信技术有限公司 A kind of wireless network password sharing method and system

Family Cites Families (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7693516B2 (en) * 2004-12-28 2010-04-06 Vtech Telecommunications Limited Method and system for enhanced communications between a wireless terminal and access point
FR2971072B1 (en) * 2011-01-31 2013-01-18 Elie Nadjar SYSTEM FOR ENHANCING THE SECURITY OF A LOCAL COMPUTER NETWORK WITH WIRELESS TYPE WIRELESS CONNECTION
US10320459B2 (en) * 2013-04-10 2019-06-11 Marvell World Trade Ltd. Method and apparatus for mitigating interference in a wireless network through use of transmit beamforming
CN104349319B (en) * 2013-08-01 2018-10-30 华为终端(东莞)有限公司 A kind of method, apparatus and system for configuring more equipment
US10356573B2 (en) * 2014-10-22 2019-07-16 Braeburn Systems Llc Thermostat synchronization via remote input device
CN105392140B (en) * 2015-11-19 2019-07-19 上海斐讯数据通信技术有限公司 A kind of autosynchronous method of key configuration between wireless router
WO2017088101A1 (en) * 2015-11-23 2017-06-01 华为技术有限公司 Network access information acquiring method, and router
CN105915416B (en) * 2016-04-06 2020-03-24 联想(北京)有限公司 Information processing method and terminal equipment
US10251042B2 (en) * 2016-07-27 2019-04-02 Mario Soave Activity-triggered provisioning of portable wireless networks
CN106656581A (en) * 2016-11-29 2017-05-10 北京小米移动软件有限公司 Router configuration method and device
CN107070707B (en) * 2017-03-24 2020-06-02 北京小米移动软件有限公司 Method and device for determining initialization mode of router
CN108134695A (en) * 2017-12-19 2018-06-08 上海斐讯数据通信技术有限公司 A kind of method and system based on APP rapid configuration routers
CN110138607A (en) * 2019-05-09 2019-08-16 深圳市吉祥腾达科技有限公司 Router updating method, system and storage medium
CN110417582B (en) * 2019-07-03 2021-01-29 华为技术有限公司 Router configuration method, terminal and router
CN110730114B (en) * 2019-09-02 2021-02-12 华为技术有限公司 Method and equipment for configuring network configuration information

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107645495A (en) * 2017-08-24 2018-01-30 上海斐讯数据通信技术有限公司 A kind of wireless network password sharing method and system

Also Published As

Publication number Publication date
EP4020896A1 (en) 2022-06-29
CN110730114A (en) 2020-01-24
WO2021043045A1 (en) 2021-03-11
EP4020896A4 (en) 2022-10-19
US20220303180A1 (en) 2022-09-22

Similar Documents

Publication Publication Date Title
CN110730114B (en) Method and equipment for configuring network configuration information
CN112351322B (en) Terminal device, method and system for realizing touch screen projection through remote controller
CN112289313A (en) Voice control method, electronic equipment and system
CN111369988A (en) Voice awakening method and electronic equipment
CN110417582B (en) Router configuration method, terminal and router
CN111373713B (en) Message transmission method and device
CN112469011A (en) Bluetooth pairing method and related device
CN111835907A (en) Method, equipment and system for switching service across electronic equipment
CN112888045A (en) Cell measurement method, cell measurement device, terminal device, chip and storage medium
CN114490174A (en) File system detection method, electronic device and computer readable storage medium
CN114339698A (en) Method for establishing wireless connection through equipment touch, electronic equipment and chip
CN113973398A (en) Wireless network connection method, electronic equipment and chip system
CN112738794B (en) Network residing method, chip, mobile terminal and storage medium
CN113645622A (en) Device authentication method, electronic device, and storage medium
CN115119336B (en) Earphone connection system, earphone connection method, earphone, electronic device and readable storage medium
CN113467747B (en) Volume adjusting method, electronic device and storage medium
CN114116610A (en) Method, device, electronic equipment and medium for acquiring storage information
CN115701032A (en) Device control method, electronic device, and storage medium
CN115248693A (en) Application management method and electronic equipment
CN112822246A (en) Equipment identification method and equipment
CN114554012A (en) Incoming call answering method, electronic equipment and storage medium
CN113867520A (en) Device control method, electronic device, and computer-readable storage medium
CN115734323B (en) Power consumption optimization method and device
WO2024001735A1 (en) Network connection method, electronic device, and storage medium
CN115802326A (en) Bluetooth connection method and electronic equipment

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