CN106792954A - A kind of bluetooth based on environment sensing and Wifi changing methods and transmission equipment - Google Patents

A kind of bluetooth based on environment sensing and Wifi changing methods and transmission equipment Download PDF

Info

Publication number
CN106792954A
CN106792954A CN201611167325.4A CN201611167325A CN106792954A CN 106792954 A CN106792954 A CN 106792954A CN 201611167325 A CN201611167325 A CN 201611167325A CN 106792954 A CN106792954 A CN 106792954A
Authority
CN
China
Prior art keywords
bluetooth
wifi
equipment
transmission
out data
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
CN201611167325.4A
Other languages
Chinese (zh)
Other versions
CN106792954B (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.)
New Cloud Technology Group Co ltd
Original Assignee
Central South University
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 Central South University filed Critical Central South University
Priority to CN201611167325.4A priority Critical patent/CN106792954B/en
Publication of CN106792954A publication Critical patent/CN106792954A/en
Application granted granted Critical
Publication of CN106792954B publication Critical patent/CN106792954B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/14Reselecting a network or an air interface
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/24Reselection being triggered by specific parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/24Reselection being triggered by specific parameters
    • H04W36/26Reselection being triggered by specific parameters by agreed or negotiated communication parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/24Reselection being triggered by specific parameters
    • H04W36/30Reselection being triggered by specific parameters by measured or perceived connection quality data
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The invention discloses a kind of bluetooth based on environment sensing and Wifi changing methods and transmission equipment, including:S1. the ambient parameter of bluetooth equipment is obtained, judges whether the bluetooth equipment meets data transfer demands, be to jump to step S2, otherwise jump to step S4;S2. transmitting data stream amount is predicted, and calculates the transmission data rate of transmitting data stream amount, when the transmission data rate is less than default switching threshold, jump to step S3, otherwise jump to step S4;S3. carried out data transmission by bluetooth equipment;S4. transmission equipment is switched into Wifi equipment by bluetooth equipment, is carried out data transmission by Wifi equipment.The present invention can automatically select bluetooth or Wifi carry out data transmission according to bluetooth connection state and data traffic, with low-power consumption, low delay, the advantages of two-forty.

Description

A kind of bluetooth based on environment sensing and Wifi changing methods and transmission equipment
Technical field
Cut with Wifi the present invention relates to wireless data transmission technology field, more particularly to a kind of bluetooth based on environment sensing Change method and transmission equipment.
Background technology
WiFi and bluetooth are all wide variety of wireless network data transmission means, at present, are matched somebody with somebody on 70% cell phone For bluetooth, 80% smart mobile phone is equipped with WiFi.Two kinds of technologies can be replaced in many application scenarios, but not Same wireless data transmission protocols are the characteristics of the aspects such as message transmission rate, power consumption, transmission range have different.
Bluetooth technology includes conventional Bluetooth, High Speed Bluetooth, three kinds of low-power consumption bluetooth technology, there is provided low-power consumption, low latency, low The radio communication of message transmission rate.By taking BLE (Bluetooth Low Energy, low-power consumption bluetooth) as an example, transmission range 60 ~100m, in 2.4G frequency range maximum data transfer rate 250kbps, completion is once connected, that is, scan miscellaneous equipment, set up chain Road, send and data, certification and suitably terminate, 3ms is only needed altogether.In terms of power consumption, terminal node single-unit button cell is (such as The CR2032 of 3V, 220mAh) work some months or even several years.
WiFi is towards high speed data transfer.The series 802.11n Theoretical Rate highests of IEEE 802.11 being most widely used Up to 600Mbps (industry main flow is 300Mbps), coverage can be expanded to several square kilometres.IEEE 802.11ac, The data transmission capabilities of 1Gbit up to per second can be provided in theory.The power consumption of WiFi is significantly larger than bluetooth, generally using energy-conservation Management module realizes energy consumption efficiency higher.Possesses the WiFi of PSM (Power Save Mode) pattern by stopping in idle periods Sleep to realize energy-conservation.Whether detection access point in property rf period ground has data pack buffer, when buffer data size triggers PSM threshold values, Active state will be cut by resting state.The power consumption of active state is 20 times or so of resting state, by data cached in AP The mode of bag, on the one hand saves power consumption, on the other hand increased extra 100-300ms time delays.Under this pattern, with two Individual extreme, lower power consumption, then extra time delay higher;Lower extra time delay, then power consumption higher.
On the one hand, radio communication is one of main energy consumption source in the terminal, and compared to WiFi, the power consumption of bluetooth is imitated Rate is higher than WiFi, but the bandwidth for providing is narrower, has significant transmission delay for the transmission of big file.On the other hand, WiFi can provide message transmission rate higher, but energy consumption is big, and be difficult to balance between power consumption and time delay.It is worth noting that, The isomerism of network data has certain pattern, and different types of network services is different to the demand of bandwidth.For example, typical Online Video viewing service, bandwidth is in burst type pulse type, and bandwidth requirement is up to 3Mb/s, is adapted to using the high speed advantage of WiFi; And for online voice call, bandwidth is relatively fixed, less than 100Kb/s, this low bandwidth needs bluetooth energy consumption efficiency It is higher.Typical smart mobile phone web page browsing etc. or the service such as social chat, bandwidth demand are less than 1Mb/s, and bluetooth is more suitable.Cause This is, it is necessary to the isomerism of network-oriented data, inquires into a kind of low-power consumption, the communication strategy of low delay.
The content of the invention
The technical problem to be solved in the present invention is that:For the technical problem that prior art is present, the present invention provides one Plant and can automatically select bluetooth or Wifi carries out data transmission according to bluetooth connection state and data traffic, it is low to prolong with low-power consumption When, the advantages of two-forty, can be with the bluetooth based on environment sensing of seamless switching between Wifi and bluetooth and Wifi changing methods And transmission equipment.
In order to solve the above technical problems, technical scheme proposed by the present invention is:A kind of bluetooth based on environment sensing with Wifi changing methods, including:
S1. the ambient parameter of bluetooth equipment is obtained, judges whether the bluetooth equipment meets data transfer demands, be to jump Step S2 is gone to, step S4 is otherwise jumped to;
S2. transmitting data stream amount is predicted, and calculates the transmission data rate of transmitting data stream amount, when the transmission data rate is small When default switching threshold, step S3 is jumped to, otherwise jump to step S4;
S3. carried out data transmission by bluetooth equipment;
S4. transmission equipment is switched into Wifi equipment by bluetooth equipment, is carried out data transmission by Wifi equipment.
As a further improvement on the present invention, ambient parameter described in step S1 includes the network delay of blueteeth network, loses Bag rate and received signal strength;Network delay is met less than default time delay threshold value and the packet loss less than pre- when simultaneously If packet loss threshold value and the received signal strength be more than default signal intensity threshold value when, judge bluetooth equipment satisfaction Data transfer demands, otherwise judge that bluetooth equipment is unsatisfactory for data transfer demands.
As a further improvement on the present invention, the specific steps of the prediction of transmitting data stream amount described in step S2 include:
S2.1. historical data flow is obtained;
S2.2. according to the historical data flow, by autoregressive model prediction transmitting data stream amount.
As a further improvement on the present invention, the specific steps of step S3 include:When the transmission data rate is more than default Bluetooth mode selection threshold value when, carried out data transmission with high speed transmission mode by bluetooth equipment, otherwise by bluetooth equipment Carried out data transmission with low-speed mode.
As a further improvement on the present invention, transmission equipment is switched into Wifi equipment by bluetooth equipment described in step S4 to exist MAC layer realizes that implementing step is:In MAC layer, the Bluetooth MAC address of the sender in packet is replaced with into Wifi rule The source MAC of model, the Bluetooth MAC address of recipient in packet is replaced with the target MAC (Media Access Control) address of Wifi specifications.
As a further improvement on the present invention, carried out data transmission and the step by bluetooth equipment in the step S3 Carry out data transmission by Wifi equipment being realized by identical SOCKET in S4.
As a further improvement on the present invention, before being carried out data transmission by bluetooth equipment in step s3, also include Cost accounting step S3A:The bluetooth cost that calculating is carried out data transmission with bluetooth equipment, when the bluetooth cost is more than default During switching surfaces threshold value, step S4 is jumped to, otherwise perform step S3, carried out data transmission by bluetooth equipment..
As a further improvement on the present invention, before the step S1, also including step S0:Obtain and judge that data are sent out Demand is sent, when with data is activation demand, step S1 is jumped to, step S0 is otherwise continued executing with.
A kind of bluetooth based on environment sensing switches transmission equipment, including environmental perception module, handover decisions mould with Wifi Block, bluetooth module and Wifi modules;
The environmental perception module is used to obtain the ambient parameter of bluetooth equipment, prediction transmitting data stream amount and calculate transmission Data transfer rate, and ambient parameter and transmission data rate are sent to switch decision module;
The switch decision module is used to select to transmit data or by Wifi equipment transmission datas by bluetooth equipment;
The bluetooth module is used to be carried out data transmission according to the result of decision of this switch decision module;
The Wifi modules are used to be carried out data transmission according to the result of decision of this switch decision module.
As a further improvement on the present invention, cost accounting module is also included in the switch decision module, for calculating The bluetooth cost carried out data transmission with bluetooth equipment.
Compared with prior art, the advantage of the invention is that:
1st, the present invention has two kinds of data transfer modes of bluetooth and Wifi, and by automatic sensing bluetooth connection state and number According to flow, automatically select bluetooth or Wifi carries out data transmission, there is quick self-adapted property to the fluctuation of data transfer rate, connection quality Feature, the advantages of be provided simultaneously with low-power consumption, low delay, two-forty.
2nd, bluetooth of the invention and Wifi switch in MAC layer realization, in bluetooth and Wifi handoff procedures, it is not necessary to interrupt Existing socket connections, so as to realize the seamless switching between bluetooth and Wifi.
3rd, the present invention carries out network quality detection using l2cap bags, and is only having the data just to carry out net when needing transmission Network quality testing, because of the additional energy expense very little that network quality detection band is come, energy consumption is low.
Brief description of the drawings
Fig. 1 is specific embodiment of the invention schematic flow sheet.
Fig. 2 is specific embodiment of the invention structural representation.
Specific embodiment
Below in conjunction with Figure of description and specific preferred embodiment, the invention will be further described, but not therefore and Limit the scope of the invention.
As shown in figure 1, the bluetooth based on environment sensing of the present embodiment and Wifi changing methods, including:S1. bluetooth is obtained The ambient parameter of equipment, judges whether bluetooth equipment meets data transfer demands, is, jumps to step S2, otherwise jumps to step Rapid S4;S2. transmitting data stream amount is predicted, and calculates the transmission data rate of transmitting data stream amount, when the transmission data rate is less than During default switching threshold, step S3 is jumped to, otherwise jump to step S4;S3. carried out data transmission by bluetooth equipment; S4. transmission equipment is switched into Wifi equipment by bluetooth equipment, is carried out data transmission by Wifi equipment.
In the present embodiment, ambient parameter includes network delay, packet loss and the reception signal of blueteeth network in step S1 Intensity;Less than default packet loss threshold value and connect less than default time delay threshold value and packet loss when network delay is simultaneously met When receiving signal intensity more than default signal intensity threshold value, judge that bluetooth equipment meets data transfer demands, otherwise judge blue Tooth equipment is unsatisfactory for data transfer demands.Network delay and packet loss are obtained by sending l2cap ping packets, in order to save Energy is saved, by setting an asynchronous timed thread, ambient parameter is periodically obtained, the acquisition cycle could be arranged to 1 second. After bluetooth connection is set up, l2cap ping are sent to the opposite equip. of bluetooth connection by bluetooth equipment, totally 4 packets, note Record average round-trip time, time delay and the packet loss of bluetooth connection are obtained by l2cap ping.If ping fails, that is, connect not It is reachable, or time delay is more than 100ms, illustrates that receiving device has exceeded Bluetooth RF scope, or the RSSI of bluetooth equipment (is received Signal intensity) be less than RSSIth (signal intensity threshold value), then judge that bluetooth equipment is unsatisfactory for data transfer demands.Due to L2cap ping packet very littles, only 44 bytes, therefore, the network delay and packet loss for obtaining blueteeth network are introduced Overhead very little, energy consumption is low.
In the present embodiment, before step S1, may also include step S0:Data is activation demand is obtained and judged, works as tool When having data is activation demand, step S1 is jumped to, otherwise continue executing with step S0.I.e. after bluetooth connection foundation, to bluetooth The detection of ambient parameter is not to carry out always, and only when equipment has data is activation demand just to bluetooth equipment Ambient parameter is detected, i.e., be not space-time only in the data is activation queue of equipment, just performs step S1, obtains bluetooth equipment Ambient parameter.The number of times that equipment obtains ambient parameter can be greatly reduced, so that the energy consumption of the equipment for also greatly reducing, More energy-conservation.
In the present embodiment, in step S2 transmitting data stream amount prediction concretely comprise the following steps:S2.1. historical data stream is obtained Amount;S2.2. according to historical data flow, by autoregressive model prediction transmitting data stream amount.Autoregression model such as formula (1) institute Show,
In formula (1),It is the transmitting data stream amount of prediction, Sk-iIt is historical data flow, u is used by autoregression model Historical data flow number of samples, aiIt is the coefficient of autoregression model.In the present embodiment, using 1 rank autoregression model;From The coefficient a of regression modeliCalculated by least square method by historical data flow and determined, as shown in formula (2),
In formula (2), aiIt is the coefficient of autoregression model, SjIt is historical data flow, v is default prediction scale parameter. In the present embodiment, default prediction scale parameter v values are 12, it is of course also possible to select other values according to actual needs.
In the present embodiment, the ambient parameter and prediction transmitting data stream amount for obtaining bluetooth equipment are held in the user space OK.
In the present embodiment, when bluetooth equipment meets data transfer demands, and the transmission data rate of transmission quantity flow is small When default switching threshold, carried out data transmission using bluetooth equipment.The specific steps of step S3 include:Work as transmission data rate When selecting threshold value more than default bluetooth mode, carried out data transmission with high speed transmission mode by bluetooth equipment, otherwise passed through Bluetooth equipment is carried out data transmission with low-speed mode.Because Bluetooth transmission has transmission range shorter relative to Wifi transmission, pass Defeated speed is relatively low, postpone it is low, the characteristics of energy consumption is low, so for short distance, the data of low discharge, Bluetooth transmission is transmitted than Wifi Advantageously.In the present embodiment, switching threshold is set to 250Kb/s, when the transmission data rate of the data traffic for needing transmission During less than 250Kb/s, then carried out data transmission using bluetooth equipment, that is, can guarantee that the time delay of data transfer meets transmission demand, Can guarantee that energy consumption is minimum in transmitting procedure, is otherwise carried out data transmission using Wifi again, to minimize the time delay of data transfer. When being carried out data transmission by bluetooth equipment, further judged according to transmission data rate, selected blue teeth high speed or low speed Pattern carries out data transmission, so as to ensure to enable to the power consumption of bluetooth equipment lower while data transfer demands are met, More energy-conservation.
In the present embodiment, transmission equipment is switched to Wifi equipment and is realized in MAC layer by step S4 by bluetooth equipment, specifically Realize that step is:In MAC layer, the Bluetooth MAC address of the sender in packet is replaced with the source MAC of Wifi specifications, The Bluetooth MAC address of recipient in packet is replaced with the target MAC (Media Access Control) address of Wifi specifications.In the transmitting procedure of data, Data are transmitted in the form of packet, in the present embodiment, by MAC layer by the Bluetooth transmission in packet Address information replace with Wifi transmission address information, then can by packet by bluetooth equipment transmission switching to by Wifi equipment Transmission.
In the present embodiment, carry out data transmission entering by Wifi equipment with step S4 by bluetooth equipment in step S3 Row data transfer is realized by identical SOCKET.In the present embodiment, a l2cap is opened by MAC layer Socket, either bluetooth or Wifi, are carried out data transmission by the l2cap socket, are needing to switch to bluetooth During Wifi, it is only necessary to which the Bluetooth MAC address in packet waiting for transmission is substituted for the source MAC and purpose of Wifi specifications MAC Address, is carried out data transmission by Wifi in l2cap socket.Because the handoff procedure of bluetooth and Wifi is in MAC Layer is realized, and uses same l2cap socket, therefore, existing l2cap need not be interrupted in handoff procedure Socket is connected, it is possible to achieve carry out quick, unbroken seamless switching between Bluetooth transmission and Wifi transmission, this to cut It is transparent to change in user level.
In the present embodiment, two equipment for being connected by bluetooth or Wifi are carried out data transmission using identical medium, When equipment choice uses Bluetooth transmission, opposite equip. is equally carried out data transmission using bluetooth, when equipment choice uses Wifi During transmission, opposite equip. equally selects to be transmitted using Wifi.
In the present embodiment, before being carried out data transmission by bluetooth equipment in step s3, also walked including cost accounting Rapid S3A:The bluetooth cost that calculating is carried out data transmission with bluetooth equipment, when the bluetooth cost is more than default switching surfaces threshold During value, step S4 is jumped to, otherwise perform step S3, carried out data transmission by bluetooth equipment.
In the present embodiment, bluetooth cost includes Bluetooth time cost and Bluetooth power consumption cost, and Bluetooth time cost passes through Formula shown in formula (3) is calculated,
In formula (3), tble_sendIt is Bluetooth time cost, N is predicted transmitting data stream amount, TmaxIt is the maximum of bluetooth Transmission rate.
Bluetooth power consumption cost is calculated by formula shown in formula (4),
Eble_send=Pbletble_send (4)
In formula (4), Eble_sendIt is Bluetooth power consumption cost, PbleIt is the power of bluetooth, tble_sendIt is calculated by formula (3) Time value.
In the present embodiment, default switching surfaces threshold value includes switching time cost threshold value and switching power consumption cost threshold Value.In the present embodiment, switching time cost threshold value and switching power consumption cost threshold value have two kinds of methods to set up.The first setting side Formula is:Switching time cost threshold value is switching time cost, switching time cost will bluetooth to switch to Wifi required in itself The time of cost;Switching power consumption cost threshold value is switching power consumption cost, switching power consumption cost will bluetooth switch to Wifi in itself The energy of required consumption.Second set-up mode be:Switching time cost threshold value be switching time cost and Wifi times into This sum, Wifi time costs are and transmit the time spent required for predicted transmitting data stream amount with Wifi;Switching work( Consumption cost threshold value is switching power consumption cost and Wifi power consumption cost sums, and being for Wifi power consumption costs is predicted with Wifi transmission Transmitting data stream amount required for consumption energy.Second set-up mode relative to the first set-up mode, switching time into This threshold value and switching power consumption cost threshold value are dynamic value, and it is more accurate, it is ensured that the minimum mode of alternative costs enters line number all the time According to transmission.
In the present embodiment, the priority of time cost and power consumption cost can be arranged as required to, three kinds are particularly may be divided into Situation:One is that the preferential power consumption cost of time cost only needs to meet Bluetooth time cost more than switching time cost threshold value When, step S4 is jumped to, switch to Wifi transmission;Secondly being power consumption cost priority time cost, that is, only need to meet bluetooth work( When consumption cost is more than switching power consumption cost threshold value, step S4 is jumped to, switch to Wifi transmission;Thirdly being time cost and power consumption Cost has identical priority, that is, need to meet Bluetooth time cost more than switching time cost threshold value, and Bluetooth power consumption into When this is more than switching power consumption cost threshold value, step S4 is jumped to, switch to Wifi transmission.
As shown in Fig. 2 the bluetooth based on environment sensing of the present embodiment switches transmission equipment, including environment sensing with Wifi Module, switch decision module, bluetooth module and Wifi modules;Environmental perception module be used for obtain bluetooth equipment ambient parameter, Prediction transmitting data stream amount simultaneously calculates transmission data rate, and ambient parameter and transmission data rate are sent to switch decision module; Switch decision module is used to select to transmit data or by Wifi equipment transmission datas by bluetooth equipment;Bluetooth module is used for The result of decision according to this switch decision module carries out data transmission;Wifi modules are used for the decision-making according to this switch decision module Result carries out data transmission.Also include cost accounting module in switch decision module, data are carried out with bluetooth equipment for calculating The bluetooth cost of transmission.In the present embodiment, in the default switching surfaces threshold value use present invention during second set-up mode, into This accounting module is additionally operable to calculate switching surfaces threshold value.
In the present embodiment, environmental perception module is operated in user's space, obtain bluetooth in the inventive method for performing The ambient parameter of equipment, and prediction transmitting data stream amount, and the step of calculate the transmission data rate of transmitting data stream amount.Switching Decision-making module is operated in inner nuclear layer, for according to environmental perception module ambient parameter and transmission data rate, and cost accounting mould Bluetooth cost and cost threshold value that block is calculated, decide whether to be switched between Bluetooth transmission and Wifi transmission.Due to environment Sensing module and switch decision module are operated in different layers, in the present embodiment, environmental perception module and switch decision module Between data interaction realized by netlink socket.What switch decision module can be perceived individually according to environmental perception module Ambient parameter, judges whether bluetooth equipment meets data transfer demands, is, selection is carried out data transmission with bluetooth equipment, otherwise Selection is carried out data transmission with Wifi equipment.The ambient parameter and cost accounting module that can be perceived with integrated environment sensing module Accounting result selected, when carrying out data transmission by ambient parameter selection bluetooth equipment, further consider cost The accounting result of module is adjusted, when bluetooth cost is less than default switching surfaces threshold value, selection bluetooth equipment carries out data biography It is defeated, otherwise carried out data transmission by Wifi equipment.When switch decision module determines to switch to Wifi to transmit Bluetooth transmission, will In reading equipment in TCP/IP stacks Wifi specifications source MAC and target MAC (Media Access Control) address, and with the address replace transmission packet In Bluetooth MAC address.
In the present embodiment, by perceiving connection status and data traffic, can be cut between bluetooth and Wifi automatically Change, select appropriate equipment to carry out data transmission, meanwhile, when selection is carried out data transmission by bluetooth, can also be according to data The size of flow automatically selects blue teeth high speed pattern or bluetooth low-speed mode carries out data transmission, by the side of this self adaptation Method, can not only meet demand of the different transmission rates to equipment, meanwhile, the requirement to power consumption has also been taken into account well, while Possesses the advantage of low delay, low-power consumption, two-forty.
Above-mentioned simply presently preferred embodiments of the present invention, not makees any formal limitation to the present invention.Although of the invention It is disclosed above with preferred embodiment, but it is not limited to the present invention.Therefore, it is every without departing from technical solution of the present invention Content, according to the technology of the present invention essence to any simple modification, equivalent variation and modification made for any of the above embodiments, all should fall In the range of technical solution of the present invention protection.

Claims (10)

1. a kind of bluetooth based on environment sensing and Wifi changing methods, it is characterised in that including:
S1. the ambient parameter of bluetooth equipment is obtained, judges whether the bluetooth equipment meets data transfer demands, be to jump to Step S2, otherwise jumps to step S4;
S2. transmitting data stream amount is predicted, and calculates the transmission data rate of transmitting data stream amount, when the transmission data rate is less than pre- If switching threshold when, jump to step S3, otherwise jump to step S4;
S3. carried out data transmission by bluetooth equipment;
S4. transmission equipment is switched into Wifi equipment by bluetooth equipment, is carried out data transmission by Wifi equipment.
2. the bluetooth based on environment sensing according to claim 1 and Wifi changing methods, it is characterised in that:In step S1 The ambient parameter includes network delay, packet loss and the received signal strength of blueteeth network;Meet network delay when simultaneously small In default time delay threshold value and the packet loss less than default packet loss threshold value and the received signal strength more than pre- If signal intensity threshold value when, judge that bluetooth equipment meets data transfer demands, otherwise judge that bluetooth equipment is unsatisfactory for data Transmission demand.
3. the bluetooth based on environment sensing according to claim 2 and Wifi changing methods, it is characterised in that:In step S2 The specific steps of the transmitting data stream amount prediction include:
S2.1. historical data flow is obtained;
S2.2. according to the historical data flow, by autoregressive model prediction transmitting data stream amount.
4. the bluetooth based on environment sensing according to claim 3 and Wifi changing methods, it is characterised in that:Step S3's Specific steps include:When the transmission data rate selects threshold value more than default bluetooth mode, by bluetooth equipment with a high speed Transmission mode carries out data transmission, and is otherwise carried out data transmission with low-speed mode by bluetooth equipment.
5. the bluetooth based on environment sensing according to claim 3 and Wifi changing methods, it is characterised in that:Step S4 institutes State and transmission equipment is switched into Wifi equipment in MAC layer realization by bluetooth equipment, implementing step is:In MAC layer, by data The Bluetooth MAC address of the sender in bag replaces with the source MAC of Wifi specifications, by the bluetooth MAC of recipient in packet Address replaces with the target MAC (Media Access Control) address of Wifi specifications.
6. the bluetooth based on environment sensing according to claim 5 and Wifi changing methods, it is characterised in that:The step Carry out data transmission and carried out data transmission by identical by Wifi equipment in the step S4 by bluetooth equipment in S3 SOCKET realize.
7. the bluetooth based on environment sensing according to any one of claim 1 to 6 and Wifi changing methods, its feature exist In:Before being carried out data transmission by bluetooth equipment in step s3, also including cost accounting step S3A:Calculating is set with bluetooth The standby bluetooth cost for carrying out data transmission, when the bluetooth cost is more than default switching surfaces threshold value, jumps to step S4, Step S3 is otherwise performed, is carried out data transmission by bluetooth equipment.
8. the bluetooth based on environment sensing according to claim 7 and Wifi changing methods, it is characterised in that:In the step Before rapid S1, also including step S0:Data is activation demand is obtained and judged, when with data is activation demand, step is jumped to S1, otherwise continues executing with step S0.
9. a kind of bluetooth based on environment sensing switches transmission equipment with Wifi, it is characterised in that:Including environmental perception module, cut Change decision-making module, bluetooth module and Wifi modules;
The environmental perception module is used to obtain the ambient parameter of bluetooth equipment, prediction transmitting data stream amount and calculate transmission data Rate, and ambient parameter and transmission data rate are sent to switch decision module;
The switch decision module is used to select to transmit data or by Wifi equipment transmission datas by bluetooth equipment;
The bluetooth module is used to be carried out data transmission according to the result of decision of this switch decision module;
The Wifi modules are used to be carried out data transmission according to the result of decision of this switch decision module.
10. the bluetooth based on environment sensing according to claim 9 switches transmission equipment with Wifi, it is characterised in that:Institute Stating also includes cost accounting module in switch decision module, for calculating the bluetooth cost carried out data transmission with bluetooth equipment.
CN201611167325.4A 2016-12-16 2016-12-16 Bluetooth and Wifi switching method based on environment perception and transmission equipment Active CN106792954B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611167325.4A CN106792954B (en) 2016-12-16 2016-12-16 Bluetooth and Wifi switching method based on environment perception and transmission equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611167325.4A CN106792954B (en) 2016-12-16 2016-12-16 Bluetooth and Wifi switching method based on environment perception and transmission equipment

Publications (2)

Publication Number Publication Date
CN106792954A true CN106792954A (en) 2017-05-31
CN106792954B CN106792954B (en) 2020-02-04

Family

ID=58891908

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611167325.4A Active CN106792954B (en) 2016-12-16 2016-12-16 Bluetooth and Wifi switching method based on environment perception and transmission equipment

Country Status (1)

Country Link
CN (1) CN106792954B (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107155204A (en) * 2017-07-20 2017-09-12 广东工业大学 The method and system that a kind of bluetooth switches with Wifi
CN107404339A (en) * 2017-08-14 2017-11-28 青岛海信电器股份有限公司 A kind of method and apparatus for adjusting bluetooth A2DP encoding settings
CN107969011A (en) * 2017-11-27 2018-04-27 四川长虹电器股份有限公司 The method being wirelessly transferred based on bluetooth and WiFi cooperative achievement voice data
CN108712757A (en) * 2018-05-17 2018-10-26 北京维康恒科技有限公司 The data interactive method and device of detection terminal and wireless access points
CN109890022A (en) * 2019-03-29 2019-06-14 努比亚技术有限公司 Data transfer control method, mobile terminal and computer readable storage medium
CN110996365A (en) * 2019-12-03 2020-04-10 中南大学 Heterogeneous network vertical switching algorithm and system based on multi-objective optimization model
CN111224693A (en) * 2019-11-27 2020-06-02 展讯通信(上海)有限公司 Audio data transmission method and device for wireless earphone, storage medium and terminal
CN111466910A (en) * 2020-04-30 2020-07-31 电子科技大学 Sleep monitoring method, system, storage medium, computer program and device
CN113133095A (en) * 2020-01-15 2021-07-16 华为技术有限公司 Method for reducing power consumption of mobile terminal and mobile terminal
WO2021242011A1 (en) 2020-05-26 2021-12-02 Samsung Electronics Co., Ltd. Electronic device for wireless communication and method of operating electronic device
CN113873626A (en) * 2021-09-27 2021-12-31 歌尔科技有限公司 Method, device and medium for transmitting data
WO2022068646A1 (en) * 2020-09-30 2022-04-07 华为技术有限公司 Data transmission method and electronic device
CN115150452A (en) * 2021-03-15 2022-10-04 博泰车联网科技(上海)股份有限公司 Data transmission method, terminal, computer-readable storage medium, and electronic device
FR3136928A1 (en) * 2022-06-21 2023-12-22 Orange Method and device for switching a Wi-Fi connection

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023069144A1 (en) * 2021-10-21 2023-04-27 Qualcomm Incorporated Methods of transition of bearers

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1472935A (en) * 2002-07-02 2004-02-04 ���ǵ�����ʽ���� Device and method for connecting blue tooth and radio LAN
CN101909347A (en) * 2009-06-05 2010-12-08 联发科技股份有限公司 Wireless local area network (WLAN) transmission system, system of coexistence of WLAN and another type of wireless transmission and methods thereof
CN103428672A (en) * 2013-08-19 2013-12-04 宇龙计算机通信科技(深圳)有限公司 Method and device for transmitting data
WO2015165024A1 (en) * 2014-04-29 2015-11-05 华为终端有限公司 Data transmission method and terminal
EP2943040A1 (en) * 2014-05-09 2015-11-11 Samsung Electronics Co., Ltd Apparatus and method for auto link change in wireless communication device
CN105356916A (en) * 2015-12-11 2016-02-24 中南大学 Adaptive Bluetooth transmission method for wearable intelligent equipment
EP3076719B1 (en) * 2013-11-27 2019-01-16 Sony Corporation Communication control apparatus, communication control method, and information processing apparatus

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1472935A (en) * 2002-07-02 2004-02-04 ���ǵ�����ʽ���� Device and method for connecting blue tooth and radio LAN
CN101909347A (en) * 2009-06-05 2010-12-08 联发科技股份有限公司 Wireless local area network (WLAN) transmission system, system of coexistence of WLAN and another type of wireless transmission and methods thereof
CN103428672A (en) * 2013-08-19 2013-12-04 宇龙计算机通信科技(深圳)有限公司 Method and device for transmitting data
EP3076719B1 (en) * 2013-11-27 2019-01-16 Sony Corporation Communication control apparatus, communication control method, and information processing apparatus
WO2015165024A1 (en) * 2014-04-29 2015-11-05 华为终端有限公司 Data transmission method and terminal
EP2943040A1 (en) * 2014-05-09 2015-11-11 Samsung Electronics Co., Ltd Apparatus and method for auto link change in wireless communication device
CN105356916A (en) * 2015-12-11 2016-02-24 中南大学 Adaptive Bluetooth transmission method for wearable intelligent equipment

Cited By (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107155204B (en) * 2017-07-20 2020-05-19 广东工业大学 Bluetooth and Wifi switching method and system
CN107155204A (en) * 2017-07-20 2017-09-12 广东工业大学 The method and system that a kind of bluetooth switches with Wifi
CN107404339A (en) * 2017-08-14 2017-11-28 青岛海信电器股份有限公司 A kind of method and apparatus for adjusting bluetooth A2DP encoding settings
CN107404339B (en) * 2017-08-14 2021-07-16 海信视像科技股份有限公司 Method and device for adjusting Bluetooth A2DP code setting
CN107969011A (en) * 2017-11-27 2018-04-27 四川长虹电器股份有限公司 The method being wirelessly transferred based on bluetooth and WiFi cooperative achievement voice data
CN108712757A (en) * 2018-05-17 2018-10-26 北京维康恒科技有限公司 The data interactive method and device of detection terminal and wireless access points
CN109890022A (en) * 2019-03-29 2019-06-14 努比亚技术有限公司 Data transfer control method, mobile terminal and computer readable storage medium
CN109890022B (en) * 2019-03-29 2023-12-08 努比亚技术有限公司 Data transmission control method, mobile terminal and computer readable storage medium
CN111224693A (en) * 2019-11-27 2020-06-02 展讯通信(上海)有限公司 Audio data transmission method and device for wireless earphone, storage medium and terminal
CN110996365A (en) * 2019-12-03 2020-04-10 中南大学 Heterogeneous network vertical switching algorithm and system based on multi-objective optimization model
CN110996365B (en) * 2019-12-03 2021-05-11 中南大学 Heterogeneous network vertical switching algorithm and system based on multi-objective optimization model
CN113133095A (en) * 2020-01-15 2021-07-16 华为技术有限公司 Method for reducing power consumption of mobile terminal and mobile terminal
CN113133095B (en) * 2020-01-15 2022-08-26 华为技术有限公司 Method for reducing power consumption of mobile terminal and mobile terminal
CN111466910A (en) * 2020-04-30 2020-07-31 电子科技大学 Sleep monitoring method, system, storage medium, computer program and device
CN111466910B (en) * 2020-04-30 2023-11-21 电子科技大学 Sleep monitoring method, system, storage medium, computer program and device
WO2021242011A1 (en) 2020-05-26 2021-12-02 Samsung Electronics Co., Ltd. Electronic device for wireless communication and method of operating electronic device
EP4104638A4 (en) * 2020-05-26 2023-08-23 Samsung Electronics Co., Ltd. Electronic device for wireless communication and method of operating electronic device
US11832287B2 (en) 2020-05-26 2023-11-28 Samsung Electronics Co., Ltd Electronic device for wireless communication and method of operating electronic device
CN114356172A (en) * 2020-09-30 2022-04-15 华为技术有限公司 Data transmission method and electronic equipment
WO2022068646A1 (en) * 2020-09-30 2022-04-07 华为技术有限公司 Data transmission method and electronic device
CN115150452A (en) * 2021-03-15 2022-10-04 博泰车联网科技(上海)股份有限公司 Data transmission method, terminal, computer-readable storage medium, and electronic device
CN113873626A (en) * 2021-09-27 2021-12-31 歌尔科技有限公司 Method, device and medium for transmitting data
FR3136928A1 (en) * 2022-06-21 2023-12-22 Orange Method and device for switching a Wi-Fi connection
EP4297485A1 (en) * 2022-06-21 2023-12-27 Orange Method and device for switching wi-fi connection

Also Published As

Publication number Publication date
CN106792954B (en) 2020-02-04

Similar Documents

Publication Publication Date Title
CN106792954A (en) A kind of bluetooth based on environment sensing and Wifi changing methods and transmission equipment
CN103262597B (en) Dispatch request triggering method based on state of affairs and user's set
Li et al. Real-time QoS support in wireless sensor networks: a survey
US9137842B2 (en) Methods of UE providing speed information to network
CN102215076B (en) Trigger and carry out method, system and the equipment of frequency spectrum perception
CN102740363B (en) Method for acquiring data of wireless sensor network
CN106105379A (en) Hetero-com-munication method and apparatus
WO2013171577A1 (en) Method of configuring discontinuous reception mode parameters
EP2579671B1 (en) Methods for UE indicating traffic-related information to network
CN109756989A (en) Method, user equipment and the base station of data transmission
Keshav et al. Energy efficient scheduling in 4G smart phones for mobile hotspot application
KR102041410B1 (en) Intelligent m2m energy optimization algorithm
CN103281726B (en) Based on the data aggregation method of 6LoWPAN protocol stack
CN104144480A (en) Inner-access-technological-network communication method and device
CN104853391A (en) Terminal wake-up method and access point AP
CN110351771A (en) Improve method, apparatus, system, equipment and the medium of network throughput
US8699464B1 (en) Multi-band communication with a wireless device
CN106304232B (en) A kind of communication means and device of base station dormancy
CN106455021A (en) Energy saving method based on data frame aggregation transmission and energy saving device thereof
CN100411354C (en) Method of optimizing energy consumption in network ststion
CN109874162A (en) The hybrid Design of Routing Protocol optimization method of high-altitude high-speed mobile node ad hoc network
JP2009088976A (en) Radio link selection control unit, radio device, and radio link selection method
Barbieri et al. WSN17-2: Proposal of an adaptive MAC protocol for efficient IEEE 802.15. 4 low power communications
CN109155927A (en) Method for handover control, controlling terminal and unmanned plane
WO2022242368A1 (en) Network connection control method, terminal device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20210113

Address after: 410000 Yuelu District Yuelu street, Changsha, Hunan Province, 5 left 101 rooms of R & D headquarters of Central South University Science Park.

Patentee after: HUNAN NEW CLOUDNET TECHNOLOGY Co.,Ltd.

Address before: 410083 Hunan province Changsha Lushan Road No. 932

Patentee before: CENTRAL SOUTH University

PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: A switching method and transmission device between Bluetooth and WiFi Based on environment perception

Effective date of registration: 20210126

Granted publication date: 20200204

Pledgee: Agricultural Bank of China Limited Changsha Yuhua District sub branch

Pledgor: HUNAN NEW CLOUDNET TECHNOLOGY Co.,Ltd.

Registration number: Y2021980000747

CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 410000 Yuelu District Yuelu street, Changsha, Hunan Province, 5 left 101 rooms of R & D headquarters of Central South University Science Park.

Patentee after: New Cloud Technology Group Co.,Ltd.

Address before: 410000 Yuelu District Yuelu street, Changsha, Hunan Province, 5 left 101 rooms of R & D headquarters of Central South University Science Park.

Patentee before: HUNAN NEW CLOUDNET TECHNOLOGY Co.,Ltd.