Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to embodiment party of the present invention
Formula is described in further detail.
Referring to Fig. 1, a kind of multi-terminal control method based on wifi is embodiments provided, including:
Step 101:Mobile terminal receives SSID (the Service Set of AP (Access Point, WAP)
Identifier, service set);
Step 102:If comprising control mark in the SSID, mobile terminal is according to corresponding to wifi agreements access the SSID
AP, and pass through access AP obtain control information.
Wherein, the present embodiment is applied to control a large amount of mobile terminals to carry out the scene of unified operation, for example, Ke Yiying
The scene of updating operation is carried out for needing to control a large amount of mobile terminals.
In embodiments of the present invention, mobile terminal receives the SSID of AP, if comprising control mark, basis in the SSID
Wifi agreements access the AP corresponding to the SSID, and obtain control information by the AP for accessing.Thus, mobile terminal is according to wifi
Agreement access AP simultaneously obtains control information automatically, improves the efficiency of control mobile terminal and guarantees normal control movement eventually
End.
Embodiments provide a kind of multi-terminal control method based on wifi.Wherein, the method is applied to
Controlling a large amount of mobile terminals carries out the scene of unified operation, and for example, the scene can be to need to control a large amount of mobile terminals to carry out
The scene of updating operation, and the present embodiment said by needing to control as a example by a large amount of mobile terminals carry out the scene of updating operation
Bright, i.e., the present embodiment is controlled substantial amounts of mobile terminal by the method and carries out updating operation, and referring to Fig. 2, the method includes:
Step 201:Upgrading AP broadcast upgrading SSID, upgrading SSID include control mark and control information broadcast mode, and
The control information broadcast mode is multicast mode;
Wherein, the upgrading SSID of upgrading AP can uniquely identify a upgrading AP, and upgrading AP is on default frequency
Broadcast upgrading SSID give mobile terminal to be upgraded.Wherein, in the present embodiment, technical staff arranges one or more upgradings
AP, when needing to upgrade mobile terminal, starts the upgrading AP for arranging, and upgrading AP is generated comprising control mark and controlled letter
The upgrading SSID of breath broadcast mode, the upgrading SSID that then broadcast is generated on default frequency gives mobile terminal to be upgraded.
Wherein, the present embodiment is applied to the network architecture as shown in Figure 3, and the network architecture includes upgrade server and upgrading
AP, upgrading AP is used for mobile terminal to be upgraded of upgrading;Upgrade server is connected with upgrading AP, and mobile terminal to be upgraded can be with
It is connected on upgrading AP according to wifi agreements;Upgrade server can be connected by wired mode or wireless mode with upgrading AP,
For example upgrade server can be connected on upgrading AP by netting twine or USB line.
Wherein, the SSID that upgrades is the character string of 32, upgrading SSID including three parts be respectively Part I, second
Divide and Part III, wherein, Part I can be used for including control mark that Part II can be used for including that control information is wide
Broadcast mode, and Part III can be used for including controlling the index of AP.
Step 202:Mobile terminal to be upgraded receives the SSID of AP from default frequency, if wrapped in the SSID for receiving
Upgrading SSID is included, then execution step 203;
Specifically, mobile terminal to be upgraded receive from default frequency can cover its position AP send
Whether SSID, check comprising control mark in each SSID of reception, if viewing the SSID comprising control mark, comprising
The SSID for controlling to identify is upgrading SSID, and determines therefrom that out that the SSID of reception includes upgrading SSID and determines and can enter
Row upgrading, then triggering performs follow-up upgrading flow process.If not including upgrading SSID in the SSID for receiving, upgrading is not triggered
Flow process.
Wherein, in the present embodiment, default frequency and default frequency phase in upgrading AP in mobile terminal to be upgraded
Together.
Wherein, in some scenes, the quantity of mobile terminal to be upgraded is more, and technical staff can start multiple simultaneously
Upgrade AP, and then each upgrading AP broadcasts the upgrading SSID of itself to mobile terminal to be upgraded, so mobile end to be upgraded
End is likely to be received multiple upgrading SSID comprising control mark.
Wherein, in the present embodiment, mobile terminal to be upgraded is upgraded using multicast mode;And each is to be upgraded
Mobile terminal in preset a multicast address, the multicast address for upgrade server address;In addition, wrapping in upgrade server
Upgrading data packet is included, the upgrading data multicast that upgrade server can include the upgrading data packet is in its corresponding multicast group
Each multicast member.
Step 203:If the quantity of upgrading SSID is more than 1, mobile terminal to be upgraded is according to the corresponding liters of upgrading SSID
The signal quality of level AP selects a upgrading AP from the corresponding upgrading AP of upgrading SSID;
Specifically, mobile terminal to be upgraded is top-quality one from selection signal in the corresponding upgrading AP of upgrading SSID
Upgrading AP;Or, upgrading AP of the signal quality more than predetermined threshold value is determined from the corresponding upgrading AP of upgrading SSID, from determination
Upgrading AP in random selection one upgrading AP.
Wherein, if the quantity of upgrading SSID is 1, it is corresponding that mobile terminal to be upgraded directly selects upgrading SSID
Upgrade AP, then execution step 204.
Step 204:Mobile terminal to be upgraded is set up and the wireless connection between the upgrading AP of selection according to wifi agreements,
To access the upgrading AP of selection, and control information broadcast mode is extracted from the upgrading SSID of the upgrading AP for selecting;
Step 205:Mobile terminal to be upgraded is judged the control information broadcast mode for extracting, if multicast side
Formula, then by multicast group corresponding with the default multicast address of wireless connection addition between the upgrading AP for selecting;
Wherein, mobile terminal to be upgraded can according to default multicast address, and by select upgrading AP between
Wireless linkup transmit multicast join request to the corresponding upgrade server of default multicast address, and the multicast is added in request
Carry the mark of mobile terminal to be upgraded;Upgrade server receives the multicast and adds request, and adds request according to the multicast
The mark for carrying mobile terminal to be upgraded is added to mobile terminal to be upgraded in its corresponding multicast group.
Wherein, upgrade server includes the upgrading data that upgrading data packet includes, upgrade server can ceaselessly by
The upgrading data that upgrading data packet includes are packaged into corresponding one or more packets and multicast is to its corresponding multicast group
In multicast member.Wherein, the packet of upgrade server multicast includes the version number of upgrading data packet.
Wherein, in the present embodiment, mobile terminal to be upgraded can first carry out the upgrading SSID from the upgrading AP for selecting
The middle process extracted control information broadcast mode and judged control information broadcast mode, then performs again foundation with upgrading
The process of the wireless connection between AP;Or, mobile terminal to be upgraded can be first carried out sets up wireless and upgrading AP between
The process of connection, then performs again and control information broadcast mode is extracted from the upgrading SSID of the upgrading AP for selecting and to control letter
The process that breath broadcast mode is judged;Or, mobile terminal to be upgraded can also simultaneously perform above-mentioned two process.
Step 206:Mobile terminal to be upgraded receives the upgrading data of multicast according to default multicast address, when receiving
During complete upgrading data packet, the upgrading data packet of reception is stored in local storage space, wherein, the upgrading data packet is
For the control information that mobile terminal to be upgraded needs to obtain.
Wherein, optionally, mobile terminal to be upgraded is when the upgrading corresponding packet of data is initially received, from
The version number of upgrading data packet is extracted in the packet, and is compared with the version number of the upgrading data packet of itself storage, if two
Person is different, then continue to the corresponding packet of upgrading data of multicast, and when complete upgrading data packet is received, will connect
The upgrading data packet of receipts is stored in local storage space;If both are identical, it is determined that go out and need not continue to be upgraded, stop
Only continue to the corresponding packet of upgrading data of multicast.
Further, optionally, mobile terminal to be upgraded has been received after complete upgrading data packet, can also be passed through
CRC (Cyclical Redundancy Check, CRC) mechanism come judge receive upgrading data packet whether just
Really, if correctly, upgrading data packet is installed to realize upgrading, if incorrect, it is determined that go out and be not properly received ascending series
According to bag, mobile terminal restarting to be upgraded, and upon actuation return to step 202 starts to perform.
Wherein, if mobile terminal to be upgraded is not properly received upgrading data packet, mobile terminal weight to be upgraded
New to start, mobile terminal to be upgraded can abandon the data such as the upgrading data packet that received during restarting, and
After restarting, mobile terminal to be upgraded receives the SSID of AP again, selects upgrading AP and obtains the behaviour such as upgrading data packet
Make, an abnormal program so can be set in mobile terminal to be upgraded and not be properly received upgrading data
Abnormality processing is carried out during bag, upgrade cost is reduced.
Wherein, optionally, after the completion of updating mobile terminal to be upgraded, the corresponding multicast of default multicast address is exited
Group, and the wireless connection for discharging and upgrading between AP.
In embodiments of the present invention, AP broadcast upgrading SSID are upgraded to mobile terminal to be upgraded, mobile end to be upgraded
End receives the SSID of AP, if the SSID for receiving includes the upgrading SSID of upgrading AP, it is determined that going out to upgrade, if having multiple
Upgrading SSID, then select one according to the signal quality of the corresponding upgrading AP of upgrading SSID from the corresponding upgrading AP of upgrading SSID
Upgrading AP, if there is a upgrading SSID, directly selects the corresponding upgrading AP of upgrading SSID, is set up and choosing according to wifi agreements
Wireless connection between the upgrading AP for selecting, by the wireless connection the corresponding multicast group of default multicast address is added, and is received
The upgrading data packet of upgrade server multicast.Mobile terminal so to be upgraded can be according to wifi agreements by wireless connection
Mode is linked into upgrading AP and is upgraded automatically, so improves and rises stage efficiency and the normal upgrading of guarantee.
Embodiments provide a kind of multi-terminal control method based on wifi.Wherein, the method is applied to
Controlling a large amount of mobile terminals carries out the scene of unified operation, and for example, the scene can be to need to control a large amount of mobile terminals to carry out
The scene of updating operation, and the present embodiment said by needing to control as a example by a large amount of mobile terminals carry out the scene of updating operation
Bright, i.e., the present embodiment is controlled substantial amounts of mobile terminal by the method and carries out updating operation, and referring to Fig. 4, the method includes:
Step 301:Upgrading AP broadcast upgrading SSID, upgrading SSID include control mark and control information broadcast mode, and
The control information broadcast mode is mode of unicast;
Wherein, the upgrading SSID of upgrading AP can uniquely identify a upgrading AP, and upgrading AP is on default frequency
Broadcast upgrading SSID give mobile terminal to be upgraded.Wherein, in the present embodiment, technical staff arranges one or more upgradings
AP, when needing to upgrade mobile terminal, starts the upgrading AP for arranging, and the AP that upgrades generates the control letter comprising control mark
The upgrading SSID of breath broadcast mode, the upgrading SSID that then broadcast is generated on default frequency gives mobile terminal to be upgraded.
Wherein, the present embodiment is applied to the network architecture as shown in Figure 3, and the network architecture includes upgrade server and upgrading
AP, upgrading AP is used for mobile terminal to be upgraded of upgrading;Upgrade server is connected with upgrading AP, and mobile terminal to be upgraded can be with
It is connected to upgrade on AP according to wifi agreements;Upgrade server can be by wired mode or wireless mode and upgrading AP phases
Even, for example upgrade server can be connected on upgrading AP by netting twine or USB line.
Wherein, the upgrading SSID of upgrading AP is individual 32 character string, and upgrading SSID is respectively first including three parts
Point, Part II and Part III, wherein, Part I can be used for including that control is identified that Part II can be used for including
Control information broadcast mode, and Part III can be used for including upgrading the index of AP.
Step 302:Mobile terminal to be upgraded receives the SSID of AP from default frequency, if wrapped in the SSID for receiving
Include upgrading SSID, it is determined that go out needs and upgraded, and execution step 303;
Specifically, mobile terminal to be upgraded receives the AP broadcast that can cover its position from default frequency
Whether SSID, check comprising control mark in each SSID of reception, if viewing the SSID comprising control mark, comprising
The SSID for controlling to identify is upgrading SSID, it is determined that going out the SSID of reception includes upgrading SSID and determine and can be risen
Level, then triggering performs follow-up upgrading flow process.If there is no upgrading SSID in the SSID for receiving, upgrading stream is not triggered
Journey.
Wherein, in the present embodiment, default frequency and default frequency phase in upgrading AP in mobile terminal to be upgraded
Together.
Wherein, in some scenes, the quantity of mobile terminal to be upgraded is more, and technical staff can start multiple simultaneously
Upgrade AP, and then each upgrading AP broadcasts the upgrading SSID of itself to mobile terminal to be upgraded, so standby communication terminal may
Receive multiple upgrading SSID comprising control mark.
Wherein, in the present embodiment, mobile terminal to be upgraded is upgraded using mode of unicast;And each is to be upgraded
Mobile terminal in preset upgrade server address.
Step 303:If the quantity of upgrading SSID is more than 1, mobile terminal to be upgraded is according to the corresponding liters of upgrading SSID
The signal quality of level AP selects a upgrading AP from the corresponding upgrading AP of upgrading SSID;
Specifically, mobile terminal to be upgraded is top-quality one from selection signal in the corresponding upgrading AP of upgrading SSID
Upgrading AP;Or, upgrading AP of the signal quality more than predetermined threshold value is determined from the corresponding upgrading AP of upgrading SSID, from determination
Upgrading AP in random selection one upgrading AP.
Wherein, if the quantity of upgrading SSID is 1, it is corresponding that mobile terminal to be upgraded directly selects upgrading SSID
Upgrade AP, then execution step 304.
Step 304:Mobile terminal to be upgraded is set up and the wireless connection between the upgrading AP of selection according to wifi agreements,
To access the upgrading AP of selection, and control information broadcast mode is extracted from the upgrading SSID of the upgrading AP for selecting;
Step 305:Mobile terminal to be upgraded is judged the control information broadcast mode for extracting, if unicast side
Formula, then set up and the connection between upgrade server in the wireless connection between the upgrading AP for selecting;
Specifically, mobile terminal to be upgraded to extract control information broadcast mode judge, if unicast side
Formula, then according to the address of default upgrade server, set up and upgrading clothes in the wireless connection between the upgrading AP for selecting
Connection between business device.
Wherein, in the present embodiment, mobile terminal to be upgraded can first carry out the upgrading SSID from the upgrading AP for selecting
The middle process extracted control information broadcast mode and judged control information broadcast mode, then performs again foundation with upgrading
The process of the wireless connection between AP;Or, mobile terminal to be upgraded can be first carried out sets up wireless and upgrading AP between
The process of connection, then performs again and control information broadcast mode is extracted from the upgrading SSID of the upgrading AP for selecting and to control letter
The process that breath broadcast mode is judged;Or, mobile terminal to be upgraded can also simultaneously perform above-mentioned two process.
Step 306:Mobile terminal to be upgraded is risen by being connected to be obtained from upgrade server between upgrade server
DBMS bag, the upgrading data packet of acquisition is stored in local storage space, wherein, the upgrading data packet is to be upgraded
Mobile terminal needs the control information for obtaining.
Wherein, optionally, mobile terminal to be upgraded set up and the connection between upgrade server after, from upgrade server
The middle version number for obtaining upgrading data packet, and compare with the version number of the upgrading data packet of itself storage, if both are different,
This step is continued executing with, to obtain upgrading data packet;If both are identical, it is determined that go out and need not continue to be upgraded, stop
Perform this step.
Further, optionally, after the complete upgrading data packet of acquisition for mobile terminal to be upgraded, can also pass through
Whether CRC mechanism is correct to judge the upgrading data packet for obtaining, if correctly, installs upgrading data to realize upgrading, if
Incorrect, it is determined that to go out and successfully do not get upgrading data packet, to be upgraded mobile terminal restarting, and return upon actuation
Return step 302 to start to perform.
Wherein, if mobile terminal to be upgraded does not successfully get upgrading data packet, mobile terminal to be upgraded
Restarting, mobile terminal to be upgraded can abandon the data such as the upgrading data packet that received during restarting, and
After restarting, mobile terminal to be upgraded receives the SSID of AP again, selects upgrading AP and obtains upgrading data packet etc.
Operation, an abnormal program so can be arranged in mobile terminal to be upgraded and ought successfully not get upgrading
Abnormality processing is carried out during packet, upgrade cost is reduced.
Wherein, alternatively, the wireless connection after the completion of updating mobile terminal to be upgraded, between release and upgrading AP.
In embodiments of the present invention, AP broadcast upgrading SSID are upgraded to mobile terminal to be upgraded, mobile end to be upgraded
End receives the SSID of AP, if the SSID for receiving includes the upgrading SSID of upgrading AP, it is determined that going out to upgrade, if having multiple
Upgrading SSID, then select one according to the signal quality of the corresponding upgrading AP of upgrading SSID from the corresponding upgrading AP of upgrading SSID
Upgrading AP, if there is a upgrading SSID, directly selects the corresponding upgrading AP of upgrading SSID, is set up and choosing according to wifi agreements
Wireless connection between the upgrading AP for selecting, by the connection between the wireless connection establishment and upgrade server, and by with liter
Connection between level server obtains upgrading data packet from upgrade server, to complete upgrading.Mobile end so to be upgraded
End can so improve upgrading effect upgrading AP is linked into by way of wireless connection according to wifi agreements and is upgraded automatically
Rate and the normal upgrading of guarantee.
Referring to Fig. 5, a kind of multiple terminals control device based on wifi is embodiments provided, including:
Receiver module 401, for receiving the SSID of AP;
AM access module 402, if for identifying comprising control in the SSID, according to corresponding to wifi agreements access the SSID
AP;
Acquisition module 403, for obtaining control information by the AP.
Wherein, AM access module 402 includes:
First access unit, if for the SSID more than one comprising control mark, from respectively comprising the SSID of control mark
The top-quality AP of selection signal is accessed in corresponding AP;Or,
Second access unit, for determining that signal quality is more than from the AP corresponding to the SSID respectively comprising control mark
The AP of predetermined threshold value, one AP of random selection is accessed from the AP for determining.
Wherein, control information broadcast mode is also included in the SSID comprising control mark, if the control information broadcast mode
For unicast, then acquisition module 403, concrete body is used for the address according to default server, by wirelessly connecting between the AP
The connection between foundation and server is connect, from the server control information is obtained.
Wherein, control information broadcast mode is also included in the SSID comprising control mark, if control information broadcast mode is
Multicast, then acquisition module 402, right by the wireless connection addition between the AP specifically for according to default multicast address
The multicast group answered, receives the control information of multicast server multicast.
Further, the equipment also includes,
Cut-out module, obtains after control information for acquisition module 403, cuts off the wireless connection with the AP.
Wherein, the control information of acquisition is the software upgrade package of mobile terminal,
Further, the equipment also includes that upgraded module, for performing the AKU, carries out software upgrading.
In embodiments of the present invention, mobile terminal receives the SSID of AP, if comprising control mark, basis in the SSID
Wifi agreements access the AP corresponding to the SSID, and obtain control information by the AP for accessing.Thus, mobile terminal is according to wifi
Agreement accesses AP and obtains control information automatically, so improves the efficiency of control mobile terminal and guarantees normal control and moves
Dynamic terminal.
One of ordinary skill in the art will appreciate that realizing all or part of step of above-described embodiment can pass through hardware
To complete, it is also possible to which the hardware that correlation is instructed by program is completed, and described program can be stored in a kind of computer-readable
In storage medium, storage medium mentioned above can be read only memory, disk or CD etc..
The foregoing is only presently preferred embodiments of the present invention, not to limit the present invention, all spirit in the present invention and
Within principle, any modification, equivalent substitution and improvements made etc. should be included within the scope of the present invention.