CN110392375B - WiFi network channel modification method, terminal, server and storage medium - Google Patents

WiFi network channel modification method, terminal, server and storage medium Download PDF

Info

Publication number
CN110392375B
CN110392375B CN201810350663.4A CN201810350663A CN110392375B CN 110392375 B CN110392375 B CN 110392375B CN 201810350663 A CN201810350663 A CN 201810350663A CN 110392375 B CN110392375 B CN 110392375B
Authority
CN
China
Prior art keywords
channel
wireless routing
control
terminal
control script
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810350663.4A
Other languages
Chinese (zh)
Other versions
CN110392375A (en
Inventor
卢松林
丁海峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201810350663.4A priority Critical patent/CN110392375B/en
Publication of CN110392375A publication Critical patent/CN110392375A/en
Application granted granted Critical
Publication of CN110392375B publication Critical patent/CN110392375B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/02Standardisation; Integration
    • H04L41/0246Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols
    • H04L41/0266Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols using meta-data, objects or commands for formatting management information, e.g. using eXtensible markup language [XML]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition

Landscapes

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

Abstract

The application discloses a WiFi network channel modification method, a terminal, a server and a storage medium, and belongs to the field of wireless networks. The method comprises the following steps: when a channel modification signal is received, acquiring a manufacturer identifier of a device manufacturer to which the wireless routing device belongs according to the MAC address of the currently accessed wireless routing device; sending a control script acquisition request to a server, wherein the control script acquisition request comprises a manufacturer identifier; receiving at least one control script corresponding to the manufacturer identification fed back by the server; and executing the control script and sending a control instruction to the wireless routing equipment, wherein the control instruction is used for instructing the wireless routing equipment to modify the channel of the WiFi network. The embodiment of the application simplifies the channel modification process and improves the channel modification efficiency.

Description

WiFi network channel modification method, terminal, server and storage medium
Technical Field
The embodiment of the application relates to the technical field of Wireless networks, in particular to a Wireless-Fidelity (WiFi) network channel modification method, a terminal, a server and a storage medium.
Background
With the continuous development of internet technology, people have higher and higher demands on networks. By setting up the wireless routing device, the user can use the network to access the internet at home.
In the 802.11 network standard protocol, channels of the WiFi network are divided into 13 channels, and the wireless routing device transmits wireless network signals on one of the channels, wherein the wireless routing device uses the 6 th channel by default. However, when a plurality of adjacent WiFi networks use the same channel, the plurality of WiFi networks perform data transmission by preempting the channel, which causes channel congestion and further affects the network access speed. To reduce interference with adjacent co-channel WiFi networks, a user may install a dedicated management application for the wireless routing device in the terminal, thereby modifying the channel used by the WiFi network using the dedicated management application.
However, different manufacturers may only develop corresponding dedicated management applications for wireless routing devices produced by the manufacturers, and when a user needs to manage a plurality of wireless routing devices of different brands, the user needs to download and install a plurality of dedicated management applications, which results in a cumbersome management process and low management efficiency.
Disclosure of Invention
The embodiment of the application provides a WiFi network channel modification method, a terminal, a server and a storage medium, and can solve the problems that when wireless routing equipment of different brands are managed, a plurality of special management application programs need to be downloaded and installed, the management process is complicated, and the management efficiency is low. The technical scheme is as follows:
in a first aspect, a WiFi network channel modification method is provided, the method includes:
when a channel modification signal is received, acquiring a manufacturer identifier of a device manufacturer to which the wireless routing device belongs according to a Media Access Control (MAC) address of the currently accessed wireless routing device;
sending a control script acquisition request to a server, wherein the control script acquisition request comprises the manufacturer identification;
receiving at least one control script corresponding to the manufacturer identification and fed back by the server, wherein the control script is used for simulating the operation of modifying a channel in a management interface of the wireless routing equipment, and different control scripts correspond to wireless routing equipment of different models;
and executing the control script and sending a control instruction to the wireless routing equipment, wherein the control instruction is used for instructing the wireless routing equipment to modify a channel of a WiFi network.
In a second aspect, a WiFi network channel modification method is provided, the method including:
receiving a control script acquisition request sent by a terminal, wherein the control script acquisition request comprises a manufacturer identification of a device manufacturer of a wireless routing device to which the terminal is currently accessed, and the manufacturer identification is determined by the terminal according to an MAC address of the wireless routing device;
acquiring at least one control script corresponding to the equipment manufacturer according to the manufacturer identification, wherein the control script is used for simulating the operation of modifying a channel in a management interface of the wireless routing equipment, and different control scripts correspond to different types of wireless routing equipment;
and feeding back at least one control script to the terminal, wherein the terminal is used for executing the control script and sending a control instruction to the wireless routing equipment, and the control instruction is used for indicating the wireless routing equipment to modify a channel of a WiFi network.
In a third aspect, an apparatus for WiFi network channel modification is provided, the apparatus comprising:
the identification acquisition module is used for acquiring manufacturer identifications of equipment manufacturers to which the wireless routing equipment belongs according to the MAC address of the currently accessed wireless routing equipment when a channel modification signal is received;
the request sending module is used for sending a control script obtaining request to a server, wherein the control script obtaining request comprises the manufacturer identification;
the script receiving module is used for receiving at least one control script which is fed back by the server and corresponds to the manufacturer identifier, the control script is used for simulating the operation of modifying a channel in a management interface of the wireless routing equipment, and different control scripts correspond to the wireless routing equipment with different models;
and the execution module is used for executing the control script and sending a control instruction to the wireless routing equipment, wherein the control instruction is used for indicating the wireless routing equipment to modify a channel of the WiFi network.
In a fourth aspect, an apparatus for WiFi network channel modification is provided, the apparatus comprising:
the request receiving module is used for receiving a control script obtaining request sent by a terminal, wherein the control script obtaining request comprises a manufacturer identification of a device manufacturer to which a wireless routing device currently accessed by the terminal belongs, and the manufacturer identification is determined by the terminal according to an MAC address of the wireless routing device;
the script acquisition module is used for acquiring at least one control script corresponding to the equipment manufacturer according to the manufacturer identification, the control script is used for simulating the operation of modifying a channel in a management interface of the wireless routing equipment, and different control scripts correspond to different types of wireless routing equipment;
and the script feedback module is used for feeding back at least one control script to the terminal, the terminal is used for executing the control script and sending a control instruction to the wireless routing equipment, and the control instruction is used for indicating the wireless routing equipment to modify a channel of a WiFi network.
In a fifth aspect, there is provided a terminal comprising a processor and a memory, the memory having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, which is executable by the processor to implement the WiFi network channel modification method of the first aspect.
In a sixth aspect, there is provided a server, the terminal comprising a processor and a memory, the memory having at least one instruction, at least one program, a set of codes, or a set of instructions stored therein, the at least one instruction, the at least one program, the set of codes, or the set of instructions being executed by the processor to implement the WiFi network channel modification method according to the second aspect
In a seventh aspect, there is provided a computer readable storage medium having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, which is executable by the processor to implement the WiFi network channel modification method as described in the first aspect.
In an eighth aspect, there is provided a computer readable storage medium having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, which is executable by the processor to implement the WiFi network channel modification method of the second aspect.
In a ninth aspect, there is provided a computer program product for performing the WiFi network channel modification method of the first aspect when the computer program product is executed.
The beneficial effects that technical scheme that this application embodiment provided brought include:
when the terminal receives the channel modification signal, the manufacturer identification of the equipment manufacturer of the terminal is determined according to the MAC address of the wireless routing equipment currently accessed, so that at least one control script corresponding to the equipment manufacturer is obtained from the server according to the manufacturer identification, and a control instruction is sent to the wireless routing equipment in a mode of executing the control script, so that the wireless routing equipment can modify the channel of the WiFi network according to the control instruction; the channel management is carried out based on the control scripts of different equipment manufacturers, when the terminal modifies the channels of the wireless routing equipment of different brands, only the corresponding control scripts are required to be obtained from the server, and the special management application programs corresponding to the different wireless routing equipment do not need to be downloaded and installed, so that the channel modification process is simplified, and the channel modification efficiency is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic diagram of 13 channels in a 2.4G band;
fig. 2 is a schematic diagram illustrating an implementation environment related to a WiFi network channel modification method provided by an embodiment of the present application;
fig. 3 is a flowchart illustrating a WiFi network channel modification method provided by an embodiment of the present application;
FIG. 4 is a schematic interface diagram of an implementation process of the WiFi network channel modification method shown in FIG. 3;
FIG. 5 is a schematic diagram of an implementation of a manual channel modification process in a wireless routing device management interface;
fig. 6 is a schematic diagram of an implementation of the WiFi network channel modification method shown in fig. 3;
fig. 7 is a flowchart illustrating a WiFi network channel modification method provided by an embodiment of the present application;
fig. 8 is a schematic diagram of an implementation of the WiFi network channel modification method shown in fig. 7;
fig. 9 is a block diagram of a WiFi network channel modifying apparatus provided by an embodiment of the present application;
fig. 10 is a block diagram of a WiFi network channel modifying apparatus provided by another embodiment of the present application;
fig. 11 shows a block diagram of a terminal according to an exemplary embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
For convenience of understanding, terms referred to in the embodiments of the present application are explained below.
Channel: the channel in the embodiment of the present application refers to a channel for transmitting WiFi signals, i.e., a channel used by a WiFi network. As shown in fig. 1, in the 802.11b/G network standard, the 2.4G frequency band includes 13 overlapped channels, wherein there is no overlap between channels 1, 6, and 13.
And (3) controlling a script: the script is a program stored in plain text and used for controlling a computer to perform a series of operation actions. The wireless routing device management interface is a web interface for setting the operating parameters of the wireless routing device, and is usually accessed through the IP address "192.168.1.1".
By adopting the WiFi network channel modification method provided by the embodiment of the application, when a user needs to modify a channel used by the currently accessed wireless routing equipment, the WiFi management application program can automatically control the currently accessed wireless routing equipment to execute channel modification operation at the background without the user executing complicated manual modification operation by only starting the WiFi management application program installed in the terminal and clicking a channel modification control in a routing management interface (the WiFi management application program); meanwhile, the WiFi management application program can be adapted to wireless routing equipment produced by different equipment manufacturers, and a user can manage various wireless routing equipment by using a single WiFi management application program, so that a large number of special management application programs are prevented from being installed in the terminal, and the storage space of the terminal is saved.
Referring to fig. 2, a schematic diagram of an implementation environment of a WiFi network channel modification method provided in an embodiment of the present application is shown. The implementation environment includes a terminal 210, at least one wireless routing device 220, and a server 230.
The terminal 210 is an electronic device having a wireless network connection function, and the electronic device may be a smart phone, a tablet computer, a desktop computer, a personal portable computer, or the like. In this embodiment of the application, a WiFi management application is installed in the terminal 210, and through the WiFi management application, the terminal 210 can manage wireless routing devices produced by different device manufacturers. Optionally, the program developer of the WiFi management application is different from a device vendor of the at least one wireless routing device.
The wireless routing device 220 is an electronic device for providing a wireless network, which may be a wireless router or an electronic device that turns on a wireless routing function, etc. The terminal 210 accesses the WiFi network provided by one of the wireless routing devices 220 for internet access.
The server 230 is a server, a server cluster formed by a plurality of servers, or a cloud computing center. Optionally, in this embodiment of the application, the server 230 is a background server of the WiFi management application in the terminal 210.
In one possible application scenario, after the terminal 210 accesses the WiFi network provided by the wireless routing device 220, the WiFi management application is run. When the user uses the WiFi management function of the WiFi management application, the terminal 210 prompts the user to input a login password of the user wireless routing device 220, so as to log in the wireless routing device 220 according to the login password. When a trigger signal for a channel modification function in the WiFi management application is received, the WiFi management application determines a device manufacturer to which the wireless routing device 220 belongs according to the MAC address of the wireless routing device 220, and further interacts with the server 230 through the wireless routing device 220 to obtain a control script corresponding to the device manufacturer. The WiFi management application program simulates the operation of a user for modifying the channel in the management interface of the wireless routing equipment by executing the control script, and the corresponding wireless routing equipment sends a corresponding control instruction so that the wireless routing equipment can modify the channel according to the control signaling.
The following embodiments provide a WiFi network channel modification method for the terminal 210 and the server 220 in fig. 2.
Referring to fig. 3, a flowchart of a WiFi network channel modification method provided in an embodiment of the present application is shown, where the method is used in the implementation environment shown in fig. 2, and the method includes the following steps.
Step 301, when receiving the channel modification signal, the terminal obtains the manufacturer identification of the device manufacturer to which the wireless routing device belongs according to the MAC address of the wireless routing device.
In a possible implementation manner, a WiFi management application run by the terminal displays a route management interface, and the route management interface includes several management function options. When the triggering operation of the channel modification option is received, the terminal further determines the equipment manufacturer of the current wireless routing equipment.
Because the MAC addresses of the network equipment are uniformly distributed to various equipment manufacturers by a specified organization, and the MAC addresses distributed to different equipment manufacturers have different address sections, the terminal can determine the equipment manufacturer to which the current wireless routing equipment belongs according to the MAC addresses of the wireless routing equipment and acquire the manufacturer identification of the equipment manufacturer.
Optionally, the step of acquiring the vendor identifier by the terminal includes:
firstly, acquiring a MAC address of the wireless routing equipment, wherein the MAC address is a 12-bit hexadecimal number.
For example, the MAC address acquired by the terminal is 00-0D-65-12-34-56.
And secondly, searching for manufacturer identification corresponding to the manufacturer field from a preset corresponding relation according to the manufacturer field in the MAC address, wherein the preset corresponding relation comprises the corresponding relation between the preset manufacturer field and the preset manufacturer identification, and the manufacturer field is the first 6 bits of the MAC address.
In the MAC address allocated to the device manufacturer, the first 6 bits are a manufacturer field for indicating the device manufacturer to which the MAC address belongs. Therefore, the terminal extracts the vendor field in the MAC address and determines the device vendor from the vendor field.
In a possible implementation manner, the terminal stores the corresponding relationship between the manufacturer field and the manufacturer identifier in advance, and after the manufacturer field of the MAC address is extracted, the terminal searches for the corresponding manufacturer identifier from the corresponding relationship according to the manufacturer field.
In other possible embodiments, the corresponding relationship between the vendor field and the vendor identifier is stored in the server, and the terminal obtains the corresponding vendor identifier from the server by sending a request containing the vendor field to the server.
Illustratively, the correspondence between the vendor field and the vendor identifier is shown in table one.
Watch 1
Manufacturer field Manufacturer identification
00-0D-65 A-Link
00-0D-75 B-Link
00-0D-85 C-Link
With the example in the above step, the terminal acquires that the manufacturer identifier of the equipment manufacturer to which the wireless routing equipment belongs is "a-Link".
Step 302, the terminal sends a control script acquisition request to the server, wherein the control script acquisition request includes a manufacturer identifier.
Further, according to the obtained manufacturer identification, the terminal sends a control script obtaining request to the server through the wireless routing device, so that a corresponding control script is obtained from the server, and the control of the wireless routing device is realized by executing the control script.
Optionally, because the control scripts used for implementing different functions are different, the control script acquisition request further includes a function identifier, where the function identifier is used to indicate a function to be implemented. For example, in this embodiment, the control script acquisition request includes a function identifier corresponding to the channel modification function.
Illustratively, as shown in fig. 4, when receiving a click signal to the channel modification control 431 in the route management interface 43, the terminal obtains the vendor identifier of the wireless routing device and sends a corresponding control script obtaining request to the server.
Step 303, the server receives a control script obtaining request sent by the terminal.
And 304, the server acquires at least one control script corresponding to the equipment manufacturer according to the manufacturer identification, the control script is used for simulating the operation of modifying the channel in the management interface of the wireless routing equipment, and different control scripts correspond to the wireless routing equipment with different models.
Because the management interfaces of the wireless routing devices developed by different device manufacturers for the wireless routing devices of the wireless routing devices are different, when the users realize the same function on different wireless routing devices, the operations executed in the management interfaces of the wireless routing devices are also different.
In one possible implementation, a developer writes a corresponding control script according to an operation of a user to modify a channel in different wireless routing device management interfaces (corresponding to different models of wireless routing devices). The functions of wireless routing equipment (produced by equipment manufacturers) of different models are possibly greatly different, so that the same equipment manufacturer corresponds to a plurality of different control scripts; meanwhile, because the wireless routing devices of similar models have the same or similar functions, the wireless routing devices of different models may correspond to the same control script.
Illustratively, as shown in fig. 5, when a user modifies a channel of a wireless routing device in a manual manner, the user needs to sequentially click a wireless setting control 511, a basic setting control 512, a channel setting pull-down control 513, and a saving control 514 in a management interface 51 of the wireless routing device, and a developer generates a corresponding control script according to the series of control click operations, where the control script at least includes an operation order and a control name of the control.
And according to the manufacturer identification contained in the control script acquisition request, the server acquires at least one control script corresponding to the manufacturer identification so as to feed back the control script to the terminal in the following process.
Illustratively, the correspondence between different device manufacturers and the control script in the server is shown in table two.
Watch two
Manufacturer identification Control script
A-Link Control script 1, control script 2, control script 3,
B-Link Control script 4, control script 5
C-Link Control script 6, control script 7, control script 8, and control script 9
Step 305, the server feeds back at least one control script to the terminal.
And step 306, the terminal receives at least one control script corresponding to the manufacturer identification fed back by the server.
And 307, the terminal executes the control script and sends a control instruction to the wireless routing device, wherein the control instruction is used for instructing the wireless routing device to modify the channel of the WiFi network.
Since the server may feed back a plurality of control scripts, and not all the control scripts are applicable to the current wireless routing device, in one possible embodiment, the terminal sequentially executes each received control script and sends a control instruction to the wireless routing device, where when the terminal executes the control scripts, the operation of modifying a channel in the management interface of the wireless routing device is simulated in the background. After receiving the control command, the wireless routing equipment feeds back an execution result of the control command to the terminal, and if the execution is successful, the terminal stops executing other control scripts; and if the execution fails, the terminal continues to execute the next control script. Optionally, the wireless routing device feeds back an execution result of the control instruction by using the status code.
In another possible implementation, the terminal measures a first network delay after receiving the channel modification signal, and measures a second network delay after sending the control command; if the second network delay is lower than the first network delay, the terminal determines that the channel modification is successful and stops executing the control script; and if the second network delay is larger than the first network delay, the terminal continues to execute the next control script.
As shown in fig. 6, the whole procedure of modifying the channel of the wireless routing device by the terminal includes: 1. the terminal accesses the wireless routing equipment; 2. a terminal acquires a manufacturer identifier of wireless routing equipment; 3. the terminal sends a control script acquisition request through the wireless routing equipment; 4. the server sends a control script to the terminal; 5. the terminal executes the control script and issues a control instruction; 6. the wireless routing device modifies the channel according to the control instruction.
As shown in fig. 4, in the whole operation process, when the channel needs to be modified, the user only needs to input the administrator account and the password, and click the channel modification control 431 in the routing management interface 43, and the terminal automatically controls the wireless routing device to modify the channel at the background, so that the operation flow is simple; in addition, only one WiFi management application program needs to be installed in the terminal, the terminal can be adapted to wireless routing equipment of various brands and models, and the storage space of the terminal is saved.
In summary, in this embodiment, when the channel modification signal is received, the manufacturer identifier of the device manufacturer is determined according to the MAC address of the currently accessed wireless routing device, so as to obtain at least one control script corresponding to the device manufacturer from the server according to the manufacturer identifier, and further send a control instruction to the wireless routing device by executing the control script, so that the wireless routing device modifies the channel of the WiFi network according to the control instruction; the channel management is carried out based on the control scripts of different equipment manufacturers, when the terminal modifies the channels of the wireless routing equipment of different brands, only the corresponding control scripts are required to be obtained from the server, and the special management application programs corresponding to the different wireless routing equipment do not need to be downloaded and installed, so that the channel modification process is simplified, and the channel modification efficiency is improved.
When the server feeds back a plurality of control scripts, in order to further improve the channel modification efficiency, the terminal further identifies the equipment model of the wireless routing equipment, and selects a target control script suitable for the current wireless network equipment from the plurality of control scripts according to the equipment model. The following description will be made by using exemplary embodiments.
Referring to fig. 7, a flowchart of a WiFi network channel modification method provided by another embodiment of the present application is shown, where the method is used in the implementation environment shown in fig. 2, and the method includes the following steps.
Step 701, the terminal logs in the wireless routing device.
In one possible implementation, when the terminal accesses the WiFi network provided by the wireless routing device and enables the routing management function provided by the WiFi management application, the terminal automatically accesses the preset IP address (generally 192.168.1.1) to log in the wireless routing device. Because the account and the password of the router administrator need to be input when the wireless routing equipment is logged in, a login interface is displayed in the WiFi management application program of the terminal, and a user is instructed to input the login account and the password of the current access wireless routing equipment. The terminal logs in the wireless routing equipment according to the login account and the password input by the user.
It should be noted that, the process of logging in the wireless routing device by accessing the preset IP address by the terminal is executed in the background, the user cannot sense in the foreground, and the user only needs to input the login account and the password of the wireless routing device in the WiFi management application program.
Illustratively, as shown in fig. 4, when the user clicks on the route management control 41, the terminal accesses the wireless router login web page in the background and displays a login interface 42 in the foreground. According to the administrator account 421 and the administrator password 422 input by the user, the terminal can log in the wireless routing device.
Step 702, when receiving the channel modification signal, the terminal obtains the manufacturer identification of the device manufacturer to which the wireless routing device belongs according to the MAC address of the currently accessed wireless routing device.
The implementation of this step is similar to step 301, and this embodiment is not described herein again.
In step 703, the terminal acquires network information of the adjacent WiFi network, where the network information includes signal strength and network channel of the adjacent WiFi network.
In one possible embodiment, the terminal has a Wireless Distribution System (WDS) function, and the terminal acquires the signal strength and the network channel of the neighboring WiFi network through the WDS function.
Illustratively, the signal strength and the network channel of the terminal acquiring the adjacent WiFi network are shown in table three.
Watch III
WiFi network Signal strength Network channel
Zhangsan-wifi 80dB 6
Lisi-wifi 60dB 6
Wangwu-wifi 45dB 1
In step 704, the terminal determines a target channel according to the network information.
Since the WiFi network may generate interference to other WiFi networks using the same channel or adjacent channels, the terminal may determine the channel quality of each network channel according to the network channel and the signal strength used by the adjacent WiFi network, and further determine the target channel based on the channel quality.
In one possible embodiment, the step comprises the steps of:
firstly, calculating the channel quality of each candidate channel according to the signal strength and the network channel.
As shown in fig. 1, due to the intersection between adjacent channels, there is mutual interference between WiFi networks using adjacent channels, and the smaller the channel spacing is, the greater the interference is; meanwhile, the higher the signal strength of the WiFi network, the greater the interference.
In one possible implementation manner, for each candidate channel, the terminal calculates a channel interval between the candidate channel and a corresponding network channel of the adjacent WiFi network, so as to calculate a channel quality of the candidate channel according to the channel interval and the signal strength, wherein the channel quality is in a negative correlation with the signal strength, and the channel quality is in a positive correlation with the channel interval.
For example, the terminal determines a first weight according to the channel interval (the first weight is larger when the channel interval is larger), determines a second weight according to the signal strength (the second weight is smaller when the signal strength is larger), and calculates the channel quality of the candidate channel according to the first weight and the second weight. The embodiment of the present application does not limit the specific calculation manner for calculating the channel quality.
And secondly, determining the candidate channel with the highest channel quality as a target channel.
Further, in order to ensure the quality of the WiFi network after the channel is modified, the terminal determines the candidate channel with the highest channel quality as the target channel.
For example, in combination with the data in table three, the terminal determines 11 channels as the target channels.
Step 705, the terminal sends a control script acquisition request containing a target channel and a manufacturer identifier to the server.
And the terminal adds the determined target channel and the manufacturer identification into the control script acquisition request and sends the request to the server through the wireless routing equipment.
Step 706, the server receives a control script obtaining request sent by the terminal.
And step 707, the server obtains at least one control script template corresponding to the equipment manufacturer according to the manufacturer identifier.
In order for the wireless routing device to be able to tune the channel to a target channel, the server needs to generate a control script that contains the target channel.
In a possible implementation manner, at least one control script template is stored in the server, different control script templates correspond to different models of wireless routing devices, and different values can be written into the target channel fields in each control script template according to actual conditions.
When the control script acquisition request is detected to simultaneously contain the manufacturer identification and the target channel, the server knows that the control script needs to be generated according to the control script template, and accordingly acquires the control script template corresponding to the manufacturer identification.
At step 708, the server generates at least one control script based on the at least one control script template and the target channel.
Further, after the control script templates are obtained, for each control script template, the server writes a target channel into a target channel field of the control script template, so as to obtain at least one control script.
In connection with the example in the above steps, the server writes the target channel 11 into the target channel field of the respective control script template.
Step 709, the server feeds back at least one control script to the terminal.
And step 710, the terminal receives at least one control script fed back by the server.
Step 711, the terminal extracts the device model of the wireless routing device from the login interface of the wireless routing device.
Because the control scripts corresponding to the wireless routing devices of different models may be different, in order to speed up the selection of the control script suitable for the current wireless routing device from the plurality of control scripts, the terminal needs to further determine the device model of the wireless routing device.
Since the login interface of the wireless routing device usually includes the device model, in one possible implementation, the terminal extracts the device model of the wireless routing device from the login interface when logging in the wireless routing device.
Optionally, when the terminal background accesses the login interface of the wireless routing device, the webpage source code of the login interface is obtained, and the device model is extracted from the webpage source code. Since the device model format is "xx-xxxxx", the terminal can extract the device model from the web page source code by using a preset regular expression (an expression to which the device model conforms). The embodiment of the present application does not limit the specific manner of extracting the device model.
For example, the terminal extracts the device model number of the wireless routing device as TL-2140.
In step 712, if at least one control script includes a target control script matching the device model, the terminal executes the target control script and sends a control instruction to the wireless router.
Optionally, the script head of each control script includes an applicable device model (a device model of the wireless routing device applicable to the control script), and after the terminal receives at least one control script, the terminal obtains the applicable device model included in each control script head, and detects whether the device model is matched with the applicable device model, thereby determining the target control script applicable to the current wireless routing device.
And if at least one control script contains a target control script matched with the equipment model, the terminal executes the target control script and sends a control instruction to the wireless routing equipment, and the wireless routing equipment modifies the channel into a target channel according to the control instruction.
For example, the applicable device models contained in the header of the terminal extraction control script A comprise TL-1234, TL-1234s and TL-1240, the applicable device models contained in the header of the extraction control script B comprise TL-2140, TL-2150s and TL-2160, the applicable device models contained in the header of the extraction control script C comprise TL-3000, TL-3100 and TL-3120, and the mesoscopic control script B is determined as the target control script because the device model of the current wireless routing device is TL-2140.
It should be noted that, the terminal may also add the device model to the control script acquisition request, so that the server directly feeds back the control script applicable to the wireless routing device, which is not limited in this embodiment of the present application.
And 713, if at least one control script does not contain a target control script matched with the equipment model, executing the control scripts according to a preset sequence by the terminal, and sending a control instruction to the wireless routing equipment.
The control scripts fed back by the server may not cover all models of wireless routing devices under the device manufacturer, that is, at least one control script does not contain a target control script matching the device model. At this time, the terminal executes the control scripts according to the preset sequence, sends a control instruction to the wireless routing equipment, and determines whether the currently executed control scripts are suitable for the current wireless routing equipment according to the feedback of the wireless routing equipment.
In one possible embodiment, the terminal acquires the usage rates of the respective control scripts (provided by the server), and executes the respective control scripts in descending order of the usage rates.
In step 714, the terminal receives the instruction execution result fed back by the wireless routing device, where the instruction execution result is used to indicate whether the control instruction is executed successfully.
Optionally, the wireless routing device feeds back a status code to the terminal, and when the status code indicates that the execution of the control instruction is successful, the terminal executes step 715; when the status code indicates that the control command fails to be executed, the terminal performs step 716.
In step 715, if the instruction execution result indicates that the control instruction is successfully executed, the execution of other control scripts is stopped.
And when the control command is successfully executed, the terminal determines that the channel modification is successful and stops executing the rest control scripts.
Optionally, the terminal stores the control script for direct use when modifying the channel again.
In step 716, if the instruction execution result indicates that the control instruction execution fails, the next control script is executed.
And when the control instruction fails to be executed, the terminal determines that the channel modification fails, continues to execute the next control script and sends the control instruction.
Optionally, when each control script cannot be applied to the current wireless routing device, the terminal displays corresponding prompt information, and reports the device identifier of the current wireless routing device to the server, so that a developer writes a corresponding control script for the wireless routing device.
As shown in fig. 8, the whole procedure of modifying the channel of the wireless routing device by the terminal includes: 1. the terminal accesses the wireless routing equipment; 2. a terminal acquires a manufacturer identifier of wireless routing equipment; 3. the terminal determines a target channel according to the network information of the adjacent WiFi network; 4. the terminal sends a control script acquisition request through the wireless routing equipment; 5. the server generates a control script according to the control script template and the target channel; 6. the server sends a control script to the terminal; 7. the terminal obtains the equipment model of the wireless routing equipment and determines a target control script; 8. the terminal executes the target control script and issues a control instruction; 9. the wireless routing device modifies the channel according to the control instruction.
In this embodiment, the terminal extracts the device model included in the login interface, and screens out the target control script suitable for the current wireless routing device according to the device model, so as to execute the target control script to modify the channel, thereby further improving the efficiency of modifying the channel.
In addition, the terminal determines the channel with the optimal channel quality as a target channel according to the network information of the adjacent WiFi network, and instructs the server to generate a corresponding control script based on the target channel, so that the terminal controls the wireless routing equipment to modify the channel into the channel with the lowest interference according to the control script, and the quality of the WiFi network is improved.
It should be noted that, in each of the foregoing embodiments, the step taking the terminal as an execution subject may be separately implemented as the WiFi network channel modification method on the terminal side, and the step taking the server as an execution subject may be separately implemented as the WiFi network channel modification method on the server side, which is not described in detail in this embodiment.
The following are embodiments of the apparatus of the present invention that may be used to perform embodiments of the method of the present invention. For details which are not disclosed in the embodiments of the apparatus of the present invention, reference is made to the embodiments of the method of the present invention.
Referring to fig. 9, a block diagram of a WiFi network channel modification apparatus provided in an embodiment of the present application is shown. The device can be realized by hardware, and can also be realized by hardware executing corresponding software. The apparatus may include:
an identifier obtaining module 910, configured to, when receiving the channel modification signal, obtain, according to a media access control MAC address of a currently accessed wireless routing device, a manufacturer identifier of a device manufacturer to which the wireless routing device belongs;
a request sending module 920, configured to send a control script obtaining request to a server, where the control script obtaining request includes the vendor identifier;
a script receiving module 930, configured to receive at least one control script corresponding to the manufacturer identifier and fed back by the server, where the control script is used to simulate an operation of modifying a channel in a management interface of a wireless routing device, and different control scripts correspond to wireless routing devices of different models;
an executing module 940, configured to execute the control script and send a control instruction to the wireless routing device, where the control instruction is used to instruct the wireless routing device to modify a channel of a WiFi network.
Optionally, the apparatus further comprises:
the login module is used for logging in the wireless routing equipment;
the execution module 940 is configured to:
extracting the equipment model of the wireless routing equipment from a login interface of the wireless routing equipment;
and if at least one control script contains a target control script matched with the equipment model, executing the target control script and sending the control instruction to the wireless routing equipment.
Optionally, the executing module 940 is further configured to:
if at least one control script does not contain the target control script matched with the equipment model, sequentially executing the control scripts and sending the control instruction to the wireless routing equipment;
receiving an instruction execution result fed back by the wireless routing equipment, wherein the instruction execution result is used for indicating whether the control instruction is executed successfully;
if the instruction execution result indicates that the control instruction is successfully executed, stopping executing other control scripts;
and if the instruction execution result indicates that the control instruction fails to be executed, executing the next control script.
Optionally, the control script obtaining request further includes a target channel;
the request sending module 920 is configured to:
acquiring network information of adjacent WiFi networks, wherein the network information comprises signal intensity and network channels of the adjacent WiFi networks;
determining the target channel according to the network information;
and sending the control script acquisition request containing the target channel and the manufacturer identification to the server, wherein the server is used for generating at least one control script according to the target channel and the manufacturer identification, and the wireless routing equipment is used for modifying the channel of the WiFi network into the target channel according to the control instruction.
Optionally, the request sending module 920 is configured to:
calculating the channel quality of each candidate channel according to the signal intensity and the network channel;
determining the candidate channel with the highest channel quality as the target channel;
wherein the channel quality and the network signal strength are in a negative correlation relationship, the channel quality and a channel interval are in a positive correlation relationship, and the channel interval is an interval between the network channel and the candidate channel.
Optionally, the identifier obtaining module 910 is configured to:
acquiring the MAC address of the wireless routing equipment, wherein the MAC address is a 12-bit hexadecimal number;
and searching the manufacturer identification corresponding to the manufacturer field from a preset corresponding relation according to the manufacturer field in the MAC address, wherein the preset corresponding relation comprises the corresponding relation between the preset manufacturer field and the preset manufacturer identification, and the manufacturer field is the first 6 bits of the MAC address.
Referring to fig. 10, a block diagram of a WiFi network channel modification apparatus provided in another embodiment of the present application is shown. The device can be realized by hardware, and can also be realized by hardware executing corresponding software. The apparatus may include:
a request receiving module 1010, configured to receive a control script acquisition request sent by a terminal, where the control script acquisition request includes a manufacturer identifier of a device manufacturer to which a wireless routing device to which the terminal currently accesses belongs, and the manufacturer identifier is determined by the terminal according to a media access control MAC address of the wireless routing device;
a script obtaining module 1020, configured to obtain at least one control script corresponding to the equipment manufacturer according to the manufacturer identifier, where the control script is used to simulate an operation of modifying a channel in a management interface of a wireless routing device, and different control scripts correspond to wireless routing devices of different models;
a script feedback module 1030, configured to feed back at least one control script to the terminal, where the terminal is configured to execute the control script and send a control instruction to the wireless routing device, and the control instruction is used to instruct the wireless routing device to modify a channel of a WiFi network.
Optionally, the control script obtaining request further includes a target channel, where the target channel is determined by the terminal according to network information of an adjacent WiFi network;
the script obtaining module 1020 is configured to:
acquiring at least one control script template corresponding to the equipment manufacturer according to the manufacturer identification;
and generating at least one control script according to at least one control script template and the target channel, wherein the terminal is used for executing at least one control script so that the wireless routing equipment modifies the channel of the WiFi network into the target channel according to the control instruction.
It should be noted that, when the device provided in the foregoing embodiment implements the functions thereof, only the division of the functional modules is illustrated, and in practical applications, the functions may be distributed by different functional modules according to needs, that is, the internal structure of the terminal or the server is divided into different functional modules to implement all or part of the functions described above. In addition, the apparatus and method embodiments provided by the above embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments for details, which are not described herein again.
Fig. 11 shows a block diagram of a terminal 1100 according to an exemplary embodiment of the present application. The terminal 1100 may be a portable mobile terminal such as: smart phones, tablet computers, MP3 players (Moving Picture Experts Group Audio Layer III, motion video Experts compression standard Audio Layer 3), MP4 players (Moving Picture Experts Group Audio Layer IV, motion video Experts compression standard Audio Layer 4). The terminal 1100 may also be referred to by other names such as user equipment, portable terminal, etc.
In general, terminal 1100 includes: a processor 1101 and a memory 1102.
Processor 1101 may include one or more processing cores, such as a 4-core processor, an 8-core processor, or the like. The processor 1101 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 1101 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 1101 may be integrated with a GPU (Graphics Processing Unit) that is responsible for rendering and drawing the content that the display screen needs to display. In some embodiments, the processor 1101 may further include an AI (Artificial Intelligence) processor for processing computing operations related to machine learning.
Memory 1102 may include one or more computer-readable storage media, which may be tangible and non-transitory. Memory 1102 can also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 1102 is used to store at least one instruction for execution by processor 1101 to implement the video encoding methods provided herein.
In some embodiments, the terminal 1100 may further include: a peripheral interface 1103 and at least one peripheral. Specifically, the peripheral device includes: at least one of radio frequency circuitry 1104, touch display screen 1105, camera 1106, audio circuitry 1107, positioning component 1108, and power supply 1109.
The peripheral interface 1103 may be used to connect at least one peripheral associated with I/O (Input/Output) to the processor 1101 and the memory 1102. In some embodiments, the processor 1101, memory 1102, and peripheral interface 1103 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1101, the memory 1102 and the peripheral device interface 1103 may be implemented on separate chips or circuit boards, which is not limited by this embodiment.
The Radio Frequency circuit 1104 is used to receive and transmit RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuit 1104 communicates with communication networks and other communication devices via electromagnetic signals. The radio frequency circuit 1104 converts an electric signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electric signal. Optionally, the radio frequency circuit 1104 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuit 1104 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: the world wide web, metropolitan area networks, intranets, generations of mobile communication networks (2G, 3G, 4G, and 5G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the rf circuit 1104 may further include NFC (Near Field Communication) related circuits, which are not limited in this application.
The touch display screen 1105 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. The touch display screen 1105 also has the ability to capture touch signals on or over the surface of the touch display screen 1105. The touch signal may be input to the processor 1101 as a control signal for processing. Touch display 1105 is used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, the touch display screen 1105 can be one, providing the front panel of the terminal 1100; in other embodiments, the touch display screens 1105 can be at least two, respectively disposed on different surfaces of the terminal 1100 or in a folded design; in still other embodiments, touch display 1105 can be a flexible display disposed on a curved surface or on a folded surface of terminal 1100. Even more, the touch display screen 1105 can be arranged in a non-rectangular irregular pattern, i.e., a shaped screen. The touch Display screen 1105 can be made of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), and other materials.
Camera assembly 1106 is used to capture images or video. Optionally, camera assembly 1106 includes a front camera and a rear camera. Generally, a front camera is used for realizing video call or self-shooting, and a rear camera is used for realizing shooting of pictures or videos. In some embodiments, the number of the rear cameras is at least two, and each of the rear cameras is any one of a main camera, a depth-of-field camera and a wide-angle camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize a panoramic shooting function and a VR (Virtual Reality) shooting function. In some embodiments, camera assembly 1106 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
The audio circuit 1107 is used to provide an audio interface between the user and the terminal 1100. The audio circuitry 1107 may include a microphone and a speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals, and inputting the electric signals to the processor 1101 for processing or inputting the electric signals to the radio frequency circuit 1104 to achieve voice communication. For stereo capture or noise reduction purposes, multiple microphones may be provided, each at a different location of terminal 1100. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is used to convert electrical signals from the processor 1101 or the radio frequency circuit 1104 into sound waves. The loudspeaker can be a traditional film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, the audio circuitry 1107 may also include a headphone jack.
Positioning component 1108 is used to locate the current geographic position of terminal 1100 for purposes of navigation or LBS (Location Based Service). The Positioning component 1108 may be a Positioning component based on the Global Positioning System (GPS) in the united states, the beidou System in china, or the galileo System in russia.
Power supply 1109 is configured to provide power to various components within terminal 1100. The power supply 1109 may be alternating current, direct current, disposable or rechargeable. When the power supply 1109 includes a rechargeable battery, the rechargeable battery may be a wired rechargeable battery or a wireless rechargeable battery. The wired rechargeable battery is a battery charged through a wired line, and the wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, terminal 1100 can also include one or more sensors 1110. The one or more sensors 1010 include, but are not limited to: acceleration sensor 1011, gyro sensor 1112, pressure sensor 1113, fingerprint sensor 1114, optical sensor 1115, and proximity sensor 1116.
Acceleration sensor 1111 may detect acceleration levels in three coordinate axes of a coordinate system established with terminal 1100. For example, the acceleration sensor 1111 may be configured to detect components of the gravitational acceleration in three coordinate axes. The processor 1101 may control the touch display screen 1105 to display a user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 1111. The acceleration sensor 1111 may also be used for acquisition of motion data of a game or a user.
The gyro sensor 1112 may detect a body direction and a rotation angle of the terminal 1100, and the gyro sensor 1112 may cooperate with the acceleration sensor 1111 to acquire a 3D motion of the user with respect to the terminal 1100. From the data collected by gyroscope sensor 1112, processor 1101 may implement the following functions: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization at the time of photographing, game control, and inertial navigation.
Pressure sensor 1113 may be disposed on a side bezel of terminal 1100 and/or on an underlying layer of touch display screen 1105. When the pressure sensor 1113 is disposed on the side frame of the terminal 1100, a holding signal of the terminal 1100 by the user can be detected, and left-right hand recognition or shortcut operation can be performed according to the holding signal. When the pressure sensor 1113 is disposed at the lower layer of the touch display screen 1105, the operability control on the UI interface can be controlled according to the pressure operation of the user on the touch display screen 1105. The operability control comprises at least one of a button control, a scroll bar control, an icon control and a menu control.
The fingerprint sensor 1114 is used for collecting a fingerprint of a user to identify the identity of the user according to the collected fingerprint. Upon recognizing that the user's identity is a trusted identity, the user is authorized by the processor 1101 to perform relevant sensitive operations including unlocking the screen, viewing encrypted information, downloading software, paying for and changing settings, etc. Fingerprint sensor 1114 may be disposed on the front, back, or side of terminal 1100. When a physical button or vendor Logo is provided on the terminal 1100, the fingerprint sensor 1114 may be integrated with the physical button or vendor Logo.
Optical sensor 1115 is used to collect ambient light intensity. In one embodiment, the processor 1101 may control the display brightness of the touch display screen 1105 based on the ambient light intensity collected by the optical sensor 1115. Specifically, when the ambient light intensity is high, the display brightness of the touch display screen 1105 is increased; when the ambient light intensity is low, the display brightness of the touch display screen 1105 is turned down. In another embodiment, processor 1101 may also dynamically adjust the shooting parameters of camera assembly 1106 based on the ambient light intensity collected by optical sensor 1115.
Proximity sensor 1116, also referred to as a distance sensor, is typically disposed on the front face of terminal 1100. Proximity sensor 1116 is used to capture the distance between the user and the front face of terminal 1100. In one embodiment, the touch display screen 1105 is controlled by the processor 1101 to switch from a bright screen state to a dark screen state when the proximity sensor 1116 detects that the distance between the user and the front face of the terminal 1100 is gradually decreasing; when the proximity sensor 1116 detects that the distance between the user and the front face of the terminal 1100 becomes gradually larger, the touch display screen 1105 is controlled by the processor 1101 to switch from a breath-screen state to a bright-screen state.
Those skilled in the art will appreciate that the configuration shown in fig. 11 does not constitute a limitation of terminal 1100, and may include more or fewer components than those shown, or may combine certain components, or may employ a different arrangement of components.
The embodiment of the present application further provides a computer-readable storage medium, in which at least one instruction, at least one program, a code set, or a set of instructions is stored, and the at least one instruction, the at least one program, the code set, or the set of instructions is loaded and executed by the processor to implement the method for intercepting a telecommunication Trojan horse fraud program as provided in the above embodiments.
Optionally, the computer-readable storage medium may include: a Read Only Memory (ROM), a Random Access Memory (RAM), a Solid State Drive (SSD), or an optical disc. The Random Access Memory may include a resistive Random Access Memory (ReRAM) and a Dynamic Random Access Memory (DRAM). The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.

Claims (13)

1. A wireless fidelity (WiFi) network channel modification method is used for a terminal installed with a WiFi management application program, the WiFi management application program is used for managing wireless routing devices of different device manufacturers, and the method comprises the following steps:
when a channel modification signal is received, acquiring a manufacturer identifier of a device manufacturer to which the wireless routing device belongs according to a Media Access Control (MAC) address of the currently accessed wireless routing device, wherein the channel modification signal is triggered by a channel modification option in a routing management interface in a WiFi management application program;
sending a control script acquisition request to a server, wherein the control script acquisition request comprises the manufacturer identification;
receiving at least one control script corresponding to the manufacturer identification and fed back by the server, wherein the control script is used for simulating the operation of modifying a channel in a management interface of the wireless routing equipment, and different control scripts correspond to wireless routing equipment of different models;
and executing the control script and sending a control instruction to the wireless routing equipment, wherein the control instruction is used for instructing the wireless routing equipment to modify a channel of a WiFi network.
2. The method of claim 1, further comprising:
logging in the wireless routing device;
the executing the control script and sending a control instruction to the wireless routing device includes:
extracting the equipment model of the wireless routing equipment from a login interface of the wireless routing equipment;
and if at least one control script contains a target control script matched with the equipment model, executing the target control script and sending the control instruction to the wireless routing equipment.
3. The method of claim 2, wherein executing the control script and sending control instructions to the wireless routing device further comprises:
if at least one control script does not contain the target control script matched with the equipment model, executing the control scripts according to a preset sequence, and sending the control instruction to the wireless routing equipment;
receiving an instruction execution result fed back by the wireless routing equipment, wherein the instruction execution result is used for indicating whether the control instruction is executed successfully;
if the instruction execution result indicates that the control instruction is successfully executed, stopping executing other control scripts;
and if the instruction execution result indicates that the control instruction fails to be executed, executing the next control script.
4. The method according to any one of claims 1 to 3, wherein the control script acquisition request further includes a target channel;
the sending of the control script acquisition request to the server includes:
acquiring network information of adjacent WiFi networks, wherein the network information comprises signal intensity and network channels of the adjacent WiFi networks;
determining the target channel according to the network information;
and sending the control script acquisition request containing the target channel and the manufacturer identification to the server, wherein the server is used for generating at least one control script according to the target channel and the manufacturer identification, and the wireless routing equipment is used for modifying the channel of the WiFi network into the target channel according to the control instruction.
5. The method of claim 4, wherein the determining the target channel according to the network information comprises:
calculating the channel quality of each candidate channel according to the signal intensity and the network channel;
determining the candidate channel with the highest channel quality as the target channel;
wherein the channel quality and the network signal strength are in a negative correlation relationship, the channel quality and a channel interval are in a positive correlation relationship, and the channel interval is an interval between the network channel and the candidate channel.
6. The method according to any one of claims 1 to 3, wherein the obtaining, according to the MAC address of the wireless routing device, the vendor identifier of the device vendor to which the wireless routing device belongs comprises:
acquiring the MAC address of the wireless routing equipment, wherein the MAC address is a 12-bit hexadecimal number;
and searching the manufacturer identification corresponding to the manufacturer field from a preset corresponding relation according to the manufacturer field in the MAC address, wherein the preset corresponding relation comprises the corresponding relation between the preset manufacturer field and the preset manufacturer identification, and the manufacturer field is the first 6 bits of the MAC address.
7. A wireless fidelity (WiFi) network channel modification method is characterized by comprising the following steps:
receiving a control script acquisition request sent by a terminal, wherein the control script acquisition request comprises a manufacturer identifier of a device manufacturer to which a wireless routing device currently accessed by the terminal belongs, the manufacturer identifier is determined by the terminal according to a Media Access Control (MAC) address of the wireless routing device, the control script acquisition request is sent by the terminal when the terminal receives a channel modification signal, a WiFi management application program is installed in the terminal, the WiFi management application program is used for managing the wireless routing devices of different device manufacturers, and the channel modification signal is triggered by a channel modification option in a routing management interface in the WiFi management application program;
acquiring at least one control script corresponding to the equipment manufacturer according to the manufacturer identification, wherein the control script is used for simulating the operation of modifying a channel in a management interface of the wireless routing equipment, and different control scripts correspond to different types of wireless routing equipment;
and feeding back at least one control script to the terminal, wherein the terminal is used for executing the control script and sending a control instruction to the wireless routing equipment, and the control instruction is used for indicating the wireless routing equipment to modify a channel of a WiFi network.
8. The method according to claim 7, wherein the control script acquisition request further includes a target channel, and the target channel is determined by the terminal according to network information of an adjacent WiFi network;
the obtaining of the at least one control script corresponding to the equipment manufacturer according to the manufacturer identifier includes:
acquiring at least one control script template corresponding to the equipment manufacturer according to the manufacturer identification;
and generating at least one control script according to at least one control script template and the target channel, wherein the terminal is used for executing at least one control script so that the wireless routing equipment modifies the channel of the WiFi network into the target channel according to the control instruction.
9. A WiFi network channel modification apparatus, applied to a terminal installed with a WiFi management application, where the WiFi management application is used to manage wireless routing devices of different device manufacturers, the apparatus comprising:
the identification acquisition module is used for acquiring manufacturer identifications of equipment manufacturers to which the wireless routing equipment belongs according to the Media Access Control (MAC) address of the currently accessed wireless routing equipment when receiving channel modification signals, and the channel modification signals are triggered by channel modification options in a routing management interface in the WiFi management application program;
the request sending module is used for sending a control script obtaining request to a server, wherein the control script obtaining request comprises the manufacturer identification;
the script receiving module is used for receiving at least one control script which is fed back by the server and corresponds to the manufacturer identifier, the control script is used for simulating the operation of modifying a channel in a management interface of the wireless routing equipment, and different control scripts correspond to the wireless routing equipment with different models;
and the execution module is used for executing the control script and sending a control instruction to the wireless routing equipment, wherein the control instruction is used for indicating the wireless routing equipment to modify a channel of a WiFi network.
10. A WiFi network channel modification apparatus, the apparatus comprising:
a request receiving module, configured to receive a control script acquisition request sent by a terminal, where the control script acquisition request includes a manufacturer identifier of a device manufacturer to which a wireless routing device currently accessed by the terminal belongs, the manufacturer identifier is determined by the terminal according to a media access control MAC address of the wireless routing device, the control script acquisition request is sent by the terminal when receiving a channel modification signal, a WiFi management application is installed in the terminal, the WiFi management application is used to manage wireless routing devices of different device manufacturers, and the channel modification signal is triggered by a channel modification option in a routing management interface in the WiFi management application;
the script acquisition module is used for acquiring at least one control script corresponding to the equipment manufacturer according to the manufacturer identification, the control script is used for simulating the operation of modifying a channel in a management interface of the wireless routing equipment, and different control scripts correspond to different types of wireless routing equipment;
and the script feedback module is used for feeding back at least one control script to the terminal, the terminal is used for executing the control script and sending a control instruction to the wireless routing equipment, and the control instruction is used for indicating the wireless routing equipment to modify a channel of a WiFi network.
11. A terminal, characterized in that the terminal comprises a processor and a memory, the memory having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, the at least one instruction, the at least one program, the set of codes, or the set of instructions being executed by the processor to implement the WiFi network channel modification method of any of claims 1 to 6.
12. A server, comprising a processor and a memory, the memory having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, the at least one instruction, the at least one program, the set of codes, or the set of instructions being executable by the processor to implement the WiFi network channel modification method of claim 7 or 8.
13. A computer readable storage medium having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions executable by a processor to implement a WiFi network channel modification method as claimed in any one of claims 1 to 8.
CN201810350663.4A 2018-04-18 2018-04-18 WiFi network channel modification method, terminal, server and storage medium Active CN110392375B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810350663.4A CN110392375B (en) 2018-04-18 2018-04-18 WiFi network channel modification method, terminal, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810350663.4A CN110392375B (en) 2018-04-18 2018-04-18 WiFi network channel modification method, terminal, server and storage medium

Publications (2)

Publication Number Publication Date
CN110392375A CN110392375A (en) 2019-10-29
CN110392375B true CN110392375B (en) 2022-02-22

Family

ID=68284030

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810350663.4A Active CN110392375B (en) 2018-04-18 2018-04-18 WiFi network channel modification method, terminal, server and storage medium

Country Status (1)

Country Link
CN (1) CN110392375B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021005637A1 (en) * 2019-07-05 2021-01-14 株式会社ソシオネクスト Ultrasonic probe, ultrasonic diagnostic system, method for controlling ultrasonic probe, and program for controlling ultrasonic probe
CN111937366B (en) * 2020-04-09 2023-08-01 北京微动数联科技有限公司 Web request processing method and device
CN112332999B (en) * 2020-09-23 2023-08-01 深圳Tcl新技术有限公司 Bandwidth allocation method, device, equipment and computer readable storage medium
CN112348499B (en) * 2020-11-09 2024-06-21 百富计算机技术(深圳)有限公司 Communication service method and device of payment terminal
CN112862349B (en) * 2021-03-04 2024-04-16 北京同邦卓益科技有限公司 Data processing method, device and equipment based on ABS service data
CN113114396B (en) * 2021-04-16 2023-10-13 海信视像科技股份有限公司 Display device and channel selection method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103458012A (en) * 2013-08-20 2013-12-18 小米科技有限责任公司 Method and device for wireless control over network television terminal
CN103532751A (en) * 2013-10-09 2014-01-22 北京奇虎科技有限公司 Management method and device for network access equipment
CN104301139A (en) * 2014-09-28 2015-01-21 北京奇虎科技有限公司 Router adaptation method and device and terminal device
CN104639354A (en) * 2013-11-14 2015-05-20 腾讯科技(深圳)有限公司 Router management method and device
CN106713004A (en) * 2016-07-12 2017-05-24 腾讯科技(深圳)有限公司 Router adaptation method and system
WO2018086478A1 (en) * 2016-11-08 2018-05-17 深圳创维数字技术有限公司 Method and device for upgrading wifi module in set top box, set top box and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103458012A (en) * 2013-08-20 2013-12-18 小米科技有限责任公司 Method and device for wireless control over network television terminal
CN103532751A (en) * 2013-10-09 2014-01-22 北京奇虎科技有限公司 Management method and device for network access equipment
CN104639354A (en) * 2013-11-14 2015-05-20 腾讯科技(深圳)有限公司 Router management method and device
CN104301139A (en) * 2014-09-28 2015-01-21 北京奇虎科技有限公司 Router adaptation method and device and terminal device
CN106713004A (en) * 2016-07-12 2017-05-24 腾讯科技(深圳)有限公司 Router adaptation method and system
WO2018086478A1 (en) * 2016-11-08 2018-05-17 深圳创维数字技术有限公司 Method and device for upgrading wifi module in set top box, set top box and system

Also Published As

Publication number Publication date
CN110392375A (en) 2019-10-29

Similar Documents

Publication Publication Date Title
CN110392375B (en) WiFi network channel modification method, terminal, server and storage medium
US11153609B2 (en) Method and apparatus for live streaming
CN110278464B (en) Method and device for displaying list
CN108063981B (en) Method and device for setting attributes of live broadcast room
CN108959361B (en) Form management method and device
CN110740340B (en) Video live broadcast method and device and storage medium
CN113204298B (en) Method and device for displaying release progress, electronic equipment and storage medium
CN108717365B (en) Method and device for executing function in application program
CN111913679A (en) Method, device, equipment and storage medium for establishing wireless screen projection connection
CN109828915B (en) Method, device, equipment and storage medium for debugging application program
CN111858382A (en) Application program testing method, device, server, system and storage medium
CN111290896A (en) Server pressure testing method, device, equipment and medium
CN111241499A (en) Application program login method, device, terminal and storage medium
CN112988254B (en) Method, device and equipment for managing hardware equipment
CN113485596B (en) Virtual model processing method and device, electronic equipment and storage medium
CN111064657B (en) Method, device and system for grouping concerned accounts
CN110825465B (en) Log data processing method and device, electronic equipment and storage medium
CN110134902B (en) Data information generating method, device and storage medium
CN114143280B (en) Session display method and device, electronic equipment and storage medium
CN112181442A (en) Unloaded page display method, device, terminal, server and storage medium
CN109618018B (en) User head portrait display method, device, terminal, server and storage medium
CN113076452A (en) Application classification method, device, equipment and computer readable storage medium
CN112783533A (en) Version information updating method, version information updating device, terminal and storage medium
CN112132472A (en) Resource management method and device, electronic equipment and computer readable storage medium
CN112260845A (en) Method and device for accelerating data transmission

Legal Events

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