Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that is obtained under the creative work prerequisite.
The embodiment of the invention one
As shown in Figure 2, the embodiment of the invention provides a kind of data transmission method, comprising:
21, PCF (Point CoordinationFunction, the point coordination function) superframe that comprises uncontended periods and competing cycle is set.
22, in the uncontended periods of PCF superframe, send blue-teeth data.
The executive agent of embodiment of the invention data transmission method can be the terminal that integrates Bluetooth function and Wi-Fi function, as comprises the terminal of Wi-Fi module and bluetooth BT module.For WLAN (wireless local area network), terminal also can be understood that website (station, STA).
PCF solves the agreement that the transmission data collision between website is formulated among the IEEE-802.11.In the PCF agreement, time-domain is divided into the PCF superframe format, and the PCF superframe is made up of CFP (Contention FreePeriod, uncontended periods) and CP (Contention Period, competing cycle).CFP comprises that beacon Beacon frame, uncontended periods finish the CF-End frame, and the data sending time slots between Beacon frame and the CF-End frame.CFP also comprises SIFS (Short Interframe Space, short frame period).Also has PIFS (PCF Interframe Space, PCF frame period) between each PCF superframe.In CFP, the transmission data of other each website constantly in the coordination network of control point, center.In CP, each website competitive channel mutually sends data.
Because the main application scenarios of bluetooth is a transmitting audio data, the blue-teeth data transmission is wished not disturbed, and the main application scenarios of Wi-Fi is online, and the Wi-Fi transfer of data can be delayed time.Therefore, embodiment of the invention data transmission method, the terminal that comprises Wi-Fi module and bluetooth BT module utilizes the uncontended periods of PCF superframe to send blue-teeth data, in uncontended periods, there is not other terminal to send Wi-Fi data, the interference of avoiding the Wi-Fi data that blue-teeth data is caused in the interference range.
Optionally, in the embodiment of the invention data transmission method, make up the step 21 of the PCF superframe that comprises uncontended periods and competing cycle, can comprise:
Make up the beacon Beacon frame that uncontended periods begins, the data sending time slots of uncontended periods, the uncontended periods that uncontended periods finishes finishes the CF-End frame, the SIFS in the uncontended periods, and the PIFS between the PCF superframe;
The data sending time slots that uncontended periods is set equals to send the time slot that described blue-teeth data will take.
Above-mentioned structure comprises the step 21 of the PCF superframe of uncontended periods and competing cycle, can be realized by the Wi-Fi module.
PIFS, CFP in the above-mentioned PCF superframe, Beacon, SIFS, CF-End, CP etc., the PCF superframe that can be provided with reference to the Wi-Fi module of STA-1 shown in Figure 3 is specifically referring to hereinafter narration.
As shown in the above, in the uncontended periods of PCF superframe, send the step 22 of blue-teeth data, can for: in the data sending time slots of uncontended periods, send blue-teeth data.
The above-mentioned step 22 that sends blue-teeth data in the uncontended periods of PCF superframe can be realized by the BT module.
Particularly, in the uncontended periods of PCF superframe, send the step 22 of blue-teeth data, can comprise:
Determine that channel is unoccupied in the PIFS of uncontended periods, send the Beacon frame of uncontended periods, send described blue-teeth data in the data sending time slots of uncontended periods, the Beacon frame of uncontended periods carries PCF information, and PCF information comprises the gap information of described uncontended periods;
Determine that channel is unoccupied in the SIFS of uncontended periods, send the CF-End frame of uncontended periods, finish uncontended periods, enter competing cycle.
In the embodiment of the invention data transmission method, the Wi-Fi module can determine whether channel is occupied in the PIFS interval, do not give unnecessary details at this according to relevant regulations in the IEEE-802.11 agreement.
Equally, the Wi-Fi module can determine whether channel is occupied in the SIFS interval, do not give unnecessary details at this according to relevant regulations in the IEEE-802.11 agreement.
That stipulates in PCF information and the IEEE-802.11 agreement is consistent, does not give unnecessary details at this.Be appreciated that the gap information that can obtain uncontended periods by PCF information.
With reference to shown in Figure 3, STA-1 is the portable terminal with bluetooth and Wi-Fi function, and STA-2 is the portable terminal with Wi-Fi function.The BT DATA (blue-teeth data) of the BT module of STA-1 in uncontended periods the Beacon frame and the CF-End frame between send, just the data sending time slots of BT DATA in uncontended periods sends.After finishing uncontended periods, enter competing cycle, the Wi-Fi module competitive channel of the Wi-Fi module of STA-1 and STA-2 sends the Wi-Fi data.
As seen, terminal sends the control point, center that the Beacon frame is forged into the PCF networking by the Wi-Fi module, all can receive the terminal of Beacon frame, think that the terminal that sends the Beacon frame is the control point, center at PCF networking, the terminal and other terminals that receives the Beacon frame that send the Beacon frame have constituted the PCF BSS (PCF Basic Service Set, PCF Basic Service Set) that forges.Like this, the BT module that sends the terminal of Beacon frame can send blue-teeth data in the uncontended periods of PCF superframe, and other terminals that receive the Beacon frame do not send the Wi-Fi data in the uncontended periods of PCF superframe, avoid sending in the PCF BSS Wi-Fi data and interfering with each other that the transmission blue-teeth data causes.
The data transmission method that the embodiment of the invention provides, preferable being suitable for, have Soft-AP (Soft-AP, Soft Access Point, soft access node) website of function, this website has the AP function, can be used as the control point, center of PCF BSS, can construct the PCF superframe easily, coordinated the Wi-Fi transfer of data of other website in this PCFBSS.
The data transmission method that the embodiment of the invention provides, preferable, before sending the Beacon frame, do not need to have taken channel, therefore, the probability of success that sends the Beacon frame is higher, in channel busy, the probability of success that other Wi-Fi website is received the Beacon frame is higher, can better avoid sending interfering with each other that Wi-Fi data and blue-teeth data cause.
The technical scheme that is provided by the embodiment of the invention described above as can be seen, can pseudo-produce a virtual PCF BSS, the blue-teeth data at the control point, center of PCF sends in uncontended periods, and interior other Wi-Fi website of the scope that avoids interference sends Wi-Fi data and the control point, center sends interfering with each other of blue-teeth data.
The embodiment of the invention two
As shown in Figure 4, the data transmission method of corresponding the foregoing description, the embodiment of the invention provides a kind of data transmission device, comprising:
Wi-Fi module 41 is used to be provided with the PCF superframe that comprises uncontended periods and competing cycle.
BT module 42 is used for sending blue-teeth data in the uncontended periods of PCF superframe.
Optionally, Wi-Fi module 41 can comprise:
Make up submodule, be used to make up the beacon Beacon frame that uncontended periods begins, the data sending time slots of uncontended periods, the uncontended periods that uncontended periods finishes finishes the CF-End frame, short frame period SIFS in the uncontended periods, the time slot of competing cycle, and the PCF frame period PIFS between the PCF superframe.
Submodule is set, and the data sending time slots that is used to be provided with uncontended periods equals to send the time slot that blue-teeth data will take.
Concrete, BT module 42 is used for sending blue-teeth data in the data sending time slots of uncontended periods.
Wi-Fi module 41 can also comprise:
Determine submodule, be used to determine that channel is unoccupied in the PIFS of uncontended periods, send the Beacon frame of uncontended periods, the Beacon frame of uncontended periods carries PCF information, PCF information comprises the gap information of described uncontended periods, and determines that channel is unoccupied in the SIFS of uncontended periods, sends the CF-End frame of uncontended periods, finish uncontended periods, enter competing cycle.
The data transmission device that the embodiment of the invention provides can no longer repeat to launch narration to should be understood that at this with reference to the data transmission method that the foregoing description provides.
The data transmission device that the embodiment of the invention provides, preferable can be for having Soft-AP (Soft-AP, Soft Access Point, soft access node) website of function, this moment, this website had the AP function, can be used as the control point, center of PCF BSS, and this website does not need to be forged into the control point, center, can construct the PCF superframe easily, coordinate the Wi-Fi transfer of data of other website in this PCF BSS.
The data transmission device that the embodiment of the invention provides, preferable, before sending the Beacon frame, do not need to have taken channel, in channel busy, the probability of success that sends the Beacon frame is higher, the probability of success that other Wi-Fi website is received the Beacon frame is higher, can better avoid sending interfering with each other that Wi-Fi data and blue-teeth data cause.
The technical scheme that is provided by the embodiment of the invention described above as can be seen, can pseudo-produce a virtual PCF BSS, the blue-teeth data at the control point, center of PCF sends in uncontended periods, and interior other Wi-Fi website of the scope that avoids interference sends Wi-Fi data and the control point, center sends interfering with each other of blue-teeth data.
The embodiment of the invention three
As shown in Figure 5, corresponding to the data transmission method of the foregoing description one, the embodiment of the invention provides a kind of data transmission method, comprising:
51, determine to enter the uncontended periods of PCF (Point Coordination Function, point coordination function) superframe, in the uncontended periods of PCF superframe, do not send the Wi-Fi data.
52, determine to enter the competing cycle of PCF superframe, in the competing cycle of PCF superframe, send the Wi-Fi data.
The executive agent of embodiment of the invention data transmission method can be the terminal that possesses the Wi-Fi function, as comprises the terminal of Wi-Fi module.For WLAN (wireless local area network), terminal also can be understood that website (station, STA).
Determine to enter the uncontended periods of PCF superframe in the above-mentioned steps 51, can comprise: receive the Beacon frame of uncontended periods in the PCF superframe, the uncontended periods of determining to enter the PCF superframe.
Determine to enter the competing cycle of PCF superframe in the above-mentioned steps 52, can comprise: receive the CF-End frame of uncontended periods in the PCF superframe, determine to enter the competing cycle of PCF superframe.
Carry PCF information corresponding to Beacon frame in the data transmission method of the foregoing description one, PCF information comprises the gap information of uncontended periods.Embodiment of the invention data transmission method can also comprise:
After receiving the Beacon frame of uncontended periods in the PCF superframe, the timing of NAV (Network Allocation Vector, network allocation vector) timer is set, behind the NAV timer expiry, sends the Wi-Fi data according to the gap information of uncontended periods.
With reference to shown in Figure 3, the timing of the NAV timer that the Wi-Fi module of STA-2 is provided with is identical with the time slot of uncontended periods usually.The data sending time slots of uncontended periods finishes in the blue-teeth data end of transmission of the BT module of STA-1 or the PCF superframe, and the Wi-Fi module of STA-1 sends the CF-End frame, finishes uncontended periods.
Wherein, that stipulates in PCF information format and the IEEE-802.11 agreement is consistent, does not give unnecessary details at this.
As seen, the timing of NAV timer is set, does not receive the CF-End frame of uncontended periods in the PCF superframe according to the gap information of uncontended periods, but behind the NAV timer expiry, think that also uncontended periods finishes, enter competing cycle, can send the Wi-Fi data.
Still referring to shown in Figure 3, STA-1 is the portable terminal with bluetooth and Wi-Fi function, and STA-2 is the portable terminal with Wi-Fi function.The Wi-Fi module of STA-1 sends the Beacon frame, the BT DATA (blue-teeth data) of the BT module of STA-1 in uncontended periods the Beacon frame and the CF-End frame between send.The Wi-Fi module of STA-2 receives the Beacon frame, the Beacon frame in uncontended periods and do not send the Wi-Fi data in the time between the CF-End frame.
The Wi-Fi module of STA-2 is received the CF-End frame that the Wi-Fi module of STA-1 sends, and perhaps NAV is overtime, determines that uncontended periods finishes, and enters competing cycle, and the Wi-Fi module competitive channel of the Wi-Fi module of STA-1 and STA-2 sends the Wi-Fi data.
The technical scheme that is provided by the embodiment of the invention described above can send blue-teeth data as can be seen in the uncontended periods of PCF superframe, avoid interference interfering with each other that Wi-Fi data and blue-teeth data cause in the scope.
The embodiment of the invention four
As shown in Figure 6, the embodiment of the invention provides a kind of data transmission device, comprising:
Determination module 61 is used to determine to enter the uncontended periods of PCF superframe, or enters the competing cycle of PCF superframe.
Sending module 62 is used for the competing cycle that determination module 61 determines to enter the PCF superframe, sends the Wi-Fi data.
Optionally, determination module 61 can comprise:
First determination module is used for receiving the Beacon frame of PCF superframe uncontended periods, the uncontended periods of determining to enter the PCF superframe.
Second determination module is used for receiving the CF-End frame of PCF superframe uncontended periods, determines to enter the competing cycle of PCF superframe.
The Beacon frame that first determination module receives carries PCF information, and PCF information comprises the gap information of uncontended periods, and the data transmission device that the embodiment of the invention provides can also comprise:
Time block is used for being provided with according to the gap information of uncontended periods the timing of network allocation vector NAV timer; At this moment, sending module 62, also be used for the NAV timer expiry after, send the Wi-Fi data.
The data transmission device that the embodiment of the invention provides can no longer repeat to launch narration to should be understood that at this with reference to the data transmission method that the foregoing description provides.
The technical scheme that is provided by the embodiment of the invention described above can send blue-teeth data as can be seen in the uncontended periods of PCF superframe, avoid interference interfering with each other that Wi-Fi data and blue-teeth data cause in the scope.
The specific embodiment of the invention one
As shown in Figure 7, embodiment of the invention data transmission method embodiment schematic diagram, wherein STA-1 comprises Wi-Fi module and BT module.
The Wi-Fi module structure PCF superframe of 71:STA-1.
The BT module notice Wi-Fi module of STA-1 has blue-teeth data to send, Wi-Fi module structure PCF superframe, and the PCF superframe comprises uncontended periods and competing cycle.
The Wi-Fi module of 72:STA-1 sends the Beacon frame.
The Wi-Fi module of STA-1 is intercepted channel, if channel is empty (being that channel is unoccupied) in the PIFS interval, the Wi-Fi module sends the Beacon frame and begins the PCF superframe, and this moment, uncontended periods began.Have PCF information in the Beacon frame that the Wi-Fi module sends, PCF information comprises the gap information of uncontended periods.
If channel is not empty in the PIFS interval, the Wi-Fi module continues to intercept up to sending the Beacon frame by the back off algorithm in the IEEE-802.11 agreement.
The BT module blue-teeth data transmitting of 73:STA-1.
The Wi-Fi module of STA-1 enters sleep pattern, and the BT module is at the data sending time slots blue-teeth data transmitting of uncontended periods.
The Wi-Fi module of 74:STA-1 sends the CF-End frame.
The data sending time slots of uncontended periods finishes in the blue-teeth data end of transmission of the BT module of STA-1 or the PCF superframe, and the BT module of STA-1 enters sleep pattern.The Wi-Fi module of STA-1 is intercepted channel, if channel is empty in during SIFS, the Wi-Fi module sends the CF-End frame, and this moment, uncontended periods finished, and and then began competing cycle.
If channel is not empty in during SIFS, the Wi-Fi module continues to intercept up to sending the CF-End frame according to the back off algorithm in the IEEE-802.11 agreement.
75:STA-1 and other website competitive channels send the Wi-Fi data.
In the competing cycle, the Wi-Fi website in STA-1 and the interference range can send the Wi-Fi data by competitive channel, begins up to next PCF superframe.
The technical scheme that is provided by the embodiment of the invention described above can send blue-teeth data as can be seen in the uncontended periods of PCF superframe, avoid interference interfering with each other that Wi-Fi data and blue-teeth data cause in the scope.
The specific embodiment of the invention two
As shown in Figure 8, embodiment of the invention data transmission method embodiment schematic diagram, wherein, STA-1 comprises Wi-Fi module and BT module, STA-2 comprises the Wi-Fi module.
81, in uncontended periods, the Wi-Fi module of STA-2 does not send the Wi-Fi data.
The Wi-Fi module of STA-2 receives the Beacon frame of the Wi-Fi module transmission of STA-1, and the Wi-Fi module of STA-2 thinks that uncontended periods begins, and the Wi-Fi module of STA-2 does not send the Wi-Fi data.
The Wi-Fi module of STA-2 obtains PCF information from the Beacon frame, and PCF information comprises the gap information of uncontended periods, and the Wi-Fi module of STA-2 is provided with the NAV timer of oneself according to the gap information of uncontended periods.
82, in competing cycle, the Wi-Fi module competitive channel of STA-2 sends the Wi-Fi data.
The Wi-Fi module of STA-2 is received the CF-End frame that the Wi-Fi module of STA-1 sends, and STA-2 thinks that uncontended periods finishes, and competing cycle begins, and the Wi-Fi module competitive channel of the Wi-Fi module of STA-2 and STA-1 carries out the Wi-Fi data and sends.
Perhaps, though do not receive the CF-End frame that the Wi-Fi module of STA-1 sends, the NAV of STA-2 is overtime, STA-2 thinks that uncontended periods finishes, competing cycle begins, and the Wi-Fi module competitive channel of the Wi-Fi module of STA-2 and STA-1 carries out the Wi-Fi data and sends.
The mode of the Wi-Fi module competitive channel of STA-2 is carried out according to I EEE-802.11 agreement, Wi-Fi module as STA-2 will send data, the Wi-Fi module is intercepted channel, channel is empty (being that channel is unoccupied) in listening interval, then the Wi-Fi module sends RTS (Request To Send, request sends), channel is not empty in listening interval, then back off algorithm continues to intercept in the Wi-Fi module execution IEEE-802.11 agreement.
In the embodiment of the invention data transmission method, the website that receives the Beacon frame that the Wi-Fi module of STA-1 sends is not restricted to one of STA-2, promptly is in the interference range of STA-1 to comprise that the website of Wi-Fi module can be for a plurality of.
The technical scheme that is provided by the embodiment of the invention described above can send blue-teeth data as can be seen in the uncontended periods of PCF superframe, avoid interference interfering with each other that Wi-Fi data and blue-teeth data cause in the scope.
Need to prove, for aforesaid each method embodiment, for simple description, so it all is expressed as a series of combination of actions, but those skilled in the art should know, the present invention is not subjected to the restriction of described sequence of movement, because according to the present invention, some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in the specification all belongs to preferred embodiment, and related action and module might not be that the present invention is necessary.
In the above-described embodiments, the description of each embodiment is all emphasized particularly on different fields, do not have the part that describes in detail among certain embodiment, can be referring to the associated description of other embodiment.
One of ordinary skill in the art will appreciate that all or part of flow process that realizes in the foregoing description method, be to instruct relevant hardware to finish by computer program, described program can be stored in the computer read/write memory medium, this program can comprise the flow process as the embodiment of above-mentioned each side method when carrying out.Wherein, described storage medium can be magnetic disc, CD, read-only storage memory body (Read-Only Memory, ROM) or at random store memory body (Random Access Memory, RAM) etc.
The above; only for the preferable embodiment of the present invention, but protection scope of the present invention is not limited thereto, and anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; the variation that can expect easily or replacement all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of claim.