WO2021000923A1 - 一种路由器配置方法、终端及路由器 - Google Patents

一种路由器配置方法、终端及路由器 Download PDF

Info

Publication number
WO2021000923A1
WO2021000923A1 PCT/CN2020/100021 CN2020100021W WO2021000923A1 WO 2021000923 A1 WO2021000923 A1 WO 2021000923A1 CN 2020100021 W CN2020100021 W CN 2020100021W WO 2021000923 A1 WO2021000923 A1 WO 2021000923A1
Authority
WO
WIPO (PCT)
Prior art keywords
router
terminal
backup data
information
characteristic information
Prior art date
Application number
PCT/CN2020/100021
Other languages
English (en)
French (fr)
Inventor
刘微
余宗宝
庞敏
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2021000923A1 publication Critical patent/WO2021000923A1/zh

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

Definitions

  • This application relates to the field of communication technology, and in particular to a router configuration method, terminal and router.
  • the wireless router can convert broadband network signals into wireless signals to provide wireless coverage.
  • a terminal such as a mobile phone, a tablet computer, a notebook computer, etc.
  • the application of wireless routers is relatively popular, and many home users or corporate users use wireless routers to provide wireless Internet services to their members.
  • the Internet access method such as dial-up Internet access
  • wireless network name such as Wi-Fi name
  • wireless network password such as Wi-Fi password
  • visit http://192.168.1.1/ through a browser enter the administrator user name (such as admin), initial password, and after successful login, configure the router.
  • This configuration method is relatively cumbersome and professional, and requires professional configuration, or requires non-professionals to read the manual carefully before effective configuration is possible. In the absence of professionals or manuals, it is difficult for general users to configure routers effectively.
  • the embodiments of the present application provide a router configuration method, terminal, and router, which can efficiently and conveniently implement router configuration.
  • an embodiment of the present application provides a router configuration method, the method includes: a terminal is connected to a first router; if the first router is an unconfigured router, the terminal starts from the first router Receive first characteristic information; the first characteristic information is information for identifying the first place where the first router is located; the terminal determines whether the first characteristic information matches the backup data stored in the terminal ; If the second feature information in the first backup data in the terminal matches the first feature information, the terminal sends the first backup data or the first backup data to the first router The configuration information in the configuration information is used to configure the first router; wherein, the first backup data includes second feature information and configuration information.
  • the unconfigured router is a new router that has not been configured after leaving the factory.
  • the unconfigured router is a router that has been restored to factory settings.
  • the first characteristic information includes at least one of the following:
  • Feature information of at least one router the IP address of the wired network corresponding to the first location, the feature information of the network device corresponding to the first location, and the identification information of the first router;
  • the wireless signal transmitted by each router in the at least one router is sufficient to be received by the first router.
  • 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 equipment associated with the location where the first router is located, and the identification of the first router itself. Effectively and accurately identify the location of the first router.
  • the matching of the second characteristic information and the first characteristic information is specifically: in the at least one route
  • the characteristic information of a router in is the same as the characteristic information of a router in the second characteristic information.
  • the backup data can also be matched for the first router.
  • the first backup data is a backup data
  • the first characteristic information includes characteristic information of at least one router, the IP address of the wired network corresponding to the first place, and the first
  • the feature information of the network device corresponding to the location and the identification information of the first router are at least two types of information.
  • Various types of information in the at least two types of information have different priorities; if the second feature information is When the first characteristic information matches, 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: according to the various information The priority of is matched with the backup data according to the various information in sequence until the first backup data is determined.
  • the first feature information includes information with different priorities. When matching, it can be matched based on the high-priority information first. If the only one backup data cannot be matched, then further based on the sub-priority information. Matching, thus taking into account the timeliness and effectiveness of matching to the appropriate backup data.
  • the method further includes: if there is no backup data matching the first feature information in the terminal, and at least one second backup data is stored in the terminal, then The terminal displays the at least one second backup data; in response to the user's selection of one second backup data in the at least one second backup data, the terminal selects the second backup data or the second backup data selected by the user
  • the configuration information in is sent to the first router to configure the first router.
  • the user can manually select the backup data, so as to configure the router according to the backup data selected by the user.
  • the method before the terminal is connected to the first router, the method further includes: the terminal is connected to a second router, and the second router is located in the first place; the terminal Configure the second router based on user operations; the terminal receives and stores the first backup data sent by the configured second router, wherein the second characteristic information in the first backup data is the Obtained by the second router, the configuration information in the first backup data is the configuration information of the second router.
  • the terminal can obtain the backup data of the router located in a certain place, so that when there is a new router in the place, the terminal can send the backup data of the routers configured in the place to the new router, and the new router is used Meet the configuration of the site.
  • the terminal sends the first feature information to the first router.
  • a backup data or configuration information in the first backup data including: if the second feature information in the first backup data in the terminal matches the first feature information, the terminal displays the first feature information A backup data; in response to a user's selection of the first backup data, the terminal sends the first backup data or the configuration information in the first backup data to the first router.
  • the user can control the backup data sent to the new router, thereby realizing the user's control over the configuration of the new router, and improving the user's operational experience of configuring the router.
  • the configuration information includes at least one of the following:
  • Internet access method wireless network name, wireless network password, management password, binding account.
  • the new router can be configured to implement one or more configuration information.
  • an embodiment of the present application provides a router configuration method applied to a first router, the method includes: the first router is connected to 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 used to identify the first place where the first router is located; the first router receives the first backup from the terminal Data or configuration information in the first backup data; the first backup data includes second feature information and the configuration information, and the second feature information matches the first feature information; the first The router performs configuration according to the configuration information.
  • the first characteristic information includes at least one of the following:
  • Feature information of at least one router the IP address of the wired network corresponding to the first location, the feature information of the network device corresponding to the first location, and the identification information of the first router; wherein, the at least one router
  • the wireless signals transmitted by the routers in are sufficient to be received by the first router.
  • the matching of the first characteristic information and the second characteristic information is specifically: in the at least one route
  • the characteristic information of a router in is the same as the characteristic information of a router in the second characteristic information.
  • the first characteristic information includes characteristic information of the at least one router; before the first router sends the first characteristic information to the terminal, the method further includes:
  • the at least one router is determined based on the signal strength of the wireless signal of each router in the plurality of routers.
  • the configuration information includes at least one of the following:
  • Internet access method wireless network name, wireless network password, management password, binding account.
  • an embodiment of the present application provides a router configuration method applied to a second router, and the method includes: the second router is connected to 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 obtains second feature information; the second router sends first backup data to the terminal, and the first backup data includes the second feature Information and configuration information, where the configuration information is configuration information of the second router.
  • an embodiment of the present application provides a terminal, including a processor, a memory, and a transceiver; wherein the memory is used to store computer execution instructions; when the terminal is running, the processor executes the memory The stored computer executes instructions to make the terminal execute the method described in the first aspect.
  • an embodiment of the present application provides a router, including a processor, a memory, and a transceiver; wherein the memory is used to store computer execution instructions; when the router is running, the processor executes the memory The stored computer executes instructions to make the router execute the method described in the second aspect or the method described in the third aspect.
  • an embodiment of the present application provides a computer storage medium.
  • the computer storage medium includes computer instructions that, when the computer instructions run on a terminal, cause the terminal to execute the method described in the first aspect.
  • an embodiment of the present application provides a computer storage medium, the computer storage medium includes computer instructions, and when the computer instructions run on a router, the router is caused to execute the method or the method described in the second aspect.
  • embodiments of the present application provide a computer program product, and the program code included in the computer program product implements the method described in the first aspect when the program code included in the computer program product is executed by a processor in a terminal.
  • the embodiments of the present application provide a computer program product, and when the program code contained in the computer program product is executed by a processor in a terminal, the method described in the second aspect or the method described in the third aspect is implemented .
  • the configuration information of the router can be backed up and combined with the location feature information of the router to generate backup data; when the new router needs to be configured, it can be obtained from the terminal The backup data matching the location, so that the new router can obtain the configuration matching the location.
  • FIG. 1 is a schematic diagram of an application scenario of an embodiment of the application
  • FIG. 2 is a schematic structural diagram of a terminal provided by an embodiment of the application.
  • FIG. 3 is a schematic structural diagram of a router provided by an embodiment of the application.
  • FIG. 4 is a flowchart of a router configuration method provided by an embodiment of the application.
  • FIG. 5 is a display diagram of a terminal page provided by an embodiment of the application.
  • FIG. 6 is a display diagram of a terminal page provided by an embodiment of the application.
  • FIG. 7 is a schematic diagram of an application scenario of a router configuration method provided by an embodiment of the application.
  • FIG. 8 is a display diagram of a terminal page provided by an embodiment of the application.
  • FIG. 9 is a display diagram of a terminal page provided by an embodiment of the application.
  • FIG. 10 is a flowchart of a router configuration method provided by an embodiment of this application.
  • FIG. 11 is a flowchart of a method for determining backup data according to an embodiment of the application.
  • FIG. 12A is a flowchart of a router configuration method provided by an embodiment of this application.
  • FIG. 12B is a flowchart of a router configuration method provided by an embodiment of this application.
  • FIG. 13A is a display diagram of a terminal page provided by an embodiment of this application.
  • FIG. 13B is a display diagram of a terminal page provided by an embodiment of the application.
  • FIG. 13C is a display diagram of a terminal page provided by an embodiment of the application.
  • FIG. 13D is a display diagram of a terminal page provided by an embodiment of the application.
  • FIG. 13E is a display diagram of a terminal page provided by an embodiment of the application.
  • FIG. 13F is a display diagram of a terminal page provided by an embodiment of this application.
  • FIG. 13G is a display diagram of a terminal page provided by an embodiment of the application.
  • FIG. 14 is a flowchart of a router configuration method provided by an embodiment of this application.
  • 15 is a flowchart of a router configuration method provided by an embodiment of the application.
  • FIG. 16 is a schematic block diagram of an apparatus provided by an embodiment of this application.
  • FIG. 17 is a schematic block diagram of an apparatus provided by an embodiment of this application.
  • FIG. 18 is a schematic block diagram of a terminal provided by an embodiment of this application.
  • FIG. 19 is a schematic block diagram of a router provided by an embodiment of this application.
  • FIG. 1 shows a wireless network system, including a terminal 100 and a router 200.
  • the router can transmit wireless signals, such as wireless fidelity (Wi-Fi) signals, to provide wireless coverage.
  • the terminal 100 is in the wireless coverage area provided by the router 200, and is connected to the router 200 through wireless signals.
  • Wi-Fi wireless fidelity
  • the terminal 100 may be any terminal with computing capability and wireless connection capability, such as a mobile phone, a tablet computer, or a notebook computer.
  • the router 200 may be a wired router or a wireless router.
  • Wired routers are devices that convert wired networks such as broadband networks into wireless networks to provide wireless coverage.
  • a wireless router is a router that can be inserted into a subscriber identification module (SIM) card to access the core network through wireless signals and serve as a hot spot to provide wireless coverage for terminals such as terminal 100.
  • SIM subscriber identification module
  • FIG. 2 shows a schematic diagram of the structure 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, Mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone interface 170D, sensor module 180, buttons 190, motor 191, indicator 192, camera 193, display screen 194, and user An identification module (subscriber identification module, SIM) card interface 195, etc.
  • SIM subscriber identification module
  • the sensor module 180 may include pressure sensor 180A, gyroscope sensor 180B, air pressure sensor 180C, magnetic sensor 180D, acceleration sensor 180E, distance sensor 180F, proximity light sensor 180G, fingerprint sensor 180H, temperature sensor 180J, touch sensor 180K, ambient light Sensor 180L, bone conduction sensor 180M, etc.
  • the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the terminal 100.
  • the terminal 100 may include more or fewer components than shown, or combine certain components, or split certain components, or arrange different components.
  • the illustrated components can be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units.
  • the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU), etc.
  • AP application processor
  • modem processor modem processor
  • GPU graphics processing unit
  • image signal processor image signal processor
  • ISP image signal processor
  • controller video codec
  • digital signal processor digital signal processor
  • DSP digital signal processor
  • NPU neural-network processing unit
  • the different processing units may be independent devices or integrated in one or more processors.
  • the controller can generate operation control signals according to the instruction operation code and timing signals to complete the control of fetching and executing instructions.
  • a memory may also be provided in the processor 110 to store instructions and data.
  • the memory in the processor 110 is a cache memory.
  • the memory can store instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. Repeated accesses are avoided, the waiting time of the processor 110 is reduced, and the efficiency of the system is improved.
  • the processor 110 may include one or more interfaces.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, and a universal asynchronous transmitter (universal asynchronous transmitter) interface.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous transmitter
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB Universal Serial Bus
  • the charging management module 140 is used to receive charging input from the charger.
  • the charger can be a wireless charger or a wired charger.
  • the charging management module 140 may receive the charging input of the wired charger through the USB interface 130.
  • the charging management module 140 may receive the wireless charging input through the wireless charging coil of the electronic device. While the charging management module 140 charges the battery 142, it can also supply power to the electronic device through the power management module 141.
  • 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 supplies power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160.
  • the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance).
  • the power management module 141 may also be provided in the processor 110.
  • the power management module 141 and the charging management module 140 may also be provided in the same device.
  • the wireless communication function of the terminal 100 can be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor.
  • the antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in the terminal 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
  • the antenna can be used in combination with a tuning switch.
  • the mobile communication module 150 can provide a wireless communication solution including 2G/3G/4G/5G and the like applied to the terminal 100.
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc.
  • the mobile communication module 150 can receive electromagnetic waves by the antenna 1, and perform processing such as filtering, amplifying and transmitting the received electromagnetic waves to the modem processor for demodulation.
  • the mobile communication module 150 can also amplify the signal modulated by the modem processor, and convert it into electromagnetic waves for radiation via the antenna 1.
  • at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110.
  • at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be provided in the same device.
  • the modem processor may include a modulator and a demodulator.
  • the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. Then the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the low-frequency baseband signal is processed by the baseband processor and then passed 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.
  • the modem processor may be an independent device.
  • the modem processor may be independent of the processor 110 and be provided in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 can provide applications on the terminal 100, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), and global navigation satellite systems. (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions.
  • WLAN wireless local area networks
  • BT Bluetooth
  • GNSS global navigation satellite system
  • frequency modulation frequency modulation, FM
  • NFC near field communication technology
  • infrared technology infrared, IR
  • 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, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110.
  • the wireless communication module 160 can also receive the signal to be sent from the processor 110, perform frequency modulation, amplify it, and convert it into electromagnetic wave radiation via the antenna 2.
  • the wireless communication module 160 may interact with other electronic devices (such as routers), such as configuring the router, and requesting or sending backup data to the router.
  • the antenna 1 of the terminal 100 is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the terminal 100 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technologies may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc.
  • the GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite-based augmentation systems (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite-based augmentation systems
  • the terminal 100 implements a display function through a GPU, a display screen 194, and an application processor.
  • the GPU is a microprocessor for image processing, connected to the display 194 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations for graphics rendering.
  • the processor 110 may include one or more GPUs, which execute program instructions to generate or change display information.
  • the display screen 194 is used to display images, videos, etc.
  • the display screen 194 includes a display panel.
  • the display panel can adopt liquid crystal display (LCD), organic light-emitting diode (OLED), active-matrix organic light-emitting diode or active-matrix organic light-emitting diode (active-matrix organic light-emitting diode).
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • active-matrix organic light-emitting diode active-matrix organic light-emitting diode
  • AMOLED flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (QLED), etc.
  • the terminal 100 may include one or N display screens 194, and N is a positive integer greater than one.
  • Electronic equipment can realize shooting functions through ISP, camera 193, video codec, GPU, display 194, and application processor.
  • the ISP is used to process the data fed back from the camera 193. For example, when taking a picture, the shutter is opened, the light is transmitted to the photosensitive element of the camera through the lens, the light signal is converted into an electrical signal, and the photosensitive element of the camera transfers the electrical signal to the ISP for processing and is converted into an image visible to the naked eye.
  • ISP can also optimize the image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
  • the ISP may be provided in the camera 193.
  • the camera 193 is used to capture still images or videos.
  • the object generates an optical image through the lens and projects it to the photosensitive element.
  • the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • CMOS complementary metal-oxide-semiconductor
  • the photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal.
  • ISP outputs digital image signals to DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other formats.
  • the electronic device may include 1 or N cameras 193, and N is a positive integer greater than 1.
  • Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the electronic device selects the frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
  • Video codecs are used to compress or decompress digital video.
  • the electronic device can support one or more video codecs.
  • the electronic device can play or record videos in a variety of encoding formats, such as: moving picture experts group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
  • MPEG moving picture experts group
  • NPU is a neural-network (NN) computing processor.
  • NN neural-network
  • NPU can realize the intelligent cognition of electronic devices and other applications, such as: image recognition, face recognition, voice recognition, text understanding, etc.
  • the external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device.
  • the external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example, save music, video and other files in an external memory card.
  • the internal memory 121 may be used to store computer executable program code, where the executable program code includes instructions.
  • the processor 110 executes various functional applications and data processing of the electronic device by running instructions stored in the internal memory 121.
  • the internal memory 121 may include a storage program area and a storage data area.
  • the storage program area can store an operating system, at least one application program (such as a sound playback function, an image playback function, etc.) required by at least one function.
  • the data storage area can store data (such as audio data, phone book, etc.) created during the use of the electronic device.
  • the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash storage (UFS), etc.
  • UFS universal flash storage
  • the electronic device can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. For example, music playback, recording, etc.
  • the audio module 170 is used to convert digital audio information into an analog audio signal for output, and is also used to convert an analog audio input into a digital audio signal.
  • the audio module 170 can also be used to encode and decode audio signals.
  • the audio module 170 may be provided in the processor 110, or part of the functional modules of the audio module 170 may be provided in the processor 110.
  • the speaker 170A also called a “speaker” is used to convert audio electrical signals into sound signals.
  • the electronic device can listen to music through the speaker 170A, or listen to a hands-free call.
  • the receiver 170B also called “earpiece” is used to convert audio electrical signals into sound signals.
  • the electronic device answers a call or voice message, it can receive the voice by bringing the receiver 170B close to the human ear.
  • the microphone 170C also called “microphone”, “microphone”, is used to convert sound signals into electrical signals.
  • the user can make a sound by approaching the microphone 170C through the mouth, and input the sound signal into the microphone 170C.
  • the electronic device may be provided with at least one microphone 170C.
  • the electronic device may be provided with two microphones 170C, which can realize noise reduction function in addition to collecting sound signals.
  • the electronic device may also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and realize directional recording functions.
  • the earphone interface 170D is used to connect wired earphones.
  • the earphone interface 170D may be a USB interface 130, or a 3.5mm open mobile terminal platform (OMTP) standard interface, or a cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
  • OMTP open mobile terminal platform
  • CTIA cellular telecommunications industry association
  • the pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal.
  • the pressure sensor 180A may be provided on the display screen 194.
  • the capacitive pressure sensor may include at least two parallel plates with conductive material. When a force is applied to the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device determines the strength of the pressure based on the change in capacitance. When a touch operation acts on 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 touched position based on the detection signal of the pressure sensor 180A.
  • touch operations that act on the same touch location but have different touch operation strengths may correspond to different operation instructions. For example: when a touch operation whose intensity of the touch operation is less than the first pressure threshold is applied to the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.
  • the gyro sensor 180B can be used to determine the movement posture of the electronic device.
  • the angular velocity of the electronic device around three axes ie, x, y, and z axes
  • the gyro sensor 180B can be used for image stabilization.
  • the gyroscope sensor 180B detects the angle of the shake of the electronic device, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to counteract the shake of the electronic device through a reverse movement to achieve anti-shake.
  • the gyro sensor 180B can also be used for navigation and somatosensory game scenes.
  • the air pressure sensor 180C is used to measure air pressure.
  • the electronic device calculates the altitude based on the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
  • the magnetic sensor 180D includes a Hall sensor.
  • the electronic device can use the magnetic sensor 180D to detect the opening and closing of the flip holster.
  • the electronic device when the electronic device is a flip machine, the electronic device can detect the opening and closing of the flip according to the magnetic sensor 180D.
  • features such as automatic unlocking of the flip cover are set.
  • the acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device in various directions (generally three-axis).
  • the magnitude and direction of gravity can be detected when the electronic device is stationary. It can also be used to identify the posture of electronic devices, and used in applications such as horizontal and vertical screen switching, pedometers, etc.
  • Distance sensor 180F used to measure distance.
  • Electronic equipment can measure distance through infrared or laser.
  • the electronic device may use the distance sensor 180F to measure the distance to achieve fast focusing.
  • 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 through the light-emitting diode.
  • Electronic devices use photodiodes 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 can determine that there is no object near the electronic device.
  • the electronic device can use the proximity light sensor 180G to detect that the user holds the electronic device close to the ear to talk, so as to automatically turn off the screen to save power.
  • the proximity light sensor 180G can also be used in leather case mode, and the pocket mode will automatically unlock and lock the screen.
  • the ambient light sensor 180L is used to sense the brightness of the ambient light.
  • the electronic device can adaptively adjust the brightness of the display screen 194 according to the perceived brightness of the ambient light.
  • the ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures.
  • the ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device is in the pocket to prevent accidental touch.
  • the fingerprint sensor 180H is used to collect fingerprints. Electronic devices can use the collected fingerprint characteristics to unlock fingerprints, access application locks, take photos with fingerprints, and answer calls with fingerprints.
  • the temperature sensor 180J is used to detect temperature.
  • the electronic device uses the temperature detected by the temperature sensor 180J to execute the temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold value, the electronic device executes to reduce the performance of the processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection.
  • the electronic device when the temperature is lower than another threshold, the electronic device heats the battery 142 to avoid abnormal shutdown of the electronic device due to low temperature.
  • the electronic device boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
  • Touch sensor 180K also called “touch panel”.
  • the touch sensor 180K may be disposed on the display screen 194, and the touch screen is composed of the touch sensor 180K and the display screen 194, which is also called a “touch screen”.
  • the touch sensor 180K is used to detect touch operations acting on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • the visual output related to the touch operation can be provided through the display screen 194.
  • the touch sensor 180K may also be disposed on the surface of the electronic device, which is different from the position of the display screen 194.
  • the bone conduction sensor 180M can acquire vibration signals.
  • the bone conduction sensor 180M can obtain the vibration signal of the vibrating bone mass of the human voice.
  • the bone conduction sensor 180M can also contact the human pulse and receive the blood pressure pulse signal.
  • the bone conduction sensor 180M may also be provided in the earphone, combined with the bone conduction earphone.
  • the audio module 170 can parse the voice signal based on the vibration signal of the vibrating bone block of the voice obtained by the bone conduction sensor 180M, and realize the voice function.
  • the application processor may analyze the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor 180M, and realize the heart rate detection function.
  • the button 190 includes a power button, a volume button, and so on.
  • the button 190 may be a mechanical button. It can also be a touch button.
  • the electronic device can receive key input and generate key signal input related to user settings and function control of the electronic device.
  • the motor 191 can generate vibration prompts.
  • the motor 191 can be used for incoming call vibration notification, and can also be used for touch vibration feedback.
  • touch operations applied to different applications can correspond to different vibration feedback effects.
  • Acting on touch operations in different areas of the display screen 194, the motor 191 can also correspond to different vibration feedback effects.
  • Different application scenarios for example: time reminding, receiving information, alarm clock, games, etc.
  • the touch vibration feedback effect can also support customization.
  • the indicator 192 may be an indicator light, which may be used to indicate the charging status, power change, or to indicate messages, missed calls, notifications, and so on.
  • the SIM card interface 195 is used to connect to the SIM card.
  • the SIM card can be inserted into the SIM card interface 195 or pulled out from the SIM card interface 195 to achieve contact and separation with the electronic device.
  • the electronic device can support 1 or N SIM card interfaces, and N is a positive integer greater than 1.
  • the SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc.
  • the same SIM card interface 195 can insert multiple cards at the same time. The types of the multiple cards can be the same or different.
  • the SIM card interface 195 can also be compatible with different types of SIM cards.
  • the SIM card interface 195 may also be compatible with external memory cards.
  • the electronic device interacts with the network through the SIM card to realize functions such as call and data communication.
  • the electronic device adopts eSIM, that is, 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.
  • the router 200 may include a processor 210, a memory 220, a wireless communication circuit 230, an antenna 232, and a network port 240.
  • the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the router 200.
  • the router 200 may include more or less components than shown, or combine certain components, or split certain components, or arrange different components.
  • the illustrated components can be implemented in hardware, software, or a combination of software and hardware.
  • the memory 220 is used to store instructions and data.
  • the processor 210 can call instructions or data stored in the memory 220.
  • the network port 240 may include a wired network interface, which can be configured as a network coupled to the Internet through a wired network such as broadband, and can provide multiple terminals (such as the terminal 100) with access to the Internet.
  • a wired network interface such as broadband
  • the network port 240 may include a mobile communication module, and the mobile communication module may be configured to connect to the core network through wireless communication technology.
  • the wireless communication technology may include GSM, GPRS, CDMA, WCDMA, TD-SCDMA, LTE, fifth generation ((5th generation, 5G), new radio (NR)).
  • the wireless communication circuit 230 may be configured to communicate via wireless local area networks (WLAN) standards such as Wi-Fi networks.
  • the wireless communication circuit 230 may be one or more devices integrating 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 signals, and send the processed signals to the processor 210.
  • the wireless communication module can also receive the signal to be sent from the processor 210, perform frequency modulation, amplify it, and convert it to electromagnetic wave radiation via the antenna 232.
  • the embodiment of the present application provides a router configuration method, which may be executed by the terminal 100. As shown in Figure 4, the method includes the following steps.
  • Step 400 The terminal connects to the router.
  • the terminal connection router may refer to the wireless network provided by the terminal access router. Specifically, the router is turned on, and the router transmits wireless signals to provide wireless coverage.
  • the terminal can search for the wireless signal emitted by the router. After searching for the wireless signal, the terminal can actively or based on the user's operation connect to the wireless signal, thereby connecting to the router.
  • WLAN wireless local area networks
  • the wireless network provided by the router refers to the wireless network formed by transmitting signals after the router is turned on, and does not require the router to connect to the Internet, or access to upstream network equipment or Upstream network interface.
  • Step 402 Determine whether the router is a new router, if it is a new router, execute step 406, and if it is not a new router, execute step 404. Among them, either the new router is the old router.
  • the new router is a new router that has not been configured after leaving the factory. It can also refer to the router after restoring the old router to the factory settings.
  • the new router has not been configured after the factory, and the wireless network it provides cannot access the Internet.
  • a router that has been configured after leaving the factory can be referred to as an old router.
  • the old router is a router that has been configured after leaving the factory. If the configuration meets the external network access requirements of the site where it is located, the router has the ability to access the external network of the site.
  • the post-factory configuration may also be referred to as user configuration, which specifically refers to information that a user or consumer configures a router for using the router.
  • the terminal can respond to the user's operating instructions and display the router management login page.
  • the terminal responds to the user's operation instruction, starts the router management application, and displays the router management login page.
  • the router management application can be an application integrated in the terminal operating system, or an application that can be downloaded from the application platform and can be installed or uninstalled freely by the user.
  • the management login page can be shown in Figure 5, including an administrator user name input box, a password input box, and a login button.
  • the user can enter the administrator username and password, and click the login button.
  • the administrator user name can be the user name recorded on the router nameplate or user manual, such as "admin”.
  • the password can be the initial password or a user-defined password.
  • the administrator user name can also be a user-defined cloud account that complies with the rules agreed by the router supplier. Taking Huawei routers as an example, the administrator username can be a user-defined Huawei Cloud account, such as a mobile phone number.
  • the password is the password corresponding to the cloud account.
  • the interface may be an application layer interface.
  • the terminal and the router can exchange information. For example, transfer page access request, first configuration wizard page data, configuration management page data, etc.
  • the terminal can display the router's first configuration wizard page or the router's configuration management page.
  • the terminal displays the first configuration wizard page; when the router is an old router, the terminal displays the configuration management page.
  • the terminal may send a page access request to the router in response to the operation of clicking the login button. If the router is a new router, the router sends the first configuration wizard page data to the terminal in response to the page access request, so that the terminal displays the first configuration wizard page. If the router is an old router, the router sends the display configuration management page data to the terminal in response to the page access request.
  • the terminal when the terminal is connected to the router, if the router is a new router, it will actively send the first configuration wizard page data to the terminal. If the router is an old router, it will actively send configuration management page data to the terminal. After the terminal obtains the first time configuration wizard page data or the configuration management page data, it can display the first time configuration wizard page or the configuration management page in response to the operation of clicking the login button.
  • the terminal can use the first configuration wizard page data or the configuration management page data received from the router to determine whether the router is a new router or an existing router. If the terminal receives the first configuration wizard page data from the router, the router is a new router; if the terminal receives configuration management page data from the router, the router is the old router.
  • the initial wireless network name of the new router has an initial label, for example, the last 2 digits of the initial network name.
  • the initial label will be deleted.
  • Step 404 Obtain the backup data of the router.
  • step 402 When the judgment result of step 402 indicates that the router connected to the terminal is not a new router, that is, it is an old router, the terminal can perform step 404.
  • the terminal may send a backup data request to the router.
  • the router sends the backup data of the router to the terminal.
  • the operation of obtaining backup data is an operation for the configuration management page.
  • the configuration management page can be as shown in Figure 6, which includes a backup data request button. The user can click the backup data request button to trigger the terminal to send a backup data request to the router.
  • the terminal may automatically send a backup data request to the router.
  • the router sends the backup data to the terminal.
  • the terminal can store the backup data in the storage path related to the router management application.
  • the backup data includes the location feature information of the router and the post-factory configuration information of the router.
  • the location feature information in each embodiment of the present application is also called feature information.
  • the location feature information is information used to identify the location of the router.
  • the post-factory configuration information which can also be called user configuration information or configuration information, refers to the post-factory configuration information generated by the router that has been configured after the factory, that is, the old router, according to its own configuration state or configuration data.
  • the configuration information after leaving the factory is a collective term for the Internet access mode, wireless network name, and wireless network password of the router configured by the user.
  • the configuration information after leaving the factory may include at least one of the Internet access mode, wireless network name, wireless network password, etc., and may also include other information configured by the user, such as network disconnection time, restart time, etc.
  • 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 generates the backup data. If the terminal has backup data locally, in step 404, it can be determined whether the locally stored backup data has the same backup data as the identification information of the backup data currently acquired by the terminal. If so, the locally stored backup data with the same identification information as the currently acquired backup data can be deleted, and the currently acquired backup data can be saved. If not, save the currently acquired backup data.
  • step 406 it is determined whether the terminal has backup data locally, if so, step 408 is executed, and if not, step 416 is executed.
  • step 402 When the judgment result of step 402 indicates that the router connected to the terminal is a new router, the terminal can execute step 406.
  • the backup data stored locally by the terminal may be the backup data obtained by the terminal from a router other than the currently connected router, or may be the backup data obtained from a cloud server.
  • Step 408 Obtain router location feature information; then, step 410 is executed.
  • the terminal may send a location feature information request to the router in response to the operation of obtaining location feature information.
  • the router sends the location feature information of the router to the terminal.
  • the location feature information please refer to the introduction below, which will not be repeated here.
  • the operation of obtaining location feature information is an operation for the first configuration wizard page.
  • the first configuration wizard page may be as shown in Figure 8, which includes a location feature information request button. The user can click the location feature information request button to trigger the terminal to send a location feature information request to the router.
  • the terminal may actively send a location feature information request to the router to request location feature information.
  • Step 410 Match the backup data according to the location feature information.
  • the first BSSID among them can be matched first. 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, it can be matched according to the second BSSID, ... until only one backup data is matched, and then step 412 is executed.
  • step 412 when the location feature information includes multiple priority location feature information, matching may be performed first based on the first priority location feature 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, it can be matched according to the second priority location feature information, ... until only one backup data is matched, and then step 412 is executed.
  • the terminal may send the backup data to the router, so that the router completes its own configuration according to the post-factory configuration information in the backup data.
  • the post-factory configuration information in the backup data can be sent to the router, so that the router completes its own configuration according to the post-factory configuration information.
  • step 414 may be performed.
  • the terminal determines the backup data according to the backup data selection operation; and sends the determined backup data or the determined backup data operation to the router. After configuration information. Specifically, referring to FIG. 9, when the terminal has backup data locally, the terminal may display a button for selecting backup data on the first configuration wizard page. The terminal may display a backup data list (not shown) in response to the user's operation of clicking the button to select backup data, in which the backup data stored locally in the terminal is displayed.
  • the user can click a certain backup data in the backup data list, and the terminal, in response to the user's operation, determines that the backup data is 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.
  • the user can configure the router through the first configuration wizard page.
  • steps 416 and 418 below, which will not be repeated here.
  • the terminal may perform step 416, and in response to the post-factory configuration operation, send a configuration instruction to the router to perform post-factory configuration of the router.
  • the user can perform configuration operations through the first configuration wizard page shown in FIG. 8 to trigger the terminal to send configuration instructions to the router.
  • the user can input the corresponding configuration information into the corresponding input boxes of the Internet access mode, wireless network name, wireless network password, etc. on the first configuration wizard page by operating the input device of the terminal, for example, input corresponding to the wireless network name Enter "X Company" in the box, and the terminal will generate and send a configuration instruction to the router in response to the content change event in the input box.
  • the configuration instruction is used to configure the wireless network name of the router; for another example, enter the input box corresponding to the wireless network password Enter "123456", and the terminal will generate and send a configuration instruction to the router in response to the content change event in the input box.
  • the configuration instruction is used to configure the router's wireless network password; etc., which will not be listed here.
  • the backup data is generated after the router is configured after leaving the factory.
  • the backup data please refer to the introduction below, which will not be repeated here.
  • step 406 may also be performed after step 408 and step 410. That is, when it is determined through step 402 that the router currently connected to the terminal is a new router, the terminal may execute step 408 and then execute step 410. When the backup data is not matched in step 410, the terminal can perform a step of determining whether it has backup data locally.
  • step 406 can also be executed in combination with step 410. Specifically, when it is determined through step 402 that the router that the terminal is currently connected to is a new router, and after step 408 is performed by the terminal, when step 410 is performed, it is found that there is no local backup data for matching, then it can be determined that there is no local backup data.
  • the terminal can perform step 418 to obtain backup data of the router.
  • the terminal may send a configuration management page access request to the router.
  • the router sends configuration management page data to the terminal.
  • the terminal displays the configuration management page according to the configuration management page data.
  • the configuration management page can be as shown in Figure 6.
  • the user can click the backup data request in the configuration management page to trigger the terminal to send a backup data request to the router.
  • the router sends the backup data to the terminal.
  • the router may actively send the backup data of the router to the terminal after the router is configured.
  • the old router has configuration information after leaving the factory.
  • the configuration can include configuring Internet access methods (such as dial-up Internet access, dynamic host configuration protocol (DHCP) Internet access), wireless network name (such as Wi-Fi name), wireless network password (such as Wi-Fi password), etc. Configuration.
  • the configuration information after leaving the factory can include Internet access, wireless network name, wireless network password, etc.
  • the post-factory configuration of the old router can be that the user uses a browser to visit http://192.168.1.1/, enter the administrator user name (such as admin), and the initial password. After the login is successful, the router will be Configured after delivery.
  • the post-factory configuration of the old router is the post-factory configuration of the router by the user using the currently used terminal 100 or other terminal at a certain time.
  • the wireless router provided in the embodiments of the present application may have an automatic network disconnection function.
  • the user can configure the disconnection time of the router to realize the automatic disconnection of the router.
  • the user can set the time of disconnection to achieve the purpose of limiting the time for children to surf the Internet. Users can configure the disconnection time through the above or similar methods. Therefore, in the embodiment of the present application, the configuration information after leaving the factory may also include the disconnection time.
  • the wireless router provided in the embodiments of the present application may have an automatic restart function.
  • the user can configure the restart time of the router to realize the automatic restart of the router. For example, you can set that users usually arrive home at 18:00, and you can set the restart time to 18:00.
  • the router can be turned off when the user leaves home. When it is 18:00, the router can automatically restart to facilitate users to access the Internet. Therefore, in the embodiment of the present application, the configuration information after leaving the factory may also include the restart time.
  • the configuration information after leaving the factory including information such as Internet access mode, wireless network name, wireless network password, network disconnection time, and restart time, is taken as an example.
  • the post-factory configuration information can be a collective term for the user-defined configuration information of the router after the router leaves the factory.
  • routers configure the router according to the scenario where the router is located. For example, configure the router's Internet access mode according to the wired network corresponding to the place, and set the wireless network name, wireless network password, network disconnection time, restart time, etc. according to the purpose of the place.
  • the router at the company site Take the router at the company site as an example. Its wireless network name, wireless network password, etc. are generally related to company information, and network disconnection time and restart time are generally related to working hours.
  • the wireless network name and wireless network password configured for it are generally related to personal related information, and the network disconnection time and restart time are generally related to personal needs.
  • the information used to identify the location of the router may be referred to as the location feature information of the router.
  • the router configuration method provided by the embodiments of the present application can associate or bind the location feature information of the router and the configuration information of the router after the factory is shipped to obtain backup data.
  • Places A, B, C, and D can be set as adjacent places. Routers A, B, C, and D are arranged in places A, B, C, and D in sequence. Routers A and B are located within each other's wireless coverage area, and can obtain each other's signals, thereby obtaining each other's information.
  • Routers B and C are located within each other's wireless coverage area, and can obtain each other's signals, thereby obtaining each other's information.
  • This information may include a service set identifier (Service Set Identifier, SSID) or a basic service set identifier (Basic Service Set Identifier, BSSID).
  • SSID Service Set Identifier
  • BSSID Basic Service Set Identifier
  • the BSSID of the router is the Media Access Control (MAC) address of the data link layer of the router, which can be used to identify the router.
  • MAC Media Access Control
  • the router provided in the embodiment of the present application can use the feature information of the surrounding routers as its location feature information to identify the location where it is located.
  • the router B receives wireless signals from routers A and C, and can record the BSSIDs of routers A and C as the location feature information of router B to identify the location of router B.
  • router C receives the signal of router B and can record the BSSID of router B as the location feature information of router C.
  • the above only takes the router using two or one surrounding routers to identify its own location as an example.
  • the router uses its surrounding routers to identify its own location. It does not limit the number of other routers used by the router to identify its own field.
  • a router can use three or more surrounding routers to more accurately identify its location.
  • the surrounding router refers to the source router of the wireless signal received by the router. Take routers A and B as examples. When router A can receive the wireless signal of router B, router B belongs to the surrounding routers of router A.
  • the routers when the router receives signals from multiple surrounding routers, the routers can be sorted according to the signal strength, and the BSSID of the router with the highest ranking result is stored first as the location feature information. For example, there are routers B, C, D (not shown), E (not shown), and F (not shown) surrounding router A. Among them, for router A, routers B, C, and D are stronger than routers E and F, so router A can use the BSSID of routers B, C, and D as the location feature information of router A.
  • the router can also use the signal strength of the surrounding routers it receives to more accurately identify its location. Still referring to FIG. 1, taking router A as an example, it can record the BSSID of routers B and C, as well as the received wireless signal strength of routers B and C, as the location feature information of router A. It can be set that router D (not shown) can also receive wireless signals from routers B and C, and router D can record the BSSID of routers B and C and the strength of the wireless signal as the location feature information of router D. When the wireless signal strength recorded by router D is different from the wireless signal strength recorded by router A, it can be considered that the locations of router D and router A are different.
  • the strength of the wireless signal may specifically be a Received Signal Strength Indicator (RSSI) of the wireless signal.
  • RSSI Received Signal Strength Indicator
  • the router may collect feature information of its surrounding routers and the strength of wireless signals according to a preset period to update its location feature information.
  • the preset period may be one day, one week, or one month, etc. The present embodiment does not specifically limit the preset period.
  • the router 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, it corresponds to a specific place.
  • the router When the router is connected to the network cable of the place, and the place corresponds to
  • the network has a static Internet Protocol (IP) address, the IP address can be used as the location feature information of the router to identify the location where the router is located.
  • IP Internet Protocol
  • the upstream network equipment or network interface connected to the network cable connected to the place is specific. Therefore, the feature information of the upstream network device or network interface corresponding to the location can be used as the location feature information of the router in the location to identify the location of the router.
  • the upstream network device may be an optical modem (optical modem), that is, an optical modem, and its characteristic information may be its MAC address.
  • the user may restore the factory settings of the router that has been configured after the factory. It is easy to understand. Generally speaking, a router will continue to be used in the original place after restoring the factory settings. Therefore, using the identifier of the router as the location feature information can also be used to identify the location where the router is located.
  • the identifier of the router may specifically be a serial number (S/N) of the router.
  • S/N serial number
  • the serial number printed on its nameplate can uniquely identify the router.
  • the router can obtain its own serial number as its location feature information.
  • the identifier of the router may specifically be a universally unique identifier (UUID) generated by the router.
  • UUID universally unique identifier
  • any router it can combine feature information such as the BSSID of the surrounding routers, the IP address corresponding to the location, the feature information of the upstream network device or network interface corresponding to the location, and one of its own identification information.
  • the location feature information may also include the signal strength of the surrounding routers. The signal strength of the surrounding routers can be combined with other location feature information (such as the BSSID of the surrounding routers, etc.) to identify the location of the router to improve the identification accuracy of the location of the router. .
  • priority can be set for the different information described above.
  • the BSSID of the surrounding routers belongs to the location feature information of the first priority, and the signal strength of the surrounding routers belongs to the location feature information of the second priority; for another example, the router's own identifier belongs to the location feature information of the first priority, and the surrounding routers
  • the BSSID belongs to the second-priority location feature information; etc., which will not be listed here.
  • the router can generate backup data according to its location feature information and post-factory configuration information.
  • the generated backup data includes site feature information and post-factory configuration information.
  • the router may record site feature information and post-factory configuration information in a data table to obtain backup data. Take routers around router 1 including routers 2, 3, 4, etc. as an example.
  • the data record form of the backup data of the router 1 may be as shown in Table 1.
  • each of the three BSSIDs can be used to identify the location of router 1.
  • two or all of the three BSSIDs jointly identify the locations of router 1 to distinguish the locations of other routers.
  • the data record form of the backup data recorded by the router 1 may be as shown in Table 2.
  • Place feature information Configuration information after delivery Router 2: BSSID2 Internet access: dial-up Internet Router 3: BSSID3 Wi-Fi name: Company X Router 4: BSSID4 Wi-Fi password: 123456 Router 2: RSSI2 Network disconnection time: 18:00 Router 3: RSSI3 Restart time: 9:00
  • Router 4 RSSI4 To
  • each of the three BSSIDs can be used to identify the location of router 1.
  • the three BSSIDs are combined with the corresponding RSSI to identify the location of router 1.
  • the data record form of the backup data recorded by the router 1 may be as shown in Table 3.
  • each BSSID in the first priority can be used to identify the location of router 1.
  • the first priority can be combined with the second priority to identify the location of router 1.
  • the data record form of the backup data recorded by the router 1 may be as shown in Table 4.
  • each BSSID in the second priority can be matched with the new router.
  • the configuration information of the router after the factory can be backed up, and combined with the location characteristic information of the router to generate backup data; when the new router needs to be configured after the factory, it can be obtained from the terminal.
  • the backup data matching the location, so that the new router can obtain the post-factory configuration that matches the location.
  • a router configuration method is provided. Refer to Figure 10. Including the following steps.
  • Step 1000 The old router 1 generates first backup data according to its first location feature information and its first post-factory configuration information. Among them, the old router 1 is located in the first place, and the old router 1 has been configured after delivery.
  • Step 1002 the old router 1 sends the first backup data to the terminal.
  • the terminal may send a backup data request to the old router 1.
  • the old router 1 may send the first backup data to the terminal in response to the backup data request.
  • the old router 1 can actively send backup data to the terminal.
  • the first backup data includes the first location feature information and the post-factory configuration information of the old router 1.
  • Step 1004 The old router 2 generates second backup data according to its second location feature information and its second post-factory configuration information. Among them, the old router 2 is located in the second place, and the old router 2 has been configured after delivery.
  • 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 is connected to the old router 2, the old router 2 may actively send the backup data to the terminal, or the old router 2 may send the backup data to the terminal according to the request of the terminal. Among them, the second backup data includes the second location feature information and the post-factory configuration information of the old router 2.
  • Step 1008 The new router 1 sends the first location feature information to the terminal. Specifically, when the old router 1 is restored to factory settings and becomes the new router 1 and is still in the original location, the new router 1 can obtain the location feature information corresponding to the old router, that is, the first location feature information, and send it to the terminal.
  • Step 1010 The terminal may determine the first backup data according to the feature information of the first place.
  • Step 1012 The terminal sends the first backup data to the new router 1, so that the new router 1 completes its post-factory configuration according to the first backup information.
  • Step 1014 The new router 2 sends the second location feature information to the terminal. Specifically, when the old router 2 is replaced by the new router 2, the new router 2 can obtain the location feature information of the location where the old router 2 is located, that is, the second location feature information, and send it to the terminal.
  • Step 1016 The terminal may determine the second backup data according to the second location feature information.
  • Step 1018 The terminal sends the second backup data to the new router 2, so that the new router 2 completes its post-factory configuration according to the second backup information.
  • the previous router 1, the new router 1, the old router 2, and the new router 2 are taken as examples to illustrate the solution of this embodiment.
  • This embodiment may only include steps 1000, 1002, 1008, and 1010.
  • 1012 can also only include steps 1004, 1006, 1014, 1016, and 1016.
  • the terminal can manage a pair of old and new routers, or can manage multiple pairs of old and new routers.
  • the router configuration method provided in this embodiment can back up the configuration information of the router, and combine the location feature information of the router to generate backup data; when the new router needs to be configured, the backup data matching the location of the new router can be obtained from the terminal. This allows the new router to obtain a configuration that matches the location.
  • the location feature information includes first priority location feature information and second priority location feature information, where the first priority location feature information is, for example, the S/N of the router, and the second priority location feature information For example, the BSSIDs of the three surrounding routers with the strongest signal of the router.
  • the method includes the following steps.
  • Step 1100 The terminal obtains location feature information of the new router.
  • the location feature information includes the S/N of the new router.
  • a router will continue to be used in the original place after restoring the factory settings. Therefore, in this scenario, the S/N of the new router is used as the location feature information of the new route to identify the location of the router.
  • step 1102 the terminal first determines whether the S/N of the new router is consistent with the S/N in the backup data
  • step 1106 the terminal executes step 1106 to send the backup data to the router.
  • the terminal judges in step 1104 whether the BSSID of at least one of the three surrounding routers with the strongest signal of the new router is consistent with the BSSID in the backup data (if only one or two or three routers are received, then Determine whether the BSSID of at least one of the one or two or three routers is consistent with the BSSID in the backup data).
  • step 1106 the terminal executes step 1106 to send the backup data to the router.
  • the terminal performs step 1108, determines 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's operation, the terminal may display a list of backup data, which may include at least one backup data. The user can perform a backup data selection operation to select one backup data in the backup data list. In response to the backup data selection operation, the terminal determines the backup data, and then sends the determined backup data to the new router.
  • a router configuration method is provided. Referring to Figure 12A, the method includes the following steps.
  • Step 1200a The terminal sends a configuration instruction to router A.
  • router A in site 1 is a new router, and the new router refers to a new router that has never been configured after leaving the factory.
  • a new router can also refer to a router that has been configured after the factory and is now restored to factory settings.
  • the user can turn on router A to provide wireless coverage.
  • the terminal 1 in the site 1 is installed with a router management application.
  • the user can start the router management application.
  • the user successfully logs in to the router management application by entering the administrator username and password.
  • the terminal can display the first time configuration wizard page. At this time, the terminal does not store the backup data locally. Users can perform post-factory configuration operations based on the first-time configuration wizard page.
  • the terminal sends configuration instructions to the router to configure the router's Internet access mode, wireless network name, wireless network password, etc.
  • Step 1202a Router A obtains location feature information of location 1.
  • Router A obtains location feature information of location 1.
  • Step 1204a Router A generates backup data.
  • Step 1206a Router A sends the backup data to terminal 1.
  • Step 1206a Router A sends the backup data to terminal 1.
  • the terminal After the terminal receives the backup data, it can store the backup data in the relevant storage path of the router management application.
  • the method further includes the following steps.
  • Step 1200b Router B obtains location feature information of location 1.
  • Router A in Site 1 is replaced by Router B.
  • Router B can replace Router A to provide wireless coverage for Site 1.
  • terminal 1 can determine whether router B is a new router. For the definition of the new router, refer to the introduction of step 1200a above, which will not be repeated here.
  • terminal 1 determines that router B is a new router, it can display a page as shown in FIG. 13A to prompt the user whether to configure the router.
  • the user can click the Configure Now button on the page shown in FIG. 13A to trigger the terminal 1 to send a request for location feature information to the router B.
  • router B sends the feature information of location 1 it has acquired to terminal 1.
  • router B can automatically obtain the location feature information of location 1.
  • the router B may obtain the location feature information of the location 1 in response to the location feature information request sent by the terminal 1, and then send the obtained location feature information to the terminal 1.
  • Step 1202b Router B sends location feature information of location 1 to terminal 1.
  • terminal 1 When terminal 1 is connected to router B, terminal 1 can determine whether router B is a new router. For the definition of the new router, refer to the introduction of step 1200a above, which will not be repeated here. When terminal 1 determines that router B is a new router, it can display a page as shown in Figure 13 to prompt the user whether to configure the router.
  • the user can click the Configure Now button on the page shown in FIG. 13 to trigger the terminal 1 to send a request for location feature information to the router B.
  • router B sends the feature information of location 1 it has acquired to terminal 1.
  • Step 1204b The terminal 1 matches the backup data according to the location feature information of the location 1.
  • the terminal 1 can display a page as shown in FIG. 13B.
  • the post-factory configuration information in the backup data can be displayed on this page, such as Internet access: PPPOE, Wi-Fi: wodewifi, Wi-Fi password: 12345678, etc.
  • Step 1206b Terminal 1 sends the backup data to router B.
  • the user can select the backup data.
  • the terminal 1 can send the backup data matched in step 1204b to the router B.
  • router B After router B receives the backup data, it can obtain the post-factory configuration information therein, so that it can perform its post-factory configuration.
  • Terminal 1 can display the relevant process of router B's post-factory configuration. details as follows.
  • the terminal 1 can display the page shown in FIG. 13C.
  • router B can first perform network configuration according to network configuration related information such as "Internet access method: PPPOE" in the backup data.
  • the terminal 1 can display the page shown in FIG. 13D.
  • router B can perform Wi-Fi configuration according to the Wi-Fi related information of "Wi-Fi: wodewifi” and "Wi-Fi password: 12345678" in the backup data.
  • the terminal may display a modification button during Wi-Fi configuration.
  • the user can modify the Wi-Fi related information page (not shown) and modify the Wi-Fi related information by clicking the modify button. For example, you can modify the Wi-Fi name or the Wi-Fi password.
  • the terminal 1 can display the page shown in FIG. 13E.
  • the backup data contains security configuration related information such as "management password: 12345678" and child Internet protection
  • router B can perform security based on the security configuration related information in the backup data Configuration.
  • the management password specifically refers to the password used to access the configuration management page or the first configuration wizard page of the router, that is, the password corresponding to the administrator user name (for example, admin).
  • the management password is specifically the password required when accessing http://192.168.1.1/.
  • the configuration information of child online protection includes information such as the time of disconnection.
  • the terminal may display a modification button during security configuration.
  • the user can modify the security configuration related information page (not shown) by clicking the modify button, and modify the security configuration related information. For example, you can modify the management password, and you can also modify the disconnection time.
  • the terminal 1 can display the page shown in FIG. 13F.
  • router B can perform binding account configuration according to the binding account configuration information in the backup data .
  • the account in the bound account may specifically be a cloud account, which is a cloud account that is customized by the user and complies with the rules of the router supplier.
  • the administrator username can be a user-defined Huawei Cloud account, such as a mobile phone number.
  • the terminal 1 may display the page shown in FIG. 13G to prompt the user that the configuration of router B after leaving the factory has been completed.
  • the username of router B may be modified. If the username of router B is modified, terminal 1 can reconnect to router B to access the Internet through the wireless network provided by router B.
  • the router configuration method provided in this embodiment can back up the configuration information of the router, and combine the location feature information of the router to generate backup data; when the new router needs to be configured, the backup data matching the location of the new router can be obtained from the terminal. This allows the new router to obtain a configuration that matches the location.
  • the embodiment of the present application provides a router configuration method, the execution subject of which is a terminal. As shown in Figure 14, the method includes the following steps.
  • Step 1400 The terminal connects to the first router
  • Step 1402 If the first router is an unconfigured router, the terminal receives first characteristic information from the first router; the first characteristic information is used to identify the first router where the first router is located. Information about a place;
  • Step 1404 The terminal judges whether the first characteristic information matches the backup data stored in the terminal;
  • Step 1406 If the second feature information in the first backup data in the terminal matches the first feature information, the terminal sends the first backup data or the first backup data to the first router.
  • the configuration information in the backup data is used to configure the first router; wherein the first backup data includes second feature information and configuration information.
  • the configuration information is specifically post-factory configuration information.
  • the first characteristic information includes at least one of the following:
  • Feature information of at least one router the IP address of the wired network corresponding to the first location, the feature information of the network device corresponding to the first location, and the identification information of the first router;
  • the wireless signal transmitted by each router in the at least one router is sufficient to be received by the first router.
  • the matching of the second characteristic information and the first characteristic information is specifically:
  • the characteristic information of a router in is the same as the characteristic information of a router in the second characteristic information.
  • the first backup data is a backup data
  • the first feature information includes feature information of at least one router, the IP address of the wired network corresponding to the first place, and the first feature information. At least two kinds of information in the characteristic information of the network device corresponding to a place and the identification information of the first router, and various information in the at least two kinds of information have different priorities; if the second characteristic information When matching with 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: according to the various The priority of the information is sequentially matched with the backup data according to the various information, until the first backup data is determined.
  • the method further includes: if there is no backup data matching the first feature information in the terminal, and at least one second backup data is stored in the terminal, the terminal displays The at least one second backup data; in response to a user's selection of one second backup data in the at least one second backup data, the terminal changes the second backup data selected by the user or the configuration in the second backup data The information is sent to the first router to configure the first router.
  • the method before the terminal is connected to the first router, the method further includes: the terminal is connected to a second router, and the second router is located in the first place; and the terminal is based on the user's Operate to configure the second router; the terminal receives and stores the first backup data sent by the configured second router, wherein the second characteristic information in the first backup data is the second router Obtained, the configuration information in the first backup data is the configuration information of the second router.
  • the terminal sends the first backup data to the first router
  • the configuration information in the first backup data includes: if the second feature information in the first backup data in the terminal matches the first feature information, the terminal displays the first backup data In response to the user's selection of the first backup data, the terminal sends the first backup data or the configuration information in the first backup data to the first router.
  • the configuration information includes at least one of the following:
  • Internet access method wireless network name, wireless network password, management password, binding account.
  • FIG. 14 can 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 described herein again.
  • the router configuration method provided in this embodiment can back up the configuration information of the router, and combine the location feature information of the router to generate backup data; when the new router needs to be configured, the backup data matching the location of the new router can be obtained from the terminal. This allows the new router to obtain a configuration that matches the location.
  • the embodiment of the present application provides a router configuration method, the execution subject of which is a router. As shown in Figure 15, the method includes the following steps.
  • Step 1500 The first router connects to a terminal
  • Step 1502 If the first router is an unconfigured router, the first router sends first characteristic information to the terminal; the first characteristic information is the first characteristic information used to identify the first router where the first router is located. Information about a place;
  • Step 1504 The first router receives first backup data or configuration information in the first backup data from the terminal; the first backup data includes second feature information and the configuration information, and the second The characteristic information matches the first characteristic information;
  • Step 1506 The first router performs configuration according to the configuration information.
  • the configuration information is specifically post-factory configuration information.
  • the first characteristic information includes at least one of the following:
  • Feature information of at least one router the IP address of the wired network corresponding to the first location, the feature information of the network device corresponding to the first location, and the identification information of the first router;
  • the wireless signal transmitted by each router in the at least one router is sufficient to be received by the first router.
  • the matching of the first characteristic information and the second characteristic information is specifically:
  • the characteristic information of a router in is the same as the characteristic information of a router in the second characteristic information.
  • the first characteristic information includes characteristic information of the at least one router; before the first router sends the first characteristic information to the terminal, the method further includes:
  • the at least one router is determined based on the signal strength of the wireless signal of each router in the plurality of routers.
  • the configuration information includes at least one of the following:
  • Internet access method wireless network name, wireless network password, management password, binding account.
  • FIG. 15 can 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 described herein again.
  • the router configuration method provided in this embodiment can back up the configuration information of the router, and combine the location feature information of the router to generate backup data; when the new router needs to be configured, the backup data matching the location of the new router can be obtained from the terminal. This allows the new router to obtain a configuration that matches the location.
  • the embodiment of the present application provides an apparatus 1600.
  • the device 1600 may be installed in the terminal. As shown in FIG. 16, the device 1600 includes:
  • the connecting unit 1610 is used to connect to the first router
  • the receiving unit 1620 is configured to receive first characteristic information from the first router if the first router is an unconfigured router; the first characteristic information is used to identify the first router where the first router is located Information about a place;
  • the determining unit 1630 is configured to determine whether the first characteristic information matches the backup data stored in the terminal;
  • the sending unit 1640 is configured to send the first backup data or 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.
  • the configuration information in the backup data is used to configure the first router; wherein the first backup data includes second feature information and configuration information.
  • the device provided in this embodiment can back up the configuration information of the router, and combine the location feature information of the router to generate backup data; when the new router needs to be configured, the backup data that matches its location can be obtained from the terminal to enable The new router obtains the configuration that matches the location.
  • the embodiment of the present application provides an apparatus 1700.
  • the device 1700 may be installed in a router. As shown in FIG. 17, the device 1700 includes:
  • the connecting unit 1710 is used to connect the terminal
  • the sending unit 1720 is configured to send first characteristic information to the terminal if the first router is an unconfigured router; the first characteristic information is used to identify the first place where the first router is located Information;
  • the receiving unit 1730 is configured to receive first backup data or configuration information in the first backup data from the terminal; the first backup data includes second feature information and the configuration information, and the second feature information Match the first characteristic information;
  • the configuration unit 1740 is configured to perform configuration according to the configuration information.
  • the functions of the functional units of the device 1700 can be implemented with reference to the method embodiments shown in FIG. 15 above.
  • the device provided in this embodiment can back up the configuration information of the router, and combine the location feature information of the router to generate backup data; when the new router needs to be configured, the backup data that matches its location can be obtained from the terminal to enable The new router obtains the configuration that matches the location.
  • each electronic device includes a hardware structure and/or software module corresponding to each function.
  • the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed by hardware or computer software-driven hardware depends on the specific application and design constraint conditions of the technical solution. Professionals and technicians can use different methods for each specific application to implement the described functions, but such implementation should not be considered beyond the scope of this application.
  • the embodiments of the present application may divide the electronic equipment into functional modules according to the method embodiments shown in FIG. 14 or the method embodiments shown in FIG. 15.
  • each functional module may be divided corresponding to each function, or two One or more functions are integrated in one processing module.
  • the above-mentioned integrated modules can be implemented in the form of hardware or software functional modules. It should be noted that the division of modules in the embodiments of the present application is illustrative, and is only a logical function division, and there may be other division methods in actual implementation.
  • the terminal includes a processor 1810, a memory 1820, and a transceiver 1830.
  • the memory is used to store computer execution instructions; when the terminal is running, the processor 1810 executes the computer execution instructions stored in the memory 1820, so that the terminal executes the method shown in FIG. 14.
  • the transceiver 1830 is used to connect to a first router; the transceiver 1830 is used to receive first characteristic information from the first router if the first router is an unconfigured router; the first characteristic information Is the information used to identify the first place where the first router is located; the processor 1810 is used to determine whether the first characteristic information matches the backup data stored in the terminal; the transceiver 1830 is used to When the second feature information in the first backup data in the terminal matches the first feature information, the first backup data or the configuration information in the first backup data is sent to the first router, so The configuration information is used to configure the first router; wherein, the first backup data includes second feature information and configuration information.
  • the terminal further includes a communication bus 1840, where the processor 1810 can be connected to the memory 1820 and the transceiver 1830 through the communication bus 1840, so as to implement the computer execution instructions stored in the memory 1820 to perform the operation on the transceiver 1830. Control accordingly.
  • the configuration information of the router can be backed up, and the location feature information of the router can be combined to generate backup data; when the new router needs to be configured, the backup data that matches its location can be obtained from the terminal so that the new router can obtain The matching configuration at the location.
  • the router includes a processor 1910, a memory 1920, and a transceiver 1930.
  • the memory is used to store computer execution instructions; when the router is running, the processor 1910 executes the computer execution instructions stored in the memory 2520, so that the router executes the method shown in FIG. 15.
  • the transceiver 1930 is used to connect to the terminal; the transceiver 1930 is used to send first characteristic information to the terminal if the first router is an unconfigured router; the first characteristic information is used to identify Information about the 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 includes a second feature Information and the configuration information, the second characteristic information matches the first characteristic information; the transceiver 1930 is configured to perform configuration according to the configuration information.
  • the router further includes a communication bus 1940, wherein the processor 1910 can be connected to the memory 1920 and the transceiver 1930 through the communication bus 1940, so as to implement the computer execution instructions stored in the memory 1920 to perform the operation on the transceiver 1930. Control accordingly.
  • the configuration information of the router can be backed up, and the location feature information of the router can be combined to generate backup data; when the new router needs to be configured, the backup data that matches its location can be obtained from the terminal so that the new router can obtain The matching configuration at the location.
  • the processor in the embodiment of the present application may be a central processing unit (central processing unit, CPU), or other general-purpose processors, digital signal processors (digital signal processors, DSP), and application specific integrated circuits. (application specific integrated circuit, ASIC), field programmable gate array (field programmable gate array, FPGA) or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof.
  • the general-purpose processor may be a microprocessor or any conventional processor.
  • the method steps in the embodiments of the present application can be implemented by hardware, or can be implemented by a processor executing software instructions.
  • Software instructions can be composed of corresponding software modules, which can be stored in random access memory (RAM), flash memory, read-only memory (ROM), programmable read-only memory (programmable rom) , PROM), erasable programmable read-only memory (erasable PROM, EPROM), electrically erasable programmable read-only memory (electrically EPROM, EEPROM), register, hard disk, mobile hard disk, CD-ROM or well-known in the art Any other form of storage medium.
  • An exemplary storage medium is coupled to the processor, so that the processor can read information from the storage medium and can write information to the storage medium.
  • the storage medium may also be an integral part of the processor.
  • the processor and the storage medium may be located in the ASIC.
  • the computer program product includes one or more computer instructions.
  • the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.
  • the computer instructions may be stored in a computer-readable storage medium or transmitted through the computer-readable storage medium.
  • the computer instructions can be sent from one website site, computer, server, or data center to another website site via wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) , Computer, server or data center for transmission.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or a data center integrated with one or more available media.
  • the usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, and a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid state disk (SSD)).

Abstract

本申请提供了一种路由器配置方法、终端及路由器。所述方法包括:终端连接第一路由器;若所述第一路由器为未经配置的路由器时,所述终端从所述第一路由器接收第一特征信息;所述第一特征信息为用于标识所述第一路由器所在的第一场所的信息;所述终端判断所述第一特征信息与所述终端中存储的备份数据是否匹配;若所述终端中的第一备份数据中的第二特征信息和所述第一特征信息匹配时,所述终端向所述第一路由器发送所述第一备份数据或所述第一备份数据中的配置信息,所述配置信息用于配置所述第一路由器;其中,所述第一备份数据包括第二特征信息和配置信息。

Description

一种路由器配置方法、终端及路由器
本申请要求在2019年7月3日提交中国国家知识产权局、申请号为201910596087.6的中国专利申请的优先权,发明名称为“一种路由器配置方法、终端及路由器”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及通信技术领域,具体涉及一种路由器配置方法、终端及路由器。
背景技术
无线路由器可以将宽带网络信号转化为无线信号,以提供无线覆盖。处于无线路由器无线覆盖范围的终端(例如手机、平板电脑、笔记本电脑等)可以连接到该无线路由器,以实现无线上网。无线路由器的应用比较普及,很多家庭用户或者公司用户使用无线路由器为其成员提供的无线上网服务。
对于新的路由器或者恢复出厂设置后的路由器,需要先进行上网方式(例如拨号上网)、无线网络名称(例如Wi-Fi名称)、无线网络密码(例如Wi-Fi密码)等配置。例如,通过浏览器访问http://192.168.1.1/,输入管理员用户名(例如admin)、初始密码,登陆成功后,对路由器进行配置。该配置方式操作较为繁琐,且专业性强,需要专业人员配置,或者需要非专业人员仔细阅读说明书后才可能进行有效的配置。在无专业人员,或无说明书的情况下,一般用户难以有效配置路由器。
发明内容
本申请实施例提供了一种路由器配置方法、终端及路由器,可高效、便捷的实现对路由器的配置。
第一方面,本申请实施例提供了一种路由器配置方法,所述方法包括:终端连接第一路由器;若所述第一路由器为未经配置的路由器时,所述终端从所述第一路由器接收第一特征信息;所述第一特征信息为用于标识所述第一路由器所在的第一场所的信息;所述终端判断所述第一特征信息与所述终端中存储的备份数据是否匹配;若所述终端中的第一备份数据中的第二特征信息和所述第一特征信息匹配时,所述终端向所述第一路由器发送所述第一备份数据或所述第一备份数据中的配置信息,所述配置信息用于配置所述第一路由器;其中,所述第一备份数据包括第二特征信息和配置信息。
在一种可能的实现方式中,所述未经配置的路由器为未进行过出厂后配置的新路由器。
在一种可能的实现方式中,所述未经配置的路由器为经过恢复出厂设置的路由器。
在一种可能的实现方式中,所述第一特征信息包括以下至少一种:
至少一个路由器的特征信息、所述第一场所对应的有线网络的IP地址、所述第一场所对应的网络设备的特征信息、所述第一路由器的自身标识信息;其中,
所述至少一个路由器中各路由器发射的无线信号足以被所述第一路由器接收。
在该实现方式中,可以通过第一路由器周围路由器的特征信息、与第一路由器所在场所相关联的网络或网络设备的特征信息以及第一路由器的自身标识标识标识第一路由器所在的场所,从而有效并且精确地标识第一路由器所在的场所。
在一种可能的实现方式中,当所述第一特征信息包括所述至少一个路由器的特征信息时;所述第二特征信息和所述第一特征信息匹配具体为:所述至少一个路由中的一个路由器的特征信息和所述第二特征信息中的一个路由器的特征信息相同。
在该实现方式中,当第一特征信息中的一个路由器的特征信息和第二特征信息中的一个路由器相同时,认为第一特征信息和第二特征信息匹配,从而可以在第二特征信息中有的路由器关闭、损坏或被替换的情况下,也可以为第一路由器匹配到备份数据。
在一种可能的实现方式中所述第一备份数据为一个备份数据;所述第一特征信息包括至少一个路由器的特征信息、所述第一场所对应的有线网络的IP地址、所述第一场所对应的网络设备的特征信息、所述第一路由器的自身标识信息中的至少两种信息,所述至少两种信息中各种信息具有不同的优先级;在若所述第二特征信息和所述第一特征信息匹配时,所述终端向所述第一路由器发送所述第一备份数据或所述第一备份数据中的配置信息之前,所述方法还包括:依据所述各种信息的优先级,顺次根据所述各种信息与备份数据进行匹配,直至确定出所述第一备份数据。
在该实现方式中,第一特征信息包括不同优先级的信息,在匹配时,可以先根据高优先级的信息进行匹配,如果不能匹配到唯一一个备份数据,则根据次优先级的信息进行进一步匹配,从而兼顾了匹配到合适的备份数据的及时性和有效性。
在一种可能的实现方式中,所述方法还包括:若所述终端中没有与所述第一特征信息相匹配的备份数据,且所述终端中存储有至少一个第二备份数据,则所述终端显示所述至少一个第二备份数据;响应于用户对所述至少一个第二备份数据中的一个第二备份数据的选择,所述终端将用户选择的第二备份数据或者第二备份数据中的配置信息发送给所述第一路由器,以配置所述第一路由器。
在该实现方式中,用户可以手动选择备份数据,以实现根据用户选择的备份数据对路由器进行配置。
在一种可能的实现方式中,在所述终端连接所述第一路由器之前,所述方法还包括:所述终端连接第二路由器,所述第二路由器位于所述第一场所;所述终端基于用户的操作配置所述第二路由器;所述终端接收并存储配置后的所述第二路由器发送的所述第一备份数据,其中所述第一备份数据中的第二特征信息为所述第二路由器获取的,所述第一备份数据中的配置信息为所述第二路由器的配置信息。
在该实现方式中,终端可以获取位于某一场所的路由器的备份数据,以便当该场所有新的路由器时,终端可以向新的路由器发送该场所内已配置路由器的备份数据,以新路由器实现符合所在场所的配置。
在一种可能的实现方式中,所述若所述终端中的第一备份数据中的第二特征信息和所述第一特征信息匹配时,所述终端向所述第一路由器发送所述第一备份数据或所述第一备份数据中的配置信息,包括:若所述终端中的第一备份数据中的第二特征信息和所述第一特征信息匹配时,所述终端显示所述第一备份数据;响应于用户对所述第一备份数据的选择,所述终端向所述第一路由器发送所述第一备份数据或所述第一备份数据中的配置信息。
在该实现方式中,用户可以控制向新路由器发送的备份数据,进而实现了用户对新路由器配置的控制,改善了用户配置路由器的操作体验。
在一种可能的实现方式中,所述配置信息包括以下至少一项:
上网方式、无线网络名称、无线网络密码、管理密码、绑定账号。
在该实现方式中,可以使新路由器实现一种或多种配置信息的配置。
第二方面,本申请实施例提供了一种路由器配置方法,应用于第一路由器,所述方法包括:所述第一路由器连接终端;若所述第一路由器为未经配置的路由器时,所述第一路由器向所述终端发送第一特征信息;所述第一特征信息为用于标识所述第一路由器所在的第一场所的信息;所述第一路由器从所述终端接收第一备份数据或所述第一备份数据中的配置信息;所述第一备份数据包括第二特征信息和所述配置信息,所述第二特征信息与所述第一特征信息相匹配;所述第一路由器根据所述配置信息进行配置。
在一种可能的实现方式中,所述第一特征信息包括以下至少一种:
至少一个路由器的特征信息、所述第一场所对应的有线网络的IP地址、所述第一场所对应的网络设备的特征信息、所述第一路由器的自身标识信息;其中,所述至少一个路由器中各路由器发射的无线信号足以被所述第一路由器接收。
在一种可能的实现方式中,当所述第一特征信息包括所述至少一个路由器的特征信息时;所述第一特征信息和所述第二特征信息匹配具体为:所述至少一个路由中的一个路由器的特征信息和所述第二特征信息中的一个路由器的特征信息相同。
在一种可能的实现方式中,所述第一特征信息包括所述至少一个路由器的特征信息;在所述第一路由器向所述终端发送第一特征信息之前,所述方法还包括:
接收所述第一路由器周围的多个路由器的无线信号;
基于所述多个路由器中各路由器的无线信号的信号强度,确定所述至少一个路由器。
在一种可能的实现方式中,所述配置信息包括以下至少一项:
上网方式、无线网络名称、无线网络密码、管理密码、绑定账号。
第三方面,本申请实施例提供了一种路由器配置方法,应用于第二路由器,所述方法包括:所述第二路由器连接终端;所述第二路由器接收所述终端发送的配置指示;所述第二路由器根据所述配置指示进行配置;所述第二路由器获取第二特征信息;所述第二路由器向所述终端发送第一备份数据,所述第一备份数据包括所述第二特征信息和配置信息,所述配置信息为所述第二路由器的配置信息。
第四方面,本申请实施例提供了一种终端,包括处理器、存储器、收发器;其中,所述存储器用于存储计算机执行指令;当所述终端运行时,所述处理器执行所述存储器存储的所述计算机执行指令,以使所述终端执行第一方面所述的方法。
第五方面,本申请实施例提供了一种路由器,包括处理器、存储器、收发器;其中,所述存储器用于存储计算机执行指令;当所述路由器运行时,所述处理器执行所述存储器存储的所述计算机执行指令,以使所述路由器执行第二方面所述的方法或第三方面所述的方法。
第六方面,本申请实施例提供了一种计算机存储介质,所述计算机存储介质包括计算机指令,当所述计算机指令在终端上运行时,使得所述终端执行第一方面所述的方法。
第七方面,本申请实施例提供了一种计算机存储介质,所述计算机存储介质包括计算机指令,当所述计算机指令在路由器上运行时,使得所述路由器执行第二方面所述的方法或第三方面所述的方法。
第八方面,本申请实施例提供了一种计算机程序产品,所述计算机程序产品包含的程序代码被终端中的处理器执行时,实现第一方面所述的方法。
第九方面,本申请实施例提供了一种计算机程序产品,所述计算机程序产品包含的程序代码被终端中的处理器执行时,实现第二方面所述的方法或第三方面所述的方法。
通过本申请实施例提供的路由器配置方法、终端和路由器,可以对路由器的配置信息进行备份,并且结合路由器的场所特征信息,生成备份数据;当新路由器需要进行配置时,可 以从终端获取与其所在场所匹配的备份数据,以使新路由器获得与所在场所匹配的配置。
附图说明
图1为本申请实施例一种应用场景示意图;
图2为本申请实施例提供的一种终端的结构示意图;
图3为本申请实施例提供的一种路由器的结构示意图;
图4为本申请实施例提供的一种路由器配置方法流程图;
图5为本申请实施例提供的一种终端页面展示图;
图6为本申请实施例提供的一种终端页面展示图;
图7为本申请实施例提供的路由器配置方法的一种应用场景示意图;
图8为本申请实施例提供的一种终端页面展示图;
图9为本申请实施例提供的一种终端页面展示图;
图10为本申请实施例提供的一种路由器配置方法流程图;
图11为本申请实施例提供的一种备份数据确定方法流程图;
图12A为本申请实施例提供的一种路由器配置方法流程图;
图12B为本申请实施例提供的一种路由器配置方法流程图;
图13A为本申请实施例提供的一种终端页面展示图;
图13B为本申请实施例提供的一种终端页面展示图;
图13C为本申请实施例提供的一种终端页面展示图;
图13D为本申请实施例提供的一种终端页面展示图;
图13E为本申请实施例提供的一种终端页面展示图;
图13F为本申请实施例提供的一种终端页面展示图;
图13G为本申请实施例提供的一种终端页面展示图;
图14为本申请实施例提供的一种路由器配置方法流程图;
图15为本申请实施例提供的一种路由器配置方法流程图;
图16为本申请实施例提供的一种装置示意性框图;
图17为本申请实施例提供的一种装置示意性框图;
图18为本申请实施例提供的一种终端示意性框图;
图19为本申请实施例提供的一种路由器示意性框图。
具体实施方式
下面将结合附图,对本发明实施例中的技术方案进行描述。显然,所描述的实施例仅是本发明一部分实施例,而不是全部的实施例。
图1示出了一种无线网络系统,包括终端100和路由器200。路由器可以发射无线信号,例如无线保真(wireless fidelity,Wi-Fi)信号,以提供无线覆盖。终端100处于路由器200提供的无线覆盖范围内,和路由器200通过无线信号连接。
终端100可以为手机、平板电脑、笔记本电脑等任意具有计算能力和无线连接能力的终端。
路由器200可以为有线路由器,也可以为无线路由器。有线路由器为将宽带网络等有线网络转换成无线网络,以提供无线覆盖的设备。无线路由器为可插入用户标识模块(subscriber identification module,SIM)卡,而实现通过无线信号接入到核心网,作为热 点为终端100等终端提供无线覆盖的路由器。
图2示出了终端100的结构示意图。
终端100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。
可以理解的是,本发明实施例示意的结构并不构成对终端100的具体限定。在本申请另一些实施例中,终端100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,外部存储器,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于 监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。
终端100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。终端100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块150可以提供应用在终端100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。
无线通信模块160可以提供应用在终端100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。例如,在本申请一些实施例中,无线通信模块160可以与其他电子设备(如路由器)进行交互,如可以对路由器进行配置,也可以向路由器请求或发送备份数据。
在一些实施例中,终端100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得终端100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system, BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。
终端100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,终端100可以包括1个或N个显示屏194,N为大于1的正整数。
电子设备可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备可以包括1个或N个摄像头193,N为大于1的正整数。
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。
视频编解码器用于对数字视频压缩或解压缩。电子设备可以支持一种或多种视频编解码器。这样,电子设备可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行电子设备的各种功能应用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。
电子设备可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备可以通过扬声器170A收听音乐,或收听免提通话。
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息或需要通过语音助手触发电子设备执行某些事件时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。电子设备可以设置至少一个麦克风170C。在另一些实施例中,电子设备可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电子设备根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,电子设备根据压力传感器180A检测所述触摸操作强度。电子设备也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。
陀螺仪传感器180B可以用于确定电子设备的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定电子设备围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180B检测电子设备抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消电子设备的抖动,实现防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。
气压传感器180C用于测量气压。在一些实施例中,电子设备通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。
磁传感器180D包括霍尔传感器。电子设备可以利用磁传感器180D检测翻盖皮套的开合。在一些实施例中,当电子设备是翻盖机时,电子设备可以根据磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。
加速度传感器180E可检测电子设备在各个方向上(一般为三轴)加速度的大小。当电子 设备静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。
距离传感器180F,用于测量距离。电子设备可以通过红外或激光测量距离。在一些实施例中,拍摄场景,电子设备可以利用距离传感器180F测距以实现快速对焦。
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。电子设备通过发光二极管向外发射红外光。电子设备使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定电子设备附近有物体。当检测到不充分的反射光时,电子设备可以确定电子设备附近没有物体。电子设备可以利用接近光传感器180G检测用户手持电子设备贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器180G也可用于皮套模式,口袋模式自动解锁与锁屏。
环境光传感器180L用于感知环境光亮度。电子设备可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测电子设备是否在口袋里,以防误触。
指纹传感器180H用于采集指纹。电子设备可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。
温度传感器180J用于检测温度。在一些实施例中,电子设备利用温度传感器180J检测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,电子设备执行降低位于温度传感器180J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,电子设备对电池142加热,以避免低温导致电子设备异常关机。在其他一些实施例中,当温度低于又一阈值时,电子设备对电池142的输出电压执行升压,以避免低温导致的异常关机。
触摸传感器180K,也称“触控面板”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备的表面,与显示屏194所处的位置不同。
骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器180M也可以设置于耳机中,结合成骨传导耳机。音频模块170可以基于所述骨传导传感器180M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于所述骨传导传感器180M获取的血压跳动信号解析心率信息,实现心率检测功能。
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备可以接收按键输入,产生与电子设备的用户设置以及功能控制有关的键信号输入。
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和电子设备的接触和分离。电子设备可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口195可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。电子设备通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,电子设备采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在电子设备中,不能和电子设备分离。
图3示出了路由器200的结构示意图。
路由器200可以包括处理器210、存储器220、无线通信电路230、天线232、网络端口240。
可以理解的是,本申请实施例示意的结构并不构成对路由器200的具体限定。在本申请另一些实施例中,路由器200可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
存储器220用于存储指令和数据。处理器210可以调用存储器220存储的指令或数据。存储器220和处理器210可以参考上文对终端100的介绍。
网络端口240可以包括有线网络接口,该有线网络接口可被配置为通过宽带等有线网络耦接至因特网的网络,并可为多个终端(例如终端100)提供对因特网的访问。
网络端口240可以包括移动通信模块,移动通信模块可配置为通过无线通信技术连接到核心网络。该所述无线通信技术可以包括GSM,GPRS,CDMA,WCDMA,TD-SCDMA,LTE,第五代((5th generation,5G)、新空口(new radio,NR)。
无线通信电路230可以被配置为经由例如Wi-Fi网络等无线局域网(wireless local area networks,WLAN)标准进行通信。无线通信电路230可以是集成至少一个通信处理模块的一个或多个器件。无线通信电路230可以经由天线232接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器210。无线通信模块还可以从处理器210接收待发送的信号,对其进行调频,放大,经天线232转为电磁波辐射出去。
以下实施例中的方法均可以在具有上述硬件结构的电子设备中实现。
本申请实施例提供了一种路由器配置方法,其执行主体可以为终端100。如图4所示,该方法包括以下步骤。
步骤400、终端连接路由器。
终端连接路由器可以是指终端接入路由器提供的无线网络。具体的,开启路由器,路由器发射无线信号,提供无线覆盖。已开启无线局域网(wireless local area networks,WLAN)功能的终端处于路由器的无线覆盖范围内时,终端可以搜索到路由器发射的无线信号。在搜索到该无线信号后,终端可以主动或者基于用户的操作连接该无线信号,从而连接路由器。
容易理解,无论路由器是否连接到网线,或者连接到互联网(internet),只要打开路由器的开关,路由器即可发射信号,形成无线网络。因此,在本申请实施例中,如无特殊说明,路由器提供的无线网络是指路由器开启后其发射信号从而形成的无线网络,并不要求路由器接入到互联网,或者接入到上游网络设备或上游网络接口。
步骤402、判断路由器是否为新路由器,若是新路由器,则执行步骤406,若不是新路由器,则执行步骤404。其中,不是新路由器即为是旧路由器。
在终端连接到路由器后,可以在步骤402判断路由器是否为新路由器。新路由器为出厂 后未被配置过的新路由器,也可以是指将旧路由器恢复出厂设置后的路由器。新路由器未经出厂后配置,其提供的无线网络还不能接入互联网。相应的,可以将进行了出厂后配置的路由器称为旧路由器。旧路由器为已进行了出厂后配置的路由器,其中,如果配置符合其所在场所的外网接入要求,则该路由器具有了接入该场所外网的能力。
在本申请实施例中,出厂后配置,也可以称为用户配置,具体指是用户或者消费者为使用路由器而对路由器进行配置的信息。
终端可以响应用户的操作指令,显示路由器管理登陆页面。在一些实施例中,终端响应用户的操作指令,开启路由器管理应用,并显示路由器管理登陆页面。该路由器管理应用可以为集成在终端操作系统的应用,也可以为可从应用平台下载、用户可自由安装或卸载的应用。
管理登陆页面可如图5所示,包括管理员用户名输入框、密码输入框、登陆按钮等。用户可以输入管理员用户名和密码,并点击登陆按钮。在一个例子中,管理员用户名可以为路由器铭牌或使用说明书中记载的用户名,例如“admin”。密码可以为初始密码,也可以为用户自定义密码。在一个例子中,管理员用户名也可以为用户自定义的、符合路由器供应商约定规则的云帐号。以华为路由器为例,管理员用户名可以为用户自定义的华为云账号,例如手机号码等。相应的,密码为云账号对应的密码。
该路由器管理应用和路由器之间具有约定的接口,该接口可以为应用层接口。通过该接口,终端和路由器可以进行信息交互。例如传输页面访问请求、首次配置向导页面数据、配置管理页面数据等。
当输入的管理员用户名和密码均正确,并点击登陆按钮后,终端可显示路由器的首次配置向导页面或路由器的配置管理页面。当路由器为新路由器时,终端显示的是首次配置向导页面;当路由器为旧路由器时,终端显示的是配置管理页面。接下来,对前述两种情况进行具体说明。
在一些实施例中,当输入的管理员用户名和密码均正确,并点击登陆按钮后,终端响应于该点击登陆按钮的操作,可向路由器发送页面访问请求。如果该路由器为新路由器,则该路由器响应于该页面访问请求向终端发送首次配置向导页面数据,以使终端显示首次配置向导页面。如果该路由器为旧路由器,则该路由器响应于该页面访问请求向终端发送显示配置管理页面数据。
在一些实施例中,终端在连接到路由器时,若该路由器为新路由器,则主动向终端发送首次配置向导页面数据。如果该路由器为旧路由器,则主动向终端发送配置管理页面数据。终端获取了首次配置向导页面数据或配置管理页面数据后,可响应于点击登陆按钮的操作,可显示首次配置向导页面或配置管理页面。
因此,在本申请实施例中,终端可以利用从路由器接收的是首次配置向导页面数据,还是配置管理页面数据,判断该路由器是新路由器还是就路由器。如果终端从路由器接收的是首次配置向导页面数据,则该路由器为新路由器;如果终端从路由器接收的是配置管理页面数据,则路由器为旧路由器。
在一些实施例中,新路由器的初始无线网络名称中具有初始标签,例如可以为初始网络名称的后2位数字。当对该路由器进行了出厂后配置,则该初始标签会被删除。终端(或者安装在终端上的路由器管理应用)可以通过识别其当前连接的路由器的无线网络名称中是否具有初始标签来判断该路由器是否为新路由器。
步骤404、获取路由器的备份数据。
当步骤402的判断结果表示终端连接的路由器不为新路由器,即为旧路由器时,终端可以执行步骤404。
具体的,终端可以向路由器发送备份数据请求。路由器响应于该请求,向终端发送该路由器的备份数据。
在一些实施例中,获取备份数据的操作为针对配置管理页面的操作。配置管理页面可以如图6所示,其中包括备份数据请求按钮,用户可以点击备份数据请求按钮,以触发终端向路由器发送备份数据请求。
在一些实施例中,终端可以自动向路由器发送备份数据请求。路由器响应于该备份数据请求,向终端发送备份数据。
当配置管理页面具体为路由器管理应用的页面时,终端接收到路由器的备份数据后,可以将备份数据存储在路由器管理应用相关的存储路径中。
备份数据包括路由器的场所特征信息和路由器的出厂后配置信息。其中,本申请各实施例中的场所特征信息也称为特征信息。场所特征信息为用于标识路由器所在场所的信息。出厂后配置信息,也可以称为用户配置信息或者配置信息,是指已经过出厂后配置的路由器,即旧路由器,根据自身的配置状态或者配置数据,生成的出厂后配置信息。具体而言,出厂后配置信息为用户配置的路由器的上网方式、无线网络名称、无线网络密码等的统称。出厂后配置信息可以包括上网方式、无线网络名称、无线网络密码等中的至少一种信息,也可以包括用户配置的其他信息,例如断网时间、重启时间等。
在一些实施例中,备份数据还包括备份数据的标识信息,以标识该备份数据。备份数据的标识信息可以为生成该备份数据的路由器的S/N。如果终端本地具有备份数据,在步骤404中,可以判断本地存储的备份数据中是否具有与终端当前获取的备份数据的标识信息相同的备份数据。如果有,可以将本地存储的与当前获取的备份数据的标识信息相同的备份数据删除,保存当前获取的备份数据。如果没有,则保存当前获取的备份数据。
步骤406,判断终端本地是否具有备份数据,若是,则执行步骤408,若否,则执行步骤416。
当步骤402的判断结果表示终端连接的路由器为新路由器时,终端可以执行步骤406。
备份数据可参考上文介绍,在此不再赘述。
容易理解,终端本地存储的备份数据可以为终端从当前连接的路由器之外的路由器获取的备份数据,也可以为从云服务器获取的备份数据。
步骤408、获取路由器场所特征信息;然后执行步骤410。
具体的,终端可以响应获取场所特征信息的操作,向路由器发送场所特征信息请求。路由器响应于该请求,向终端发送该路由器的场所特征信息。场所特征信息具体可以参考下文介绍,在此不再赘述。
在一些实施例中,获取场所特征信息的操作为针对首次配置向导页面的操作。首次配置向导页面可以如图8所示,其中包括场所特征信息请求按钮,用户可以点击场所特征信息请求按钮,以触发终端向路由器发送场所特征信息请求。
在一些实施例中,在步骤408中,终端可以主动向路由器发送场所特征信息请求,以请求场所特征信息。
步骤410、根据场所特征信息,匹配备份数据。
在一些实施例中,当场所特征信息为多个周围路由器的BSSID时,可以先根据其中的第一BSSID进行匹配。如果匹配到备份数据,且仅匹配到一个备份数据,执行步骤412,向路 由器发送匹配到的备份数据或出厂后配置信息。如果匹配到两个及以上备份数据时,可以根据第二BSSID进行匹配,……,直到仅匹配到一个备份数据,然后执行步骤412。
在一些实施例中,当场所特征信息包括多个优先级场所特征信息时,可以先根据第一优先级场所特征信息进行匹配。如果匹配到备份数据,且仅匹配到一个备份数据,则执行步骤412,向路由器发送匹配到的备份数据或出厂后配置信息。如果匹配到两个及以上备份数据时,可以根据第二优先级场所特征信息进行匹配,……,直到仅匹配到一个备份数据,然后执行步骤412。
在一些实施例中,当通过步骤410匹配到备份数据时,在步骤412中,终端可以将备份数据发送给路由器,以使路由器根据该备份数据中的出厂后配置信息完成自身的配置。
在一些实施例中,当通过步骤410匹配到备份数据时,在步骤412中,可以将备份数据中的出厂后配置信息发送给路由器,以使路由器根据该出厂后配置信息完成自身的配置。
在一些实施例中,当通过步骤410没有匹配到备份数据时,可执行步骤414,终端根据备份数据选择操作,确定备份数据;并向路由器发送确定的备份数据或确定的备份数据操作中的出厂后配置信息。具体的,参阅图9,当终端本地具有备份数据时,终端可以在首次配置向导页面显示选择备份数据按钮。终端可以响应于用户点击选择备份数据按钮的操作,显示备份数据列表(未示出),其中显示了终端本地存储的备份数据。用户可以点击备份数据列表中的某一备份数据,终端响应于用户的操作,确定该备份数据为用户选择的备份数据,并将该备份数据或该备份数据中的出厂后配置信息发送给路由器。
在一些实施例中,当通过步骤410没有匹配到备份数据时,用户可以通过首次配置向导页面对路由器进行配置。具体可以参考下文对步骤416和418的介绍,在此不再赘述。
当步骤406的判断结果表示终端本地没有存储有备份数据,终端可执行步骤416,响应于出厂后配置操作,向路由器发送配置指令,以对该路由器进行出厂后配置。具体的,用户可以通过图8所示的首次配置向导页面进行配置操作,以触发终端向路由器发送配置指令。具体的,用户可以通过操作终端的输入设备,分别向首次配置向导页面中的上网方式、无线网络名称、无线网络密码等对应的输入框,输入响应的配置信息,例如向无线网络名称对应的输入框输入“X公司”,终端响应于输入框中的内容变更事件,生成并向路由器发送一条配置指令,该配置指令用于配置路由器的无线网络名称;再例如,向无线网络密码对应的输入框输入“123456”,终端响应于输入框中的内容变更事件,生成并向路由器发送一条配置指令,该配置指令用于配置路由器的无线网络密码;等等,此处不再一一列举。
当用户完成针对该路由器的出厂后配置时,可以点击首次配置向导页面上的配置完成按钮。
容易理解,在路由器完成出厂后配置后,生成备份数据。备份数据可以参考下文介绍,在此不再赘述。
在一些实施例中,步骤406也可以在步骤408和步骤410之后执行。即当通过步骤402判断终端当前连接的路由器为新路由器时,终端可以执行步骤408,然后执行步骤410。通过步骤410没有匹配到备份数据时,终端可执行判断其本地是否具有备份数据的步骤。
在一些实施例中,步骤406也可以与步骤410合并执行。具体的,即当通过步骤402判断终端当前连接的路由器为新路由器时,且终端执行了步骤408后,在执行步骤410时,发现本地无备份数据可供匹配,则可以判断本地没有备份数据。
在一些实施例中,在步骤416之后,终端可执行步骤418,获取路由器的备份数据。具体的,终端响应于针对配置完成按钮的配置操作,可向路由器发送配置管理页面访问请求。 响应于该请求,路由器向终端发送配置管理页面数据。终端根据配置管理页面数据显示配置管理页面。该配置管理页面可以如图6所示。用户可以点击配置管理页面中的备份数据请求,触发终端向路由器发送备份数据请求。路由器响应于该备份数据请求,向终端发送备份数据。或者,在另一些实施例中,路由器可以在被配置完成后,主动向终端发送路由器的备份数据。
接下来,对备份数据中的出厂后配置信息进行举例介绍。
容易理解,旧路由器具有出厂后配置信息。出厂后配置可以包括配置上网方式(例如拨号上网、动态主机设置协议(dynamic host configuration protocol,DHCP)上网)、无线网络名称(例如Wi-Fi名称)、无线网络密码(例如Wi-Fi密码)等配置,相应的,出厂后配置信息可以包括上网方式、无线网络名称、无线网络密码等。在一个例子中,该旧路由器的出厂后配置可以为,用户使用浏览器访问http://192.168.1.1/,输入管理员用户名(例如admin)、初始密码,登陆成功后,对路由器进行的出厂后配置。在另一个例子中,该旧路由器的出厂后配置为,在之前的某一时刻,用户使用当前使用的终端100或其他终端对该路由器进行的出厂后配置。
在一些实施例中,本申请实施例提供的无线路由器可以具备自动断网功能。用户可以配置路由器的断网时间,以实现路由器的自动断网。例如,用户可以设置断网时间,达到限制儿童上网时间的目的。用户可以通过上述方式或类似方式配置断网时间。因此,在本申请实施例中,出厂后配置信息还可以包括断网时间。
在一些实施例中,本申请实施例提供的无线路由器可以具备自动重启功能。用户可以配置路由器的重启时间,以实现路由器的自动重启。例如,可以设定用户一般18:00到家,可以将重启时间设置为18:00。在用户离家时,可以关闭路由器。当到18:00,路由器可以自动重启,以方便用户上网。因此,在本申请实施例中,出厂后配置信息还可以包括重启时间。
需要说明的是,在本申请实施例中,以出厂后配置信息包括上网方式、无线网络名称、无线网络密码、断网时间、重启时间等信息为例,对出厂后配置信息进行举例说明,并非穷举。出厂后配置信息可以是对在路由器出厂后,用户对路由器自定义配置的信息的统称。
容易理解,用户是根据路由器所在场景对路由器进行配置的,例如根据场所对应的有线网络配置路由器的上网方式,根据场所的用途设置无线网络名称、无线网络密码、断网时间、重启时间等。以公司场所的路由器为例,为其无线网络名称、无线网络密码等一般与公司信息相关,断网时间、重启时间等一般与工作时间相关。在以个人居住场所的路由器为例,为其配置的无线网络名称、无线网络密码一般与个人相关信息相关,断网时间、重启时间等一般与个人需求相关。
在本申请实施例中,用于标识路由器所在场所的信息可称为该路由器的场所特征信息。本申请实施例提供的路由器配置方法可以将路由器的场所特征信息和该路由器的出厂后配置信息进行关联或绑定,以得到备份数据。
接下来,对备份数据中的场所特征信息进行举例说明。
一般而言,无线路由器发射的无线信号最大传输距离可达几十米,甚至上百米。因此对于居住房屋等小型场所中的路由器,其无线覆盖范围大于场所范围。并且通常而言,场所部分甚至全部位于另一场所中路由器的无线覆盖范围内。可参阅图7。可以设定场所A、B、C、D(未示出)为相邻的场所。在场所A、B、C、D中依次设置有路由器A、B、C、D。路由器A、B互相位于彼此的无线覆盖范围内,可以互相获取彼此的信号,进而获取彼此的信息。路由器B、C互相位于彼此的无线覆盖范围内,可以互相获取彼此的信号,进而获取彼此的信息。该信息可以包括服务集标识(Service Set Identifier,SSID)或基本服务集标识符(Basic  Service Set Identifier,BSSID)。其中,路由器的BSSID是该路由器的数据链路层的介质访问控制(Media Access Control,MAC)地址,可用于标识路由器。
一般而言,用户不会轻易移动路由器的位置,即路由器的位置通常会固定不变。换言之,路由器的无线覆盖的场所很少变化的。因此,本申请实施例提供的路由器可以将其周围路由器的特征信息作为其场所特征信息,以标识其所在的场所。以路由器B为例,其接收到路由器A和C的无线信号,可以记录路由器A和C的BSSID,以作为路由器B场所特征信息,用来标识路由器B的场所。以路由器C为例,其接收到路由器B信号,可以记录路由器B的BSSID,作为路由器C的场所特征信息。
上文仅以路由器利用两个或一个周围路由器来标识自身所在场所为例,对路由器通过周围路由器来标识自身位置进行了说明,并不限制路由器为标识自身场而利用的其他路由器的个数,路由器可以利用三个或者更多个周围路由器来更精确地标识自身所在场所。
需要说明的是,在本申请实施例中,对于任一路由器而言,其周围路由器是指该路由器接收到的无线信号的源头路由器。以路由器A、B为例,当路由器A可以接收到路由器B的无线信号,则路由器B属于路由器A的周围路由器。
在一些实施例中,当路由器接收到多个周围路由器的信号时,可以根据信号强度对路由器进行排序,并优先保存排序结果靠前的路由器的BSSID作为场所特征信息。例如,路由器A的周围路由器有路由器B、C、D(未示出)、E(未示出)、F(未示出)。其中,对路由器A而言,路由器B、C、D的均强于路由器E、F,则路由器A可以将路由器B、C、D的BSSID作为路由器A的场所特征信息。
进一步地,路由器还可利用其接收到的周围路由器的信号强弱来更精确的标识自身所在场所。仍参阅图1,以路由器A为例,其可以记录路由器B和C的BSSID,还可以记录接收的路由器B和C的无线信号的强度,作为路由器A的场所特征信息。可以设定路由器D(未示出)也可以接收录路由器B和C的无线信号,则路由器D可以记录路由器B和C的BSSID、无线信号的强度,以作为路由器D的场所特征信息。当路由器D记录的无线信号强度和路由器A记录的无线信号的强度不同时,可以认为路由器D和路由器A所在的场所不同。
在一些实施例中,无线信号的强度具体可以为无线信号的接收信号强度指示(Received Signal Strength Indicator,RSSI)。
在一些实施例中,路由器可以按照预设周期采集其周围路由器的特征信息以及无线信号的强度,以更新其场所特征信息。该预设周期可以为一天,也可以为一周,也可以为一个月,等,本实施例不对预设周期进行具体限制。
在一些实施例中,当路由器为有线路由器时,即当路由器为将宽带网络等有线网络转换成无线网络的设备时,因此,对应特定的场所,当路由器连接上该场所网线,且该场所对应网络具有静态互联网协议(Internet Protocol,IP)地址时,可以将该IP地址作为路由器的场所特征信息,用于标识路由器所在的场所。
对于特定的场所,接入该场所的网线所连接的上游网络设备或者网络接口是特定的。因此,场所对应的上游网络设备或网络接口的特征信息可以作为该场所中路由器的场所特征信息,用于标识路由器所在的场所。在一个例子中,上游网络设备可以为光调制解调器(optical modem),即光猫,其特征信息可以为其MAC地址。
用户可能会对已进行过出厂后配置的路由器进行恢复出厂设置。容易理解,一般而言,对于一个路由器,进行了恢复出厂设置后,会大概率在原来场所继续使用。因此,将路由器的标识作为场所特征信息,也可以用于标识该路由器所在的场所。
在一些实施例中,路由器的标识具体可以为该路由器的序列号(serial number,S/N)。对于任一路由器而言,其铭牌上打印序列号,可唯一标识该路由器。路由器可以获取其自身的序列号,以作为其场所特征信息。
在一些实施例中,路由器的标识具体可以为该路由器生成的通用唯一识别码(universally unique identifier,UUID)。
在一些实施例中,对于任一路由器而言,其可以将周围路由器的BSSID等特征信息、场所对应的IP地址、场所对应的上游网络设备或网络接口的特征信息、其自身标识信息中的一种或多种作为其场所特征信息。在一些示例中,场所特征信息还可以包括周围路由器的信号强度,周围路由器的信号强度可以联合其他场所特征信息(例如周围路由器的BSSID等)来标识路由器所在场所,以提高路由器所在场所的识别精度。
在这些实施例中的一个示例中,可以为上述不同的信息设置优先级。例如,周围路由器的BSSID属于第一优先级的场所特征信息,周围路由器的信号强度属于第二优先级的场所特征信息;再例如,路由器自身标识属于第一优先级的场所特征信息,周围路由器的BSSID属于第二优先级的场所特征信息;等等,此处不再一一列举。
接下来,对备份数据进行举例介绍。
路由器可以根据其场所特征信息和出厂后配置信息,生成备份数据。生成的备份数据包含场所特征信息和出厂后配置信息。
在一些实施例中,路由器可以将场所特征信息、出厂后配置信息记录到一数据表中,以得到备份数据。以路由器1的周围路由器包括路由器2、3、4等为例。
在这些实施例的一个示例中,路由器1的备份数据的数据记录形式可以如表1所示。
表1
Figure PCTCN2020100021-appb-000001
在该示例中,这三个BSSID中各BSSID均可用于标识路由器1的场所。当这三个BSSID中的一个或两个也用于标识其他路由器的场所时,则这三个BSSID中两个或全部联合标识路由器1的场所,以区分其他路由器的场所。
在这些实施例的一个示例中,路由器1的记录的备份数据的数据记录形式可以如表2所示。
表2
场所特征信息 出厂后配置信息
路由器2:BSSID2 上网方式:拨号上网
路由器3:BSSID3 Wi-Fi名称:X公司
路由器4:BSSID4 Wi-Fi密码:123456
路由器2:RSSI2 断网时间:18:00
路由器3:RSSI3 重启时间:9:00
路由器4:RSSI4  
在该示例中,这三个BSSID中各BSSID均可用于标识路由器1的场所。当这三个BSSID也用于标识其他路由器的场所时,则这三个BSSID联合对应的RSSI来标识路由器1的场所。
在这些实施例的一个示例中,路由器1的记录的备份数据的数据记录形式可以如表3所示。
表3
Figure PCTCN2020100021-appb-000002
在该示例中,第一优先级中的各BSSID均可用于标识路由器1的场所。当第一优先级中的各BSSID也用于标识其他路由器的场所时,则第一优先级可以联合第二优先级来标识路由器1的场所。
在这些实施例的一个示例中,路由器1的记录的备份数据的数据记录形式可以如表4所示。
表4
Figure PCTCN2020100021-appb-000003
在该示例中,当S/N和新路由器匹配不上时,可以根据第二优先级中各BSSID和新路由器进行匹配。
通过本申请实施例提供的路由器配置方法,可以对路由器的出厂后配置信息进行备份,并且结合路由器的场所特征信息,生成备份数据;当新路由器需要进行出厂后配置时,可以从终端获取与其所在场所匹配的备份数据,以使新路由器获得与所在场所匹配的出厂后配置。
在一个实施例中,提供了一种路由器配置方法。参考图10。包括如下步骤。
步骤1000、旧路由器1根据其第一场所特征信息和其第一出厂后配置信息,生成第一备份数据。其中,旧路由器1位于第一场所中,并且旧路由器1之前已经被进行过出厂后配置。
步骤1002、旧路由器1向终端发送第一备份数据。具体的,当终端位于第一场所中,且连接到旧路由器1时,终端可以向旧路由器1发送备份数据请求。旧路由器1可以响应于该 备份数据请求向终端发送第一备份数据。或者,旧路由器1可以主动向终端发送备份数据。其中,第一备份数据包括第一场所特征信息和旧路由器1的出厂后配置信息。
步骤1004、旧路由器2根据其第二场所特征信息和其第二出厂后配置信息,生成第二备份数据。其中,旧路由器2位于第二场所中,并且旧路由器2之前已经被进行过出厂后配置。
步骤1006、旧路由器2向终端发送第二备份数据。具体的,当终端位于第二场所中,且连接到旧路由器2时,旧路由器2可以主动向终端发送备份数据,或者,旧路由器2可以根据终端的请求向终端发送备份数据。其中,第二备份数据包括第二场所特征信息和旧路由器2的出厂后配置信息。
步骤1008、新路由器1向终端发送第一场所特征信息。具体的,当旧路由器1恢复出厂设置变成新路由器1,且仍处于原场所时,新路由器1可以获取旧路由器对应的场所特征信息,即第一场所特征信息,并发送给终端。
步骤1010、终端可以根据第一场所特征信息,确定第一备份数据。
步骤1012、终端向新路由器1发送第一备份数据,以使新路由器1根据第一备份信息完成自身的出厂后配置。
步骤1014、新路由器2向终端发送第二场所特征信息。具体的,当旧路由器2被新路由器2替换掉时,新路由器2可以获取旧路由器2所在场所的场所特征信息,即第二场所特征信息,并发送给终端。
步骤1016、终端可以根据第二场所特征信息,确定第二备份数据。
步骤1018、终端向新路由器2发送第二备份数据,以使新路由器2根据第二备份信息完成自身的出厂后配置。
需要说明的时,上文以旧路由器1、新路由器1、旧路由器2、新路由器2为例,对本实施例的方案进行了示例说明,本实施例可以只包括步骤1000、1002、1008、1010、1012,也可以只包括步骤1004、1006、1014、1016、1016。在本实施例提供的方案中,终端可以管理一对新旧路由器,也可以管理多对新旧路由器。
通过本实施例提供的路由器配置方法可以对路由器的配置信息进行备份,并且结合路由器的场所特征信息,生成备份数据;当新路由器需要进行配置时,可以从终端获取与其所在场所匹配的备份数据,以使新路由器获得与所在场所匹配的配置。
在一个实施例中,提供了一种备份数据确定方法。在该实施例中,场所特征信息包括第一优先级场所特征信息和第二优先级场所特征信息,其中,第一优先级场所特征信息例如为路由器的S/N,第二优先级场所特征信息例如为路由器的信号最强的三个周围路由器的BSSID。参考图11、该方法包括如下步骤。
步骤1100、终端获取新路由器的场所特征信息。其中,场所特征信息包新路由器的S/N。一般而言,对于一个路由器,进行了恢复出厂设置后,会大概率在原来场所继续使用。因此,在这一场景下,新路由器的S/N作为新路由得场所特征信息,以用于标识该路由器所在的场所。
在步骤1102中,终端先判断新路由器的S/N是否和备份数据中的S/N一致;
如果一致,终端执行步骤1106,向路由器发送备份数据。
如果不一致,终端再在步骤1104中判断新路由器信号最强的三个周围路由器中至少一个的BSSID和备份数据中的BSSID是否一致(如果只接收到一个或两个或三个路由器的信号,则判断这一个或两个或三个路由器至少一个的BSSID和备份数据中的BSSID是否一致)。
如果一致,终端执行步骤1106,向路由器发送备份数据。
如果不一致,则终端执行步骤1108,根据备份数据选择操作确定备份数据,并向新路由器发送确定的备份数据。具体的,响应于用户的操作,终端可以显示备份数据列表,其中可以包括至少一个备份数据。用户可进行备份数据选择操作以选择备份数据列表中的一个备份数据。终端响应于备份数据选择操作,确定备份数据,进而向新路由器发送确定的备份数据。
在一个实施例中,提供了一种路由器配置方法。参阅图12A,该方法包括以下步骤。
步骤1200a、终端向路由器A发送配置指令。
具体的,处于场所1内的路由器A为新路由器,新路由器是指从未进行过出厂后配置的新路由器。新路由器也可以是指为之前进行过出厂后配置,现恢复出厂设置的路由器。用户可以开启路由器A,以提供了无线覆盖。处于场所1内的终端1安装有路由器管理应用。当终端1连接到路由器A时,用户可以开启路由器管理应用。用户通过输入管理员用户名以及密码,成功登陆路由器管理应用。终端可以显示首次配置向导页面。此时终端本地没有存储备份数据。用户可以基于首次配置向导页面进行出厂后配置操作,响应于用户的操作,终端向路由器发送配置指令,以配置路由器的上网方式、无线网络名称、无线网络密码等。
步骤1202a、路由器A获取场所1的场所特征信息。具体可以参考上文对图4所示的方法实施例的介绍,在此不再赘述。
步骤1204a、路由器A生成备份数据。具体可以参考上文对图4所示的方法实施例的介绍,在此不再赘述。
步骤1206a、路由器A向终端1发送备份数据。具体可以参考上文对图4所示的方法实施例的介绍,在此不再赘述。
终端接收到备份数据后,可以将备份数据存储到路由器管理应用的相关存储路径下。
参阅图12B,该方法还包括以下步骤。
步骤1200b、路由器B获取场所1的场所特征信息。
场所1内的路由器A被路由器B替换,路由器B可以代替路由器A为场所1提供无线覆盖。终端1连接到路由器B后,终端1可以判断路由器B是否为新路由器。对新路由器的定义可以参考上文对步骤1200a的介绍,在此不再赘述。终端1确定路由器B为新路由器时,可以显示如图13A所示的页面,以提示用户是否对该路由器进行配置。
用户可以点击图13A所示页面中的立即配置按钮,以触发终端1向路由器B发送场所特征信息请求。响应于场所特征信息请求,路由器B将其获取的场所1的特征信息发送给终端1。
其中,路由器B开启后,路由器B可以自动获取场所1的场所特征信息。或者,路由器B可以响应于终端1发送的场所特征信息请求,获取场所1的场所特征信息,然后将获取的场所特征信息发送给终端1。
步骤1202b、路由器B向终端1发送场所1的场所特征信息。
当终端1连接到路由器B时,终端1可以判断路由器B是否为新路由器。对新路由器的定义可以参考上文对步骤1200a的介绍,在此不再赘述。终端1确定路由器B为新路由器时,可以显示如图13所示的页面,以提示用户是否对该路由器进行配置。
用户可以点击图13所示页面中的立即配置按钮,以触发终端1向路由器B发送场所特征信息请求。响应于场所特征信息请求,路由器B将其获取的场所1的特征信息发送给终端1。
步骤1204b、终端1根据场所1的场所特征信息匹配备份数据。
当通过步骤1204b,匹配到一个备份数据时,终端1可以显示如图13B所示的页面。在 该页面上可以显示该备份数据中的出厂后配置信息,例如上网方式:PPPOE,Wi-Fi:wodewifi,Wi-Fi密码:12345678等。
步骤1206b、终端1向路由器B发送备份数据。
如图13B所示的页面,用户可以选择该备份数据,响应于用户的选择,终端1可以将步骤1204b匹配到的备份数据发送给路由器B。路由器B接收到备份数据后,可以获取其中的出厂后配置信息,从而可进行自身的出厂后配置。终端1可以显示路由器B进行出厂后配置的相关进程。具体如下。
终端1可以显示图13C所示的页面。如图13C所示,路由器B可以先根据备份数据中的“上网方式:PPPOE”等网络配置相关信息进行网络配置。
终端1可以显示图13D所示的页面。如图13D所示,当进行了网络配置后,路由器B可以根据备份数据中的“Wi-Fi:wodewifi”、“Wi-Fi密码:12345678”的Wi-Fi相关信息进行Wi-Fi配置。
在一些实施例中,如图13D所示,在进行Wi-Fi配置时,终端可以显示修改按钮。用户可以通过点击修改按钮进行Wi-Fi相关信息的修改页面(未示出),修改Wi-Fi相关信息。例如可以修改Wi-Fi名称,也可以修改Wi-Fi密码。
终端1可以显示图13E所示的页面。如图13E所示,在进行了Wi-Fi配置后,如果备份数据中具有“管理密码:12345678”、儿童上网保护等安全配置相关信息,路由器B可以根据备份数据中的安全配置相关信息进行安全配置。在本实施例中,管理密码具体是指用于访问路由器的配置管理页面或首次配置向导页面需要使用的密码,即管理员用户名(例如admin)对应的密码。在一个例子中,管理密码具体是在访问http://192.168.1.1/时,需要的密码。儿童上网保护的配置信息包括断网时间等信息。
在一些实施例中,如图13E所示,在进行安全配置时,终端可以显示修改按钮。用户可以通过点击修改按钮进行安全配置相关信息的修改页面(未示出),修改安全配置相关信息。例如可以修改管理密码,也可以修改断网时间。
终端1可以显示图13F所示的页面。如图13F所示,在进行了安全配置之后,如果备份数据中包括“绑定账号:12345678”的绑定账号配置信息,路由器B可以根据备份数据中的绑定账号配置信息进行绑定账号配置。在一个例子中,绑定账号中的账号具体可以为云账号,该云账号为用户自定义,并且符合路由器供应商规则的云帐号。以华为路由器为例,管理员用户名可以为用户自定义的华为云账号,例如手机号码等。
终端1可以显示图13G所示的页面,以提示用户路由器B的出厂后配置已完成。
需要说明的是,图13C-图13G这几个页面是路由器B进行配置的过程。根据路由器B配置的过程,这几个页面依次自动显示,其中无需用户的操作。
在路由器B的进行出厂后配置后,路由器B的用户名可能被修改。若路由器B的用户名被修改之后,终端1可以重新连接路由器B,以便通过路由器B提供的无线网络访问互联网。
需要说明的是,本申请各实施例中的页面,也可以描述为界面。即这些页面可以理解为终端上显示的用户界面。
通过本实施例提供的路由器配置方法可以对路由器的配置信息进行备份,并且结合路由器的场所特征信息,生成备份数据;当新路由器需要进行配置时,可以从终端获取与其所在场所匹配的备份数据,以使新路由器获得与所在场所匹配的配置。
综合以上,本申请实施例提供了一种路由器配置方法,其执行主体为终端。如图14所示,该方法包括如下步骤。
步骤1400、终端连接第一路由器;
步骤1402、若所述第一路由器为未经配置的路由器时,所述终端从所述第一路由器接收第一特征信息;所述第一特征信息为用于标识所述第一路由器所在的第一场所的信息;
步骤1404、所述终端判断所述第一特征信息与所述终端中存储的备份数据是否匹配;
步骤1406、若所述终端中的第一备份数据中的第二特征信息和所述第一特征信息匹配时,所述终端向所述第一路由器发送所述第一备份数据或所述第一备份数据中的配置信息,所述配置信息用于配置所述第一路由器;其中,所述第一备份数据包括第二特征信息和配置信息。
在一些实施例中,配置信息具体为出厂后配置信息。
在一些实施例中,所述第一特征信息包括以下至少一种:
至少一个路由器的特征信息、所述第一场所对应的有线网络的IP地址、所述第一场所对应的网络设备的特征信息、所述第一路由器的自身标识信息;其中,
所述至少一个路由器中各路由器发射的无线信号足以被所述第一路由器接收。
在这些实施例的一个示例中,当所述第一特征信息包括所述至少一个路由器的特征信息时;所述第二特征信息和所述第一特征信息匹配具体为:所述至少一个路由中的一个路由器的特征信息和所述第二特征信息中的一个路由器的特征信息相同。
在这些实施例的一个示例中,所述第一备份数据为一个备份数据;所述第一特征信息包括至少一个路由器的特征信息、所述第一场所对应的有线网络的IP地址、所述第一场所对应的网络设备的特征信息、所述第一路由器的自身标识信息中的至少两种信息,所述至少两种信息中各种信息具有不同的优先级;在若所述第二特征信息和所述第一特征信息匹配时,所述终端向所述第一路由器发送所述第一备份数据或所述第一备份数据中的配置信息之前,所述方法还包括:依据所述各种信息的优先级,顺次根据所述各种信息与备份数据进行匹配,直至确定出所述第一备份数据。
在一些实施例中,所述方法还包括:若所述终端中没有与所述第一特征信息相匹配的备份数据,且所述终端中存储有至少一个第二备份数据,则所述终端显示所述至少一个第二备份数据;响应于用户对所述至少一个第二备份数据中的一个第二备份数据的选择,所述终端将用户选择的第二备份数据或者第二备份数据中的配置信息发送给所述第一路由器,以配置所述第一路由器。
在一些实施例中,在所述终端连接所述第一路由器之前,所述方法还包括:所述终端连接第二路由器,所述第二路由器位于所述第一场所;所述终端基于用户的操作配置所述第二路由器;所述终端接收并存储配置后的所述第二路由器发送的所述第一备份数据,其中所述第一备份数据中的第二特征信息为所述第二路由器获取的,所述第一备份数据中的配置信息为所述第二路由器的配置信息。
在一些实施例中,所述若所述终端中的第一备份数据中的第二特征信息和所述第一特征信息匹配时,所述终端向所述第一路由器发送所述第一备份数据或所述第一备份数据中的配置信息,包括:若所述终端中的第一备份数据中的第二特征信息和所述第一特征信息匹配时,所述终端显示所述第一备份数据;响应于用户对所述第一备份数据的选择,所述终端向所述第一路由器发送所述第一备份数据或所述第一备份数据中的配置信息。
在一些实施例中,所述配置信息包括以下至少一项:
上网方式、无线网络名称、无线网络密码、管理密码、绑定账号。
图14所示的方法具体可以参考图4、图10、图11、图12A和图12B所示的方法实施例实现,在此不再赘述。
通过本实施例提供的路由器配置方法可以对路由器的配置信息进行备份,并且结合路由器的场所特征信息,生成备份数据;当新路由器需要进行配置时,可以从终端获取与其所在场所匹配的备份数据,以使新路由器获得与所在场所匹配的配置。
本申请实施例提供了一种路由器配置方法,其执行主体为路由器。如图15所示,该方法包括如下步骤。
步骤1500、所述第一路由器连接终端;
步骤1502、若所述第一路由器为未经配置的路由器时,所述第一路由器向所述终端发送第一特征信息;所述第一特征信息为用于标识所述第一路由器所在的第一场所的信息;
步骤1504、所述第一路由器从所述终端接收第一备份数据或所述第一备份数据中的配置信息;所述第一备份数据包括第二特征信息和所述配置信息,所述第二特征信息与所述第一特征信息相匹配;
步骤1506、所述第一路由器根据所述配置信息进行配置。
在一些实施例中,配置信息具体为出厂后配置信息。
在一些实施例中,所述第一特征信息包括以下至少一种:
至少一个路由器的特征信息、所述第一场所对应的有线网络的IP地址、所述第一场所对应的网络设备的特征信息、所述第一路由器的自身标识信息;其中,
所述至少一个路由器中各路由器发射的无线信号足以被所述第一路由器接收。
在这些实施例的一个示例中,当所述第一特征信息包括所述至少一个路由器的特征信息时;所述第一特征信息和所述第二特征信息匹配具体为:所述至少一个路由中的一个路由器的特征信息和所述第二特征信息中的一个路由器的特征信息相同。
在这些实施例的一个示例中,所述第一特征信息包括所述至少一个路由器的特征信息;在所述第一路由器向所述终端发送第一特征信息之前,所述方法还包括:
接收所述第一路由器周围的多个路由器的无线信号;
基于所述多个路由器中各路由器的无线信号的信号强度,确定所述至少一个路由器。
在一些实施例中,所述配置信息包括以下至少一项:
上网方式、无线网络名称、无线网络密码、管理密码、绑定账号。
图15所示的方法具体可以参考图4、图10、图11、图12A和图12B所示的方法实施例实现,在此不再赘述。
通过本实施例提供的路由器配置方法可以对路由器的配置信息进行备份,并且结合路由器的场所特征信息,生成备份数据;当新路由器需要进行配置时,可以从终端获取与其所在场所匹配的备份数据,以使新路由器获得与所在场所匹配的配置。
本申请实施例提供了一种装置1600。装置1600可以设置于终端。如图16所示,装置1600包括:
连接单元1610,用于连接第一路由器;
接收单元1620,用于若所述第一路由器为未经配置的路由器时,从所述第一路由器接收第一特征信息;所述第一特征信息为用于标识所述第一路由器所在的第一场所的信息;
判断单元1630,用于判断所述第一特征信息与所述终端中存储的备份数据是否匹配;
发送单元1640,用于若所述终端中的第一备份数据中的第二特征信息和所述第一特征信息匹配时,向所述第一路由器发送所述第一备份数据或所述第一备份数据中的配置信息,所述配置信息用于配置所述第一路由器;其中,所述第一备份数据包括第二特征信息和配置信息。
装置1600的各功能单元的功能,可参照上文如图14所示的各方法实施例实现。
通过本实施例提供的装置可以对路由器的配置信息进行备份,并且结合路由器的场所特征信息,生成备份数据;当新路由器需要进行配置时,可以从终端获取与其所在场所匹配的备份数据,以使新路由器获得与所在场所匹配的配置。
本申请实施例提供了一种装置1700。装置1700可以设置于路由器。如图17所示,装置1700包括:
连接单元1710,用于连接终端;
发送单元1720,用于若所述第一路由器为未经配置的路由器时,向所述终端发送第一特征信息;所述第一特征信息为用于标识所述第一路由器所在的第一场所的信息;
接收单元1730,用于从所述终端接收第一备份数据或所述第一备份数据中的配置信息;所述第一备份数据包括第二特征信息和所述配置信息,所述第二特征信息与所述第一特征信息相匹配;
配置单元1740,用于根据所述配置信息进行配置。
装置1700的各功能单元的功能,可参照上文如图15所示的各方法实施例实现。
通过本实施例提供的装置可以对路由器的配置信息进行备份,并且结合路由器的场所特征信息,生成备份数据;当新路由器需要进行配置时,可以从终端获取与其所在场所匹配的备份数据,以使新路由器获得与所在场所匹配的配置。
上文主要从方法流程的角度对本申请实施例提供的装置进行了介绍。可以理解的是,各个电子设备为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
本申请实施例可以根据图14所示的各方法实施例或图15所示的各方法实施例对电子设备等进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。需要说明的是,本申请实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。
本申请实施例提供了提供了一种终端。参阅图18,该终端包括处理器1810、存储器1820、收发器1830。其中,所述存储器用于存储计算机执行指令;当所述终端运行时,所述处理器1810执行所述存储器1820存储的所述计算机执行指令,以使所述终端执行图14所示的方法。其中,收发器1830用于连接第一路由器;收发器1830,用于若所述第一路由器为未经配置的路由器时,从所述第一路由器接收第一特征信息;所述第一特征信息为用于标识所述第一路由器所在的第一场所的信息;处理器1810,用于判断所述第一特征信息与所述终端中存储的备份数据是否匹配;收发器1830,用于若所述终端中的第一备份数据中的第二特征信息和所述第一特征信息匹配时,向所述第一路由器发送所述第一备份数据或所述第一备份数据中的配置信息,所述配置信息用于配置所述第一路由器;其中,所述第一备份数据包括第二特征信息和配置信息。
在一些实施例中,该终端还包括通信总线1840,其中,处理器1810可通过通信总线1840与存储器1820、收发器1830连接,从而可实现根据存储器1820存储的计算机执行指令,对 收发器1830进行相应控制。
本申请实施例的终端各个部件/器件的具体实施方式,可参照上文如图14所示的各方法实施例实现,此处不再赘述。
由此,可以对路由器的配置信息进行备份,并且结合路由器的场所特征信息,生成备份数据;当新路由器需要进行配置时,可以从终端获取与其所在场所匹配的备份数据,以使新路由器获得与所在场所匹配的配置。
本申请实施例提供了提供了一种路由器。参阅图19,该路由器包括处理器1910、存储器1920、收发器1930。其中,所述存储器用于存储计算机执行指令;当所述路由器运行时,所述处理器1910执行所述存储器2520存储的所述计算机执行指令,以使所述路由器执行图15所示的方法。其中,收发器1930用于连接终端;收发器1930,用于若所述第一路由器为未经配置的路由器时,向所述终端发送第一特征信息;所述第一特征信息为用于标识所述第一路由器所在的第一场所的信息;收发器1930,用于从所述终端接收第一备份数据或所述第一备份数据中的配置信息;所述第一备份数据包括第二特征信息和所述配置信息,所述第二特征信息与所述第一特征信息相匹配;收发器1930,用于根据所述配置信息进行配置。
在一些实施例中,该路由器还包括通信总线1940,其中,处理器1910可通过通信总线1940与存储器1920、收发器1930连接,从而可实现根据存储器1920存储的计算机执行指令,对收发器1930进行相应控制。
本申请实施例的路由器各个部件/器件的具体实施方式,可参照上文如图15所示的各方法实施例实现,此处不再赘述。
由此,可以对路由器的配置信息进行备份,并且结合路由器的场所特征信息,生成备份数据;当新路由器需要进行配置时,可以从终端获取与其所在场所匹配的备份数据,以使新路由器获得与所在场所匹配的配置。
可以理解的是,本申请的实施例中的处理器可以是中央处理单元(central processing unit,CPU),还可以是其他通用处理器、数字信号处理器(digital signal processor,DSP)、专用集成电路(application specific integrated circuit,ASIC)、现场可编程门阵列(field programmable gate array,FPGA)或者其他可编程逻辑器件、晶体管逻辑器件,硬件部件或者其任意组合。通用处理器可以是微处理器,也可以是任何常规的处理器。
本申请的实施例中的方法步骤可以通过硬件的方式来实现,也可以由处理器执行软件指令的方式来实现。软件指令可以由相应的软件模块组成,软件模块可以被存放于随机存取存储器(random access memory,RAM)、闪存、只读存储器(read-only memory,ROM)、可编程只读存储器(programmable rom,PROM)、可擦除可编程只读存储器(erasable PROM,EPROM)、电可擦除可编程只读存储器(electrically EPROM,EEPROM)、寄存器、硬盘、移动硬盘、CD-ROM或者本领域熟知的任何其它形式的存储介质中。一种示例性的存储介质耦合至处理器,从而使处理器能够从该存储介质读取信息,且可向该存储介质写入信息。当然,存储介质也可以是处理器的组成部分。处理器和存储介质可以位于ASIC中。
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者通 过所述计算机可读存储介质进行传输。所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘(solid state disk,SSD))等。
可以理解的是,在本申请的实施例中涉及的各种数字编号仅为描述方便进行的区分,并不用来限制本申请的实施例的范围。

Claims (16)

  1. 一种路由器配置方法,其特征在于,所述方法包括:
    终端连接第一路由器;
    若所述第一路由器为未经配置的路由器时,所述终端从所述第一路由器接收第一特征信息;所述第一特征信息为用于标识所述第一路由器所在的第一场所的信息;
    所述终端判断所述第一特征信息与所述终端中存储的备份数据是否匹配;
    若所述终端中的第一备份数据中的第二特征信息和所述第一特征信息匹配时,所述终端向所述第一路由器发送所述第一备份数据或所述第一备份数据中的配置信息,所述配置信息用于配置所述第一路由器;其中,所述第一备份数据包括第二特征信息和配置信息。
  2. 根据权利要求1所述的方法,其特征在于,所述第一特征信息包括以下至少一种:
    至少一个路由器的特征信息、所述第一场所对应的有线网络的IP地址、所述第一场所对应的网络设备的特征信息、所述第一路由器的自身标识信息;其中,
    所述至少一个路由器中各路由器发射的无线信号足以被所述第一路由器接收。
  3. 根据权利要求2所述的方法,其特征在于,当所述第一特征信息包括所述至少一个路由器的特征信息时;所述第二特征信息和所述第一特征信息匹配具体为:所述至少一个路由中的一个路由器的特征信息和所述第二特征信息中的一个路由器的特征信息相同。
  4. 根据权利要求2所述的方法,其特征在于,所述第一备份数据为一个备份数据;所述第一特征信息包括至少一个路由器的特征信息、所述第一场所对应的有线网络的IP地址、所述第一场所对应的网络设备的特征信息、所述第一路由器的自身标识信息中的至少两种信息,所述至少两种信息中各种信息具有不同的优先级;
    在若所述第二特征信息和所述第一特征信息匹配时,所述终端向所述第一路由器发送所述第一备份数据或所述第一备份数据中的配置信息之前,所述方法还包括:依据所述各种信息的优先级,顺次根据所述各种信息与备份数据进行匹配,直至确定出所述第一备份数据。
  5. 根据权利要求1-4任一项所述的方法,其特征在于,所述方法还包括:
    若所述终端中没有与所述第一特征信息相匹配的备份数据,且所述终端中存储有至少一个第二备份数据,则所述终端显示所述至少一个第二备份数据;
    响应于用户对所述至少一个第二备份数据中的一个第二备份数据的选择,所述终端将用户选择的第二备份数据或者第二备份数据中的配置信息发送给所述第一路由器,以配置所述第一路由器。
  6. 根据权利要求1-5任一项所述的方法,其特征在于,在所述终端连接所述第一路由器之前,所述方法还包括:
    所述终端连接第二路由器,所述第二路由器位于所述第一场所;
    所述终端基于用户的操作配置所述第二路由器;
    所述终端接收并存储配置后的所述第二路由器发送的所述第一备份数据,其中所述第一备份数据中的第二特征信息为所述第二路由器获取的,所述第一备份数据中的配置信息为所述第二路由器的配置信息。
  7. 根据权利要求1-6任一项所述的方法,其特征在于,所述若所述终端中的第一备份数据中的第二特征信息和所述第一特征信息匹配时,所述终端向所述第一路由器发送所述第一备份数据或所述第一备份数据中的配置信息,包括:
    若所述终端中的第一备份数据中的第二特征信息和所述第一特征信息匹配时,所述终端 显示所述第一备份数据;
    响应于用户对所述第一备份数据的选择,所述终端向所述第一路由器发送所述第一备份数据或所述第一备份数据中的配置信息。
  8. 根据权利要求1-7任一项所述的方法,其特征在于,所述配置信息包括以下至少一项:
    上网方式、无线网络名称、无线网络密码、管理密码、绑定账号。
  9. 一种路由器配置方法,应用于第一路由器,其特征在于,所述方法包括:
    所述第一路由器连接终端;
    若所述第一路由器为未经配置的路由器时,所述第一路由器向所述终端发送第一特征信息;所述第一特征信息为用于标识所述第一路由器所在的第一场所的信息;
    所述第一路由器从所述终端接收第一备份数据或所述第一备份数据中的配置信息;所述第一备份数据包括第二特征信息和所述配置信息,所述第二特征信息与所述第一特征信息相匹配;
    所述第一路由器根据所述配置信息进行配置。
  10. 根据权利要求9所述的方法,其特征在于,所述第一特征信息包括以下至少一种:
    至少一个路由器的特征信息、所述第一场所对应的有线网络的IP地址、所述第一场所对应的网络设备的特征信息、所述第一路由器的自身标识信息;其中,
    所述至少一个路由器中各路由器发射的无线信号足以被所述第一路由器接收。
  11. 根据权利要求10所述的方法,其特征在于,当所述第一特征信息包括所述至少一个路由器的特征信息时;所述第一特征信息和所述第二特征信息匹配具体为:所述至少一个路由中的一个路由器的特征信息和所述第二特征信息中的一个路由器的特征信息相同。
  12. 根据权利要求10所述的方法,其特征在于,所述第一特征信息包括所述至少一个路由器的特征信息;在所述第一路由器向所述终端发送第一特征信息之前,所述方法还包括:
    接收所述第一路由器周围的多个路由器的无线信号;
    基于所述多个路由器中各路由器的无线信号的信号强度,确定所述至少一个路由器。
  13. 根据权利要求9-12任一项所述的方法,其特征在于,所述配置信息包括以下至少一项:
    上网方式、无线网络名称、无线网络密码、管理密码、绑定账号。
  14. 一种终端,其特征在于,包括处理器、存储器、收发器;其中,所述存储器用于存储计算机执行指令;当所述终端运行时,所述处理器执行所述存储器存储的所述计算机执行指令,以使所述终端执行权利要求1-8任一项所述的方法。
  15. 一种路由器,其特征在于,包括处理器、存储器、收发器;其中,所述存储器用于存储计算机执行指令;当所述路由器运行时,所述处理器执行所述存储器存储的所述计算机执行指令,以使所述路由器执行权利要求9-13任一项所述的方法。
  16. 一种计算机存储介质,其特征在于,所述计算机存储介质包括计算机指令,当所述计算机指令在电子设备上运行时,使得所述电子设备执行权利要求1-8任一项所述的方法或权利要求9-13任一项所述的方法。
PCT/CN2020/100021 2019-07-03 2020-07-03 一种路由器配置方法、终端及路由器 WO2021000923A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910596087.6 2019-07-03
CN201910596087.6A CN110417582B (zh) 2019-07-03 2019-07-03 一种路由器配置方法、终端及路由器

Publications (1)

Publication Number Publication Date
WO2021000923A1 true WO2021000923A1 (zh) 2021-01-07

Family

ID=68360122

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/100021 WO2021000923A1 (zh) 2019-07-03 2020-07-03 一种路由器配置方法、终端及路由器

Country Status (2)

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

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116546132A (zh) * 2023-07-06 2023-08-04 荣耀终端有限公司 网络识别方法、装置、移动终端及计算机可读存储介质

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110417582B (zh) * 2019-07-03 2021-01-29 华为技术有限公司 一种路由器配置方法、终端及路由器
CN110730114B (zh) * 2019-09-02 2021-02-12 华为技术有限公司 一种网络配置信息的配置方法及设备
CN112422327B (zh) * 2020-11-02 2024-02-13 深圳Tcl新技术有限公司 基于wps的路由器配网方法、路由器及存储介质
CN113639424A (zh) * 2021-07-30 2021-11-12 青岛海尔空调器有限总公司 用于控制空调的方法、装置及空调
CN113676914A (zh) * 2021-09-17 2021-11-19 善悦(武汉)高新技术有限公司 一种基于5g核心网的组网方法

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090323555A1 (en) * 2008-06-27 2009-12-31 Affinegy, Inc. System and Method for Controlling and Configuring a Router
US20130064132A1 (en) * 2011-09-09 2013-03-14 Aidan N. Low Identifying a wireless network device across factory resets
CN106100911A (zh) * 2016-08-23 2016-11-09 上海斐讯数据通信技术有限公司 一种路由器的云配置方法、路由器、云服务器及系统
CN106686593A (zh) * 2016-12-28 2017-05-17 深圳Tcl智能家庭科技有限公司 一种基于wifi模块的智能设备配置入网的方法及装置
CN108134695A (zh) * 2017-12-19 2018-06-08 上海斐讯数据通信技术有限公司 一种基于app快速配置路由器的方法和系统
CN108173677A (zh) * 2017-12-19 2018-06-15 上海斐讯数据通信技术有限公司 一种路由器的配置方法以及系统
CN110417582A (zh) * 2019-07-03 2019-11-05 华为技术有限公司 一种路由器配置方法、终端及路由器

Family Cites Families (14)

* 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 (zh) * 2008-01-25 2011-12-07 中兴通讯股份有限公司 一种保护终端关键配置的方法及其系统
EP2203005A1 (en) * 2008-12-23 2010-06-30 Panasonic Corporation Optimized home link detection
TWI542171B (zh) * 2013-12-18 2016-07-11 Alpha Networks Inc Automatically set the way the gateway device
CN104301141B (zh) * 2014-10-10 2018-02-09 华为技术有限公司 一种保存配置信息的方法、装置及系统
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 (zh) * 2015-08-24 2018-09-28 上海斐讯数据通信技术有限公司 一种基于扫描二维码的路由器配置方法
CN107404720B (zh) * 2016-05-18 2021-11-23 荣耀终端有限公司 一种无线设置信息重置的方法及相关设备
CN107547217B (zh) * 2016-06-24 2022-05-10 中兴通讯股份有限公司 路由器业务配置方法及路由器
CN106850299A (zh) * 2017-02-09 2017-06-13 北京极科极客科技有限公司 一种快速恢复设备配置的方法及系统
CN106972958A (zh) * 2017-03-13 2017-07-21 海信集团有限公司 网关设备配置方法、装置及系统
CN107566158A (zh) * 2017-08-04 2018-01-09 上海斐讯数据通信技术有限公司 一种路由器配置信息备份方法及系统、恢复方法及系统
CN107453920A (zh) * 2017-09-01 2017-12-08 上海斐讯数据通信技术有限公司 一种路由器间数据备份的方法及系统
CN109088781B (zh) * 2018-10-26 2021-05-25 广东美的制冷设备有限公司 无线射频参数的配置方法、装置和智能家电设备

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090323555A1 (en) * 2008-06-27 2009-12-31 Affinegy, Inc. System and Method for Controlling and Configuring a Router
US20130064132A1 (en) * 2011-09-09 2013-03-14 Aidan N. Low Identifying a wireless network device across factory resets
CN106100911A (zh) * 2016-08-23 2016-11-09 上海斐讯数据通信技术有限公司 一种路由器的云配置方法、路由器、云服务器及系统
CN106686593A (zh) * 2016-12-28 2017-05-17 深圳Tcl智能家庭科技有限公司 一种基于wifi模块的智能设备配置入网的方法及装置
CN108134695A (zh) * 2017-12-19 2018-06-08 上海斐讯数据通信技术有限公司 一种基于app快速配置路由器的方法和系统
CN108173677A (zh) * 2017-12-19 2018-06-15 上海斐讯数据通信技术有限公司 一种路由器的配置方法以及系统
CN110417582A (zh) * 2019-07-03 2019-11-05 华为技术有限公司 一种路由器配置方法、终端及路由器

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116546132A (zh) * 2023-07-06 2023-08-04 荣耀终端有限公司 网络识别方法、装置、移动终端及计算机可读存储介质
CN116546132B (zh) * 2023-07-06 2023-11-03 荣耀终端有限公司 网络识别方法、装置、移动终端及计算机可读存储介质

Also Published As

Publication number Publication date
CN110417582B (zh) 2021-01-29
CN110417582A (zh) 2019-11-05

Similar Documents

Publication Publication Date Title
WO2020224486A1 (zh) 一种通话方法、设备及系统
WO2020192714A1 (zh) 显示设备控制页面的方法、相关装置及系统
WO2021000923A1 (zh) 一种路由器配置方法、终端及路由器
WO2020041952A1 (zh) 一种基于快递消息控制快递柜的方法及电子设备
WO2021027616A1 (zh) 一种通过遥控器实现一碰投屏的终端设备、方法以及系统
JP7317242B2 (ja) ブルートゥース接続方法、システム、および電子デバイス
WO2021052178A1 (zh) 一种Wi-Fi连接方法及设备
WO2021043045A1 (zh) 一种网络配置信息的配置方法及设备
WO2020155014A1 (zh) 智能家居设备分享系统、方法及电子设备
WO2021185105A1 (zh) SIM卡和eSIM卡的切换方法及电子设备
WO2020238890A1 (zh) 信息处理方法和设备
WO2020062344A1 (zh) 一种数据传输方法及电子设备
WO2020224447A1 (zh) 一种在联系人中添加智能家居设备的方法及系统
CN111030990B (zh) 一种建立通信连接的方法及客户端、服务端
CN111132234A (zh) 一种数据传输方法及对应的终端
WO2021052204A1 (zh) 基于通讯录的设备发现方法、音视频通信方法及电子设备
WO2021036898A1 (zh) 折叠屏设备中应用打开方法及相关装置
WO2021175268A1 (zh) 移动网络热点的共享方法、装置和热点共享设备
WO2020216098A1 (zh) 一种跨电子设备转接服务的方法、设备以及系统
WO2021037146A1 (zh) 一种移动终端的文件共享方法及设备
WO2021093855A1 (zh) 一种移动设备管理方法及设备
WO2022095712A1 (zh) 数据分享方法、装置、系统及电子设备
WO2020062304A1 (zh) 一种文件传输方法及电子设备
WO2021027623A1 (zh) 一种设备能力发现方法及p2p设备
WO2020062308A1 (zh) 位置信息处理方法及相关装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20835143

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20835143

Country of ref document: EP

Kind code of ref document: A1