CN110417582B - Router configuration method, terminal and router - Google Patents

Router configuration method, terminal and router Download PDF

Info

Publication number
CN110417582B
CN110417582B CN201910596087.6A CN201910596087A CN110417582B CN 110417582 B CN110417582 B CN 110417582B CN 201910596087 A CN201910596087 A CN 201910596087A CN 110417582 B CN110417582 B CN 110417582B
Authority
CN
China
Prior art keywords
router
terminal
backup data
information
configuration
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
CN201910596087.6A
Other languages
Chinese (zh)
Other versions
CN110417582A (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 CN201910596087.6A priority Critical patent/CN110417582B/en
Publication of CN110417582A publication Critical patent/CN110417582A/en
Priority to PCT/CN2020/100021 priority patent/WO2021000923A1/en
Application granted granted Critical
Publication of CN110417582B publication Critical patent/CN110417582B/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
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses

Landscapes

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

Abstract

The application provides a router configuration method, a terminal and a router. The method comprises the following steps: the terminal is connected with the first router; if the first router is an unconfigured router, the terminal receives first characteristic information from the first router; the first characteristic information is information for identifying a first place where the first router is located; the terminal judges whether the first characteristic information is matched with backup data stored in the terminal; if second characteristic information in first backup data in the terminal is matched with the first characteristic information, the terminal sends the first backup data or configuration information in the first backup data to the first router, wherein the configuration information is used for configuring the first router; wherein the first backup data includes second characteristic information and configuration information.

Description

Router configuration method, terminal and router
Technical Field
The present application relates to the field of communications technologies, and in particular, to a router configuration method, a terminal, and a router.
Background
The wireless router may convert the broadband network signal into a wireless signal to provide wireless coverage. Terminals (such as mobile phones, tablet computers, notebook computers and the like) in the wireless coverage range of the wireless router can be connected to the wireless router to realize wireless internet access. The application of the wireless router is popular, and many family users or company users use the wireless router to provide wireless internet access services for their members.
For a new router or a router after factory reset is resumed, configuration such as a network access mode (e.g., dial-up network access), a wireless network name (e.g., Wi-Fi name), a wireless network password (e.g., Wi-Fi password), and the like needs to be performed first. For example, the router is configured after the browser accesses http://192.168.1.1/, the user name (e.g. admin) and the initial password are input, and login is successful. The configuration mode is relatively complicated in operation and high in professional performance, and can be configured by professional personnel or non-professional personnel who need to carefully read the specification. Without a professional, or instruction, it is difficult for a typical user to efficiently configure a router.
Disclosure of Invention
The embodiment of the application provides a router configuration method, a terminal and a router, which can efficiently and conveniently realize the configuration of the router.
In a first aspect, an embodiment of the present application provides a router configuration method, where the method includes: the terminal is connected with the first router; if the first router is an unconfigured router, the terminal receives first characteristic information from the first router; the first characteristic information is information for identifying a first place where the first router is located; the terminal judges whether the first characteristic information is matched with backup data stored in the terminal; if second characteristic information in first backup data in the terminal is matched with the first characteristic information, the terminal sends the first backup data or configuration information in the first backup data to the first router, wherein the configuration information is used for configuring the first router; wherein the first backup data includes second characteristic information and configuration information.
In one possible implementation, the unconfigured router is a new router that has not been configured after the factory.
In one possible implementation, the unconfigured router is a factory-restored router.
In one possible implementation manner, the first feature information includes at least one of:
the feature information of at least one router, the IP address of the wired network corresponding to the first place, the feature information of the network equipment corresponding to the first place, and the self identification information of the first router; wherein the content of the first and second substances,
the wireless signal transmitted by each router of the at least one router is sufficient to be received by the first router.
In this implementation, the location where the first router is located can be identified by the feature information of the routers around the first router, the feature information of the network or network device associated with the location where the first router is located, and the self-identification of the first router, thereby efficiently and accurately identifying the location where the first router is located.
In one possible implementation, when the first feature information includes feature information of the at least one router; the matching between the second characteristic information and the first characteristic information specifically comprises: the feature information of one router in the at least one router and the feature information of one router in the second feature information are the same.
In this implementation, when the feature information of one router in the first feature information is the same as that of one router in the second feature information, the first feature information and the second feature information are considered to be matched, so that the backup data can be matched to the first router even when some routers in the second feature information are turned off, damaged, or replaced.
In one possible implementation, the first backup data is a backup data; the first feature information includes at least two kinds of information among feature information of at least one router, an IP address of a wired network corresponding to the first location, feature information of network equipment corresponding to the first location, and self-identification information of the first router, and various kinds of information in the at least two kinds of information have different priorities; if the second characteristic information matches the first characteristic information, before the terminal sends the first backup data or the configuration information in the first backup data to the first router, the method further includes: and matching with backup data according to the priority of the various information in sequence until the first backup data is determined.
In the implementation mode, the first characteristic information comprises information with different priorities, when the information is matched, matching can be performed according to the information with high priority, if the only one backup data cannot be matched, further matching is performed according to the information with the second priority, and therefore timeliness and effectiveness of matching to proper backup data are considered.
In one possible implementation, the method further includes: if the terminal does not have backup data matched with the first characteristic information and at least one second backup data is stored in the terminal, the terminal displays the at least one second backup data; and responding to the selection of the user for one second backup data in the at least one second backup data, and sending the second backup data selected by the user or the configuration information in the second backup data to the first router by the terminal so as to configure the first router.
In this implementation, the user may manually select the backup data to enable the router to be configured according to the backup data selected by the user.
In one possible implementation manner, before the terminal connects to the first router, the method further includes: the terminal is connected with a second router, and the second router is located in the first place; the terminal configures the second router based on the operation of a user; and the terminal receives and stores the first backup data sent by the second router after configuration, wherein second characteristic information in the first backup data is acquired by the second router, and configuration information in the first backup data is configuration information of the second router.
In this implementation manner, the terminal may obtain backup data of a router located in a certain location, so that when a new router exists in the location, the terminal may send the backup data of the configured router in the location to the new router, so that the new router implements configuration according to the location.
In a possible implementation manner, if the second feature information in the first backup data in the terminal matches the first feature information, the sending, by the terminal, the first backup data or the configuration information in the first backup data to the first router includes: if second characteristic information in first backup data in the terminal is matched with the first characteristic information, the terminal displays the first backup data; and responding to the selection of the first backup data by the user, and sending the first backup data or the configuration information in the first backup data to the first router by the terminal.
In the implementation mode, the user can control the backup data sent to the new router, so that the control of the user on the configuration of the new router is realized, and the operation experience of the user in configuring the router is improved.
In one possible implementation, the configuration information includes at least one of:
the method comprises the steps of a network access mode, a wireless network name, a wireless network password, a management password and a bound account.
In this implementation, the new router may be caused to implement the configuration of one or more types of configuration information.
In a second aspect, an embodiment of the present application provides a router configuration method, which is applied to a first router, and the method includes: the first router is connected with a terminal; if the first router is an unconfigured router, the first router sends first characteristic information to the terminal; the first characteristic information is information for identifying a first place where the first router is located; the first router receives first backup data or configuration information in the first backup data from the terminal; the first backup data comprises second characteristic information and the configuration information, and the second characteristic information is matched with the first characteristic information; and the first router is configured according to the configuration information.
In one possible implementation manner, the first feature information includes at least one of:
the feature information of at least one router, the IP address of the wired network corresponding to the first place, the feature information of the network equipment corresponding to the first place, and the self identification information of the first router; wherein the wireless signal transmitted by each router of the at least one router is sufficient to be received by the first router.
In one possible implementation, when the first feature information includes feature information of the at least one router; the matching of the first characteristic information and the second characteristic information specifically comprises: the feature information of one router in the at least one router and the feature information of one router in the second feature information are the same.
In one possible implementation, the first feature information includes feature information of the at least one router; before the first router sends the first feature information to the terminal, the method further includes:
receiving wireless signals of a plurality of routers around the first router;
determining the at least one router based on a signal strength of a wireless signal of each of the plurality of routers.
In one possible implementation, the configuration information includes at least one of:
the method comprises the steps of a network access mode, a wireless network name, a wireless network password, a management password and a bound account.
In a third aspect, an embodiment of the present application provides a router configuration method, which is applied to a second router, and the method includes: the second router is connected with a terminal; the second router receives a configuration instruction sent by the terminal; the second router is configured according to the configuration instruction; the second router acquires second characteristic information; and the second router sends first backup data to the terminal, wherein the first backup data comprises the second characteristic information and configuration information, and the configuration information is the configuration information of the second router.
In a fourth aspect, an embodiment of the present application provides a terminal, including a processor, a memory, and a transceiver; wherein the memory is used for storing computer execution instructions; when the terminal is running, the processor executes the computer executable instructions stored by the memory to cause the terminal to perform the method of the first aspect.
In a fifth aspect, an embodiment of the present application provides a router, including a processor, a memory, and a transceiver; wherein the memory is used for storing computer execution instructions; when the router is running, the processor executes the computer-executable instructions stored by the memory to cause the router to perform the method of the second aspect or the method of the third aspect.
In a sixth aspect, an embodiment of the present application provides a computer storage medium, which includes computer instructions that, when executed on a terminal, cause the terminal to perform the method of the first aspect.
In a seventh aspect, an embodiment of the present application provides a computer storage medium, where the computer storage medium includes computer instructions that, when executed on a router, cause the router to perform the method of the second aspect or the method of the third aspect.
In an eighth aspect, an embodiment of the present application provides a computer program product, where the computer program product includes program code, which, when executed by a processor in a terminal, implements the method of the first aspect.
In a ninth aspect, the present application provides a computer program product, where the computer program product includes program code, which, when executed by a processor in a terminal, implements the method of the second aspect or the method of the third aspect.
By the router configuration method, the terminal and the router provided by the embodiment of the application, the configuration information of the router can be backed up, and backup data is generated by combining the location characteristic information of the router; when the new router needs to be configured, the backup data matched with the place where the new router is located can be obtained from the terminal, so that the new router can obtain the configuration matched with the place where the new router is located.
Drawings
Fig. 1 is a schematic view of an application scenario according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of a terminal according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of a router according to an embodiment of the present application;
fig. 4 is a flowchart of a router configuration method according to an embodiment of the present application;
fig. 5 is a terminal page display diagram according to an embodiment of the present disclosure;
fig. 6 is a terminal page display diagram according to an embodiment of the present disclosure;
fig. 7 is a schematic view of an application scenario of the router configuration method according to the embodiment of the present application;
fig. 8 is a terminal page display diagram according to an embodiment of the present disclosure;
fig. 9 is a terminal page display diagram according to an embodiment of the present disclosure;
fig. 10 is a flowchart of a router configuration method according to an embodiment of the present application;
fig. 11 is a flowchart of a backup data determining method according to an embodiment of the present application;
fig. 12A is a flowchart of a router configuration method according to an embodiment of the present application;
fig. 12B is a flowchart of a router configuration method according to an embodiment of the present application;
fig. 13A is a terminal page display diagram according to an embodiment of the present application;
fig. 13B is a terminal page display diagram according to an embodiment of the present application;
fig. 13C is a terminal page display diagram according to an embodiment of the present application;
fig. 13D is a terminal page display diagram according to an embodiment of the present application;
fig. 13E is a terminal page display diagram according to an embodiment of the present application;
fig. 13F is a terminal page display diagram according to an embodiment of the present application;
fig. 13G is a terminal page display diagram according to an embodiment of the present application;
fig. 14 is a flowchart of a router configuration method according to an embodiment of the present application;
fig. 15 is a flowchart of a router configuration method according to an embodiment of the present application;
FIG. 16 is a schematic block diagram of an apparatus provided by an embodiment of the present application;
FIG. 17 is a schematic block diagram of an apparatus provided by an embodiment of the present application;
fig. 18 is a schematic block diagram of a terminal according to an embodiment of the present application;
fig. 19 is a schematic block diagram of a router according to an embodiment of the present application.
Detailed Description
The technical solution in the embodiments of the present invention will be described below with reference to the accompanying drawings. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention.
Fig. 1 shows a wireless network system including a terminal 100 and a router 200. Routers may transmit wireless signals, such as wireless fidelity (Wi-Fi) signals, to provide wireless coverage. The terminal 100 is within a wireless coverage provided by the router 200 and is connected to the router 200 by a wireless signal.
The terminal 100 may be any terminal with computing capability and wireless connection capability, such as a mobile phone, a tablet computer, a notebook computer, etc.
The router 200 may be a wired router or a wireless router. A wired router is a device that converts a wired network, such as a broadband network, into a wireless network to provide wireless coverage. The wireless router is a router that can be inserted into a Subscriber Identity Module (SIM) card, and access to a core network through a wireless signal is achieved, and the wireless router serves as a hot spot to provide wireless coverage for terminals such as the terminal 100.
Fig. 2 shows a schematic structural diagram of the terminal 100.
The terminal 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.
It is to be understood that the illustrated structure of the embodiment of the present invention does not specifically limit the terminal 100. In other embodiments of the present application, terminal 100 may include more or fewer components than shown, or some components may be combined, some components may be split, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
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 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 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 the 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 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 a wireless charging input through a wireless charging coil of the electronic device. The charging management module 140 may also supply power to the electronic 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 terminal 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 terminal 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 2G/3G/4G/5G wireless communication and the like applied to the terminal 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 solutions for wireless communication applied to the terminal 100, including Wireless Local Area Networks (WLANs) (e.g., wireless fidelity (Wi-Fi) networks), 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. For example, in some embodiments of the present application, the wireless communication module 160 may interact with other electronic devices (e.g., a router), such as may configure the router, and may request or send backup data to the router.
In some embodiments, the antenna 1 of the terminal 100 is coupled to the mobile communication module 150 and the antenna 2 is coupled to the wireless communication module 160 so that the terminal 100 can communicate with a network and other devices through a wireless communication technology. 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, etc. The GNSS may include a Global Positioning System (GPS), a global navigation satellite system (GLONASS), a beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS), and/or a Satellite Based Augmentation System (SBAS).
The terminal 100 implements a display function through the GPU, the display screen 194, and the application processor, etc. 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 terminal 100 may include 1 or N display screens 194, with N being a positive integer greater than 1.
The electronic device may implement a shooting function through the ISP, the camera 193, the video codec, the GPU, the display screen 194, the application processor, and the like.
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 electronic device 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 electronic device selects a frequency point, the digital signal processor is used for performing fourier transform and the like on the frequency point energy.
Video codecs are used to compress or decompress digital video. The electronic device may support one or more video codecs. In this way, the electronic device can 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. The NPU can realize applications such as intelligent cognition of electronic equipment, 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 electronic device. 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 of the electronic device 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 can store data (such as audio data, phone book and the like) created in the using process of the electronic device. 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.
The electronic device may implement audio functions via the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone interface 170D, and the application processor. 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. The electronic apparatus can listen to music through the speaker 170A or listen to a handsfree call.
The receiver 170B, also called "earpiece", is used to convert the electrical audio signal into an acoustic signal. When the electronic device answers a call or voice information, it can answer the voice 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 a call is placed or a voice message is sent or some event needs to be triggered by the voice assistant to be performed by the electronic device, the user can speak via his/her mouth near the microphone 170C and input a voice signal into the microphone 170C. The electronic device may be provided with at least one microphone 170C. In other embodiments, the electronic device may be provided with two microphones 170C to achieve a noise reduction function in addition to collecting sound signals. In other embodiments, the electronic device may further include three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, perform directional recording, and the like.
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 electronics determine the strength of the pressure from the change in capacitance. When a touch operation is applied to the display screen 194, the electronic device detects the intensity of the touch operation according to the pressure sensor 180A. The electronic device may 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 pose of the electronic device. In some embodiments, the angular velocity of the electronic device about three axes (i.e., x, y, and z axes) may be determined by the gyroscope sensor 180B. The gyro sensor 180B may be used for photographing anti-shake. Illustratively, when the shutter is pressed, the gyroscope sensor 180B detects a shake angle of the electronic device, calculates a distance to be compensated for by the lens module according to the shake angle, and allows the lens to counteract the shake of the electronic device 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, the electronic device calculates altitude, aiding in positioning and navigation, from barometric pressure values measured by barometric pressure sensor 180C.
The magnetic sensor 180D includes a hall sensor. The electronic device may detect the opening and closing of the flip holster using the magnetic sensor 180D. In some embodiments, when the electronic device is a flip, the electronic device 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 electronic device in various directions (typically three axes). When the electronic device is at rest, the magnitude and direction of gravity can be detected. 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 electronic device may measure distance by infrared or laser. In some embodiments, taking a picture of a scene, the electronic device may utilize the distance 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 electronic device emits infrared light to the outside through the light emitting diode. The electronic device uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device. When insufficient reflected light is detected, the electronic device may determine that there are no objects near the electronic device. The electronic device can detect that the electronic device is held by a user and close to the ear for conversation by utilizing the proximity light sensor 180G, so that the screen is automatically extinguished, and the purpose of saving power is achieved. 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 electronic device may adaptively adjust the brightness of the display screen 194 based on 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 electronic device is in a pocket to prevent accidental touches.
The fingerprint sensor 180H is used to collect a fingerprint. The electronic equipment can utilize the collected fingerprint characteristics to realize fingerprint unlocking, access to 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 electronic device implements a temperature processing strategy using the temperature detected by temperature sensor 180J. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device performs 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 electronic device heats the battery 142 when the temperature is below another threshold to avoid an abnormal shutdown of the electronic device due to low temperatures. In other embodiments, the electronic device performs a boost on the output voltage of the battery 142 when the temperature is below a further threshold to avoid abnormal shutdown due to low temperature.
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 may be disposed on a surface of the electronic device at a different position 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 signal acquired by the bone conduction sensor 180M, so as to realize the heart rate detection function.
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 electronic device may receive a key input, and generate a key signal input related to user settings and function control of the electronic device.
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 can be attached to and detached from the electronic device by being inserted into the SIM card interface 195 or being pulled out of the SIM card interface 195. The electronic equipment can support 1 or N SIM card interfaces, and N is 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 electronic equipment realizes functions of conversation, data communication and the like through the interaction of the SIM card and the network. In some embodiments, the electronic device employs esims, namely: an embedded SIM card. The eSIM card can be embedded in the electronic device and cannot be separated from the electronic device.
Fig. 3 shows a schematic structural diagram of the router 200.
Router 200 may include a processor 210, a memory 220, wireless communication circuitry 230, an antenna 232, and a network port 240.
It is to be understood that the illustrated structure of the embodiment of the present application does not constitute a specific limitation to the router 200. In other embodiments of the present application, router 200 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.
The memory 220 is used to store instructions and data. Processor 210 may call instructions or data stored by memory 220. The memory 220 and the processor 210 may be referred to above in the description of the terminal 100.
The network port 240 may include a wired network interface that may be configured to couple to a network of the internet through a wired network such as a broadband network and may provide access to the internet for a plurality of terminals (e.g., terminal 100).
The network port 240 may include a mobile communication module that may be configured to connect to a core network through a wireless communication technology. The wireless communication technology may include GSM, GPRS, CDMA, WCDMA, TD-SCDMA, LTE, fifth generation ((5th generation, 5G), New Radio (NR).
Wireless communications circuitry 230 may be configured to communicate via a Wireless Local Area Network (WLAN) standard, such as a Wi-Fi network. The wireless communication circuit 230 may be one or more devices that integrate at least one communication processing module. The wireless communication circuit 230 may receive electromagnetic waves via the antenna 232, frequency modulate and filter the electromagnetic wave signal, and transmit the processed signal to the processor 210. The wireless communication module may also receive signals to be transmitted from the processor 210, frequency modulate and amplify the signals, and convert the signals to electromagnetic waves via the antenna 232 for radiation.
The methods in the following embodiments may be implemented in an electronic device having the above hardware structure.
The embodiment of the present application provides a router configuration method, and an execution main body of the router configuration method may be a terminal 100. As shown in fig. 4, the method includes the following steps.
And step 400, connecting the terminal with the router.
The terminal connection router may refer to a wireless network provided by the terminal access router. Specifically, the router is started, and the router transmits a wireless signal to provide wireless coverage. When a terminal with a Wireless Local Area Network (WLAN) function is in a wireless coverage area of a router, the terminal may search for a wireless signal transmitted by the router. After searching for the wireless signal, the terminal may connect the wireless signal actively or based on a user operation, thereby connecting the router.
It is easy to understand that whether the router is connected to the network cable or the internet (internet), the router can transmit signals to form a wireless network as long as the switch of the router is turned on. Therefore, in the embodiment of the present application, unless otherwise specified, the wireless network provided by the router refers to a wireless network formed by the router transmitting a signal after being turned on, and does not require the router to access the internet or access an upstream network device or an upstream network interface.
Step 402, determining whether the router is a new router, if so, executing step 406, and if not, executing step 404. Wherein, the router which is not the new router is the old router.
After the terminal is connected to the router, it may be determined whether the router is a new router at step 402. The new router is not configured after leaving the factory, and may also be the router after restoring the old router to the factory setting. The new router is configured without leaving the factory, and the wireless network provided by the new router cannot access the internet. Accordingly, a router configured after shipment may be referred to as an old router. The old router is a router which is configured after leaving the factory, wherein if the configuration meets the external network access requirement of the place where the old router is located, the router has the capacity of accessing the external network of the place.
In this embodiment of the present application, post-factory configuration may also be referred to as user configuration, specifically, information that a user or a consumer configures a router to use the router.
The terminal can respond to the operation instruction of the user and display a router management login page. In some embodiments, the terminal responds to the operation instruction of the user, starts the router management application and displays the router management login page. The router management application may be an application integrated in the terminal operating system, or may be an application downloadable from an application platform and freely installable or uninstallable by a user.
The administrative login page may be as shown in fig. 5, including an administrator username entry box, password entry box, login button, etc. The user may enter an administrator username and password and click a login button. In one example, the administrator username can be a username set forth in a router nameplate or usage specification, such as "admin". The password can be an initial password or a user-defined password. In one example, the administrator username can also be a user-defined cloud account that conforms to the rules agreed upon by the router vendor. Taking hua as a router as an example, the administrator user name may be a user-defined hua as a cloud account, such as a mobile phone number. Correspondingly, the password is a password corresponding to the cloud account.
The router management application and the router have a agreed interface between them, which may be an application layer interface. Through the interface, the terminal and the router can carry out information interaction. Such as transmitting a page access request, first configuration wizard page data, configuration management page data, etc.
When the input administrator user name and the password are correct and the login button is clicked, the terminal can display a first configuration guide page of the router or a configuration management page of the router. When the router is a new router, the terminal displays a first configuration guide page; when the router is an old router, the terminal displays a configuration management page. Next, the two cases will be specifically described.
In some embodiments, when the input administrator user name and password are both correct and the login button is clicked, the terminal may send a page access request to the router in response to the operation of clicking the login button. And if the router is a new router, the router responds to the page access request and sends the first-time configuration guide page data to the terminal so as to enable the terminal to display the first-time configuration guide page. If the router is an old router, the router transmits display configuration management page data to the terminal in response to the page access request.
In some embodiments, when the terminal is connected to the router, if the router is a new router, the terminal is actively sent the first configuration guide page data. And if the router is the old router, actively sending configuration management page data to the terminal. After the terminal acquires the first configuration guide page data or the configuration management page data, the terminal can respond to the operation of clicking a login button and can display the first configuration guide page or the configuration management page.
Therefore, in the embodiment of the present application, the terminal may determine whether the router is a new router or an existing router by using whether the first configuration wizard page data or the configuration management page data is received from the router. If the terminal receives the first configuration guide page data from the router, the router is a new router; if the terminal receives the configuration management page data from the router, the router is the old router.
In some embodiments, the new router has an initial label in the initial wireless network name, which may be, for example, the last 2 digits of the initial network name. When the router is configured after leaving the factory, the initial label is deleted. The terminal (or a router management application installed on the terminal) can determine whether the router is a new router by identifying whether the router currently connected to the terminal has an initial label in the wireless network name.
Step 404, obtaining backup data of the router.
When the determination result of step 402 indicates that the router to which the terminal is connected is not a new router, i.e., is an old router, the terminal may perform step 404.
Specifically, the terminal may send a backup data request to the router. The router sends the router's backup data to the terminal in response to the request.
In some embodiments, the operation of retrieving backup data is an operation directed to a configuration management page. The configuration management page may be as shown in fig. 6, which includes a backup data request button that the user may click to trigger the terminal to send a backup data request to the router.
In some embodiments, the terminal may automatically send a backup data request to the router. The router transmits the backup data to the terminal in response to the backup data request.
When the configuration management page is specifically a page of the router management application, after receiving the backup data of the router, the terminal may store the backup data in a storage path related to the router management application.
The backup data comprises the site characteristic information of the router and the factory configuration information of the router. Here, the location characteristic information in the embodiments of the present application is also referred to as characteristic information. The location characteristic information is information for identifying a location where the router is located. The post-factory configuration information, which may also be referred to as user configuration information or configuration information, refers to post-factory configuration information generated by a router that has undergone post-factory configuration, that is, an old router, according to its own configuration state or configuration data. Specifically, the post-shipment configuration information is a general name of a network access mode of a router configured by a user, a wireless network name, a wireless network password, and the like. The factory configuration information may include at least one of an internet access method, a wireless network name, a wireless network password, and the like, and may also include other information configured by the user, such as a network disconnection time, a restart time, and the like.
In some embodiments, the backup data further includes identification information of the backup data to identify the backup data. The identification information of the backup data may be the S/N of the router that generated the backup data. If the terminal has the backup data locally, in step 404, it may be determined whether the locally stored backup data has the backup data that is the same as the identification information of the backup data currently acquired by the terminal. If so, the locally stored backup data which is the same as the identification information of the currently acquired backup data can be deleted, and the currently acquired backup data can be saved. And if not, saving the currently acquired backup data.
Step 406, determine whether the terminal has backup data locally, if yes, go to step 408, and if no, go to step 416.
When the determination result of step 402 indicates that the router to which the terminal is connected is a new router, the terminal may perform step 406.
The backup data can be referred to the above description and will not be described herein.
It is easy to understand that the backup data locally stored by the terminal may be backup data acquired by the terminal from a router other than the currently connected router, or may be backup data acquired from a cloud server.
Step 408, obtaining router location feature information; step 410 is then performed.
Specifically, the terminal may send a location characteristic information request to the router in response to the operation of acquiring the location characteristic information. The router transmits location characteristic information of the router to the terminal in response to the request. The location characteristic information may specifically refer to the following description, and will not be described herein again.
In some embodiments, the operation of obtaining locale feature information is an operation directed to a first configuration wizard page. The first configuration wizard page may be as shown in fig. 8, which includes a locale characteristic information request button that the user may click on to trigger the terminal to send a locale characteristic information request to the router.
In some embodiments, the terminal may actively send a venue characteristic information request to the router to request venue characteristic information in step 408.
And step 410, matching backup data according to the site feature information.
In some embodiments, when the site characteristic information is BSSIDs of a plurality of surrounding routers, matching may be performed according to a first BSSID of the plurality of surrounding routers. If the backup data is matched and only one backup data is matched, step 412 is executed to send the matched backup data or post-factory configuration information to the router. If two or more backup data are matched, matching may be performed based on the second BSSID, … …, until only one backup data is matched, and then step 412 is performed.
In some embodiments, when the venue characteristic information includes a plurality of priority venue characteristic information, the matching may be performed first according to the first priority venue characteristic information. If the backup data is matched and only one backup data is matched, step 412 is executed to send the matched backup data or post-factory configuration information to the router. If two or more backup data are matched, matching can be performed according to the second priority location characteristic information, … …, until only one backup data is matched, and then step 412 is performed.
In some embodiments, when the backup data is matched through step 410, in step 412, the terminal may send the backup data to the router, so that the router completes its configuration according to the post-factory configuration information in the backup data.
In some embodiments, when the backup data is matched through step 410, in step 412, the post-factory configuration information in the backup data may be sent to the router, so that the router completes its configuration according to the post-factory configuration information.
In some embodiments, when the backup data is not matched through step 410, step 414 may be executed, and the terminal determines the backup data according to the backup data selection operation; and sending the determined backup data or the post-factory configuration information in the determined backup data operation to the router. Specifically, referring to fig. 9, when the terminal locally has the backup data, the terminal may display a select backup data button on the first configuration guide page. The terminal may display a backup data list (not shown) in which backup data stored locally in the terminal is displayed in response to a user's operation of clicking a button for selecting backup data. The user can click a certain backup data in the backup data list, the terminal responds to the operation of the user, determines the backup data as the backup data selected by the user, and sends the backup data or the post-factory configuration information in the backup data to the router.
In some embodiments, when no backup data is matched via step 410, the user may configure the router via a first configure wizard page. Reference may be made specifically to the following description of steps 416 and 418, which are not described in detail herein.
When the determination result in step 406 indicates that the terminal does not locally store backup data, the terminal may execute step 416, and send a configuration instruction to the router in response to the post-factory configuration operation, so as to perform post-factory configuration on the router. Specifically, the user may perform a configuration operation through the first configuration wizard page shown in fig. 8 to trigger the terminal to send a configuration instruction to the router. Specifically, a user can input response configuration information to input boxes corresponding to an internet access mode, a wireless network name, a wireless network password and the like in a first configuration guide page through operating input equipment of a terminal, for example, "X company" is input to the input box corresponding to the wireless network name, the terminal responds to a content change event in the input box, generates and sends a configuration instruction to the router, and the configuration instruction is used for configuring the wireless network name of the router; for another example, inputting "123456" to the input box corresponding to the wireless network password, and the terminal, in response to the content change event in the input box, generating and sending a configuration instruction to the router, where the configuration instruction is used to configure the wireless network password of the router; etc., which are not listed here.
When the user completes the post-factory configuration for the router, the configuration completion button on the first configuration wizard page may be clicked.
It is easy to understand that the backup data is generated after the router is configured after the router is shipped from the factory. The backup data can be referred to the following description and will not be described herein.
In some embodiments, step 406 may also be performed after step 408 and step 410. That is, when it is determined through step 402 that the router to which the terminal is currently connected is a new router, the terminal may perform step 408 and then perform step 410. When the backup data is not matched through step 410, the terminal may perform a step of determining whether it has the backup data locally.
In some embodiments, step 406 may also be performed in combination with step 410. Specifically, when the router currently connected to the terminal is determined to be the new router through step 402, and after the terminal performs step 408, and when step 410 is performed, it is found that there is no local backup data for matching, it may be determined that there is no local backup data.
In some embodiments, after step 416, the terminal may perform step 418 to obtain backup data for the router. Specifically, the terminal may send a configuration management page access request to the router in response to a configuration operation for the configuration completion button. In response to the request, the router sends configuration management page data to the terminal. And the terminal displays the configuration management page according to the configuration management page data. The configuration management page may be as shown in fig. 6. The user can click the backup data request in the configuration management page, and the terminal is triggered to send the backup data request to the router. The router transmits the backup data to the terminal in response to the backup data request. Alternatively, in other embodiments, the router may actively send the router backup data to the terminal after being configured.
Next, description will be given of factory configuration information in the backup data by way of example.
It is easy to understand that the old router has post-factory configuration information. The post-factory configuration may include configurations such as a configuration internet access mode (e.g., dial-up internet access, Dynamic Host Configuration Protocol (DHCP) internet access), a wireless network name (e.g., Wi-Fi name), a wireless network password (e.g., Wi-Fi password), and the like, and correspondingly, the post-factory configuration information may include a configuration internet access mode, a wireless network name, a wireless network password, and the like. In one example, the post-factory configuration of the old router may be that the user accesses http:// 192.168.1.1// using a browser, inputs an administrator user name (e.g., admin), an initial password, and performs post-factory configuration on the router after successful login. In another example, the old router may be configured after factory, and at some point in time before, the user may use the currently used terminal 100 or another terminal to configure the router after factory.
In some embodiments, the wireless router provided in the embodiments of the present application may have an automatic network disconnection function. The user can configure the network disconnection time of the router so as to realize the automatic network disconnection of the router. For example, the user can set the off-line time to achieve the purpose of limiting the on-line time of children. The user may configure the offline time in the manner described above or the like. Therefore, in this embodiment of the present application, the post-factory configuration information may further include a network outage time.
In some embodiments, the wireless router provided in the embodiments of the present application may have an automatic restart function. The user may configure the restart time of the router to enable automatic restart of the router. For example, a user may be set to generally arrive at 18:00 and the restart time may be set to 18: 00. The router may be turned off when the user is away from home. When the network reaches 18:00, the router can be automatically restarted, so that a user can conveniently surf the internet. Therefore, in this embodiment of the present application, the post-factory configuration information may further include a restart time.
It should be noted that, in this embodiment of the application, the factory-after configuration information includes information such as an internet access manner, a wireless network name, a wireless network password, a network outage time, and a restart time, which is taken as an example, and is not exhaustive. The post-factory configuration information may be a generic name of information that a user configures a router by himself/herself after the router leaves a factory.
It is easy to understand that the user configures the router according to the scene where the router is located, for example, configures the internet access mode of the router according to the wired network corresponding to the location, and sets the wireless network name, the wireless network password, the network disconnection time, the restart time, and the like according to the use of the location. Taking a router in a company location as an example, a wireless network name, a wireless network password and the like of the router are generally related to company information, and network disconnection time, restart time and the like are generally related to working time. Taking the router of the personal residence as an example, the configured wireless network name and wireless network password are generally related to personal related information, and the network disconnection time, the restart time and the like are generally related to personal requirements.
In the embodiment of the present application, the information for identifying the location where the router is located may be referred to as location characteristic information of the router. The router configuration method provided by the embodiment of the application can associate or bind the site feature information of the router and the post-factory configuration information of the router to obtain the backup data.
Next, location characteristic information in backup data will be described as an example.
Generally, the maximum transmission distance of wireless signals transmitted by a wireless router can reach several tens of meters, even hundreds of meters. Therefore, for a router in a small place such as a residential house, the wireless coverage area is larger than the place range. And typically a venue is located partially or even entirely within the wireless coverage of a router in another venue. See figure 7. Location A, B, C, D (not shown) may be set as an adjacent location. A router A, B, C, D is provided in sequence at the site A, B, C, D. The routers A, B are within wireless coverage of each other and can acquire signals and thus information of each other. The routers B, C are within wireless coverage of each other and can acquire signals and thus information of each other. The information may include a Service Set Identifier (SSID) or a Basic Service Set Identifier (BSSID). The BSSID of the router is a Media Access Control (MAC) address of a data link layer of the router, and can be used to identify the router.
Generally, the user will not easily move the router, i.e. the router location will usually be fixed. In other words, the location of the wireless coverage of the router rarely changes. Therefore, the router provided by the embodiment of the present application can use the feature information of the routers around the router as the location feature information of the router to identify the location where the router is located. Taking router B as an example, when receiving the wireless signals of routers a and C, BSSIDs of routers a and C may be recorded as router B location characteristic information for identifying the location of router B. Taking router C as an example, upon receiving the router B signal, it may record the BSSID of router B as the location characteristic information of router C.
The above only takes the example that the router uses two or one surrounding router to identify its location, the description has been made on the way that the router identifies its location by the surrounding routers, and the number of other routers used by the router to identify its location is not limited, and the router can use three or more surrounding routers to identify its location more accurately.
It should be noted that, in the embodiment of the present application, for any router, its neighboring router refers to a source router of a wireless signal received by the router. Taking router A, B as an example, when router a can receive the wireless signal of router B, router B belongs to the surrounding routers of router a.
In some embodiments, when the router receives signals of a plurality of surrounding routers, the routers may be ranked according to signal strength, and BSSIDs of routers with top ranking results are preferentially saved as the locale characteristic information. For example, the surrounding routers of router a are router B, C, D (not shown), E (not shown), F (not shown). For router a, router B, C, D is all stronger than router E, F, and router a may use the BSSID of router B, C, D as the location characteristic information of router a.
Further, the router can also utilize the received signal strength of the surrounding routers to more accurately identify the place of the router. Still referring to fig. 1, taking router a as an example, it may record BSSIDs of routers B and C, and may also record the received strengths of wireless signals of routers B and C as the location characteristic information of router a. Router D (not shown) may be set to receive the wireless signals of routers B and C, and router D may record the BSSIDs of routers B and C and the strength of the wireless signals as the location characteristic information of router D. When the intensity of the wireless signal recorded by the router D is different from the intensity of the wireless signal recorded by the router a, it can be considered that the locations of the router D and the router a are different.
In some embodiments, the Strength of the wireless Signal may specifically be a Received Signal Strength Indicator (RSSI) of the wireless Signal.
In some embodiments, the router may collect the feature information of its surrounding routers and the strength of the wireless signal according to a preset period to update its location feature information. The preset period may be one day, one week, one month, and the like, and the preset period is not specifically limited in this embodiment.
In some embodiments, when the router is a wired router, that is, when the router is a device that converts a wired network such as a broadband network into a wireless network, and thus corresponds to a specific location, when the router is connected to a network of the location, and the location-corresponding network has a static Internet Protocol (IP) address, the IP address may be used as location characteristic information of the router to identify the location where the router is located.
For a particular site, the upstream network device or network interface to which the network cable accessing the site is connected is specific. Therefore, the feature information of the upstream network device or the network interface corresponding to the place can be used as the place feature information of the router in the place to identify the place where the router is located. In one example, the upstream network device may be an optical modem (optical modem), i.e., an optical modem, and the characteristic information may be its MAC address.
The user may restore factory settings to the router that has been configured after factory shipment. It is easy to understand that, in general, after a router is restored to a factory setting, it is likely that the router will continue to be used in the original place. Therefore, the identifier of the router may be used to identify the location of the router as the location characteristic information.
In some embodiments, the identifier of the router may specifically be a serial number (S/N) of the router. For any router, a serial number is printed on the nameplate of the router, and the router can be uniquely identified. The router may obtain its own serial number as its locale characteristic information.
In some embodiments, the identifier of the router may specifically be a Universally Unique Identifier (UUID) generated by the router.
In some embodiments, for any router, it may use one or more of feature information such as BSSIDs of surrounding routers, IP addresses corresponding to sites, feature information of upstream network devices or network interfaces corresponding to sites, and its own identification information as its site feature information. In some examples, the locale feature information may also include signal strengths of surrounding routers, which may be combined with other locale feature information (e.g., BSSIDs of surrounding routers, etc.) to identify the locale of the router, to improve the accuracy of identification of the locale of the router.
In one example of these embodiments, the different information described above may be prioritized. For example, BSSIDs of the surrounding routers belong to location feature information of a first priority, and signal strengths of the surrounding routers belong to location feature information of a second priority; for another example, the router itself identifies the location feature information belonging to the first priority, and BSSIDs of the surrounding routers belong to the location feature information of the second priority; etc., which are not listed here.
Next, backup data will be described by way of example.
The router can generate backup data according to the site feature information and post-factory configuration information. The generated backup data includes location characteristic information and post-factory configuration information.
In some embodiments, the router may record the site feature information and the post-factory configuration information into a data table to obtain backup data. Take the example that the surrounding routers of router 1 include routers 2, 3, 4, etc.
In one example of these embodiments, the data record form of the backup data of router 1 may be as shown in table 1.
TABLE 1
Figure BDA0002117700740000161
In this example, each of the three BSSIDs may be used to identify the locale of router 1. When one or both of the three BSSIDs are also used to identify the premises of the other router, then two or all of the three BSSIDs jointly identify the premises of router 1 to distinguish the premises of the other router.
In one example of these embodiments, the data record form of the recorded backup data of router 1 may be as shown in table 2.
TABLE 2
Figure BDA0002117700740000162
In this example, each of the three BSSIDs may be used to identify the locale of router 1. When these three BSSIDs are also used to identify the premises of other routers, then these three BSSIDs in combination with the corresponding RSSI identify the premises of router 1.
In one example of these embodiments, the data record form of the recorded backup data of router 1 may be as shown in table 3.
TABLE 3
Figure BDA0002117700740000171
In this example, each BSSID in the first priority may be used to identify the locale of router 1. When BSSIDs in the first priority are also used to identify the location of other routers, then the first priority may be used in conjunction with the second priority to identify the location of router 1.
In one example of these embodiments, the data record form of the recorded backup data of router 1 may be as shown in table 4.
TABLE 4
Figure BDA0002117700740000172
In this example, when the S/N and the new router do not match, a match may be made with the new router according to the BSSIDs in the second priority.
By the router configuration method provided by the embodiment of the application, the configuration information of the router after leaving the factory can be backed up, and backup data is generated by combining the site characteristic information of the router; when the new router needs to be configured after leaving the factory, backup data matched with the place where the new router is located can be obtained from the terminal, so that the new router can obtain the configuration after leaving the factory, wherein the configuration is matched with the place where the new router is located.
In one embodiment, a router configuration method is provided. Refer to fig. 10. Comprises the following steps.
Step 1000, the old router 1 generates first backup data according to the first location characteristic information and the first post-factory configuration information. Where old router 1 is located in a first place and old router 1 has been previously factory configured.
Step 1002, the old router 1 sends the first backup data to the terminal. Specifically, when the terminal is located in the first place and is connected to the old router 1, the terminal may transmit a backup data request to the old router 1. The old router 1 may transmit the first backup data to the terminal in response to the backup data request. Alternatively, the old router 1 may actively send backup data to the terminal. The first backup data includes first location characteristic information and post-factory configuration information of the old router 1.
Step 1004, the old router 2 generates second backup data according to the second location characteristic information and the second post-factory configuration information. Where the old router 2 is located in the second place and the old router 2 has been previously factory configured.
Step 1006, the old router 2 sends the second backup data to the terminal. Specifically, when the terminal is located in the second place and connected to the old router 2, the old router 2 may actively transmit the backup data to the terminal, or the old router 2 may transmit the backup data to the terminal according to a request of the terminal. The second backup data includes the second location characteristic information and the post-factory configuration information of the old router 2.
Step 1008, the new router 1 sends the first location characteristic information to the terminal. Specifically, when the old router 1 is restored to the factory setting and changed into the new router 1 and is still in the original location, the new router 1 may obtain location characteristic information corresponding to the old router, that is, first location characteristic information, and send the location characteristic information to the terminal.
Step 1010, the terminal may determine the first backup data according to the first location characteristic information.
Step 1012, the terminal sends the first backup data to the new router 1, so that the new router 1 completes the post-factory configuration according to the first backup information.
Step 1014, the new router 2 sends the second location characteristic information to the terminal. Specifically, when the old router 2 is replaced by the new router 2, the new router 2 may obtain the location characteristic information of the location where the old router 2 is located, that is, the second location characteristic information, and send the second location characteristic information to the terminal.
In step 1016, the terminal may determine the second backup data according to the second location characteristic information.
Step 1018, the terminal sends the second backup data to the new router 2, so that the new router 2 completes the post-factory configuration of itself according to the second backup information.
It should be noted that, the scheme of the present embodiment is described above by taking the old router 1, the new router 1, the old router 2, and the new router 2 as examples, and the present embodiment may only include steps 1000, 1002, 1008, 1010, and 1012, or may only include steps 1004, 1006, 1014, 1016, and 1016. In the solution provided in this embodiment, the terminal may manage one pair of old and new routers, or may manage multiple pairs of old and new routers.
The router configuration method provided by the embodiment can backup the configuration information of the router, and generate backup data by combining the location characteristic information of the router; when the new router needs to be configured, the backup data matched with the place where the new router is located can be obtained from the terminal, so that the new router can obtain the configuration matched with the place where the new router is located.
In one embodiment, a backup data determination method is provided. In this embodiment, the locale feature information includes first priority locale feature information, such as the S/N of a router, and second priority locale feature information, such as the BSSIDs of the three surrounding routers with the strongest signals for the router. Referring to fig. 11, the method includes the following steps.
Step 1100, the terminal acquires the location feature information of the new router. Wherein the locale feature information packet is the S/N of the new router. In general, when one router is restored to factory setting, it is likely that the router will continue to be used in the original place. Therefore, in this scenario, the S/N of the new router serves as the location characteristic information of the new router to identify the location where the router is located.
In step 1102, the terminal first determines whether the S/N of the new router is consistent with the S/N in the backup data;
if so, the terminal performs step 1106 to send the backup data to the router.
If they are not the same, the terminal determines in step 1104 whether the BSSID of at least one of the three neighboring routers for which the new router signal is strongest is the same as the BSSID of the backup data (if only the signal of one or two or three routers is received, it determines whether the BSSID of at least one of the one or two or three routers is the same as the BSSID of the backup data).
If so, the terminal performs step 1106 to send the backup data to the router.
If not, the terminal executes step 1108 to determine the backup data according to the backup data selection operation and sends the determined backup data to the new router. Specifically, in response to a user operation, the terminal may display a list of backup data, which may include at least one backup data. The user may perform a backup data selection operation to select one of the backup data in the list of backup data. And the terminal responds to the backup data selection operation, determines the backup data and further sends the determined backup data to the new router.
In one embodiment, a router configuration method is provided. Referring to fig. 12A, the method includes the following steps.
Step 1200a, the terminal sends a configuration instruction to the router a.
Specifically, the router a in the place 1 is a new router, and the new router is a new router that has never been configured after shipment. The new router may also be a router that has been configured before the factory and is now restored to the factory setting. The user may turn on router a to provide wireless coverage. A terminal 1 located within a site 1 is installed with a router management application. When the terminal 1 is connected to the router a, the user can open the router management application. And the user successfully logs in the router management application by inputting the user name and the password of the administrator. The terminal may display a first configuration wizard page. At this time, the terminal does not store the backup data locally. The user can carry out configuration operation after leaving the factory based on the first configuration guide page, and the terminal sends a configuration instruction to the router in response to the operation of the user so as to configure the internet access mode, the wireless network name, the wireless network password and the like of the router.
In step 1202a, router a acquires location characteristic information of location 1. Specifically, reference may be made to the above description of the method embodiment shown in fig. 4, which is not described herein again.
In step 1204a, router a generates backup data. Specifically, reference may be made to the above description of the method embodiment shown in fig. 4, which is not described herein again.
In step 1206a, router a transmits the backup data to terminal 1. Specifically, reference may be made to the above description of the method embodiment shown in fig. 4, which is not described herein again.
After receiving the backup data, the terminal may store the backup data in a relevant storage path of the router management application.
Referring to fig. 12B, the method further includes the following steps.
Step 1200B, router B obtains the locale feature information for locale 1.
Router a within site 1 is replaced by router B, which may provide wireless coverage for site 1 in place of router a. After the terminal 1 is connected to the router B, the terminal 1 may determine whether the router B is a new router. Reference may be made to the above description of step 1200a for defining a new router, which is not described herein again. When the terminal 1 determines that the router B is a new router, a page as shown in fig. 13A may be displayed to prompt the user whether to configure the router.
The user may click on the immediate configuration button in the page shown in fig. 13A to trigger terminal 1 to send a venue characteristic information request to router B. In response to the location characteristic information request, the router B transmits the characteristic information of the location 1 acquired by it to the terminal 1.
After the router B is turned on, the router B may automatically obtain the location feature information of the location 1. Alternatively, the router B may acquire the location feature information of the location 1 in response to the location feature information request transmitted by the terminal 1, and then transmit the acquired location feature information to the terminal 1.
In step 1202B, the router B transmits the location feature information of the location 1 to the terminal 1.
When the terminal 1 is connected to the router B, the terminal 1 can determine whether the router B is a new router. Reference may be made to the above description of step 1200a for defining a new router, which is not described herein again. When the terminal 1 determines that the router B is a new router, a page as shown in fig. 13 may be displayed to prompt the user whether to configure the router.
The user may click on the immediate configuration button in the page shown in fig. 13 to trigger terminal 1 to send a request for locale characteristic information to router B. In response to the location characteristic information request, the router B transmits the characteristic information of the location 1 acquired by it to the terminal 1.
And step 1204b, the terminal 1 matches the backup data according to the site feature information of the site 1.
When one of the backup data is matched through step 1204B, the terminal 1 may display a page as shown in fig. 13B. The post-factory configuration information in the backup data may be displayed on the page, for example, the internet access mode: PPPOE, Wi-Fi: WodeWifi, Wi-Fi password: 12345678, and the like.
In step 1206B, terminal 1 sends the backup data to router B.
As shown in the page of fig. 13B, the user may select the backup data, and in response to the selection of the user, the terminal 1 may transmit the backup data matched in step 1204B to the router B. After receiving the backup data, the router B may obtain post-factory configuration information therein, so that self post-factory configuration may be performed. The terminal 1 may display a relevant process configured after the router B leaves the factory. The details are as follows.
The terminal 1 may display the page shown in fig. 13C. As shown in fig. 13C, the router B may first perform the following operations according to the "internet access method: PPPOE and other network configuration related information.
The terminal 1 may display the page shown in fig. 13D. As shown in fig. 13D, after network configuration, router B may perform network configuration according to "Wi-Fi: WodeWifi "," Wi-Fi password: Wi-Fi related information of 12345678' performs Wi-Fi configuration.
In some embodiments, as shown in fig. 13D, the terminal may display a modify button while Wi-Fi configuration is in progress. The user may modify the Wi-Fi related information by clicking a modify button to make a modify page (not shown) of the Wi-Fi related information. For example, the Wi-Fi name may be modified, as may the Wi-Fi password.
The terminal 1 may display the page shown in fig. 13E. As shown in fig. 13E, after Wi-Fi configuration, if the backup data has "management password: 12345678 ", child internet protection, and the like, and the router B may perform security configuration according to the security configuration related information in the backup data. In this embodiment, the management password specifically refers to a password that needs to be used for accessing a configuration management page of the router or a first configuration wizard page, that is, a password corresponding to an administrator user name (e.g., admin). In one example, the management password is specifically the password required when accessing http:// 192.168.1.1/. The configuration information of the children internet surfing protection comprises information such as network breaking time and the like.
In some embodiments, as shown in fig. 13E, the terminal may display a modify button while the security configuration is in progress. The user can modify the security configuration-related information by clicking a modification button to make a modification page (not shown) of the security configuration-related information. For example, the management password may be modified, and the network disconnection time may also be modified.
The terminal 1 may display the page shown in fig. 13F. As shown in fig. 13F, after performing security configuration, if the backup data includes the binding account configuration information of "12345678 binding account", the router B may perform binding account configuration according to the binding account configuration information in the backup data. In one example, the account in the bound account may specifically be a cloud account, which is customized by the user and conforms to the rules of the router provider. Taking hua as a router as an example, the administrator user name may be a user-defined hua as a cloud account, such as a mobile phone number.
Terminal 1 may display a page as shown in fig. 13G to prompt the user that the post-factory configuration of router B is completed.
It should be noted that, the pages in fig. 13C to fig. 13G are the process of configuring the router B. These several pages are automatically displayed in sequence according to the procedure of router B configuration, without user's manipulation.
The username of router B may be modified after the post-factory configuration of router B. If the username of router B is modified, terminal 1 may reconnect router B to access the internet via the wireless network provided by router B.
It should be noted that the pages in the embodiments of the present application may also be described as interfaces. I.e. these pages can be understood as user interfaces displayed on the terminal.
The router configuration method provided by the embodiment can backup the configuration information of the router, and generate backup data by combining the location characteristic information of the router; when the new router needs to be configured, the backup data matched with the place where the new router is located can be obtained from the terminal, so that the new router can obtain the configuration matched with the place where the new router is located.
In summary, the embodiment of the present application provides a router configuration method, where an execution subject is a terminal. As shown in fig. 14, the method includes the following steps.
Step 1400, the terminal is connected with the first router;
step 1402, if the first router is an unconfigured router, the terminal receives first feature information from the first router; the first characteristic information is information for identifying a first place where the first router is located;
step 1404, the terminal determines whether the first characteristic information matches with backup data stored in the terminal;
step 1406, if second feature information in first backup data in the terminal matches the first feature information, the terminal sends the first backup data or configuration information in the first backup data to the first router, where the configuration information is used to configure the first router; wherein the first backup data includes second characteristic information and configuration information.
In some embodiments, the configuration information is specifically post-factory configuration information.
In some embodiments, the first characteristic information comprises at least one of:
the feature information of at least one router, the IP address of the wired network corresponding to the first place, the feature information of the network equipment corresponding to the first place, and the self identification information of the first router; wherein the content of the first and second substances,
the wireless signal transmitted by each router of the at least one router is sufficient to be received by the first router.
In one example of these embodiments, when the first feature information includes feature information of the at least one router; the matching between the second characteristic information and the first characteristic information specifically comprises: the feature information of one router in the at least one router and the feature information of one router in the second feature information are the same.
In one example of these embodiments, the first backup data is one backup data; the first feature information includes at least two kinds of information among feature information of at least one router, an IP address of a wired network corresponding to the first location, feature information of network equipment corresponding to the first location, and self-identification information of the first router, and various kinds of information in the at least two kinds of information have different priorities; if the second characteristic information matches the first characteristic information, before the terminal sends the first backup data or the configuration information in the first backup data to the first router, the method further includes: and matching with backup data according to the priority of the various information in sequence until the first backup data is determined.
In some embodiments, the method further comprises: if the terminal does not have backup data matched with the first characteristic information and at least one second backup data is stored in the terminal, the terminal displays the at least one second backup data; and responding to the selection of the user for one second backup data in the at least one second backup data, and sending the second backup data selected by the user or the configuration information in the second backup data to the first router by the terminal so as to configure the first router.
In some embodiments, before the terminal connects to the first router, the method further comprises: the terminal is connected with a second router, and the second router is located in the first place; the terminal configures the second router based on the operation of a user; and the terminal receives and stores the first backup data sent by the second router after configuration, wherein second characteristic information in the first backup data is acquired by the second router, and configuration information in the first backup data is configuration information of the second router.
In some embodiments, the sending, by the terminal to the first router, the first backup data or the configuration information in the first backup data if the second characteristic information in the first backup data in the terminal matches the first characteristic information includes: if second characteristic information in first backup data in the terminal is matched with the first characteristic information, the terminal displays the first backup data; and responding to the selection of the first backup data by the user, and sending the first backup data or the configuration information in the first backup data to the first router by the terminal.
In some embodiments, the configuration information comprises at least one of:
the method comprises the steps of a network access mode, a wireless network name, a wireless network password, a management password and a bound account.
The method shown in fig. 14 may be specifically implemented with reference to the method embodiments shown in fig. 4, fig. 10, fig. 11, fig. 12A, and fig. 12B, and details are not repeated here.
The router configuration method provided by the embodiment can backup the configuration information of the router, and generate backup data by combining the location characteristic information of the router; when the new router needs to be configured, the backup data matched with the place where the new router is located can be obtained from the terminal, so that the new router can obtain the configuration matched with the place where the new router is located.
The embodiment of the application provides a router configuration method, and an execution main body of the router configuration method is a router. As shown in fig. 15, the method includes the following steps.
1500, connecting the first router with a terminal;
step 1502, if the first router is an unconfigured router, the first router sends first feature information to the terminal; the first characteristic information is information for identifying a first place where the first router is located;
step 1504, the first router receives first backup data or configuration information in the first backup data from the terminal; the first backup data comprises second characteristic information and the configuration information, and the second characteristic information is matched with the first characteristic information;
and 1506, configuring the first router according to the configuration information.
In some embodiments, the configuration information is specifically post-factory configuration information.
In some embodiments, the first characteristic information comprises at least one of:
the feature information of at least one router, the IP address of the wired network corresponding to the first place, the feature information of the network equipment corresponding to the first place, and the self identification information of the first router; wherein the content of the first and second substances,
the wireless signal transmitted by each router of the at least one router is sufficient to be received by the first router.
In one example of these embodiments, when the first feature information includes feature information of the at least one router; the matching of the first characteristic information and the second characteristic information specifically comprises: the feature information of one router in the at least one router and the feature information of one router in the second feature information are the same.
In one example of these embodiments, the first feature information includes feature information of the at least one router; before the first router sends the first feature information to the terminal, the method further includes:
receiving wireless signals of a plurality of routers around the first router;
determining the at least one router based on a signal strength of a wireless signal of each of the plurality of routers.
In some embodiments, the configuration information comprises at least one of:
the method comprises the steps of a network access mode, a wireless network name, a wireless network password, a management password and a bound account.
The method shown in fig. 15 may be implemented specifically with reference to the method embodiments shown in fig. 4, fig. 10, fig. 11, fig. 12A, and fig. 12B, and is not described herein again.
The router configuration method provided by the embodiment can backup the configuration information of the router, and generate backup data by combining the location characteristic information of the router; when the new router needs to be configured, the backup data matched with the place where the new router is located can be obtained from the terminal, so that the new router can obtain the configuration matched with the place where the new router is located.
An embodiment of the application provides an apparatus 1600. The apparatus 1600 may be disposed in a terminal. As shown in fig. 16, apparatus 1600 includes:
a connection unit 1610 configured to connect to a first router;
a receiving unit 1620, configured to receive first feature information from the first router if the first router is an unconfigured router; the first characteristic information is information for identifying a first place where the first router is located;
a judging unit 1630, configured to judge whether the first feature information matches backup data stored in the terminal;
a sending unit 1640, configured to send, to the first router, the first backup data or configuration information in the first backup data if second feature information in the first backup data in the terminal matches the first feature information, where the configuration information is used to configure the first router; wherein the first backup data includes second characteristic information and configuration information.
The functions of the functional units of the apparatus 1600 may be implemented with reference to the method embodiments described above with reference to fig. 14.
The device provided by the embodiment can backup the configuration information of the router and generate backup data by combining the location characteristic information of the router; when the new router needs to be configured, the backup data matched with the place where the new router is located can be obtained from the terminal, so that the new router can obtain the configuration matched with the place where the new router is located.
An embodiment of the present application provides an apparatus 1700. The apparatus 1700 may be disposed in a router. As shown in fig. 17, the apparatus 1700 includes:
a connection unit 1710 for connecting a terminal;
a sending unit 1720, configured to send first feature information to the terminal if the first router is an unconfigured router; the first characteristic information is information for identifying a first place where the first router is located;
a receiving unit 1730, configured to receive first backup data or configuration information in the first backup data from the terminal; the first backup data comprises second characteristic information and the configuration information, and the second characteristic information is matched with the first characteristic information;
a configuring unit 1740, configured according to the configuration information.
The functions of the functional units of the apparatus 1700 may be implemented with reference to the method embodiments as shown in fig. 15 above.
The device provided by the embodiment can backup the configuration information of the router and generate backup data by combining the location characteristic information of the router; when the new router needs to be configured, the backup data matched with the place where the new router is located can be obtained from the terminal, so that the new router can obtain the configuration matched with the place where the new router is located.
The apparatus provided in the embodiments of the present application has been described above mainly from the perspective of method flow. It is to be understood that each electronic device, in order to implement the above-described functions, includes corresponding hardware structures and/or software modules for performing the respective functions. Those of skill in the art would readily appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiment of the present application, functional modules may be divided into electronic devices and the like according to the method embodiments shown in fig. 14 or the method embodiments shown in fig. 15, for example, the functional modules may be divided into corresponding functions, or two or more functions may be integrated into one processing module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. It should be noted that, in the embodiment of the present application, the division of the module is schematic, and is only one logic function division, and there may be another division manner in actual implementation.
The embodiment of the application provides a terminal. Referring to fig. 18, the terminal includes a processor 1810, a memory 1820, and a transceiver 1830. Wherein the memory is used for storing computer execution instructions; when the terminal is operating, the processor 1810 executes the computer executable instructions stored by the memory 1820 to cause the terminal to perform the method illustrated in fig. 14. The transceiver 1830 is used to connect to a first router; a transceiver 1830, configured to receive first feature information from the first router if the first router is an unconfigured router; the first characteristic information is information for identifying a first place where the first router is located; a processor 1810, configured to determine whether the first feature information matches backup data stored in the terminal; a transceiver 1830, configured to send, to the first router, the first backup data or configuration information in the first backup data if second feature information in the first backup data in the terminal matches the first feature information, where the configuration information is used to configure the first router; wherein the first backup data includes second characteristic information and configuration information.
In some embodiments, the terminal further comprises a communication bus 1840, wherein the processor 1810 may be coupled to the memory 1820 and the transceiver 1830 via the communication bus 1840, such that computer-executable instructions stored in the memory 1820 may be implemented to control the transceiver 1830 accordingly.
Specific implementation of each component/device of the terminal in the embodiment of the present application can be implemented by referring to each method embodiment shown in fig. 14, which is not described herein again.
Therefore, the configuration information of the router can be backed up, and backup data can be generated by combining the location characteristic information of the router; when the new router needs to be configured, the backup data matched with the place where the new router is located can be obtained from the terminal, so that the new router can obtain the configuration matched with the place where the new router is located.
The embodiment of the application provides a router. Referring to fig. 19, the router includes a processor 1910, a memory 1920, and a transceiver 1930. Wherein the memory is used for storing computer execution instructions; when the router is running, the processor 1910 executes the computer executable instructions stored by the memory 2520 to cause the router to perform the method shown in fig. 15. The transceiver 1930 is used for connecting a terminal; a transceiver 1930, configured to send first feature information to the terminal if the first router is an unconfigured router; the first characteristic information is information for identifying a first place where the first router is located; a transceiver 1930 for receiving first backup data or configuration information in the first backup data from the terminal; the first backup data comprises second characteristic information and the configuration information, and the second characteristic information is matched with the first characteristic information; a transceiver 1930 configured according to the configuration information.
In some embodiments, the router also includes a communication bus 1940, wherein the processor 1910 is coupled to the memory 1920 and the transceiver 1930 via the communication bus 1940, such that control of the transceiver 1930, in accordance with computer-executable instructions stored by the memory 1920, may be implemented.
The specific implementation of each component/device of the router in the embodiment of the present application may be implemented by referring to each method embodiment shown in fig. 15, which is not described herein again.
Therefore, the configuration information of the router can be backed up, and backup data can be generated by combining the location characteristic information of the router; when the new router needs to be configured, the backup data matched with the place where the new router is located can be obtained from the terminal, so that the new router can obtain the configuration matched with the place where the new router is located.
It is understood that the processor in the embodiments of the present application may be a Central Processing Unit (CPU), other general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, a transistor logic device, a hardware component, or any combination thereof. The general purpose processor may be a microprocessor, but may be any conventional processor.
The method steps in the embodiments of the present application may be implemented by hardware, or may be implemented by software instructions executed by a processor. The software instructions may consist of corresponding software modules that may be stored in Random Access Memory (RAM), flash memory, read-only memory (ROM), programmable read-only memory (PROM), Erasable Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), registers, a hard disk, a removable hard disk, a CD-ROM, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. Of course, the storage medium may also be integral to the processor. The processor and the storage medium may reside in an ASIC.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in or transmitted over a computer-readable storage medium. The computer instructions may be transmitted from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is to be understood that the various numerical references referred to in the embodiments of the present application are merely for descriptive convenience and are not intended to limit the scope of the embodiments of the present application.

Claims (16)

1. A method for configuring a router, the method comprising:
the terminal is connected with the first router;
if the first router is an unconfigured router, the terminal receives first characteristic information from the first router; the first characteristic information is information for identifying a first place where the first router is located;
the terminal judges whether the first characteristic information is matched with backup data stored in the terminal;
if second characteristic information in first backup data in the terminal is matched with the first characteristic information, the terminal sends the first backup data or configuration information in the first backup data to the first router, wherein the configuration information is used for configuring the first router; wherein the first backup data includes second characteristic information and configuration information.
2. The method of claim 1, wherein the first feature information comprises at least one of:
the feature information of at least one router except the first router, the IP address of the wired network corresponding to the first place and the feature information of the network equipment corresponding to the first place; wherein the content of the first and second substances,
the wireless signal transmitted by each router of the at least one router is sufficient to be received by the first router.
3. The method of claim 2, wherein when the first feature information comprises feature information of the at least one router; the matching between the second characteristic information and the first characteristic information specifically comprises: the feature information of one of the at least one router and the feature information of one of the second feature information are the same.
4. The method of claim 2, wherein the first backup data is a backup data; the first feature information includes at least two kinds of information among feature information of at least one router, an IP address of a wired network corresponding to the first location, feature information of network equipment corresponding to the first location, and self-identification information of the first router, and various kinds of information in the at least two kinds of information have different priorities;
if the second characteristic information matches the first characteristic information, before the terminal sends the first backup data or the configuration information in the first backup data to the first router, the method further includes: and matching with backup data according to the priority of the various information in sequence until the first backup data is determined.
5. The method of claim 1, further comprising:
if the terminal does not have backup data matched with the first characteristic information and at least one second backup data is stored in the terminal, the terminal displays the at least one second backup data;
and responding to the selection of the user for one second backup data in the at least one second backup data, and sending the second backup data selected by the user or the configuration information in the second backup data to the first router by the terminal so as to configure the first router.
6. The method of claim 1, wherein before the terminal connects to the first router, the method further comprises:
the terminal is connected with a second router, and the second router is located in the first place;
the terminal configures the second router based on the operation of a user;
and the terminal receives and stores the first backup data sent by the second router after configuration, wherein second characteristic information in the first backup data is acquired by the second router, and configuration information in the first backup data is configuration information of the second router.
7. The method according to claim 1, wherein the sending, by the terminal, the first backup data or the configuration information in the first backup data to the first router if the second feature information in the first backup data in the terminal matches the first feature information comprises:
if second characteristic information in first backup data in the terminal is matched with the first characteristic information, the terminal displays the first backup data;
and responding to the selection of the first backup data by the user, and sending the first backup data or the configuration information in the first backup data to the first router by the terminal.
8. The method according to any of claims 1-7, wherein the configuration information comprises at least one of:
the method comprises the steps of a network access mode, a wireless network name, a wireless network password, a management password and a bound account.
9. A router configuration method is applied to a first router, and is characterized in that the method comprises the following steps:
the first router is connected with a terminal;
if the first router is an unconfigured router, the first router sends first characteristic information to the terminal; the first characteristic information is information for identifying a first place where the first router is located;
the first router receives first backup data or configuration information in the first backup data from the terminal; the first backup data comprises second characteristic information and the configuration information, and the second characteristic information is matched with the first characteristic information;
and the first router is configured according to the configuration information.
10. The method of claim 9, wherein the first feature information comprises at least one of:
the feature information of at least one router except the first router, the IP address of the wired network corresponding to the first place and the feature information of the network equipment corresponding to the first place; wherein the content of the first and second substances,
the wireless signal transmitted by each router of the at least one router is sufficient to be received by the first router.
11. The method of claim 10, wherein when the first feature information comprises feature information of the at least one router; the matching of the first characteristic information and the second characteristic information specifically comprises: the feature information of one of the at least one router and the feature information of one of the second feature information are the same.
12. The method of claim 10, wherein the first feature information comprises feature information of the at least one router; before the first router sends the first feature information to the terminal, the method further includes:
receiving wireless signals of a plurality of routers around the first router;
determining the at least one router based on a signal strength of a wireless signal of each of the plurality of routers.
13. The method according to any of claims 9-12, wherein the configuration information comprises at least one of:
the method comprises the steps of a network access mode, a wireless network name, a wireless network password, a management password and a bound account.
14. A terminal comprising a processor, a memory, a transceiver; wherein the memory is used for storing computer execution instructions; the processor executes the computer-executable instructions stored by the memory to cause the terminal to perform the method of any of claims 1-8 when the terminal is operating.
15. A router, comprising a processor, a memory, a transceiver; wherein the memory is used for storing computer execution instructions; the processor executes the computer-executable instructions stored by the memory when the router is running to cause the router to perform the method of any of claims 9-13.
16. A computer storage medium comprising computer instructions that, when executed on an electronic device, cause the electronic device to perform the method of any of claims 1-8 or the method of any of claims 9-13.
CN201910596087.6A 2019-07-03 2019-07-03 Router configuration method, terminal and router Active CN110417582B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910596087.6A CN110417582B (en) 2019-07-03 2019-07-03 Router configuration method, terminal and router
PCT/CN2020/100021 WO2021000923A1 (en) 2019-07-03 2020-07-03 Router configuration method, terminal, and router

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910596087.6A CN110417582B (en) 2019-07-03 2019-07-03 Router configuration method, terminal and router

Publications (2)

Publication Number Publication Date
CN110417582A CN110417582A (en) 2019-11-05
CN110417582B true CN110417582B (en) 2021-01-29

Family

ID=68360122

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910596087.6A Active CN110417582B (en) 2019-07-03 2019-07-03 Router configuration method, terminal and router

Country Status (2)

Country Link
CN (1) CN110417582B (en)
WO (1) WO2021000923A1 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN112422327B (en) * 2020-11-02 2024-02-13 深圳Tcl新技术有限公司 Router network distribution method based on WPS, router and storage medium
CN113639424A (en) * 2021-07-30 2021-11-12 青岛海尔空调器有限总公司 Method and device for controlling air conditioner and air conditioner
CN113676914A (en) * 2021-09-17 2021-11-19 善悦(武汉)高新技术有限公司 Networking method based on 5G core network
CN114154099A (en) * 2021-12-07 2022-03-08 北京达佳互联信息技术有限公司 Routing information processing method, device, equipment and storage medium
CN116546132B (en) * 2023-07-06 2023-11-03 荣耀终端有限公司 Network identification method, device, mobile terminal and computer readable storage medium

Family Cites Families (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030208622A1 (en) * 2002-05-01 2003-11-06 Mosier James R. Method and system for multiple vendor, multiple domain router configuration backup
CN101222527B (en) * 2008-01-25 2011-12-07 中兴通讯股份有限公司 Method and system for protecting terminal key configuration
US20090323555A1 (en) * 2008-06-27 2009-12-31 Affinegy, Inc. System and Method for Controlling and Configuring a Router
EP2203005A1 (en) * 2008-12-23 2010-06-30 Panasonic Corporation Optimized home link detection
US8705408B2 (en) * 2011-09-09 2014-04-22 Cisco Technology Inc. Identifying a wireless network device across factory resets
TWI542171B (en) * 2013-12-18 2016-07-11 Alpha Networks Inc Automatically set the way the gateway device
CN104301141B (en) * 2014-10-10 2018-02-09 华为技术有限公司 A kind of method, apparatus and system for preserving configuration information
US10404521B2 (en) * 2015-01-14 2019-09-03 Datto, Inc. Remotely configurable routers with failover features, and methods and apparatus for reliable web-based administration of same
CN105227346B (en) * 2015-08-24 2018-09-28 上海斐讯数据通信技术有限公司 It is a kind of based on the method for configuring routers scanned the two-dimensional code
CN107404720B (en) * 2016-05-18 2021-11-23 荣耀终端有限公司 Method for resetting wireless setting information and related equipment
CN107547217B (en) * 2016-06-24 2022-05-10 中兴通讯股份有限公司 Router service configuration method and router
CN106100911A (en) * 2016-08-23 2016-11-09 上海斐讯数据通信技术有限公司 Cloud collocation method, router, Cloud Server and the system of a kind of router
CN106686593A (en) * 2016-12-28 2017-05-17 深圳Tcl智能家庭科技有限公司 WIFI-module-based network-access configuration method and apparatus for smart devices
CN106850299A (en) * 2017-02-09 2017-06-13 北京极科极客科技有限公司 A kind of method and system of fast recovery equipment configuration
CN106972958A (en) * 2017-03-13 2017-07-21 海信集团有限公司 Gateway device collocation method, apparatus and system
CN107566158A (en) * 2017-08-04 2018-01-09 上海斐讯数据通信技术有限公司 A kind of route configuration information backup method and system, restoration methods and system
CN107453920A (en) * 2017-09-01 2017-12-08 上海斐讯数据通信技术有限公司 The method and system of data backup between a kind of router
CN108134695A (en) * 2017-12-19 2018-06-08 上海斐讯数据通信技术有限公司 A kind of method and system based on APP rapid configuration routers
CN108173677A (en) * 2017-12-19 2018-06-15 上海斐讯数据通信技术有限公司 The configuration method and system of a kind of router
CN109088781B (en) * 2018-10-26 2021-05-25 广东美的制冷设备有限公司 Configuration method and device of wireless radio frequency parameters and intelligent household appliance
CN110417582B (en) * 2019-07-03 2021-01-29 华为技术有限公司 Router configuration method, terminal and router

Also Published As

Publication number Publication date
CN110417582A (en) 2019-11-05
WO2021000923A1 (en) 2021-01-07

Similar Documents

Publication Publication Date Title
CN110417582B (en) Router configuration method, terminal and router
CN110138937B (en) Call method, device and system
CN112351322B (en) Terminal device, method and system for realizing touch screen projection through remote controller
CN110336720B (en) Equipment control method and equipment
WO2020041952A1 (en) Method and electronic apparatus for controlling express delivery cabinet on the basis of express delivery message
CN110730114B (en) Method and equipment for configuring network configuration information
CN114125791B (en) Audio pushing method and audio pushing system
CN111373713B (en) Message transmission method and device
CN112449328A (en) Bluetooth searching method, system and related device
CN110198362B (en) Method and system for adding intelligent household equipment into contact
CN111132137A (en) Wi-Fi connection method and device
CN112445762A (en) File sharing method and equipment for mobile terminal
CN112469011A (en) Bluetooth pairing method and related device
CN112312366A (en) Method, electronic equipment and system for realizing functions through NFC (near field communication) tag
CN110557740A (en) Electronic equipment control method and electronic equipment
CN111835907A (en) Method, equipment and system for switching service across electronic equipment
CN113973398A (en) Wireless network connection method, electronic equipment and chip system
WO2022100219A1 (en) Data transfer method and related device
CN113365274B (en) Network access method and electronic equipment
WO2022037405A1 (en) Information verification method, electronic device and computer-readable storage medium
US11977946B2 (en) Method for automatically activating NFC application and terminal
CN115248693A (en) Application management method and electronic equipment
CN113676902A (en) System and method for providing wireless internet access and electronic equipment
WO2024001735A1 (en) Network connection method, electronic device, and storage medium
CN115883118A (en) Device login method, electronic device and storage medium

Legal Events

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