CN104684043B - WIFI routing table forming method and device, WIFI communication means and device - Google Patents

WIFI routing table forming method and device, WIFI communication means and device Download PDF

Info

Publication number
CN104684043B
CN104684043B CN201310624921.0A CN201310624921A CN104684043B CN 104684043 B CN104684043 B CN 104684043B CN 201310624921 A CN201310624921 A CN 201310624921A CN 104684043 B CN104684043 B CN 104684043B
Authority
CN
China
Prior art keywords
wifi
equipment
direct
established
connectable
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310624921.0A
Other languages
Chinese (zh)
Other versions
CN104684043A (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 kind of WIFI routing table forming method and devices, WIFI communication means and device, are related to the WIFI communication technology of wireless communication field.The WIFI routing table includes: the first direct-connected routing iinformation of WIFI between the first equipment and the first connectable device;It is direct-connected that WIFI can be established between first equipment and first connectable device;The 2nd direct-connected routing iinformation of WIFI between second equipment and the second connectable device;It is direct-connected that WIFI can be established between second equipment and second connectable device;It is direct-connected that WIFI has been established between first equipment and second equipment;The 3rd direct-connected routing iinformation of WIFI between third equipment and third connectable device;It is direct-connected that WIFI can be established between third equipment and third connectable device;It is direct-connected that WIFI has been established between second equipment and third equipment.The WIFI communication means has the advantages that WIFI communication distance is long and the probability that cannot communicate is low etc..

Description

WIFI routing table forming method and device, WIFI communication means and device
Technical field
The present invention relates to the WIFI communication technology of wireless communication field more particularly to a kind of WIFI routing table forming method and Device, WIFI communication means and device.
Background technique
Existing WIFI network includes following two:
The first: including a central apparatus in WIFI network, the central apparatus is usually router, for forwarding mesh Data between marking device and source device.This networking mode is limited to the attachable number of devices of central apparatus, so that network is advised Mould is small, and the physical distance of two equipment rooms is small;And if multiple equipment sends data simultaneously, it is easy to cause data in central apparatus Blocking, and then cause message transmission rate slow, the problem of the communication qualities difference such as loss of data.
Second: WIFI directly-connected network, for all equipment without priority difference, data to be sent are to pass through source in network What equipment and target device WIFI direct connected link were sent, no longer it is forwarded by central apparatus.WIFI directly-connected network, by every The connection of one equipment and other equipment has been broken limitation of the central apparatus to network physical distance, while can solve in The problem of communication quality difference caused by heart equipment blocks, but this WIFI directly-connected network of use, source device and target device it Between physical distance still can not break through the attachable range of existing WiFi technology, for example equipment A at a distance of 300m equipment B It cannot achieve WIFI communication.
Summary of the invention
In view of this, the main purpose of the present invention is to provide a kind of WIFI routing table forming method and device, WIFI are logical Believe method and device, with break WIFI communication distance limitation, reduce WIFI communication cannot probability.
In order to achieve the above objectives, the technical scheme of the present invention is realized as follows:
First aspect present invention provides a kind of WIFI routing table forming method, which comprises
Obtain the first direct-connected routing iinformation of WIFI between the first equipment and the first connectable device;First equipment with It is direct-connected that WIFI can be established between first connectable device;
Obtain the 2nd direct-connected routing iinformation of WIFI between the second equipment and the second connectable device;Second equipment with It is direct-connected that WIFI can be established between second connectable device;WIFI has been established between first equipment and second equipment It is direct-connected;
Obtain the 3rd direct-connected routing iinformation of WIFI between third equipment and third connectable device;The third equipment with It is direct-connected that WIFI can be established between the third connectable device;WIFI has been established between second equipment and the third equipment It is direct-connected.
Preferably, the method also includes:
Interaction between WIFI direct-connected device has been established and has formed WIFI routing table.
Second aspect of the present invention provides a kind of WIFI communication means, which comprises
According to default routing algorithm from WIFI routing table, selection one by source device, one or more intermediate equipments and mesh The transmission link of the marking device successively direct-connected formation of WIFI;
Using the transmission link, WIFI communication is carried out;
Wherein, the WIFI routing table is that claims 1 or 2 is formed by WIFI routing table.
Preferably, routing algorithm is preset from WIFI routing table in the basis, selection one is by source device, one or more Intermediate equipment and target device are successively before the transmission link of the direct-connected formation of WIFI, further includes:
Determine that can not to establish WIFI between the source device and the target device direct-connected.
Preferably,
Determining can not establish that WIFI is direct-connected to include: between the source device and the target device
Judge whether WIFI to have been established between the source device and the target device direct-connected;
If it is not, then judging whether the target device is that the source device can search for not connected equipment;
If it is not, it is direct-connected that WIFI then can not be established between the source device and the target device;
If so, the WIFI established between the source device and the target device is direct-connected, failure is established, then the source is set It is standby that can not to establish WIFI between the target device direct-connected.
Preferably, the default routing algorithm is that the least routing algorithm of intermediate equipment number or intermediate equipment number are less than in advance Store the routing algorithm of threshold value.
Preferably, the method also includes: the centre passed through of transmission link described in each is obtained by tag-detection Number of devices.
Third aspect present invention provides a kind of WIFI routing table formation device, and described device includes:
First acquisition unit, to obtain the direct-connected routing letter of the first WIFI between the first equipment and the first connectable device Breath;It is direct-connected that WIFI can be established between first equipment and first connectable device;
Second acquisition unit, to obtain the direct-connected routing letter of the 2nd WIFI between the second equipment and the second connectable device Breath;It is direct-connected that WIFI can be established between second equipment and second connectable device;First equipment and described second It is direct-connected that WIFI has been established between equipment;
Third acquiring unit, to obtain the direct-connected routing letter of the 3rd WIFI between third equipment and third connectable device Breath;It is direct-connected that WIFI can be established between the third equipment and the third connectable device;Second equipment and the third It is direct-connected that WIFI has been established between equipment.
Preferably, described device further include:
Interactive unit, the established WIFI routing table of interaction between WIFI direct-connected device has been established.
Fourth aspect present invention provides a kind of WIFI communication device, and described device includes:
Selecting unit, to according to routing algorithm is preset from WIFI routing table, selection one is by source device, one or more The transmission link of intermediate equipment and the target device successively direct-connected formation of WIFI;
Communication unit carries out WIFI communication to use the selected transmission path of the selecting unit;
The WIFI routing table is that claims 1 or 2 is formed by WIFI routing table.
It preferably, further include determination unit;
The determination unit determines the source device and the mesh before selecting transmission link to the selecting unit It is direct-connected that WIFI can not be established between marking device.
Preferably, the determination unit includes:
First judgment module, it is direct-connected to judge whether WIFI to have been established between the source device and the target device;
Second judgment module, to judge not set up WIFI between the source device and the target device it is direct-connected When, judge whether the target device is that the source device can search for not connected equipment, wherein the target device is described It is direct-connected then can not to establish WIFI between the source device and the target device for the not connected equipment that source device can not search;
Direct-connected module is established the source and is set when can search for connection equipment to the target device for the source device The standby WIFI between target device is direct-connected;Wherein, the direct-connected foundation of WIFI between the source device and the target device is lost It loses, it is direct-connected to establish WIFI between the source device and the target device.
Preferably, the default routing algorithm is that the least routing algorithm of intermediate equipment number or intermediate equipment number are less than in advance Store the routing algorithm of threshold value.
Preferably, the selecting unit further include:
Tag-detection module, to obtain the intermediate equipment that transmission link described in each is passed through by tag-detection Number.
WIFI routing table forming method described in the embodiment of the present invention and device, WIFI communication means and device, relatively A kind of WIFI routing table is provided in the prior art.The WIFI routing table is to form source device, intermediate equipment and target to set Routing iinformation is provided for successively WIFI direct-connected transmission link, so as to be formed by the transmission path, is effectively reduced Because WIFI direct-connected device at a distance of too far or WIFI communication caused by the direct-connected reasons such as unsuccessfully of WIFI cannot probability, and break WIFI The distance of communication limits.
Detailed description of the invention
Fig. 1 is WIFI routing table forming method flow diagram described in the embodiment of the present invention one;
Fig. 2 is one of WIFI communication means flow diagram described in the embodiment of the present invention two;
Fig. 3 is two of WIFI communication means flow diagram described in the embodiment of the present invention two;
Fig. 4 is that determination source device described in the embodiment of the present invention two and target device are unable to the direct-connected process signal of WIFI Figure;
Fig. 5 is that WIFI routing table described in the embodiment of the present invention three forms one of apparatus structure schematic diagram;
Fig. 6 is that WIFI routing table described in the embodiment of the present invention three forms the two of apparatus structure schematic diagram;
Fig. 7 is one of the structural schematic diagram of WIFI communication device described in the embodiment of the present invention four;
Fig. 8 is the second structural representation of WIFI communication device described in the embodiment of the present invention four;
Fig. 9 be the embodiment of the present invention four described in determination unit structural schematic diagram 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.
Specific 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 forming method includes:
Step S110: the first direct-connected routing iinformation of WIFI between the first equipment and the first connectable device is obtained;It is described It is direct-connected that WIFI can be established between first equipment and first connectable device;
Step S120: the 2nd direct-connected routing iinformation of WIFI between the second equipment and the second connectable device is obtained;It is described It is direct-connected that WIFI can be established between second equipment and second connectable device;Between first equipment and second equipment It is direct-connected that WIFI has been established;
Step S130: the 3rd direct-connected routing iinformation of WIFI between third equipment and third connectable device is obtained;It is described It is direct-connected that WIFI can be established between third equipment and the third connectable device;Between second equipment and the third equipment It is direct-connected that WIFI has been established.
First equipment, the second equipment, third equipment, the first connectable device, the second connectable device and third Connectable device is all to belong to WIFI direct-connected device.Wherein described first, second and third road WIFI described in the present embodiment By in table forming method, being only the WIFI equipment to distinguish different.Any one of the WIFI routing table of formation equipment all It can be used as the first equipment, it is then the second equipment that the direct-connected equipment of WIFI has had been established with the first equipment accordingly, and with second It is third equipment that equipment, which establishes the direct-connected equipment of WIFI,.Wherein, the connectable device that the first equipment searches then is first can Connect equipment;The connectable device that second equipment searches is the second connectable device;What third equipment searched, which connect, sets Standby is third connectable device.
Described first, second and the 3rd the direct-connected routing iinformation of WIFI acquisition, but between WIFI direct-connected device Mutually search or addition.Mutual search between the WIFI direct-connected device is included automatic search and is indicated based on user again Search.Described search equipment is usually the search of point-to-point.WIFI communicates occupied frequency range and is generally divided into 13 channels, if Can be by receiving and transmitting signal between WIFI is standby, whether can establish WIFI direct-connected equipment, to be formed if scanning on each channel to have one by one The direct-connected routing iinformation of WIFI.Such as the equipment around equipment A search, the routing iinformation of equipment A and equipment A connectable device are formed.
Described first, second and the 3rd the direct-connected routing iinformation of WIFI include the respective corresponding WIFI equipment MAC Location.After establishing the direct-connected group of WIFI centered on a certain WIFI equipment based on WIFI routing iinformation, group is further comprised The information such as title, group identities and member identities.
First connectable device include established with first equipment the first direct-connected connectable device of WIFI and Do not establish the first direct-connected connectable device of WIFI with the first equipment also.Second connectable device include with second equipment It establishes the second direct-connected connectable device of WIFI and does not establish the second direct-connected connectable device of WIFI with the first equipment also. Third connectable device includes having established the direct-connected third connectable device of WIFI with the third equipment and also not with Three equipment establish the direct-connected third connectable device of WIFI.
WIFI routing table is formed by including at least the direct-connected routing iinformation of the first WIFI, the direct-connected routing letter of the 2nd WIFI Breath and the 3rd direct-connected routing iinformation of WIFI.The direct-connected routing iinformation of first WIFI, the direct-connected routing iinformation of the 2nd WIFI and The transmission method of the 3rd direct-connected routing iinformation of WIFI, can be with unicast, multicast and broadcast.It, can be to specified using mode of unicast WIFI equipment send, multicast can be sent to multiple specified WIFI equipments simultaneously, be broadcasted and be sent to all devices.
After forming the WIFI list, the direct-connected equipment room interaction WIFI routing table of WIFI has been established, thus in time The update WIFI routing table, to form effective foundation of transmission link.It is selected described in broadcast progress in the present embodiment The forwarding of WIFI routing table has the advantages that speed is fast, high-efficient.Interactive mode includes using unicast, multicast and broadcast Mode, it is periodically interactive when the interactive time can be for the starting of WIFI direct-connected device and after starting.
According to the direct-connected routing iinformation of the first WIFI, the direct-connected routing iinformation of the 2nd WIFI and in the WIFI routing table The direct-connected routing iinformation of three WIFI, and using the first equipment as source device, the transmission path that can be at least formed includes at least following several Kind:
The first: the WIFI direct access path of the first equipment to the first connectable device;
Second: the first equipment to the second equipment WIFI direct access path is straight to the second connectable device WIFI with the second equipment Access path, the transmission path being spliced to form;
The third: the first equipment to the second equipment WIFI direct access path and the second equipment to the direct-connected road third equipment WIFI Diameter, the transmission path being spliced to form;
4th kind: the first equipment to the second equipment WIFI direct access path, the second equipment to third equipment WIFI direct access path And third equipment is to third connectable device WIFI direct access path, the transmission path being spliced to form.
The first connectable device and/or the second connectable device and/or third can be connected and be set during concrete implementation It is standby to may point to same WIFI equipment.
First connectable device, the second connectable device and third connectable device, can similarly connect each other Equipment.
It includes source device, at least one intermediate equipment that WIFI routing table described in the present embodiment, which can be used for providing a kind of, And the transmission link of target device, relaying and the forwarding of WIFI are realized by intermediate equipment, realize the WIFI communication of long range, To break the short limitation of existing WIFI communication physical transmission range.
The source device is the initiator of WIFI communication, can be first equipment, the second equipment, third equipment, first Any one in connectable device, the second connectable device and third connectable device.The target device is logical for WIFI The recipient of letter, for the WIFI equipment for source device not being same equipment.
When a WIFI equipment cannot be with another WIFI equipment because at a distance of too far or connect and establish the reasons such as unsuccessfully, Bu Nengjian When vertical WIFI is direct-connected, then it can be built according to the routing iinformation in the WIFI routing table by the relaying and forwarding of intermediate equipment Vertical WIFI communication, to reduce the probability of WIFI communication failure.
It is how that the direct-connected routing iinformation of the first WIFI, the direct-connected routing iinformation of the 2nd WIFI and the 3rd WIFI routing iinformation is whole It closes in same WIFI route list, can be transmitted by the information between WIFI equipment.Specifically such as, the first equipment is by first The direct-connected routing iinformation of WIFI is forwarded in the second equipment, is integrated with the 2nd WIFI routing iinformation;Third equipment is by third The direct-connected routing iinformation of WIFI is forwarded in the second equipment, then with the direct-connected routing iinformation of the 2nd WIFI, the first direct-connected information of WIFI into Row integration, forms above-mentioned WIFI routing table.
Embodiment two:
As shown in Fig. 2, the present embodiment provides a kind of WIFI communication means, which comprises
Step S210: according to default routing algorithm from WIFI routing table, selection one intermediate by source device, one or more The transmission link of equipment and the target device successively direct-connected formation of WIFI;The source device is WIFI communication equipment initiating equipment, institute Stating target device is that WIFI communicates answering equipment.
Step S220 uses the transmission link, carries out WIFI communication.The WIFI routing table is described in embodiment one Routing table or the embodiment two formed in routing table.
In the present embodiment WIFI communication means, according to the transmission path that WIFI routing table is selected, by source device, extremely The direct-connected splicing link of WIFI of a few intermediate equipment and the target device successively direct-connected formation of WIFI, passes through the transmission path WIFI communication is carried out, intermediate equipment is used and carries out relay forwarding.Using WIFI communication means described in the present embodiment, Ke Yishi Long range WIFI between existing source device and target device is communicated, while reducing source device with target device to be unable to WIFI direct-connected When, the probability of the failure of WIFI communication.
Specifically such as work as between equipment a and equipment c because of apart from each other or connection failure reason, it is straight WIFI can not to be established Even.By inquiring WIFI routing table, it is direct-connected that discovering device b had not only established WIFI with equipment a, but also establishes with equipment c WIFI is direct-connected, then may be selected by equipment a to equipment b, then by two sections of WIFI direct connected links of equipment b to equipment c, be in turn connected into Transmission link carries out WIFI communication.
As shown in figure 3, the further improvement as the present embodiment, further includes step before carrying out the step S210 S200.It is direct-connected that the step S200 can not establish WIFI between the determining source device and the target device.When the source Can establish between equipment and target device WIFI it is direct-connected when, then can be communicated by the way that WIFI is direct-connected, be subtracted with few as far as possible Few WIFI communicates occupied resource.
Carry out that the WIFI between the source device and target device is direct-connected to include:
Whether the direct-connected number of the established WIFI of source device reaches the connection upper limit;
If it is not, the WIFI directly established between the source device and target device is direct-connected;
If so, according to connection cancel policy selection cancel a source device WIFI direct connected link, and with it is described It is direct-connected that target device establishes WIFI.
Strategy is cancelled in the connection, WIFI direct connected link or route messages that can be minimum for communication frequency in specified time Least WIFI direct connected link.
As the suboptimization again of this implementation, as shown in figure 4, the present embodiment the method, additionally provides and specifically how to realize The direct-connected step of WIFI can not be established by determining between source device and target device, be specifically included:
Step S201: judge whether WIFI to have been established between the source device and the target device direct-connected;If it is not, then into Enter step S202;It can be with direct communication if so, having been set up that WIFI is direct-connected between source device and target device.Judgment method It can be the WIFI routing table by searching for source device, concretely: by the road WIFI in the MAC Address and source device of target device It is matched by the MAC Address in table, if successful match, and the hop count that turns of source device to target device is 1, then source device and mesh It is direct-connected that WIFI is had built up between marking device;Wherein, turn the number of segment that hop count has corresponded to WIFI direct connected link.
Step S202: judge whether the target device is that the source device can search for not connected equipment;
If it is not, then entering step S203;
If so, it is direct-connected to establish WIFI between the source device and the target device.Concrete implementation can incite somebody to action The MAC Address of target device is matched with the MAC Address for the equipment that can search for, and successful match is then setting of can search for It is standby.
Step S203: the WIFI established between the source device and the target device is direct-connected;It is described if establishing failure It is direct-connected that WIFI can not be established between source device and the target device.
Specific WIFI direct-connected method for building up, can use any one method in the prior art.
It can simply realize whether WIFI direct connected link can be established between source device and target device by the above method Determination.
In addition, a plurality of transmission path may be provided in the WIFI routing table, need to be selected according to route selection algorithm One meets the transmission path of demand.
There are many route selection algorithms, and two kinds of route selection algorithms are provided in the present embodiment.
The first: the least routing algorithm of intermediate equipment selects the minimum transmission path of intermediate equipment number of process.It should Route selection algorithm is to select the Route Selection of the minimal communication resource of an occupancy.
Second: intermediate equipment number is less than the routing algorithm of threshold value, and the threshold value is pre-stored numerical value.Using this Routing algorithm can more quickly select a transmission paths, to reduce the time delay of WIFI communication.
During concrete implementation, determine transmission path pass through WIFI direct connected link number of segment there are many ways to, A kind of transmission path intermediate equipment number of tag-detection is provided in the present embodiment.WIFI direct connected link number of segment is equal to intermediate equipment number Plus 1.Tag-detection is that source device sends a detection frame, is assigned with certain number of tags, after reaching an equipment, then marks Label number subtracts 1 automatically, when number of tags reduces to 0, then stops forwarding detection frame, the detecting label is as entrained by the detection frame 's.
When routing algorithm least using the first described intermediate equipment, reaches target in more each transmission paths and set After standby, the remainder of detecting label;Remainder is bigger, then the intermediate equipment that transmission path is passed through is fewer, and transmission path is shorter.Choosing Selecting the maximum transmission path of outgoing label volume residual is transmission path.
When the routing algorithm for being less than threshold value using intermediate equipment number described in second, source device sends tag-detection frame, If the path may be selected as transmission road it was found that the intermediate equipment number for having a transmission paths to reach target device is less than threshold value Diameter.In this way, the intermediate equipment number passed through without more each transmission paths, without each transmission paths of waiting Detection is completed, to be conducive to the quick selection of transmission path, and selects face relatively wider, when wherein a transmission paths occur Failure can choose other transmission paths and carry out WIFI communication, without always according to route selection algorithm, determining same It can not carry out the transmission path of normal WIFI communication.
The WIFI communication includes voice communication, video communication and short message communication etc. in the present embodiment.
WIFI described in the present embodiment is communicated when being communicated, and is communicated using multiple buffer technology, so as to The loss of various data is avoided, to improve communication quality.The multiple buffer technology is relative to single buffer technology, with different bufferings Area's number and different buffer algorithms can preferably realize the buffering of data, can effectively reduce the loss of data, be particularly suitable for The big WIFI communication of the amount of communication data such as voice and video.
WIFI communication means described in the present embodiment has broken the limitation of existing WIFI communications distance, Ke Yishi The WIFI communication of existing longer physical distance, at the same for equipment room can not WIFI it is direct-connected, provide another WIFI communication means, and Reliable communications.
Embodiment three:
As shown in figure 5, the present embodiment provides a kind of WIFI routing tables to form device, described device includes:
First acquisition unit 310, to obtain the first direct-connected road WIFI between the first equipment and the first connectable device By information;It is direct-connected that WIFI can be established between first equipment and first connectable device;
Second acquisition unit 320, to obtain the 2nd direct-connected road WIFI between the second equipment and the second connectable device By information;It is direct-connected that WIFI can be established between second equipment and second connectable device;First equipment with it is described It is direct-connected that WIFI has been established between second equipment;
Third acquiring unit 330, to obtain the 3rd direct-connected road WIFI between third equipment and third connectable device By information;It is direct-connected that WIFI can be established between the third equipment and the third connectable device;Second equipment with it is described It is direct-connected that WIFI has been established between third equipment.
The WIFI routing table forms the device that device can be independently arranged, and is also possible to be integrated in WIFI direct-connected device On.
When it is the device being independently arranged that the WIFI routing table, which forms device, the first acquisition unit 310, second are obtained It takes unit 320 and third acquiring unit 330 can be the receiving unit with receive capabilities, specific structure, which can be, to be connect Receive antenna.
If it is to be integrated in the WIFI direct-connected device that the WIFI routing table, which forms device, the WIFI direct-connected device is First equipment, then the first acquisition unit 310 can be multiplexed the search unit of the WIFI direct-connected device.Described search unit It may search for the connectable device of first equipment, and form routing iinformation;The routing of formation described in described search unit is believed Breath is the direct-connected routing iinformation of the first WIFI.Two acquiring unit 320 and third acquiring unit 330, which can be to have, to be connect Receive the receiving unit of function.The receiving unit can be multiplexed the receiving unit of first equipment, and specific structure can be The direct-connected communication unit of WIFI, can also be radio frequency transmission unit etc., and specific structure includes receiving antenna.Described second obtains list Member 320 and third acquiring unit 330 can be the functional unit of the same receiving antenna of multiplexing.
As further improvement of this embodiment, as shown in fig. 6, described device further includes interactive unit 340.The interaction Unit 340, the interaction WIFI routing table between WIFI direct-connected device has been established.
After completing the foundation of the WIFI routing table, the interactive unit 340 sends it for WIFI routing In his equipment, for the foundation of the WIFI routing table of other equipment, so that one routing iinformation of building is more accurate, comprehensive WIFI routing table, more preferably more efficiently to form the transmission link of WIFI communication.Wherein the mode of the transmission can be list It broadcasts, multicast or broadcast.The interactive unit 340 is specifically to when equipment starts and after equipment starting described in periodicity sending WIFI routing table.
WIFI route device described in the present embodiment is WIFI routing table forming method of the present invention, provides realization Physical unit, foring one kind can be used to establish by transmitting between source device, at least one intermediate equipment and target device The WIFI routing table of link, effectively broken distance in existing WIFI communication it is short and can not the direct-connected communication probability of WIFI it is high Limitation.
Example IV:
As shown in fig. 7, the present embodiment provides a kind of WIFI communication device, described device includes:
Selecting unit 410, to according to routing algorithm is preset from WIFI routing table, select one by source device, one or The transmission link of multiple intermediate equipments and the target device successively direct-connected formation of WIFI;
Communication unit 420 carries out WIFI communication to use the selected transmission path of the selecting unit.
Any one the structure of above-mentioned selection function can may be implemented in the prior art in the selection single 410, specifically Including various types of processors.Specific such as single-chip microcontroller, digital processing unit, central processing unit and programmable array are set It is standby.
The communication unit 420 is WIFI communication unit, can be any knot for carrying out WIFI communication in the prior art Structure.
The WIFI communication device can be independent WIFI communication device, be also possible to be integrated on various communication equipments WIFI communication equipment, specific mobile phone, smart phone, tablet computer, personal assistant, commercialization and PC etc..
Another structure of the WIFI communication device be include processor, storage medium, at least one communication interface with And bus.The software or program for realizing the selecting unit corresponding function are stored on the storage medium.The bus is used To connect the storage medium, processor and communication interface, to carry out the transmission of data.The processor operation is stored in institute The software or the program on storage medium are stated, can be realized and set including source device, one or more intermediate equipments and target The selection of the transmission path of standby selection.The communication interface is to carry out the WIFI communication.
The specific WIFI communication device may also include the storage medium for storing the WIFI routing table.It is described to deposit Storage media is the storage medium of the types such as flash or ROM.
WIFI communication device described in the present embodiment provides physical unit for the WIFI communication means, thus equally Have and broken the prior art and cannot achieve the limitation of longer physical distance WIFI communication, and realizing can not WIFI be direct-connected sets WIFI communication between standby.
As shown in figure 8, the further WIFI communication device, further includes determination unit 400;
The determination unit 400, to the selecting unit 410 select transmission link before, determine the source device with It is direct-connected that WIFI can not be established between the target device.
Determination unit 400 described in the present embodiment, it is first determined whether can be carried out between source device and target device WIFI is direct-connected, if it is direct-connected to carry out WIFI, just without establishing by source device, intermediate equipment and the direct-connected shape of target device WIFI At transmission link, WIFI direct connected link can be directly used and carry out WIFI communication, communicate occupied communication to reduce WIFI Resource.
There are many structures of the determination unit 400, and a kind of structure presented below is simple, realizes easy structure.Such as Fig. 9 Shown, the determination unit 400 includes:
First judgment module 401 is straight to judge whether WIFI to have been established between the source device and the target device Even;
Second judgment module 402, to judge not set up WIFI between the source device and the target device it is straight Lian Shi judges whether the target device is that the source device can search for not connected equipment, wherein the target device is institute The not connected equipment that source device can not search is stated, then it is straight to establish WIFI between the source device and the target device Even;
Direct-connected module 403 establishes the source when can search for connection equipment to the target device for the source device WIFI between equipment and target device is direct-connected;Wherein, the direct-connected failure of WIFI between the source device and the target device, It is direct-connected that WIFI can not be established between the source device and the target device.
The specific structure of the first judgment module 401 and the second judgment module 402, may each comprise comparator or including The integrated circuit of comparator, or the processor of above-mentioned arbitration functions may be implemented.
The direct-connected module 403 can be the direct-connected module in existing WIFI device.
The determination unit 400, is utilized existing structure in WIFI communication device, whether carries out source device and target device It can be carried out the direct-connected judgement of WIFI.When the WIFI device is integrated in WIFI direct-connected device, usually as the source of WIFI communication Equipment.
The default routing algorithm is the routing that the least routing algorithm of intermediate equipment number or intermediate equipment number are less than threshold value Algorithm.The least routing algorithm of intermediate equipment is to select the intermediate equipment of a process by comparing each transmission paths Least transmission path, thus to improve the efficiency of WIFI communication.The intermediate equipment number is less than the routing algorithm of threshold value, is Any one intermediate equipment number of selection is less than the transmission link of pre-stored threshold value, thus select face wider, selection Speed is faster.
The selecting unit 410 further includes tag-detection module:
The tag-detection module is set to obtain the centre that transmission link described in each is passed through by tag-detection Standby number.The tag-detection module carries out the tag-detection of each transmission path specifically to form and send tag-detection frame. Certain number of tags is usually assigned in the detection frame, every intermediate equipment, then number of tags subtracts 1 automatically, works as number of tags When being 0, then WIFI direct-connected device stops forwarding detection frame.
A kind of WIFI communication device is present embodiments provided, relaying and forwarding of the WIFI communication Jing Guo intermediate equipment can be made, Realize communication WIFI communication data transfer.When cannot directly be established between two equipment WIFI it is direct-connected when, can be set by centre Standby relay forwarding, thus reduce WIFI communication cannot probability, while breaking the limitation of distance in WIFI communication.
Embodiment five:
The present invention also provides a kind of WIFI connection method for building up, for connecting automatically between WIFI equipment, to pre-establish WIFI is direct-connected, can be with direct communication, so as to reduce WIFI communication effectively as foundation when needing to carry out WIFI communication Time delay caused by WIFI connection.
As shown in Figure 10, the direct-connected method for building up of WIFI described in the present embodiment, which comprises
Step S310: connectable device is searched for automatically;
The transmission of S320: Xiang Suoshu connectable device of step includes the networking claim frame by automatic link field;It is described automatic The unlatching that link field connects automatically to the connectable device;
Step S330: to establish WIFI direct-connected with the connectable device connecting automatically is had turned on, and forms WIFI network.Described group Net claim frame is the data frame for being exclusively used in realizing networking between WIFI equipment.The automatic link field can be carried in networking The body part of claim frame also can be set on the reserved place of the frame head of existing networking claim frame.It is preferential in the present embodiment On the reserved place for the frame head that networking claim frame is arranged in the automatic link field.Described in the automatic link field setting On the reserved place of the frame head of networking claim frame, WIFI equipment is that can know whether that needs open automatic connection in parsing frame head, To which time delay is small, without the text until parsing networking claim frame.The automatic connection can be one or more automatically.
In the WIFI in the step S330 direct-connected establishment process, WIFI equipment can be realized in running background Pairing and connection between WIFI equipment.
A usual WIFI equipment will search several neighbouring attachable equipment, and formation can connect list.If Equipment A searches 10 connectable devices, then equipment A connects the information that 10 connectable devices are sequentially listed in list, The specific such as direct-connected connection status of MAC Address, WIFI.Equipment A can connect list by traversal to judge, if complete At the foundation that WIFI is direct-connected, repeat the above steps S310 to step S330 if not completing, until equipment A with can connect in list All connectable devices complete the direct-connected foundation of WIFI.
As further improvement of this embodiment,
The method also includes:
Obtain equipment communicating number;
The networking claim frame further includes the communicating number;
The communicating number, to be matched with the address list in connected device, so as to name in address list after successful match The display of title.If the WIFI equipment for sending the networking claim frame is WIFI equipment A, and the communicating number of WIFI equipment A is a, It then further include the communicating number a in the networking claim frame.When establishing the direct-connected equipment B of WIFI with WIFI equipment A, institute is received After stating networking claim frame, the communicating number a can be extracted from the networking claim frame.When the communication of the WIFI equipment B When including the communicating number a in record, then title corresponding to communicating number a in address list is shown.To which user can be convenient Know which user the connection is from, which improves user experience impressions.The communicating number may include various The messenger of type and various businesses, such as No. SIM, UIM communicating number, specific acquisition methods include from storage State the methods of reading in the storage medium of communicating number.
Further, the method also includes:
When carrying out WIFI communication, it is direct-connected to judge whether source device with the target device of communication has been established WIFI;
If not setting up, WIFI is direct-connected, judge target device whether be source device connectable device;Source device is WIFI The initiator of communication equipment, the target device are the answer party of WIFI communication;
If target device is the connectable device of source device, it is upper to judge whether the connected device number of source device has reached Limit;
If connection number of devices has reached the upper limit, the WIFI for disconnecting satisfaction connection dismounting strategy is direct-connected and direct-connected using WIFI Technology establishes the connection with target device;The connection is removed there are many strategies, the specific can be that in nearest specified duration WIFI number of communications it is minimum be less than frequency threshold value or call duration time be less than time threshold strategy specifically select it is any, It can according to need selection.One to example IV in conjunction with the embodiments, then the connection removes strategy and may be used also are as follows: specifies in nearest The WIFI routing table is not received in duration;
If connection number of devices does not reach the upper limit, the connection of source device and target device is established using WIFI direct-connecting technology.
Periodically automatic search connectable device in WIFI equipment starting or after equipment starting.Equipment synchronizes out when starting Begin search connectable device, the foundation direct-connected into WIFI.It can facilitate in the first time of equipment after actuation in this way and realize WIFI communication.After equipment starting, by periodically automatic search connectable device, the direct-connected update of WIFI is realized, and When delete invalid connection, establish effective connection.
Embodiment six:
As shown in figure 11, the direct-connected method for building up of the present embodiment WIFI includes:
Step S410: networking claim frame is received;
Whether step S420: detecting in the networking claim frame includes automatic link field;If judging result is
It is to enter step S430;
Step S430: it is straight to establish WIFI between the networking claim frame receiving device and sending device for starting automatic connection Even.
The direct-connected method for building up of WIFI shown in the present embodiment detects in networking claim frame after receiving networking claim frame There is automatic link field, then starts autoconnect function, it is more convenient relative to traditional manual networking of user, and connect automatically It is connected to the time delay for being conducive to extract and establishing that WIFI is direct-connected, and reduction WIFI is communicated.
The present embodiment the method also includes:
The communicating number of the networking claim frame transmitting terminal is obtained from the networking claim frame;
The communicating number is matched with address list,
If successful match, the title in address list is shown.Due to including the messenger of transmitting terminal in networking claim frame Code can show the title of the user of the WIFI equipment after successful match with the address list successful match of receiving end, thus It facilitates user to be searched according to user's name, optimizes user experience.
Embodiment seven:
The present embodiment provides a kind of direct-connected method for building up of WIFI, the described method comprises the following steps:
First equipment searches for connectable device automatically, and the connectable device is the second equipment;Wherein second equipment It can be one or more;
To connect the second equipment and send include networking claim frame by automatic link field to first equipment to described;
Second equipment receives networking claim frame;
Whether it includes automatic link field that the second equipment detects in the networking claim frame;
It is the then automatic connection of the second equipment starting,
It is direct-connected that WIFI is established between first equipment and the second equipment.
The direct-connected method for building up of WIFI described in the present embodiment, not having to user relative to existing method, to establish WIFI manually straight Even, have the advantages that connection is simple.It is applied to described in embodiment two when by the direct-connected method for building up of WIFI described in the present embodiment In WIFI communication means, also have for WIFI communication put up WIFI directly-connected network in advance, can effectively reduce WIFI communication when Prolong.The foregoing is only a preferred embodiment of the present invention, is not intended to limit the scope of the present invention.

Claims (14)

1. a kind of WIFI routing table forming method, which is characterized in that it is direct-connected that the method is applied to two equipment rooms progress WIFI In the case of failure, and include:
Obtain the first direct-connected routing iinformation of WIFI between the first equipment and the first connectable device;First equipment with it is described It is direct-connected that WIFI can be established between first connectable device;
Obtain the 2nd direct-connected routing iinformation of WIFI between the second equipment and the second connectable device;Second equipment with it is described It is direct-connected that WIFI can be established between second connectable device;It is straight that WIFI has been established between first equipment and second equipment Even;
Obtain the 3rd direct-connected routing iinformation of WIFI between third equipment and third connectable device;The third equipment with it is described It is direct-connected that WIFI can be established between third connectable device;It is straight that WIFI has been established between second equipment and the third equipment Even;
Wherein, first equipment, second equipment, the third equipment, first connectable device, described second can Connection equipment and the third connectable device belong to WIFI direct-connected device.
2. WIFI routing table forming method according to claim 1, which is characterized in that the method also includes:
Interaction between WIFI direct-connected device has been established and has formed WIFI routing table.
3. a kind of WIFI communication means, which is characterized in that the described method includes:
According to default routing algorithm from WIFI routing table, one is selected to be set by source device, one or more intermediate equipments and target The transmission link of the standby successively direct-connected formation of WIFI;
Using the transmission link, WIFI communication is carried out;
Wherein, the WIFI routing table is that claims 1 or 2 is formed by WIFI routing table.
4. WIFI communication means according to claim 3, which is characterized in that preset routing algorithm from WIFI in the basis Routing table selects a chain by the successively direct-connected formation of WIFI of source device, one or more intermediate equipment and target device Before road, further includes:
Determine that can not to establish WIFI between the source device and the target device direct-connected.
5. WIFI communication means according to claim 4, which is characterized in that
Determining can not establish that WIFI is direct-connected to include: between the source device and the target device
Judge whether WIFI to have been established between the source device and the target device direct-connected;
If it is not, then judging whether the target device is that the source device can search for not connected equipment;
If it is not, it is direct-connected that WIFI then can not be established between the source device and the target device;
If so, the WIFI established between the source device and the target device is direct-connected, establish failure, then the source device with It is direct-connected that WIFI can not be established between the target device.
6. according to WIFI communication means described in claim 3,4 or 5, which is characterized in that the default routing algorithm is centre The least routing algorithm of number of devices or intermediate equipment number are less than the routing algorithm that threshold value is stored in advance.
7. WIFI communication means according to claim 6, which is characterized in that the method also includes: pass through tag-detection Obtain the intermediate equipment number that transmission link described in each is passed through.
8. a kind of WIFI routing table forms device, which is characterized in that it is direct-connected that described device is applied to two equipment rooms progress WIFI In the case of failure, and include:
First acquisition unit, to obtain the first direct-connected routing iinformation of WIFI between the first equipment and the first connectable device; It is direct-connected that WIFI can be established between first equipment and first connectable device;
Second acquisition unit, to obtain the 2nd direct-connected routing iinformation of WIFI between the second equipment and the second connectable device; It is direct-connected that WIFI can be established between second equipment and second connectable device;First equipment and second equipment Between that WIFI has been established is direct-connected;
Third acquiring unit, to obtain the 3rd direct-connected routing iinformation of WIFI between third equipment and third connectable device; It is direct-connected that WIFI can be established between the third equipment and the third connectable device;Second equipment and the third equipment Between that WIFI has been established is direct-connected;
Wherein, first equipment, second equipment, the third equipment, first connectable device, described second can Connection equipment and the third connectable device belong to WIFI direct-connected device.
9. WIFI routing table according to claim 8 forms device, which is characterized in that described device further include:
Interactive unit, the established WIFI routing table of interaction between WIFI direct-connected device has been established.
10. a kind of WIFI communication device, which is characterized in that described device includes:
Selecting unit, to according to routing algorithm is preset from WIFI routing table, selection one intermediate by source device, one or more The transmission link of equipment and the target device successively direct-connected formation of WIFI;
Communication unit carries out WIFI communication to use the selected transmission path of the selecting unit;
The WIFI routing table is that claims 1 or 2 is formed by WIFI routing table.
11. WIFI communication device according to claim 10, which is characterized in that further include determination unit;
The determination unit determines that the source device is set with the target before selecting transmission link to the selecting unit It is direct-connected that WIFI can not be established between standby.
12. WIFI communication device according to claim 11, which is characterized in that the determination unit includes:
First judgment module, it is direct-connected to judge whether WIFI to have been established between the source device and the target device;
Second judgment module, to judge not set up between the source device and the target device WIFI it is direct-connected when, sentence Whether the target device that breaks is that the source device can search for not connected equipment, wherein the target device is that the source is set The standby not connected equipment that can not be searched, then it is direct-connected can not to establish WIFI between the source device and the target device;
Direct-connected module, to the target device be the source device can search for connection equipment when, establish the source device with WIFI between target device is direct-connected;Wherein, the direct-connected foundation failure of WIFI between the source device and the target device, institute State that can not to establish WIFI between source device and the target device direct-connected.
13. WIFI communication device described in 0,11 or 12 according to claim 1, which is characterized in that the default routing algorithm is The least routing algorithm of intermediate equipment number or intermediate equipment number are less than the routing algorithm that threshold value is stored in advance.
14. WIFI communication device according to claim 13, which is characterized in that the selecting unit further include:
Tag-detection module, to obtain the intermediate equipment number that transmission link described in each is passed through by tag-detection.
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 CN104684043A (en) 2015-06-03
CN104684043B true 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)

Families Citing this family (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 (2)

* 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
CN103327558A (en) * 2012-03-23 2013-09-25 北京新岸线移动多媒体技术有限公司 Vehicular communication method and communication node

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7940776B2 (en) * 2007-06-13 2011-05-10 Cisco Technology, Inc. Fast re-routing in distance vector routing protocol networks
CN101594578B (en) * 2008-05-30 2013-08-28 华为终端有限公司 Establishment method of direct connected link, station device and communication system
US9749832B2 (en) * 2010-09-24 2017-08-29 Qualcomm Incorporated Wireless display discovery and operation with TDLS
KR101735334B1 (en) * 2010-11-25 2017-05-15 삼성전자 주식회사 Method and apparatus for performing discovery procedures in wi-fi p2p device
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 (2)

* 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
CN103327558A (en) * 2012-03-23 2013-09-25 北京新岸线移动多媒体技术有限公司 Vehicular communication method and communication node

Also Published As

Publication number Publication date
CN104684043A (en) 2015-06-03
WO2014183624A1 (en) 2014-11-20

Similar Documents

Publication Publication Date Title
CN101150498B (en) Multi-jumper radio relay communication system and its download data transmission method
CN101267240B (en) Multi-hop wireless relay communication system and download data transmission method and device
RU2006131455A (en) METHOD AND COMMUNICATION SYSTEM, PROVIDING THE PROHIBITION OF CALLING FOR THE USER OF ROAMING AFTER ACTIVATION OF THE PDP CONTEXT
CN101027914B (en) Multi-to-multi point ad-hoc wireless data transfer protocol
CN104768191A (en) Method and system for autonomous channel coordination for a wireless distribution system
CN106471861A (en) Method and apparatus for providing the system information of cellular communications networks
WO2008033651B1 (en) Selecting a leader node for an ad hoc network based on services
JP5462410B2 (en) Method and apparatus for accessing a wireless sensor network
CN105682064B (en) Call forwarding method and device for incoming call
US9332588B2 (en) Method, apparatus and system for information transmission
CN101635965B (en) Multi-priority voice access method in Ad Hoc radio network
CN107690165A (en) A kind of method of network connection, base station, trunk subscriber equipment and system
CN108347746A (en) Connection control method, access network elements and user equipment
CN101102283A (en) A method and device for optimizing unknown unicast forward at wireless access point
TW201633764A (en) Method to support emergency call through mesh network
CN108347755A (en) A kind of method and the network equipment solving root node conflict in mesh networks
CN106162796A (en) For finding and updating the subscriber equipment method to the trunk subscriber equipment of network
CN112105072A (en) Internet of things communication system and construction method thereof
CN107666686A (en) Transmit the method and via node of data
JP2001237875A (en) Relay path built-up method for radio packet
CN104684043B (en) WIFI routing table forming method and device, WIFI communication means and device
CN101635882B (en) Method for realizing all network voice broadcast in multi-hop Ad Hoc radio station network
JP2005033536A (en) Mobile communication system
JP6819875B2 (en) Wireless communication system and wireless communication device
CN109462873A (en) A kind of optimization method of communication-based train control system pingpang handoff

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