CN104684043A - WIFI (Wireless Fidelity) routing table forming method and device and WIFI communication method and device - Google Patents

WIFI (Wireless Fidelity) routing table forming method and device and WIFI communication method and device Download PDF

Info

Publication number
CN104684043A
CN104684043A CN201310624921.0A CN201310624921A CN104684043A CN 104684043 A CN104684043 A CN 104684043A CN 201310624921 A CN201310624921 A CN 201310624921A CN 104684043 A CN104684043 A CN 104684043A
Authority
CN
China
Prior art keywords
wifi
direct
equipment
source device
target device
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.)
Granted
Application number
CN201310624921.0A
Other languages
Chinese (zh)
Other versions
CN104684043B (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201310624921.0A priority Critical patent/CN104684043B/en
Priority to PCT/CN2014/077299 priority patent/WO2014183624A1/en
Publication of CN104684043A publication Critical patent/CN104684043A/en
Application granted granted Critical
Publication of CN104684043B publication Critical patent/CN104684043B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/20Manipulation of established connections
    • H04W76/23Manipulation of direct-mode connections
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]

Landscapes

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

Abstract

The invention discloses a WIFI (Wireless Fidelity) routing table forming method and device and a WIFI communication method and device, and relates to a WIFI communication technology in the field of wireless communication. The WIFI routing table comprises first WIFI direct connection routing information between first equipment and first connectable equipment, second WIFI direct connection routing information between second equipment and second connectable equipment, and third WIFI direct connection routing information between third equipment and third connectable equipment, wherein WIFI direct connection can be established between the first equipment and the first connectable equipment; WIFI direct connection can be established between the second equipment and the second connectable equipment; WIFI direct connection is established between the first equipment and the second equipment; WIFI direct connection can be established between the third equipment and the third connectable equipment; and WIFI direct connection is established between the second equipment and the third equipment. The WIFI communication method has the advantages of long WIFI communication distance, low probability of failure in communication, and the like.

Description

WIFI routing table formation method and device, WIFI communication means and device
Technical field
The present invention relates to the WIFI communication technology of wireless communication field, particularly relate to a kind of WIFI routing table formation method and device, WIFI communication means and device.
Background technology
Existing WIFI network comprises following two kinds:
The first: WIFI network comprises a central apparatus, and described central apparatus is generally router, is used for forwarding the data between target device and source device.This networking mode is limited to the attachable number of devices of central apparatus, thus network size is little, and the physical distance of two equipment rooms is little; And if multiple equipment sends data simultaneously, be easy to the blocking causing data at central apparatus, and then cause message transmission rate slow, the problem of the communication quality differences such as loss of data.
The second: WIFI directly-connected network, equipment all in network is without priority difference, and data to be sent are sent by source device and target device WIFI direct connected link, are no longer forwarded by central apparatus.WIFI directly-connected network, by the connection of each equipment and other equipment, break the restriction of central apparatus to network physical distance, the problem being blocked the communication quality difference caused by central apparatus can be solved simultaneously, but adopt this WIFI directly-connected network, physical distance between source device and target device still cannot break through the attachable scope of existing WiFi technology, for example (,) device A with cannot realize WIFI at a distance of the equipment B of 300m and communicate.
Summary of the invention
In view of this, main purpose of the present invention is to provide a kind of WIFI routing table formation method and device, WIFI communication means and device, with break WIFI communication distance limit, reduce WIFI communication can not probability.
For achieving the above object, technical scheme of the present invention is achieved in that
First aspect present invention provides a kind of WIFI routing table formation method, and described method comprises:
Obtaining the first equipment and first can the direct-connected routing iinformation of a WIFI between connection device; It is direct-connected that described first equipment and described first can set up WIFI between connection device;
Obtaining the second equipment and second can the direct-connected routing iinformation of the 2nd WIFI between connection device; It is direct-connected that described second equipment and described second can set up WIFI between connection device; Between described first equipment and described second equipment, built vertical WIFI is direct-connected;
Obtaining the 3rd equipment and the 3rd can the direct-connected routing iinformation of the 3rd WIFI between connection device; It is direct-connected that described 3rd equipment and the described 3rd can set up WIFI between connection device; Between described second equipment and described 3rd equipment, built vertical WIFI is direct-connected.
Preferably, described method also comprises:
WIFI routing table has been formed alternately between built vertical WIFI direct-connected device.
Second aspect present invention provides a kind of WIFI communication means, and described method comprises:
According to default routing algorithm from WIFI routing table, select one by the direct-connected transmission link formed of source device, one or more intermediate equipment and target device successively WIFI;
Adopt described transmission link, carry out WIFI communication;
Wherein, the WIFI routing table that formed for claim 1 or 2 of described WIFI routing table.
Preferably, preset routing algorithm from WIFI routing table in described basis, select one by before the direct-connected transmission link formed of source device, one or more intermediate equipment and target device successively WIFI, also comprise:
Determine WIFI to be set up between described source device and described target device direct-connected.
Preferably,
Determine can not to set up between described source device and described target device that WIFI is direct-connected to be comprised:
Judge between described source device and described target device, whether built vertical WIFI is direct-connected;
If not, then judge whether described target device is that described source device can search non-connection device;
If not, then WIFI can not be set up between described source device and described target device direct-connected;
If so, the WIFI then set up between described source device and described target device is direct-connected, sets up unsuccessfully, then can not set up WIFI between described source device and described target device direct-connected.
Preferably, described default routing algorithm is that the minimum routing algorithm of intermediate equipment number or intermediate equipment number are less than the routing algorithm prestoring threshold value.
Preferably, described method also comprises: by tag-detection obtain each described transmission link the intermediate equipment number of process.
Third aspect present invention provides a kind of WIFI routing table forming apparatus, and described device comprises:
First acquiring unit, can the direct-connected routing iinformation of a WIFI between connection device in order to obtain the first equipment and first; It is direct-connected that described first equipment and described first can set up WIFI between connection device;
Second acquisition unit, can the direct-connected routing iinformation of the 2nd WIFI between connection device in order to obtain the second equipment and second; It is direct-connected that described second equipment and described second can set up WIFI between connection device; Between described first equipment and described second equipment, built vertical WIFI is direct-connected;
3rd acquiring unit, can the direct-connected routing iinformation of the 3rd WIFI between connection device in order to obtain the 3rd equipment and the 3rd; It is direct-connected that described 3rd equipment and the described 3rd can set up WIFI between connection device; Between described second equipment and described 3rd equipment, built vertical WIFI is direct-connected.
Preferably, described device also comprises:
Interactive unit, in order to established WIFI routing table mutual between built vertical WIFI direct-connected device.
Fourth aspect present invention provides a kind of WIFI communicator, and described device comprises:
Selected cell, in order to according to presetting routing algorithm from WIFI routing table, selects one by the direct-connected transmission link formed of source device, one or more intermediate equipment and target device successively WIFI;
Communication unit, in order to adopt the transmission path selected by described selected cell, carries out WIFI communication;
The WIFI routing table that described WIFI routing table is formed for claim 1 or 2.
Preferably, also determining unit is comprised;
Described determining unit, before selecting transmission link, determines can not to set up WIFI between described source device and described target device direct-connected in order to described selected cell.
Preferably, described determining unit comprises:
First judge module, in order to judge between described source device and described target device, whether built vertical WIFI is direct-connected;
Second judge module, in order to when judging not set up between described source device and described target device WIFI and being direct-connected, judge whether described target device is that described source device can search non-connection device, wherein, described target device is the non-connection device that described source device can not search, then can not set up WIFI between described source device and described target device direct-connected;
Direct-connected module, in order to described target device be described source device can search connection device time, the WIFI set up between described source device and target device is direct-connected; Wherein, the WIFI between described source device and described target device is direct-connected to be set up unsuccessfully, can not set up WIFI direct-connected between described source device and described target device.
Preferably, described default routing algorithm is that the minimum routing algorithm of intermediate equipment number or intermediate equipment number are less than the routing algorithm prestoring threshold value.
Preferably, described selected cell also comprises:
Tag-detection module, in order to obtained by tag-detection each described transmission link the intermediate equipment number of process.
WIFI routing table formation method described in the embodiment of the present invention and device, WIFI communication means and device, provide a kind of WIFI routing table relative to prior art.Described WIFI routing table is form source device, intermediate equipment and the target device transmission link that WIFI is direct-connected successively to provide routing iinformation, thus formed by described transmission path, effectively reduce because of WIFI direct-connected device at a distance of cross WIFI communication that the direct-connected reason such as unsuccessfully of far away or WIFI causes can not probability, and break the distance limit of WIFI communication.
Accompanying drawing explanation
Fig. 1 is the WIFI routing table formation method flow schematic diagram described in the embodiment of the present invention one;
Fig. 2 is one of WIFI communication means schematic flow sheet described in the embodiment of the present invention two;
Fig. 3 is the WIFI communication means schematic flow sheet two described in the embodiment of the present invention two;
Fig. 4 for the determination source device described in the embodiment of the present invention two and target device can not the direct-connected schematic flow sheet of WIFI;
Fig. 5 is one of WIFI routing table forming apparatus structural representation described in the embodiment of the present invention three;
Fig. 6 is the WIFI routing table forming apparatus structural representation two described in the embodiment of the present invention three;
One of structural representation that Fig. 7 is the WIFI communicator described in the embodiment of the present invention four;
Fig. 8 is the structural representation two of the WIFI communicator described in the embodiment of the present invention four;
The structural representation that Fig. 9 is the determining unit described in the embodiment of the present invention four it;
Figure 10 is the flow chart of the direct-connected method for building up of WIFI described in the embodiment of the present invention five;
Figure 11 is the flow chart of the direct-connected method for building up of WIFI described in the embodiment of the present invention six.
Embodiment
Below in conjunction with Figure of description and specific embodiment, the present invention is described in further detail.
Embodiment one:
As shown in Figure 1, the present embodiment WIFI routing table formation method comprises:
Step S110: obtaining the first equipment and first can the direct-connected routing iinformation of a WIFI between connection device; It is direct-connected that described first equipment and described first can set up WIFI between connection device;
Step S120: obtaining the second equipment and second can the direct-connected routing iinformation of the 2nd WIFI between connection device; It is direct-connected that described second equipment and described second can set up WIFI between connection device; Between described first equipment and described second equipment, built vertical WIFI is direct-connected;
Step S130: obtaining the 3rd equipment and the 3rd can the direct-connected routing iinformation of the 3rd WIFI between connection device; It is direct-connected that described 3rd equipment and the described 3rd can set up WIFI between connection device; Between described second equipment and described 3rd equipment, built vertical WIFI is direct-connected.
Described first equipment, the second equipment, the 3rd equipment, first can connection device, second can connection device and the 3rd can connection device be all belong to WIFI direct-connected device.Wherein said first, second and the 3rd in WIFI routing table formation method described in the present embodiment, be only for distinguishing different WIFI equipment.Any one equipment in the WIFI routing table formed can as the first equipment, and corresponding to have established the direct-connected equipment of WIFI with the first equipment be then the second equipment, and to establish the direct-connected equipment of WIFI with the second equipment be the 3rd equipment.Wherein, what the first equipment searched can connection device be then first can connection device; What the second equipment searched can connection device be second can connection device; What the 3rd equipment searched can connection device be the 3rd can connection device.
The acquisition of described first, second and the direct-connected routing iinformation of the 3rd WIFI, the mutual search all between WIFI direct-connected device or interpolation.Mutual search between described WIFI direct-connected device includes again automatic search and the search based on user's instruction.Described search equipment is generally the search of point-to-point.Frequency range shared by WIFI communication is divided into 13 channels usually, if WIFI standby between by receiving and transmitting signal, scan one by one whether each channel have and can set up the direct-connected equipment of WIFI, to form the direct-connected routing iinformation of WIFI.As device A search equipment around, forming device A and device A can the routing iinformations of connection device.
Described first, second and the direct-connected routing iinformation of the 3rd WIFI comprise the MAC Address of respective described corresponding WIFI equipment.After establish the direct-connected group of WIFI centered by a certain WIFI equipment based on WIFI routing iinformation, further comprises the information such as group name, group identities and member identities.
First can connection device comprise establish with described first equipment WIFI direct-connected first can connection device and also do not set up with the first equipment WIFI direct-connected first can connection device.Second can connection device comprise establish with described second equipment WIFI direct-connected second can connection device and also do not set up with the first equipment WIFI direct-connected second can connection device.3rd can connection device comprise establish with described 3rd equipment WIFI direct-connected the 3rd can connection device and also do not set up with the 3rd equipment WIFI direct-connected the 3rd can connection device.
The WIFI routing table formed at least comprises the direct-connected routing iinformation of a described WIFI, the direct-connected routing iinformation of the 2nd WIFI and the direct-connected routing iinformation of the 3rd WIFI.The transmission method of the direct-connected routing iinformation of a described WIFI, the direct-connected routing iinformation of the 2nd WIFI and the direct-connected routing iinformation of the 3rd WIFI, can clean culture, multicast and broadcast.Adopt mode of unicast, can send to the WIFI equipment of specifying, multicast can send to multiple appointment WIFI equipment simultaneously, broadcasts and sends to all devices.
After forming described WIFI list, the mutual described WIFI routing table of equipment room that built vertical WIFI is direct-connected, thus upgrade described WIFI routing table timely, to form effective foundation of transmission link.Select broadcast to carry out the forwarding of described WIFI routing table in the present embodiment, there is the advantage that speed is fast, efficiency is high.Mutual mode comprises the mode adopting clean culture, multicast and broadcast, and the mutual time can for when WIFI direct-connected device starts and alternately periodic after starting.
According to the direct-connected routing iinformation of a WIFI in described WIFI routing table, the direct-connected routing iinformation of the 2nd WIFI and the direct-connected routing iinformation of the 3rd WIFI, and with the first equipment for source device, the transmission path that at least can be formed at least comprises following several:
The first: the first equipment can the WIFI direct access path of connection device to first;
The second: the first equipment can connection device WIFI direct access path to second to the second equipment WIFI direct access path and the second equipment, the transmission path be spliced to form;
The third: the first equipment to the second equipment WIFI direct access path and the second equipment to the 3rd equipment WIFI direct access path, the transmission path be spliced to form;
4th kind: the first equipment can connection device WIFI direct access path to the 3rd to the 3rd equipment WIFI direct access path and the 3rd equipment to the second equipment WIFI direct access path, the second equipment, the transmission path be spliced to form.
In concrete implementation procedure, first can can can point to same WIFI equipment by connection device by connection device and/or the 3rd by connection device and/or second.
Described first can connection device, second can connection device and the 3rd can connection device, same each other can connection device.
WIFI routing table described in the present embodiment can be used for providing a kind of transmission link comprising source device, at least one intermediate equipment and target device, relaying and the forwarding of WIFI is realized by intermediate equipment, realize the WIFI communication of long distance, thus break the short restriction of existing WIFI communication physical transmission range.
Described source device is the initiator of WIFI communication, can be described first equipment, the second equipment, the 3rd equipment, first can connection device, second can connection device and the 3rd can any one in connection device.Described target device is the recipient of WIFI communication, for not being the WIFI equipment of same equipment with source device.
When a WIFI equipment can not with another WIFI equipment because of at a distance of crossing the far away or connection establishment reason such as unsuccessfully, can not set up WIFI direct-connected time, then can according to the routing iinformation in described WIFI routing table, set up WIFI by the relaying of intermediate equipment with forwarding to communicate, thus reduce the probability of WIFI communication failure.
How the direct-connected routing iinformation of a WIFI, the direct-connected routing iinformation of the 2nd WIFI and the 3rd WIFI routing iinformation are incorporated in same WIFI route list, can by the information transmission between WIFI equipment.Concrete as, the direct-connected routing iinformation of a WIFI is forwarded in the second equipment by the first equipment, integrates with the 2nd WIFI routing iinformation; The direct-connected routing iinformation of 3rd WIFI is forwarded in the second equipment by the 3rd equipment, then integrates with the direct-connected routing iinformation of the 2nd WIFI, the direct-connected information of a WIFI, forms above-mentioned WIFI routing table.
Embodiment two:
As shown in Figure 2, the present embodiment provides a kind of WIFI communication means, and described method comprises:
Step S210: according to default routing algorithm from WIFI routing table, selects one by the direct-connected transmission link formed of source device, one or more intermediate equipment and target device successively WIFI; Described source device is WIFI communication equipment initiating equipment, and described target device is WIFI communication answering equipment.
Step S220 adopts described transmission link, carries out WIFI communication.The routing table of described WIFI routing table for being formed in the routing table described in embodiment one or described embodiment two.
In the present embodiment WIFI communication means, according to the transmission path that WIFI routing table is selected, by the direct-connected splicing link of the direct-connected WIFI formed of source device, at least one intermediate equipment and target device successively WIFI, carry out WIFI communication by described transmission path, have employed intermediate equipment and carry out relay forwarding.Adopt WIFI communication means described in the present embodiment, the long distance WIFI that can realize between source device with target device communicates, reduce simultaneously source device and target device can not WIFI direct-connected time, the probability of the failure that WIFI communicates.
Concrete as when between equipment a and equipment c because reasons such as apart from each other or connection failures, can not WIFI be set up direct-connected.By inquiry WIFI routing table, it is direct-connected that discovering device b both establishes WIFI with equipment a, establishes WIFI again direct-connected with equipment c simultaneously, then can select by equipment a to equipment b, again by equipment b to equipment c two sections of WIFI direct connected links, the transmission link be in turn connected into, carries out WIFI communication.
As shown in Figure 3, as the further improvement of the present embodiment, before carrying out described step S210, also step S200 is comprised.Described step S200 is direct-connected for determining can not to set up WIFI between described source device and described target device.Can set up between described source device and target device WIFI direct-connected time, then can communicate by WIFI is direct-connected, the resource shared by communicating with as far as possible few minimizing WIFI.
Carry out that WIFI between described source device and target device is direct-connected to be comprised:
Whether the direct-connected number of WIFI that source device is set up reaches the connection upper limit;
If not, the WIFI directly set up between described source device and target device is direct-connected;
If so, then cancel policy selection cancel the WIFI direct connected link of a described source device according to connecting, and to set up WIFI direct-connected with described target device.
Strategy is cancelled in described connection, can be the minimum WIFI direct connected link of WIFI direct connected link that in the fixed time, communication frequency is minimum or route messages.
As the suboptimization again of this enforcement, as shown in Figure 4, method described in the present embodiment, additionally provides and specifically how to realize determining to set up the direct-connected step of WIFI between source device and target device, specifically comprise:
Step S201: judge between described source device and described target device, whether built vertical WIFI is direct-connected; If not, then step S202 is entered; If so, then having established between source device and target device that WIFI is direct-connected can direct communication.Determination methods can be the WIFI routing table by searching source device, specifically can be: the MAC Address of target device is mated with the MAC Address in the WIFI routing table in source device, if the match is successful, and source device is 1 to the jumping figure that turns of target device, then set up WIFI between source device and target device direct-connected; Wherein, the jumping figure correspondence hop count of WIFI direct connected link is turned.
Step S202: judge whether described target device is that described source device can search non-connection device;
If not, then step S203 is entered;
If so, then WIFI can not be set up between described source device and described target device direct-connected.The MAC Address of the MAC Address of target device with the equipment that can search can be mated by concrete realization, the equipment that the match is successful then for searching.
Step S203: the WIFI set up between described source device and described target device is direct-connected; If set up unsuccessfully, then WIFI can not be set up between described source device and described target device direct-connected.
The method for building up that concrete WIFI is direct-connected, can adopt any one method of the prior art.
The determination whether can setting up WIFI direct connected link between source device and target device simply can be realized by said method.
In addition, many transmission paths may be provided in described WIFI routing table, need according to route selection algorithm, select the transmission path that meets demand.
Route selection algorithm has multiple, provides two kinds of route selection algorithms in the present embodiment.
The first: the routing algorithm that intermediate equipment is minimum, namely select the minimum transmission path of intermediate equipment number of process.This route selection algorithm selects the Route Selection of the minimal communication resource that takies.
The second: intermediate equipment number is less than the routing algorithm of threshold value, described threshold value is the numerical value prestored.Adopt this routing algorithm, a transmission paths can be selected more fast, to reduce the time delay of WIFI communication.
In concrete implementation procedure, determine that the method for the WIFI direct connected link hop count of transmission path process has multiple, a kind of transmission path intermediate equipment number of tag-detection is provided in the present embodiment.What WIFI direct connected link hop count equaled intermediate equipment number adds 1.Tag-detection is that source device sends an explore frame, is assigned with certain number of tags, and when after arrival equipment, then number of tags subtracts 1 automatically, when number of tags reduces to 0, then stops forwarding explore frame, and described detecting label is entrained by described explore frame.
When adopting the routing algorithm that described in the first, intermediate equipment is minimum, after reaching target device in more each transmission paths, the remainder of detecting label; Remainder is larger, then the intermediate equipment of transmission path process is fewer, and transmission path is shorter.Selecting the maximum transmission path of label volume residual is transmission path.
When the routing algorithm adopting the intermediate equipment number described in the second to be less than threshold value, source device sends tag-detection frame, and the intermediate equipment number that a transmission paths reaches target device if find that there is is less than threshold value, then this path can be selected as transmission path.Adopt in this way, without the need to more each transmission paths the intermediate equipment number of process, also without the need to waiting for that each transmission paths completes detection, thus be conducive to the quick selection of transmission path, and the face of selection is relatively wider, when wherein a transmission paths breaks down, other transmission path can be selected to carry out WIFI communication, and always according to route selection algorithm, can not determine that same cannot carry out the transmission path of normal WIFI communication.
Described WIFI communication in the present embodiment comprises voice communication, video communication and short message communication etc.
WIFI communication described in the present embodiment, when communicating, adopts multiple buffer technology to communicate, thus can avoid the loss of various data, to improve communication quality.Described multiple buffer technology, relative to single buffer technology, with different number of buffer and different buffer algorithms, better can realize the buffering of data, effectively can reduce the loss of data, is particularly useful for the WIFI communication that the amount of communication data such as voice and video are large.
WIFI communication means described in the present embodiment, has broken the restriction of existing WIFI communications distance, can realize the WIFI communication of longer physical distance, simultaneously for equipment room cannot WIFI direct-connected, provide another kind of WIFI communication means, and reliable communications.
Embodiment three:
As shown in Figure 5, the present embodiment provides a kind of WIFI routing table forming apparatus, and described device comprises:
First acquiring unit 310, can the direct-connected routing iinformation of a WIFI between connection device in order to obtain the first equipment and first; It is direct-connected that described first equipment and described first can set up WIFI between connection device;
Second acquisition unit 320, can the direct-connected routing iinformation of the 2nd WIFI between connection device in order to obtain the second equipment and second; It is direct-connected that described second equipment and described second can set up WIFI between connection device; Between described first equipment and described second equipment, built vertical WIFI is direct-connected;
3rd acquiring unit 330, can the direct-connected routing iinformation of the 3rd WIFI between connection device in order to obtain the 3rd equipment and the 3rd; It is direct-connected that described 3rd equipment and the described 3rd can set up WIFI between connection device; Between described second equipment and described 3rd equipment, built vertical WIFI is direct-connected.
The device that described WIFI routing table forming apparatus can independently be arranged also can be integrated on WIFI direct-connected device.
When described WIFI routing table forming apparatus is the independent device arranged, described first acquiring unit 310, second acquisition unit 320 and the 3rd acquiring unit 330 can be the receiving elements with receiving function, and concrete structure can be reception antenna.
If described WIFI routing table forming apparatus is for being integrated in described WIFI direct-connected device, then described WIFI direct-connected device is the first equipment, then described first acquiring unit 310 can the search unit of multiplexing described WIFI direct-connected device.What described search unit can search for described first equipment can connection device, and forms routing iinformation; The routing iinformation formed described in described search unit is the direct-connected routing iinformation of a described WIFI.Described two acquiring units 320 and the 3rd acquiring unit 330 all have the receiving element of receiving function.Described receiving element can the receiving element of multiplexing described first equipment, and concrete structure can be the direct-connected communication unit of WIFI, and can also be radio frequency transmission unit etc., concrete structure comprises reception antenna.Described second acquisition unit 320 and the 3rd acquiring unit 330 can be the functional unit of multiplexing same reception antenna.
As further improvement of this embodiment, as shown in Figure 6, described device also comprises interactive unit 340.Described interactive unit 340, in order to described WIFI routing table mutual between built vertical WIFI direct-connected device.
When after the foundation completing described WIFI routing table, described WIFI route is sent on other equipment by described interactive unit 340, for the foundation of the WIFI routing table of other equipment, thus build more accurate, the comprehensive WIFI routing table of a routing iinformation, so that the better transmission link forming WIFI communication more efficiently.The mode of wherein said transmission can be clean culture, multicast or broadcast.Described interactive unit 340 specifically in order to periodically to send described WIFI routing table when device start and after device start.
WIFI route device described in the present embodiment is WIFI routing table formation method of the present invention, provide the physical unit of realization, define a kind of can be used to set up by the WIFI routing table of transmission link between source device, at least one intermediate equipment and target device, effectively break the existing WIFI middle distance that communicates short and can not the high limitation of WIFI direct-connected communication probability.
Embodiment four:
As shown in Figure 7, the present embodiment provides a kind of WIFI communicator, and described device comprises:
Selected cell 410, in order to according to presetting routing algorithm from WIFI routing table, selects one by the direct-connected transmission link formed of source device, one or more intermediate equipment and target device successively WIFI;
Communication unit 420, in order to adopt the transmission path selected by described selected cell, carries out WIFI communication.
Describedly select single 410 any one can realize the structure of above-mentioned selection function in prior art, concrete comprises various types of processor.Concrete as equipment such as single-chip microcomputer, digital processing unit, central processing unit and programmable arrays.
Described communication unit 420 is WIFI communication unit, can be structure of carrying out arbitrarily WIFI communication of the prior art.
Described WIFI communicator can be independently WIFI communicator, also can be the WIFI communication equipment be integrated on various communication equipment, concrete mobile phone, smart mobile phone, panel computer, personal assistant, commercialization and PC etc.
The another kind of structure of described WIFI communicator is for comprising processor, storage medium, at least one communication interface and bus.Described storage medium stores the software or program that realize described selected cell corresponding function.Described bus in order to connect described storage medium, processor and communication interface, to carry out the transmission of data.Described processor runs the described software or program that store on said storage, can realize the selection of the transmission path of the selection comprising source device, one or more intermediate equipment and target device.Described communication interface is in order to carry out described WIFI communication.
Concrete described WIFI communicator also can comprise the storage medium storing described WIFI routing table.Described storage medium is the storage medium of the types such as flash or ROM.
WIFI communicator described in the present embodiment, for described WIFI communication means provides physical unit, thus same having has been broken prior art and cannot be realized the restriction that longer physical distance WIFI communicates, and achieve can not WIFI communication between WIFI direct-connected device.
As shown in Figure 8, further described WIFI communicator, also comprises determining unit 400;
Described determining unit 400, before selecting transmission link, determines can not to set up WIFI between described source device and described target device direct-connected in order to described selected cell 410.
Determining unit 400 described in the present embodiment, first determine between source device and target device, whether to carry out WIFI direct-connected, if it is direct-connected to carry out WIFI, just without the need to setting up by the direct-connected transmission link formed of source device, intermediate equipment and target device WIFI, WIFI direct connected link can be directly adopted to carry out WIFI communication, to reduce the communication resource shared by WIFI communication.
The structure of described determining unit 400 has multiple, below provides a kind of structure simple, realizes easy structure.As shown in Figure 9, described determining unit 400 comprises:
First judge module 401, in order to judge between described source device and described target device, whether built vertical WIFI is direct-connected;
Second judge module 402, in order to when judging not set up between described source device and described target device WIFI and being direct-connected, judge whether described target device is that described source device can search non-connection device, wherein, described target device is the non-connection device that described source device can not search, then can not set up WIFI between described source device and described target device direct-connected;
Direct-connected module 403, in order to described target device be described source device can search connection device time, the WIFI set up between described source device and target device is direct-connected; Wherein, the direct-connected failure of the WIFI between described source device and described target device, can not set up WIFI between described source device and described target device direct-connected.
The concrete structure of described first judge module 401 and the second judge module 402, all can comprise comparator or comprise the integrated circuit of comparator, maybe can realize the processor of above-mentioned arbitration functions.
Described direct-connected module 403 can be the direct-connected module in existing WIFI device.
Described determining unit 400, make use of existing structure in WIFI communicator, carries out source device and whether target device can carry out the direct-connected judgement of WIFI.When described WIFI device is integrated in WIFI direct-connected device, usually used as the source device of WIFI communication.
Described default routing algorithm is the routing algorithm that the minimum routing algorithm of intermediate equipment number or intermediate equipment number are less than threshold value.The minimum routing algorithm of described intermediate equipment is by more each transmission paths, selects the transmission path that the intermediate equipment of a process is minimum, thus to improve the efficiency of WIFI communication.Described intermediate equipment number is less than the routing algorithm of threshold value, and for selecting arbitrarily an intermediate equipment number to be less than the transmission link of the threshold value prestored, thus the face of selection is wider, and the speed of selection is faster.
Described selected cell 410 also comprises tag-detection module:
Described tag-detection module, in order to obtained by tag-detection each described transmission link the intermediate equipment number of process.Described tag-detection module, specifically in order to be formed and to send tag-detection frame, carries out the tag-detection of each transmission path.Usually be assigned with certain number of tags in described explore frame, every intermediate equipment, then number of tags subtracts 1 automatically, and when number of tags is 0, then WIFI direct-connected device stops forwarding explore frame.
Present embodiments provide a kind of WIFI communicator, WIFI can be made to communicate through the relaying of intermediate equipment and forwarding, realize communication WIFI communication data transfer.Can not directly set up between two equipment WIFI direct-connected time, can intermediate equipment relay forwarding be passed through, thus decrease WIFI communication can not probability, break WIFI simultaneously and to communicate the limitation of middle distance.
Embodiment five:
The present invention also provides a kind of WIFI connection establishment method, for being certainly dynamically connected between WIFI equipment, direct-connected to set up WIFI in advance, can direct communication when needs carry out WIFI communication, thus effectively can reduce WIFI communication and connect for setting up WIFI the time delay caused.
As shown in Figure 10, the direct-connected method for building up of WIFI described in the present embodiment, described method comprises:
Step S310: automatic search can connection device;
Step S320: can connection device transmission comprise by the networking claim frame of automatic link field to described; Described automatic link field in order to described can connection device from the unlatching that is dynamically connected;
Step S330: with open from be dynamically connected can connection device to set up WIFI direct-connected, form WIFI network.Described networking claim frame is be exclusively used in the Frame realizing networking between WIFI equipment.Described automatic link field can be carried at the body part of networking claim frame, also can be arranged on the reserved place of the frame head of existing networking claim frame.Preferential in the present embodiment described automatic link field to be arranged on the reserved place of the frame head of networking claim frame.When on the reserved place that described automatic link field arranges the frame head of described networking claim frame, WIFI equipment is just to know the need of unlatching from being dynamically connected at parsing frame head, thus time delay is little, and without the need to by the time parsing the text of networking claim frame.Described can be one or more from being dynamically connected automatically.
In the process of establishing that WIFI in described step S330 is direct-connected, WIFI equipment at running background, can realize the pairing between WIFI equipment and connection.
A usual WIFI equipment will search several neighbouring attachable equipment, and be formed and can connect list.Can connection device if device A searches 10, then listing 10 in the connected list of device A successively can the information of connection device, concrete connection status etc. as direct-connected in MAC Address, WIFI.Device A can connect list to judge by traversal, whether completes the direct-connected foundation of WIFI, if do not complete, repeats above-mentioned steps S310 to step S330, until device A can complete the direct-connected foundation of WIFI by connection device with can be connected in list all.
As further improvement of this embodiment,
Described method also comprises:
Obtain devices communicating number;
Described networking claim frame, also comprises described communicating number;
Described communicating number, in order to mate with the address list in connected device, so that the display of title in address list after the match is successful.If the WIFI equipment sending described networking claim frame is WIFI device A, and the communicating number of WIFI device A is a, then also comprise described communicating number a in described networking claim frame.When setting up the direct-connected equipment B of WIFI with WIFI device A, after receiving described networking claim frame, described communicating number a can be extracted from described networking claim frame.When the address list of described WIFI equipment B comprises described communicating number a, then the title in display communication record corresponding to communicating number a.Thus user can know which user this connection is from easily, which improves Consumer's Experience impression.Described communicating number can comprise the messenger of all kinds and miscellaneous service, and as the communicating number such as No. SIM, No. UIM, concrete acquisition methods comprises the method such as to read from the storage medium storing described communicating number.
Further, described method also comprises:
When carrying out WIFI communication, judge that whether source device is direct-connected with the built vertical WIFI of the target device communicated;
If it is direct-connected not set up WIFI, then judge target device be whether source device can connection device; Source device is the initiator of WIFI communication equipment, and described target device is the answer party of WIFI communication;
If target device be source device can connection device, then judge whether the connected device number of source device reaches the upper limit;
If connection device number reaches the upper limit, then disconnect the WIFI meeting connection dismounting strategy direct-connected, and adopt WIFI direct-connecting technology to set up the connection with target device; Strategy is removed in described connection to be had multiple, and in concrete can be nearest appointment duration, WIFI number of communications is minimum or be less than frequency threshold value, or the selection that call duration time is less than the strategy of time threshold concrete is any, can select as required.One to embodiment four in conjunction with the embodiments, then described connection dismounting strategy also can be: in nearest appointment duration, do not receive described WIFI routing table;
If connection device number does not reach the upper limit, then WIFI direct-connecting technology is adopted to set up the connection of source device and target device.
When WIFI device start or after device start, periodically automatic search can connection device.Synchronously starting search during device start can connection device, enters the foundation that WIFI is direct-connected.Can facilitate like this in the equipment very first time upon actuation and realize WIFI communication.When after device start, can connection device by periodic automatic search, achieve the renewal that WIFI is direct-connected, delete invalid connection timely, establish effective connection.
Embodiment six:
As shown in figure 11, the direct-connected method for building up of the present embodiment WIFI comprises:
Step S410: receive networking claim frame;
Step S420: detect in described networking claim frame whether comprise automatic link field; If judged result is
Enter step S430;
Step S430: starting from being dynamically connected, setting up WIFI between described networking claim frame receiving equipment and transmitting apparatus direct-connected.
The direct-connected method for building up of WIFI shown in the present embodiment, after receiving networking claim frame, detect in networking claim frame have automatic link field, then start autoconnect function, relative to the manual networking of traditional user, more convenient, and be automatically connected with and be beneficial to extraction to set up WIFI direct-connected, reduce the time delay of WIFI communication.
Described in the present embodiment, method also comprises:
The communicating number of described networking claim frame transmitting terminal is obtained from described networking claim frame;
Described communicating number is mated with address list,
If the match is successful, then the title in display communication record.Owing to including the communicating number of transmitting terminal in networking claim frame, can the match is successful with the address list of receiving terminal, just can demonstrate the title of the user of this WIFI equipment after the match is successful, thus facilitate user and search according to user's name, optimize Consumer's Experience.
Embodiment seven:
The present embodiment provides the direct-connected method for building up of a kind of WIFI, said method comprising the steps of:
First equipment automatic search can connection device, and described can connection device be the second equipment; Wherein said second equipment can be one or more;
First equipment to described connect second equipment send comprise by the networking claim frame of automatic link field;
Second equipment receives networking claim frame;
Automatic link field whether is comprised in networking claim frame described in second equipment Inspection;
That described second device start is dynamically connected certainly,
WIFI is set up direct-connected between first equipment and the second equipment.
The direct-connected method for building up of WIFI described in the present embodiment, manually sets up WIFI relative to existing method without user direct-connected, has and connects simple advantage.When direct-connected for the WIFI described in the present embodiment method for building up is applied in WIFI communication means described in embodiment two, also has for WIFI directly-connected network is put up in WIFI communication in advance, effectively can reduce the time delay of WIFI communication.The above, be only preferred embodiment of the present invention, be not intended to limit protection scope of the present invention.

Claims (14)

1. a WIFI routing table formation method, it is characterized in that, described method comprises:
Obtaining the first equipment and first can the direct-connected routing iinformation of a WIFI between connection device; It is direct-connected that described first equipment and described first can set up WIFI between connection device;
Obtaining the second equipment and second can the direct-connected routing iinformation of the 2nd WIFI between connection device; It is direct-connected that described second equipment and described second can set up WIFI between connection device; Between described first equipment and described second equipment, built vertical WIFI is direct-connected;
Obtaining the 3rd equipment and the 3rd can the direct-connected routing iinformation of the 3rd WIFI between connection device; It is direct-connected that described 3rd equipment and the described 3rd can set up WIFI between connection device; Between described second equipment and described 3rd equipment, built vertical WIFI is direct-connected.
2. WIFI routing table formation method according to claim 1, it is characterized in that, described method also comprises:
WIFI routing table has been formed alternately between built vertical WIFI direct-connected device.
3. a WIFI communication means, is characterized in that, described method comprises:
According to default routing algorithm from WIFI routing table, select one by the direct-connected transmission link formed of source device, one or more intermediate equipment and target device successively WIFI;
Adopt described transmission link, carry out WIFI communication;
Wherein, the WIFI routing table that formed for claim 1 or 2 of described WIFI routing table.
4. WIFI communication means according to claim 3, it is characterized in that, preset routing algorithm from WIFI routing table in described basis, select one by before the direct-connected transmission link formed of source device, one or more intermediate equipment and target device successively WIFI, also comprise:
Determine WIFI to be set up between described source device and described target device direct-connected.
5. WIFI communication means according to claim 4, is characterized in that,
Determine can not to set up between described source device and described target device that WIFI is direct-connected to be comprised:
Judge between described source device and described target device, whether built vertical WIFI is direct-connected;
If not, then judge whether described target device is that described source device can search non-connection device;
If not, then WIFI can not be set up between described source device and described target device direct-connected;
If so, the WIFI then set up between described source device and described target device is direct-connected, sets up unsuccessfully, then can not set up WIFI between described source device and described target device direct-connected.
6. the WIFI communication means according to claim 3,4 or 5, is characterized in that, described default routing algorithm is that the minimum routing algorithm of intermediate equipment number or intermediate equipment number are less than the routing algorithm prestoring threshold value.
7. WIFI communication means according to claim 6, is characterized in that, described method also comprises: by tag-detection obtain each described transmission link the intermediate equipment number of process.
8. a WIFI routing table forming apparatus, is characterized in that, described device comprises:
First acquiring unit, can the direct-connected routing iinformation of a WIFI between connection device in order to obtain the first equipment and first; It is direct-connected that described first equipment and described first can set up WIFI between connection device;
Second acquisition unit, can the direct-connected routing iinformation of the 2nd WIFI between connection device in order to obtain the second equipment and second; It is direct-connected that described second equipment and described second can set up WIFI between connection device; Between described first equipment and described second equipment, built vertical WIFI is direct-connected;
3rd acquiring unit, can the direct-connected routing iinformation of the 3rd WIFI between connection device in order to obtain the 3rd equipment and the 3rd; It is direct-connected that described 3rd equipment and the described 3rd can set up WIFI between connection device; Between described second equipment and described 3rd equipment, built vertical WIFI is direct-connected.
9. WIFI routing table forming apparatus according to claim 8, it is characterized in that, described device also comprises:
Interactive unit, in order to established WIFI routing table mutual between built vertical WIFI direct-connected device.
10. a WIFI communicator, is characterized in that, described device comprises:
Selected cell, in order to according to presetting routing algorithm from WIFI routing table, selects one by the direct-connected transmission link formed of source device, one or more intermediate equipment and target device successively WIFI;
Communication unit, in order to adopt the transmission path selected by described selected cell, carries out WIFI communication;
The WIFI routing table that described WIFI routing table is formed for claim 1 or 2.
11. WIFI communicators according to claim 10, is characterized in that, also comprise determining unit;
Described determining unit, before selecting transmission link, determines can not to set up WIFI between described source device and described target device direct-connected in order to described selected cell.
12. WIFI communicators according to claim 11, it is characterized in that, described determining unit comprises:
First judge module, in order to judge between described source device and described target device, whether built vertical WIFI is direct-connected;
Second judge module, in order to when judging not set up between described source device and described target device WIFI and being direct-connected, judge whether described target device is that described source device can search non-connection device, wherein, described target device is the non-connection device that described source device can not search, then can not set up WIFI between described source device and described target device direct-connected;
Direct-connected module, in order to described target device be described source device can search connection device time, the WIFI set up between described source device and target device is direct-connected; Wherein, the WIFI between described source device and described target device is direct-connected to be set up unsuccessfully, can not set up WIFI direct-connected between described source device and described target device.
13. WIFI communicators according to claim 10,11 or 12, is characterized in that, described default routing algorithm is that the minimum routing algorithm of intermediate equipment number or intermediate equipment number are less than the routing algorithm prestoring threshold value.
14. WIFI communicators according to claim 13, it is characterized in that, described selected cell also comprises:
Tag-detection module, in order to obtained by tag-detection each described transmission link the intermediate equipment number of process.
CN201310624921.0A 2013-11-28 2013-11-28 WIFI routing table forming method and device, WIFI communication means and device Active CN104684043B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201310624921.0A CN104684043B (en) 2013-11-28 2013-11-28 WIFI routing table forming method and device, WIFI communication means and device
PCT/CN2014/077299 WO2014183624A1 (en) 2013-11-28 2014-05-12 Method and device for forming wifi routing table, wifi communication method and device, and storage media

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310624921.0A CN104684043B (en) 2013-11-28 2013-11-28 WIFI routing table forming method and device, WIFI communication means and device

Publications (2)

Publication Number Publication Date
CN104684043A true CN104684043A (en) 2015-06-03
CN104684043B CN104684043B (en) 2019-04-09

Family

ID=51897713

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310624921.0A Active CN104684043B (en) 2013-11-28 2013-11-28 WIFI routing table forming method and device, WIFI communication means and device

Country Status (2)

Country Link
CN (1) CN104684043B (en)
WO (1) WO2014183624A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108235283A (en) * 2018-01-30 2018-06-29 深圳新融典科技有限公司 The method and system of group-net communication between equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101304369A (en) * 2008-05-12 2008-11-12 中山大学 Multi-speed wireless radio frequency routing method based on house area information
US20080310433A1 (en) * 2007-06-13 2008-12-18 Alvaro Retana Fast Re-routing in Distance Vector Routing Protocol Networks
US20120134349A1 (en) * 2010-11-25 2012-05-31 Samsung Electronics Co. Ltd. Device discovery method and apparatus of wi-fi p2p device
CN103109552A (en) * 2010-09-24 2013-05-15 高通股份有限公司 Wireless display discovery and operation with tdls
CN103327558A (en) * 2012-03-23 2013-09-25 北京新岸线移动多媒体技术有限公司 Vehicular communication method and communication node

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101594578B (en) * 2008-05-30 2013-08-28 华为终端有限公司 Establishment method of direct connected link, station device and communication system
CN102497221B (en) * 2011-12-13 2014-12-31 华为终端有限公司 Method for data transmission between terminals, and terminal
CN103364774A (en) * 2012-04-02 2013-10-23 深圳富泰宏精密工业有限公司 System and method for positioning adjacent devices based on WiFi direct connection
CN102711181B (en) * 2012-06-05 2015-08-26 深圳市中兴移动通信有限公司 A kind of mobile terminal utilizes multilink to realize the method for network shunt

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080310433A1 (en) * 2007-06-13 2008-12-18 Alvaro Retana Fast Re-routing in Distance Vector Routing Protocol Networks
CN101304369A (en) * 2008-05-12 2008-11-12 中山大学 Multi-speed wireless radio frequency routing method based on house area information
CN103109552A (en) * 2010-09-24 2013-05-15 高通股份有限公司 Wireless display discovery and operation with tdls
US20120134349A1 (en) * 2010-11-25 2012-05-31 Samsung Electronics Co. Ltd. Device discovery method and apparatus of wi-fi p2p device
CN103327558A (en) * 2012-03-23 2013-09-25 北京新岸线移动多媒体技术有限公司 Vehicular communication method and communication node

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108235283A (en) * 2018-01-30 2018-06-29 深圳新融典科技有限公司 The method and system of group-net communication between equipment

Also Published As

Publication number Publication date
CN104684043B (en) 2019-04-09
WO2014183624A1 (en) 2014-11-20

Similar Documents

Publication Publication Date Title
CN104540090B (en) A kind of networking interconnecting method and system based on low-power consumption bluetooth
JP4173485B2 (en) Mobile radio terminal device
CN101150498B (en) Multi-jumper radio relay communication system and its download data transmission method
CN101340379B (en) Wireless communication apparatus and wireless communication method
CN104469694B (en) A kind of communication means and device based on group system
JP7239090B2 (en) Methods, devices, computer readable storage media, programs and systems for measuring signal strength
US10440648B2 (en) Sleeping and wake-up methods and apparatuses of master-slave network, and power saving system of master-slave network
CN101027914B (en) Multi-to-multi point ad-hoc wireless data transfer protocol
JP5462410B2 (en) Method and apparatus for accessing a wireless sensor network
TWI539846B (en) Method to support emergency call through mesh network
US20130235732A1 (en) Ad hoc network system and meter reading information collecting method
CN111565474B (en) Method and system for establishing communication connection between AP (access point) equipment and target terminal based on Mesh network
CN101595684A (en) Wireless communication system, radio communication device, wireless communications method and program
CN109068367B (en) Wireless token passing method, device, equipment and readable storage medium
CN104486732A (en) Moving table, transferring table, trunked communication system and method thereof
CN113259864B (en) Narrow-band communication method, interphone, equipment, storage medium and ad hoc network system
CN101102283A (en) A method and device for optimizing unknown unicast forward at wireless access point
WO2009036792A1 (en) Compressed source routing
US20140043430A1 (en) Apparatus and method for providing group communication service
CN104835990B (en) A kind of charger charging method and system based on low-power consumption bluetooth
JP2001237875A (en) Relay path built-up method for radio packet
CN104684043A (en) WIFI (Wireless Fidelity) routing table forming method and device and WIFI communication method and device
CN104394516B (en) Maximal cover broadcast tree method for building up based on Android WI-FI DIRECT patterns
JP6819875B2 (en) Wireless communication system and wireless communication device
JP2000341323A (en) Ad hoc radio terminal

Legal Events

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