Specific embodiment
To keep the purposes, technical schemes and advantages of the application clearer, below in conjunction with attached drawing to the application embodiment partyFormula is described in further detail.
In order to facilitate understanding, noun involved in the embodiment of the present application is explained below.
Channel: the channel in the embodiment of the present application refers to the channel of transmission WiFi signal, i.e. channel used in WiFi network.As shown in Figure 1,2.4G frequency range includes 13 overlapping channels, wherein between channel 1,6,13 in 802.11b/g network standardThere is no overlappings.
Control script: script is a kind of program saved with plain text, dynamic for controlling computer progress sequence of operationsMake, in the embodiment of the present application, control script is used to simulate the operation that channel is modified in wireless routing device administration interface.ItsIn, wireless routing device administration interface is the web interface for wireless routing device running parameter to be arranged, it is generally the case that nothingRoute is accessed by equipment management interface by IP address " 192.168.1.1 ".
Using WiFi network channel amending method provided by the embodiments of the present application, it is currently accessed wirelessly when user needs to modifyUsed in routing device when channel, it is only necessary to open the WiFi management application program installed in terminal, and click (WiFi managementApplication program) channel in routing management interface modifies control, and WiFi manages application program can be automatically current in Background controlThe wireless routing device of access executes channel modification operation, and complicated manual modification operation is executed without user;Meanwhile the WiFiManagement application program can be adapted to the wireless routing device of distinct device manufacturer production, and user applies journey using single WiFi managementSequence can be managed a variety of wireless routing devices, to avoid installing a large amount of dedicated management application programs in the terminal, saveSave the memory space of terminal.
Referring to FIG. 2, the implementation ring of the WiFi network channel amending method provided it illustrates the application one embodimentThe schematic diagram in border.It include terminal 210, at least one wireless routing device 220 and server 230 in the implementation environment.
Terminal 210 is the electronic equipment with wireless network connection function, which can be smart phone, plateComputer, desktop computer or personal handheld computer etc..In the embodiment of the present application, WiFi management is installed in terminal 210Application program manages application program by the WiFi, and the wireless routing that terminal 210 can manage the production of distinct device manufacturer is setIt is standby.Optionally, the program development quotient of WiFi management application program is different from the device manufacturer of at least one wireless routing device.
Wireless routing device 220 is for providing the electronic equipment of wireless network, which can be wireless routingDevice or the electronic equipment etc. for opening wireless routing function.Terminal 210 accesses one of wireless routing device 220 and providesWiFi network, to carry out internet access.
Server 230 is the server cluster or cloud computing center that a server, several servers are constituted.It is optional, in the embodiment of the present application, server 230 is the background server that WiFi manages application program in terminal 210.
Under a kind of possible application scenarios, after terminal 210 accesses the WiFi network that wireless routing device 220 provides, fortuneRow WiFi manages application program.When user manages the WiFi management function of application program using WiFi, terminal 210 prompts user defeatedThe login password of access customer wireless routing device 220, to log in wireless routing device 220 according to login password.When receivingTo when the trigger signal of channel modification function, WiFi management application program is set according to wireless routing in WiFi management application programStandby 220 MAC Address determines device manufacturer belonging to wireless routing device 220, and then passes through wireless routing device 220 and clothesThe business interaction of device 230, obtains the corresponding control script of the device manufacturer.WiFi manages application program by executing control script, mouldQuasi- user modifies the operation of channel in wireless routing device administration interface, and respective wireless routing device sends corresponding controlInstruction, so that wireless routing device modifies channel according to control signaling.
The WiFi network channel amending method that following each embodiments provide is the terminal 210 being used in Fig. 2 and serviceDevice 220.
Referring to FIG. 3, the method stream of the WiFi network channel amending method provided it illustrates the application one embodimentCheng Tu, this method are used for implementation environment shown in Fig. 2, and this method comprises the following steps.
Step 301, when receiving channel modification signal, terminal obtains wireless according to the MAC Address of wireless routing deviceThe identification of the manufacturer of routing device corresponding device manufacturer.
In a kind of possible embodiment, the WiFi of terminal operating manages application program explicit routing administration interface, shouldIt include several management function options in routing management interface.When receive channel modification option trigger action when, terminal intoOne step determines the device manufacturer of current wireless routing device.
It since the MAC Address of the network equipment is distributed unitedly by specified tissue to each device manufacturer, and is distinct device factoryThe MAC Address of quotient's distribution has different address fields, and therefore, terminal can be according to the MAC Address of wireless routing device, and determination is worked asDevice manufacturer belonging to preceding wireless routing device, and obtain the identification of the manufacturer of the device manufacturer.
Optionally, include the following steps: when terminal obtains identification of the manufacturer
One, the MAC Address of wireless routing device, the hexadecimal number that MAC Address is 12 are obtained.
For example, the MAC Address that terminal is got is 00-0D-65-12-34-56.
Two, according to manufacturer's field in MAC Address, the corresponding manufacturer's mark of manufacturer's field is searched from default corresponding relationshipKnow, presetting in corresponding relationship includes the corresponding relationship preset between manufacturer's field and default identification of the manufacturer, and manufacturer's field is for MACFirst 6 of location.
It is distributed in MAC Address for device manufacturer, first 6 are manufacturer's field, for indicating the device manufacturer belonging to it.CauseThis, terminal extracts manufacturer's field in MAC Address, and determines device manufacturer according to manufacturer's field.
In a kind of possible embodiment, the corresponding pass between manufacturer's field and identification of the manufacturer is previously stored in terminalIt is that after the manufacturer's field for extracting MAC Address, terminal searches corresponding manufacturer's mark according to manufacturer's field from the corresponding relationshipKnow.
In other possible embodiments, the corresponding relationship between manufacturer's field and identification of the manufacturer is stored in serverIn, terminal obtains corresponding identification of the manufacturer by sending the request comprising manufacturer's field to server from server.
Schematically, the corresponding relationship of manufacturer's field and identification of the manufacturer is as shown in Table 1.
Table one
| Manufacturer's field | Identification of the manufacturer |
| 00-0D-65 | A-Link |
| 00-0D-75 | B-Link |
| 00-0D-85 | C-Link |
In conjunction with the example in above-mentioned steps, the identification of the manufacturer that terminal gets wireless routing device corresponding device manufacturer is“A-Link”。
Step 302, terminal to server sends control script acquisition request, controls in script acquisition request and marks comprising manufacturerKnow.
Further, according to the identification of the manufacturer got, terminal sends control foot to server by wireless routing deviceThis acquisition request to obtain corresponding control script from server, and then is realized by executing the control script to wirelessThe control of routing device.
Optionally, since the control script used when realizing different function is different, in the control script acquisition requestIt also include Function Identification, which is used to indicate the function to be realized.For example, in the present embodiment, the control scriptThe corresponding Function Identification of this function is modified comprising channel in acquisition request.
Schematically, as shown in figure 4, when receiving the click letter to channel modification control 431 in routing administration interface 43Number when, terminal is the identification of the manufacturer for obtaining wireless routing device, and sends corresponding control script acquisition request to server.
Step 303, the control script acquisition request that server receiving terminal is sent.
Step 304, server obtains at least one corresponding control script of device manufacturer according to identification of the manufacturer, controls scriptFor simulating the operation for modifying channel in wireless routing device administration interface, and different control scripts corresponds to different modelWireless routing device.
Since the wireless routing device administration interface that distinct device manufacturer is the exploitation of its wireless routing device has differences, becauseThis user is when realizing identical function in different radio reason equipment, the operation that executes in wireless routing device administration interfaceIt is different.
In a kind of possible embodiment, according to user in different radio routing device administration interface (corresponding different shapedNumber wireless routing device) in modification channel operation, developer writes corresponding control script.Wherein, due to different shapedThere may be larger differences for the function of number wireless routing device (belonging to device manufacturer's production), and therefore, same device manufacturer is correspondingMultiple and different control scripts;Simultaneously as the function of the wireless routing device of similar model is same or similar, and therefore, different shapedNumber wireless routing device may corresponding same control script.
Schematically, as shown in figure 5, being needed successively when user manually modifies the channel of wireless routing deviceClick the wireless setting control 511 in wireless routing device administration interface 51, basic setup controls the setting drop-down control of 512, channelPart 513 and preservation control 514, developer generate corresponding control script, the control according to this series of controls clicking operationThe order of operation and control title of control are included at least in script processed.
According to the identification of the manufacturer for including in control script acquisition request, server acquisition is corresponding with the identification of the manufacturer at leastOne control script, so that subsequent feedback is to terminal.
Schematically, distinct device manufacturer and the corresponding relationship of control script are as shown in Table 2 in server.
Table two
| Identification of the manufacturer | 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, control script 9 |
Step 305, server feeds back at least one control script to terminal.
Step 306, terminal receives at least one control script of the correspondence identification of the manufacturer of server feedback.
Step 307, terminal executes control script, and sends control instruction to wireless routing device, and control instruction is for referring toShow the channel of wireless routing device modification WiFi network.
Since server may feed back multiple control scripts, and and not all control script be suitable for current wireless routingEquipment, therefore, in a kind of possible embodiment, terminal successively executes each control script received, and to no routeControl instruction is sent by equipment, wherein when terminal executes control script, i.e., simulated from the background in wireless routing device management fieldThe operation of channel is modified in face.After wireless routing device receives control instruction, the implementing result instructed to terminal feedback control,If running succeeded, terminal stops executing other control scripts;If executing failure, terminal continues to execute next control footThis.Optionally, the implementing result of wireless routing device adoption status code feedback control instruction.
In alternatively possible embodiment, terminal is after receiving channel modification signal, measurement first network delay,And after sending control instruction, the second network delay is measured;If the second network delay postpones lower than first network, terminal is determinedChannel is successfully modified, and stops executing control script;If the second network delay postpones greater than first network, terminal is continued to executeNext control script.
As shown in fig. 6, the whole flow process of terminal modifications wireless routing device channel includes: that 1, terminal access wireless routing is setIt is standby;2, terminal obtains the identification of the manufacturer of wireless routing device;3, terminal sends control script acquisition by wireless routing device and asksIt asks;4, server issues control script to terminal;5, terminal executes control script and issues control instruction;6, wireless routing deviceChannel is modified according to control instruction.
As shown in figure 4, when needing to modify channel, user need to only input Administrator account and Mi during whole operationCode, and the modification control 431 of the channel in routing management interface 43 is clicked, terminal automatically controls wireless routing device on backstage and repairsIt converts to, operating process is simple;Also, WiFi management application program need to be only installed in terminal, and can be adapted to various brands eachThe wireless routing device of kind model, saves the memory space of terminal.
In conclusion in the present embodiment, when receiving channel modification signal, according to being currently accessed wireless routing deviceMAC Address determines the identification of the manufacturer of its corresponding device manufacturer, to obtain device manufacturer from server according to the identification of the manufacturerAt least one corresponding control script, and then control instruction is sent to wireless routing device by way of executing and controlling script,So that wireless routing device is according to the channel of control instruction modification WiFi network;Control script based on distinct device manufacturer carries outChannel management, when the channel of terminal modifications different brands wireless routing device, it is only necessary to corresponding control is obtained from serverScript, without downloading the corresponding dedicated management application program of installation different radio routing device, to simplify modification letterThe process in road improves modification channel efficiency.
When the multiple control scripts of server feedback, in order to further increase the efficiency of modification channel, terminal is furtherIt identifies the device model of wireless routing device, and is chosen and be suitable for currently wirelessly from multiple control scripts according to the device modelThe target control script of the network equipment.It is illustrated below using schematical embodiment.
Referring to FIG. 7, the method for the WiFi network channel amending method provided it illustrates another embodiment of the applicationFlow chart, this method are used for implementation environment shown in Fig. 2, and this method comprises the following steps.
Step 701, terminal logs in wireless routing device.
In a kind of possible embodiment, terminal accesses the WiFi network that wireless routing device provides, and enables WiFiWhen managing the routing management function that application program provides, the automatic access preset IP address (usually 192.168.1.1) of terminal is comeLog in wireless routing device.Due to needing input router Administrator account and password when logging in wireless routing device, eventuallyLogin interface is shown in the WiFi management application program at end, and indicates that user's input is currently accessed the login account of wireless routing deviceNumber and password.Terminal is the login account inputted according to user and the password login wireless routing device.
It should be noted that terminal is being held from the background by the process that access preset IP address logs in wireless routing deviceRow, user can not perceive on foreground, and user only needs to manage the login account of input wireless routing device in application program in WiFiNumber and password.
Schematically, as shown in figure 4, when the user clicks routing management control 41 when, terminal i.e. in background access without routeLogin interface 42 is shown by device log-on webpage, and on foreground.According to the Administrator account 421 of user's input and administrator's password422, terminal can log in wireless routing device.
Step 702, when receiving channel modification signal, terminal is according to the MAC of the wireless routing device being currently accessedLocation obtains the identification of the manufacturer of wireless routing device corresponding device manufacturer.
The embodiment of this step is similar to step 301, and details are not described herein for the present embodiment.
Step 703, terminal obtains the network information of adjacent WiFi network, and the network information includes the signal of adjacent WiFi networkIntensity and network channel.
In a kind of possible embodiment, terminal has wireless distributed (Wireless DistributionSystem, WDS) function, terminal is to pass through signal strength and network channel that WDS function obtains adjacent WiFi network.
Schematically, terminal get adjacent WiFi network signal strength and network channel it is as shown in Table 3.
Table three
| WiFi network | Signal strength | Network channel |
| Zhangsan-wifi | 80dB | 6 |
| Lisi-wifi | 60dB | 6 |
| Wangwu-wifi | 45dB | 1 |
Step 704, terminal determines destination channel according to the network information.
Since WiFi network can be interfered using other of same channel or adjacent channel WiFi network to generate, eventuallyEnd can the network channel according to used in adjacent WiFi network and signal strength, determine the channel matter of each network channelAmount, and then destination channel is determined based on channel quality.
In a kind of possible embodiment, this step includes the following steps:
One, according to signal strength and network channel, the channel quality of each candidate channel is calculated.
As shown in Figure 1, can be deposited since there are intersections between adjacent channel using between the WiFi network of adjacent channelIt is interfering with each other, and channel spacing is smaller, is interfering bigger;Meanwhile when the signal strength of WiFi network is higher, interference is bigger.
In a kind of possible embodiment, for each candidate channel, terminal calculates the candidate channel and adjacent WiFiChannel spacing between network corresponding network channel, to calculate the channel of candidate channel according to channel spacing and signal strengthQuality, wherein channel quality and signal strength negative correlation, channel quality and channel spacing correlation.
For example, terminal determines the first weight (channel spacing is bigger, and the first weight is bigger) according to channel spacing, according to signalIntensity determines the second weight (signal strength is bigger, and the second weight is smaller), and then is waited according to the first weight and the second weight calculationSelect the channel quality of channel.The embodiment of the present application is not defined the specific calculation for calculating channel quality.
Two, the highest candidate channel of channel quality is determined as destination channel.
Further, in order to guarantee to modify the quality of WiFi network after channel, terminal candidate is believed channel quality is highestRoad is determined as destination channel.
For example, 11 channels are determined as destination channel by terminal in conjunction with the data in table three.
Step 705, terminal to server sends the control script acquisition request comprising destination channel and identification of the manufacturer.
The destination channel determined and identification of the manufacturer are added in control script acquisition request by terminal, and pass through no routeServer is sent the request to by equipment.
Step 706, the control script acquisition request that server receiving terminal is sent.
Step 707, server obtains at least one corresponding control script template of device manufacturer according to identification of the manufacturer.
In order to enable wireless routing device by channel adjustment be destination channel, server need generate comprising the target believeThe control script in road.
In a kind of possible embodiment, at least one control script template, difference control foot are stored in serverThe wireless routing device of the corresponding different model of this template, and the destination channel field in each control script template can be according to realityDifferent numerical value is written in border situation.
When detecting in control script acquisition request while including identification of the manufacturer and destination channel, server, which is known, to be neededControl script is generated according to control script template, to obtain the corresponding control script template of identification of the manufacturer.
Step 708, server generates at least one control foot according at least one control script template and destination channelThis.
Further, after getting control script template, script template is controlled for each, server is by destination channelThe destination channel field of write-in control script template, to obtain at least one control script.
In conjunction with the example in above-mentioned steps, the destination channel of each control script template is written in destination channel 11 by serverField.
Step 709, server feeds back at least one control script to terminal.
Step 710, terminal receives at least one control script of server feedback.
Step 711, terminal extracts the device model of wireless routing device from the login interface of wireless routing device.
Since the corresponding control script of different model wireless routing device may be different, in order to accelerate from several controlsThe control script suitable for current wireless routing device is selected in script processed, terminal needs to further determine that wireless routing deviceDevice model.
Due to that would generally include device model in the login interface of wireless routing device, in a kind of possible implementationIn mode, terminal extracts the device model of wireless routing device when logging in wireless routing device from login interface.
Optionally, when the login interface of terminal background access wireless routing device, the web page source code of login interface is obtained,And the extract equipment model from web page source code.Wherein, since device model format is " xx-xxxxx ", terminal can be withBy using default regular expression (expression formula that device model is met) the extract equipment model from web page source code.This ShenPlease embodiment the concrete mode of extract equipment model is not defined.
For example, the device model that terminal extracts wireless routing device is TL-2140.
Step 712, if including to be held with the matched target control script of device model, terminal at least one control scriptRow target control script, and control instruction is sent to wireless routing device.
Optionally, it is each control script script head include suitable device model (be applicable in the control script without routeBy the device model of equipment), after terminal receives at least one control script, what each control script head of acquisition included is applicable inDevice model, and detect whether the device model matches with suitable device model, so that it is determined that going out to be suitable for current wireless routingThe target control script of equipment.
If including and the matched target control script of device model, terminal performance objective control at least one control scriptScript processed, and control instruction is sent to wireless routing device, channel is revised as according to the control instruction by wireless routing deviceDestination channel.
For example, it includes TL-1234, TL-1234s and TL- that terminal, which extracts the suitable device model that the control head script A includes,1240, extracting the suitable device model that the control head script B includes includes TL-2140, TL-2150s and TL-2160, extracts controlThe suitable device model that the head script C processed includes includes TL-3000, TL-3100 and TL-3120, since current wireless routing is setStandby device model is TL-2140, therefore control script B is determined as target control script by middle see.
It should be noted that terminal can also add device model in control script acquisition request, so that server is straightReversed feedback is suitable for the control script of wireless routing device, and the embodiment of the present application is defined not to this.
Step 713, if not including and the matched target control script of device model, terminal at least one control scriptControl script is executed according to predetermined order, and sends control instruction to wireless routing device.
Due to server feedback control script possibly can not under overlay device manufacturer all models wireless routing device,Do not include and the matched target control script of device model at least one control script.At this point, terminal is according to predetermined orderControl script is executed, sends control instruction to wireless routing device, and current execute is determined according to the feedback of wireless routing deviceControl script whether be suitable for and current wireless routing device.
In a kind of possible embodiment, terminal obtains the utilization rate (being provided by server) of each control script, andEach control script is executed according to the descending of utilization rate.
Step 714, terminal receives the instruction execution result of wireless routing device feedback, and instruction execution result is used to indicate controlWhether system instruction runs succeeded.
Optionally, wireless routing device is to terminal feedback states code, when status code instruction control instruction runs succeeded, eventuallyEnd executes step 715;When status code instruction control instruction executes failure, terminal executes step 716.
Step 715, if instruction execution result instruction control instruction runs succeeded, stop executing other control scripts.
When control instruction runs succeeded, terminal determines that channel is successfully modified, and stops executing remaining control script.
Optionally, terminal stores control script, directly uses when channel to modify again.
Step 716, if instruction execution result instruction control instruction executes failure, next control script is executed.
When control instruction executes failure, terminal determines channel modification failure, and continues to execute next control script simultaneouslySend control instruction.
Optionally, when each control script can not be suitable for current wireless routing device, terminal shows and mentions accordinglyShow information, and the device identification of current wireless routing device is reported into server, so that developer sets for the wireless routingIt is standby to write corresponding control script.
As shown in figure 8, the whole flow process of terminal modifications wireless routing device channel includes: that 1, terminal access wireless routing is setIt is standby;2, terminal obtains the identification of the manufacturer of wireless routing device;3, terminal determines target according to the network information of adjacent WiFi networkChannel;4, terminal sends control script acquisition request by wireless routing device;5, server is according to control script template and meshIt marks channel and generates control script;6, server issues control script to terminal;7, terminal obtains the equipment type of wireless routing deviceNumber, and determine target control script;8, terminal performance objective controls script and issues control instruction;9, wireless routing device according toControl instruction modifies channel.
In the present embodiment, terminal is screened by extracting the device model for including in login interface, and according to the device modelIt is suitable for the target control script of current wireless routing device out, channel modification is realized thereby executing target control script, into oneStep improves the efficiency of channel modification.
In addition, the network information of the terminal according to adjacent WiFi network, is determined as target letter for the optimal channel of channel qualityRoad, and indicate that server is based on destination channel and generates corresponding control script, so as to terminal according to control Script controlling without routeChannel is revised as by equipment to interfere minimum channel, to improve the quality of WiFi network.
It should be noted that in above-mentioned each embodiment, using terminal as executing subject the step of, which can be implemented separately, to be becomeThe WiFi network channel amending method of terminal side, using server as executing subject the step of, can be implemented separately as server sideWiFi network channel amending method, the embodiment of the present application repeats no more.
Following is apparatus of the present invention embodiment, can be used for executing embodiment of the present invention method.For apparatus of the present invention realityUndisclosed details in example is applied, embodiment of the present invention method is please referred to.
Referring to FIG. 9, the block diagram of the WiFi network channel modification device provided it illustrates the application one embodiment.It shouldDevice can also be executed corresponding software realization by hardware realization by hardware.The apparatus may include:
Identifier acquisition module 910, for when receive channel modification signal when, according to the wireless routing device being currently accessedMAC address, obtain the identification of the manufacturer of wireless routing device corresponding device manufacturer;
Request sending module 920, for sending control script acquisition request, the control script acquisition request to serverIn include the identification of the manufacturer;
Script receiving module 930, at least one institute of the correspondence identification of the manufacturer for receiving the server feedbackControl script is stated, the control script is used to simulate the operation that channel is modified in wireless routing device administration interface, and differentControl script correspond to the wireless routing device of different model;
Execution module 940 sends control instruction, institute for executing the control script, and to the wireless routing deviceState the channel that control instruction is used to indicate the wireless routing device modification WiFi network.
Optionally, described device further include:
Login module, for logging in the wireless routing device;
Execution module 940 is used for:
The device model of the wireless routing device is extracted from the login interface of the wireless routing device;
If at least one described control script comprising with the matched target control script of the device model, execute instituteTarget control script is stated, and sends the control instruction to the wireless routing device.
Optionally, execution module 940 are also used to:
If at least one control script in do not include with the matched target control script of the device model, successivelyThe control script is executed, and sends the control instruction to the wireless routing device;
The instruction execution result of the wireless routing device feedback is received, described instruction implementing result is used to indicate the controlWhether system instruction runs succeeded;
If described instruction implementing result indicates that the control instruction runs succeeded, stop executing other control scripts;
If described instruction implementing result indicates that the control instruction executes failure, next control script is executed.
It optionally, also include destination channel in the control script acquisition request;
The request sending module 920, is used for:
The network information of adjacent WiFi network is obtained, the network information includes the signal strength of the adjacent WiFi networkAnd network channel;
The destination channel is determined according to the network information;
The control script acquisition request comprising the destination channel and the identification of the manufacturer is sent to the server,The server is used to generate at least one described control script according to the destination channel and the identification of the manufacturer, described wirelessRouting device is used to that the channel of the WiFi network to be revised as the destination channel according to the control instruction.
Optionally, request sending module 920 are used for:
According to the signal strength and the network channel, the channel quality of each candidate channel is calculated;
The highest candidate channel of the channel quality is determined as the destination channel;
Wherein, the channel quality and the network signal intensity negative correlation, the channel quality and interchannelEvery correlation, interval of the channel spacing between the network channel and the candidate channel.
Optionally, identifier acquisition module 910 are used for:
Obtain the MAC Address of the wireless routing device, the hexadecimal number that the MAC Address is 12;
According to manufacturer's field in the MAC Address, the corresponding institute of manufacturer's field is searched from default corresponding relationshipIdentification of the manufacturer is stated, includes the corresponding relationship between default manufacturer's field and default identification of the manufacturer, institute in the default corresponding relationshipState first 6 that manufacturer's field is the MAC Address.
Referring to FIG. 10, the frame of the WiFi network channel modification device provided it illustrates another embodiment of the applicationFigure.The device can also be executed corresponding software realization by hardware realization by hardware.The apparatus may include:
Request receiving module 1010, for receiving the control script acquisition request of terminal transmission, the control script is obtainedThe identification of the manufacturer for the wireless routing device corresponding device manufacturer being currently accessed in request comprising the terminal, the identification of the manufacturer byThe terminal is determined according to the MAC address of the wireless routing device;
Script obtains module 1020, for obtaining at least one corresponding control of the device manufacturer according to the identification of the manufacturerScript processed, the control script are used to simulate the operation that channel is modified in wireless routing device administration interface, and different controlsScript processed corresponds to the wireless routing device of different model;
Script feedback module 1030, for feeding back at least one described control script to the terminal, the terminal is used forThe control script is executed, and sends control instruction to the wireless routing device, the control instruction is used to indicate the nothingRoute by apparatus modifications WiFi network channel.
It optionally, include also destination channel in the control script acquisition request, the destination channel is by the terminal rootIt is determined according to the network information of adjacent WiFi network;
The script obtains module 1020, is used for:
According to the identification of the manufacturer, at least one corresponding control script template of the device manufacturer is obtained;
According to control script template and the destination channel described at least one, at least one described control script is generated,The terminal for executing at least one described control script, so as to the wireless routing device according to the control instruction by instituteThe channel for stating WiFi network is revised as the destination channel.
It should be noted that device provided by the above embodiment is when realizing its function, only with above-mentioned each functional moduleIt divides and carries out for example, can according to need in practical application and be completed by different functional modules above-mentioned function distribution,The internal structure of terminal or server is divided into different functional modules, to complete all or part of function described aboveEnergy.In addition, apparatus and method embodiment provided by the above embodiment belongs to same design, specific implementation process is detailed in method realityExample is applied, which is not described herein again.
Figure 11 shows the structural block diagram of the terminal 1100 of one exemplary embodiment of the application offer.The terminal 1100 canTo be portable mobile termianl, such as: smart phone, tablet computer, MP3 player (Moving Picture ExpertsGroup Audio Layer III, dynamic image expert's compression standard audio level 3), MP4 (Moving PictureExperts Group Audio Layer IV, dynamic image expert's compression standard audio level 4) player.Terminal 1100 is alsoOther titles such as user equipment, portable terminal may be referred to as.
In general, terminal 1100 includes: processor 1101 and memory 1102.
Processor 1101 may include one or more processing cores, such as 4 core processors, 8 core processors etc..PlaceReason device 1101 can use DSP (Digital Signal Processing, Digital Signal Processing), FPGA (Field-Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array, may be programmedLogic array) at least one of example, in hardware realize.Processor 1101 also may include primary processor and coprocessor, masterProcessor is the processor for being handled data in the awake state, also referred to as CPU (Central ProcessingUnit, central processing unit);Coprocessor is the low power processor for being handled data in the standby state.InIn some embodiments, processor 1101 can be integrated with GPU (Graphics Processing Unit, image processor),GPU is used to be responsible for the rendering and drafting of content to be shown needed for display screen.In some embodiments, processor 1101 can also be wrappedAI (Artificial Intelligence, artificial intelligence) processor is included, the AI processor is for handling related machine learningCalculating operation.
Memory 1102 may include one or more computer readable storage mediums, which canTo be tangible and non-transient.Memory 1102 may also include high-speed random access memory and nonvolatile memory,Such as one or more disk storage equipments, flash memory device.In some embodiments, non-transient in memory 1102Computer readable storage medium for storing at least one instruction, at least one instruction for performed by processor 1101 withRealize method for video coding provided herein.
In some embodiments, terminal 1100 is also optional includes: peripheral device interface 1103 and at least one periphery are setIt is standby.Specifically, peripheral equipment includes: radio circuit 1104, touch display screen 1105, camera 1106, voicefrequency circuit 1107, determinesAt least one of hyte part 1108 and power supply 1109.
Peripheral device interface 1103 can be used for I/O (Input/Output, input/output) is relevant outside at least onePeripheral equipment is connected to processor 1101 and memory 1102.In some embodiments, processor 1101, memory 1102 and peripheryEquipment interface 1103 is integrated on same chip or circuit board;In some other embodiments, processor 1101, memory1102 and peripheral device interface 1103 in any one or two can be realized on individual chip or circuit board, this implementationExample is not limited this.
Radio circuit 1104 is for receiving and emitting RF (Radio Frequency, radio frequency) signal, also referred to as electromagnetic signal.Radio circuit 1104 is communicated by electromagnetic signal with communication network and other communication equipments.Radio circuit 1104 is by telecommunicationsNumber being converted to electromagnetic signal is sent, alternatively, the electromagnetic signal received is converted to electric signal.Optionally, radio circuit1104 include: antenna system, RF transceiver, one or more amplifiers, tuner, oscillator, digital signal processor, volume solutionCode chipset, user identity module card etc..Radio circuit 1104 can by least one wireless communication protocol come with it is otherTerminal is communicated.The wireless communication protocol includes but is not limited to: WWW, Metropolitan Area Network (MAN), Intranet, each third generation mobile communication network(2G, 3G, 4G and 5G), WLAN and/or WiFi (Wireless Fidelity, Wireless Fidelity) network.In some implementationsIn example, radio circuit 1104 can also include that NFC (Near Field Communication, wireless near field communication) is relatedCircuit, the application are not limited this.
Touch display screen 1105 is for showing UI (User Interface, user interface).The UI may include figure, textSheet, icon, video and its their any combination.Touch display screen 1105 also has acquisition on the surface of touch display screen 1105Or the ability of the touch signal of surface.The touch signal can be used as control signal and be input at processor 1101Reason.Touch display screen 1105 is for providing virtual push button and/or dummy keyboard, also referred to as soft button and/or soft keyboard.In some realitiesIt applies in example, touch display screen 1105 can be one, and the front panel of terminal 1100 is arranged;In further embodiments, it touches aobviousDisplay screen 1105 can be at least two, be separately positioned on the different surfaces of terminal 1100 or in foldover design;In still other implementationIn example, touch display screen 1105 can be flexible display screen, be arranged on the curved surface of terminal 1100 or on fold plane.VeryExtremely, touch display screen 1105 can also be arranged to non-rectangle irregular figure, namely abnormity screen.Touch display screen 1105 can be withUsing LCD (Liquid Crystal Display, liquid crystal display), OLED (Organic Light-Emitting Diode,Organic Light Emitting Diode) etc. materials preparation.
CCD camera assembly 1106 is for acquiring image or video.Optionally, CCD camera assembly 1106 includes front cameraAnd rear camera.In general, front camera is for realizing video calling or self-timer, rear camera is for realizing photo or viewThe shooting of frequency.In some embodiments, rear camera at least two are that main camera, depth of field camera, wide-angle are taken the photograph respectivelyAs any one in head, to realize that main camera and the fusion of depth of field camera realize background blurring function, main camera and widePan-shot and VR (Virtual Reality, virtual reality) shooting function are realized in camera fusion in angle.In some embodimentsIn, CCD camera assembly 1106 can also include flash lamp.Flash lamp can be monochromatic warm flash lamp, be also possible to double-colored temperature flash of lightLamp.Double-colored temperature flash lamp refers to the combination of warm light flash lamp and cold light flash lamp, can be used for the light compensation under different-colour.
Voicefrequency circuit 1107 is used to provide the audio interface between user and terminal 1100.Voicefrequency circuit 1107 may includeMicrophone and loudspeaker.Microphone is used to acquire the sound wave of user and environment, and converts sound waves into electric signal and be input to processingDevice 1101 is handled, or is input to radio circuit 1104 to realize voice communication.For stereo acquisition or the mesh of noise reduction, microphone can be separately positioned on the different parts of terminal 1100 to be multiple.Microphone can also be array microphone or completeTo acquisition type microphone.Loudspeaker is then used to that sound wave will to be converted to from the electric signal of processor 1101 or radio circuit 1104.Loudspeaker can be traditional wafer speaker, be also possible to piezoelectric ceramic loudspeaker.When loudspeaker is piezoelectric ceramic loudspeakerWhen, the audible sound wave of the mankind can be not only converted electrical signals to, the sound that the mankind do not hear can also be converted electrical signals toWave is to carry out the purposes such as ranging.In some embodiments, voicefrequency circuit 1107 can also include earphone jack.
Positioning component 1108 is used for the current geographic position of positioning terminal 1100, to realize navigation or LBS (LocationBased Service, location based service).Positioning component 1108 can be the GPS (Global based on the U.S.Positioning System, global positioning system), China dipper system or Russia Galileo system positioning groupPart.
Power supply 1109 is used to be powered for the various components in terminal 1100.Power supply 1109 can be alternating current, direct currentElectricity, disposable battery or rechargeable battery.When power supply 1109 includes rechargeable battery, which can be line chargeBattery or wireless charging battery.Wired charging battery is the battery to be charged by Wireline, and wireless charging battery is to pass throughThe battery of wireless coil charging.The rechargeable battery can be also used for supporting fast charge technology.
In some embodiments, terminal 1100 further includes having one or more sensors 1110.One or more sensingDevice 1010 includes but is not limited to: acceleration transducer 1011, gyro sensor 1112, pressure sensor 1113, fingerprint sensingDevice 1114, optical sensor 1115 and proximity sensor 1116.
Acceleration transducer 1111 can detecte the acceleration in three reference axis of the coordinate system established with terminal 1100Size.For example, acceleration transducer 1111 can be used for detecting component of the acceleration of gravity in three reference axis.ProcessorThe 1101 acceleration of gravity signals that can be acquired according to acceleration transducer 1111, control touch display screen 1105 with transverse viewsOr longitudinal view carries out the display of user interface.Acceleration transducer 1111 can be also used for game or the exercise data of userAcquisition.
Gyro sensor 1112 can detecte body direction and the rotational angle of terminal 1100, gyro sensor 1112Acquisition user can be cooperateed with to act the 3D of terminal 1100 with acceleration transducer 1111.Processor 1101 is according to gyro sensorsThe data that device 1112 acquires, following function may be implemented: action induction (for example changing UI according to the tilt operation of user) is clappedImage stabilization, game control and inertial navigation when taking the photograph.
The lower layer of side frame and/or touch display screen 1105 in terminal 1100 can be set in pressure sensor 1113.WhenWhen the side frame of terminal 1100 is arranged in pressure sensor 1113, user can detecte to the gripping signal of terminal 1100, according toThe gripping signal carries out right-hand man's identification or prompt operation.When the lower layer of touch display screen 1105 is arranged in pressure sensor 1113When, it can be according to user to the pressure operation of touch display screen 1105, the operability control on the interface UI is controlled in realizationSystem.Operability control includes at least one of button control, scroll bar control, icon control, menu control.
Fingerprint sensor 1114 is used to acquire the fingerprint of user, according to the identity of collected fingerprint recognition user.InWhen the identity for identifying user is trusted identity, the user is authorized to execute relevant sensitive operation, the sensitivity by processor 1101Operation includes solving lock screen, checking encryption information, downloading software, payment and change setting etc..Fingerprint sensor 1114 can be byThe front, the back side or side of terminal 1100 are set.When being provided with physical button or manufacturer Logo in terminal 1100, fingerprint sensingDevice 1114 can be integrated with physical button or manufacturer Logo.
Optical sensor 1115 is for acquiring ambient light intensity.In one embodiment, processor 1101 can be according to lightThe ambient light intensity that sensor 1115 acquires is learned, the display brightness of touch display screen 1105 is controlled.Specifically, work as ambient light intensityWhen higher, the display brightness of touch display screen 1105 is turned up;When ambient light intensity is lower, the aobvious of touch display screen 1105 is turned downShow brightness.In another embodiment, the ambient light intensity that processor 1101 can also be acquired according to optical sensor 1115, is movedThe acquisition parameters of state adjustment CCD camera assembly 1106.
Proximity sensor 1116, also referred to as range sensor are generally arranged at the front of terminal 1100.Proximity sensor 1116For acquiring the distance between the front of user Yu terminal 1100.In one embodiment, when proximity sensor 1116 detectsWhen the distance between the front of user and terminal 1100 gradually becomes smaller, touch display screen 1105 is controlled from bright screen by processor 1101State is switched to breath screen state;When proximity sensor 1116 detects that the distance between user and the front of terminal 1100 gradually becomeWhen big, touch display screen 1105 is controlled by processor 1101 and is switched to bright screen state from breath screen state.
It, can be with it will be understood by those skilled in the art that the restriction of the not structure paired terminal 1100 of structure shown in Figure 11Including than illustrating more or fewer components, perhaps combining certain components or being arranged using different components.
The embodiment of the present application also provides a kind of computer readable storage medium, and at least one finger is stored in the storage mediumEnable, at least a Duan Chengxu, code set or instruction set, at least one instruction, an at least Duan Chengxu, the code set orInstruction set is loaded by the processor and is executed to realize that the telecommunication fraud trojan horse program provided such as above-mentioned each embodiment interceptsMethod.
Optionally, the computer readable storage medium may include: read-only memory (ROM, Read Only Memory),Random access memory (RAM, Random Access Memory), solid state hard disk (SSD, Solid State Drives) or lightDisk etc..Wherein, random access memory may include resistive random access memory body (ReRAM, Resistance RandomAccess Memory) and dynamic random access memory (DRAM, Dynamic Random Access Memory).Above-mentionedApply for that embodiment sequence number is for illustration only, does not represent the advantages or disadvantages of the embodiments.