CN106792954B - Bluetooth and Wifi switching method based on environment perception and transmission equipment - Google Patents

Bluetooth and Wifi switching method based on environment perception and transmission equipment Download PDF

Info

Publication number
CN106792954B
CN106792954B CN201611167325.4A CN201611167325A CN106792954B CN 106792954 B CN106792954 B CN 106792954B CN 201611167325 A CN201611167325 A CN 201611167325A CN 106792954 B CN106792954 B CN 106792954B
Authority
CN
China
Prior art keywords
bluetooth
transmission
wifi
data
equipment
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
CN201611167325.4A
Other languages
Chinese (zh)
Other versions
CN106792954A (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

Images

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

Landscapes

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

Abstract

The invention discloses a Bluetooth and Wifi switching method and transmission equipment based on environment perception, which comprises the following steps: s1, obtaining environmental parameters of Bluetooth equipment, judging whether the Bluetooth equipment meets the data transmission requirement, if so, jumping to a step S2, otherwise, jumping to a step S4; s2, predicting transmission data flow, calculating the transmission data rate of the transmission data flow, and jumping to the step S3 when the transmission data rate is smaller than a preset switching threshold value, or jumping to the step S4; s3, data transmission is carried out through the Bluetooth equipment; and S4, switching the transmission equipment from the Bluetooth equipment to Wifi equipment, and transmitting data through the Wifi equipment. The invention can automatically select Bluetooth or Wifi for data transmission according to the Bluetooth connection state and the data flow, and has the advantages of low power consumption, low time delay, high speed and the like.

Description

Bluetooth and Wifi switching method based on environment perception and transmission equipment
Technical Field
The invention relates to the technical field of wireless data transmission, in particular to a Bluetooth and Wifi switching method and transmission equipment based on environment perception.
Background
WiFi and Bluetooth are widely applied wireless network data transmission means, and at present, 70% of mobile phones are equipped with Bluetooth, and 80% of smart phones are equipped with WiFi. In many application scenarios, both technologies can be used alternatively, but different wireless data transmission protocols have different characteristics in terms of data transmission rate, power consumption, transmission distance, and the like.
The Bluetooth technology comprises three technologies of traditional Bluetooth, high-speed Bluetooth and low-power Bluetooth, and wireless communication with low power consumption, low delay and low data transmission rate is provided. Taking BLE (Bluetooth Low Energy, Low power consumption) as an example, the transmission distance is 60-100 m, and at the maximum data transmission rate of 250kbps in the 2.4G frequency band, one connection is completed, that is, scanning other devices, establishing a link, sending data, authenticating and properly ending, which is only 3ms in total. In terms of power consumption, the end node operates with a single button cell battery (e.g., CR2032 of 3V, 220 mAh) for months and even years.
WiFi is oriented to high speed data transmission. The theoretical rate of the most widely applied IEEE 802.11 series 802.11n can reach up to 600Mbps (300 Mbps is the mainstream in the industry), and the coverage range can be expanded to several square kilometers. IEEE 802.11ac, can theoretically provide data transmission capabilities of up to 1Gbit per second. WiFi's consumption is higher than bluetooth far away, adopts energy-conserving management module to realize higher energy consumption efficiency usually. WiFi with psm (power Save mode) mode achieves power savings through sleep during idle periods. The radio frequency periodically detects whether the access point has a data packet buffer, and when the buffer data volume triggers a PSM threshold value, the access point is switched from a dormant state to an active state. The power consumption of the active state is about 20 times that of the dormant state, and the mode of caching the data packet at the AP saves the energy consumption on one hand and increases the extra delay of 100 plus 300ms on the other hand. In this mode, there are two extremes, lower power consumption, and higher additional latency; lower additional latency, higher power consumption.
On the one hand, wireless communication is one of the main energy consumption sources in mobile terminals, bluetooth is more power efficient than WiFi, but provides narrower bandwidth and has significant transmission delay for transmission of large files. On the other hand, WiFi can provide a higher data transmission rate, but it consumes a lot of power, and it is difficult to balance power consumption and delay. It is worth noting that the heterogeneity of network data has a certain pattern, and different network service types have different bandwidth requirements. For example, in a typical online video viewing service, the bandwidth is burst-type and is required to be as high as 3Mb/s, which is suitable for utilizing the high-speed advantage of WiFi; for the online voice communication, the bandwidth is relatively fixed and is lower than 100Kb/s, and the energy consumption efficiency of using Bluetooth is higher due to the low bandwidth requirement. Typical smart phone web browsing and other services or social chat and other services have bandwidth requirements lower than 1Mb/s, and Bluetooth is more appropriate. Therefore, a communication strategy with low power consumption and low latency needs to be discussed for the heterogeneity of network data.
Disclosure of Invention
The technical problem to be solved by the invention is as follows: aiming at the technical problems in the prior art, the invention provides the Bluetooth and Wifi switching method and transmission equipment based on environment perception, which can automatically select Bluetooth or Wifi for data transmission according to the Bluetooth connection state and data traffic, have the advantages of low power consumption, low time delay, high speed and the like, and can realize seamless switching between Wifi and Bluetooth.
In order to solve the technical problems, the technical scheme provided by the invention is as follows: a Bluetooth and Wifi switching method based on environment perception comprises the following steps:
s1, obtaining environmental parameters of Bluetooth equipment, judging whether the Bluetooth equipment meets the data transmission requirement, if so, jumping to a step S2, otherwise, jumping to a step S4;
s2, predicting transmission data flow, calculating the transmission data rate of the transmission data flow, and jumping to the step S3 when the transmission data rate is smaller than a preset switching threshold value, or jumping to the step S4;
s3, data transmission is carried out through the Bluetooth equipment;
and S4, switching the transmission equipment from the Bluetooth equipment to Wifi equipment, and transmitting data through the Wifi equipment.
As a further improvement of the present invention, in step S1, the environment parameters include network delay, packet loss rate and received signal strength of the bluetooth network; and when the network delay is smaller than a preset delay threshold value, the packet loss rate is smaller than a preset packet loss threshold value and the received signal strength is larger than a preset signal strength threshold value, judging that the Bluetooth equipment meets the data transmission requirement, otherwise, judging that the Bluetooth equipment does not meet the data transmission requirement.
As a further improvement of the present invention, the specific steps of predicting the transmission data traffic in step S2 include:
s2.1, obtaining historical data flow;
and S2.2, predicting the transmission data flow through an autoregressive model according to the historical data flow.
As a further improvement of the present invention, the specific steps of step S3 include: and when the transmission data rate is greater than a preset Bluetooth mode selection threshold value, carrying out data transmission in a high-speed transmission mode through the Bluetooth equipment, otherwise, carrying out data transmission in a low-speed mode through the Bluetooth equipment.
As a further improvement of the present invention, in step S4, switching the transmission device from the bluetooth device to the Wifi device is implemented in the MAC layer, and the specific implementation steps are as follows: in the MAC layer, the Bluetooth MAC address of the sender in the data packet is replaced by a source MAC address of a Wifi specification, and the Bluetooth MAC address of the receiver in the data packet is replaced by a destination MAC address of the Wifi specification.
As a further improvement of the present invention, the data transmission through the bluetooth device in step S3 and the data transmission through the Wifi device in step S4 are both implemented by the same SOCKET.
As a further improvement of the present invention, before the data transmission by the bluetooth device in step S3, a cost accounting step S3A is further included: calculating the Bluetooth cost of data transmission by the Bluetooth device, and jumping to step S4 when the Bluetooth cost is greater than a preset switching cost threshold, otherwise executing step S3 and transmitting data by the Bluetooth device. .
As a further improvement of the present invention, before the step S1, the method further includes a step S0: and acquiring and judging the data transmission requirement, and jumping to the step S1 when the data transmission requirement exists, otherwise, continuing to execute the step S0.
A Bluetooth and Wifi switching transmission device based on environment perception comprises an environment perception module, a switching decision module, a Bluetooth module and a Wifi module;
the environment sensing module is used for acquiring environment parameters of the Bluetooth equipment, predicting transmission data flow, calculating a transmission data rate and sending the environment parameters and the transmission data rate to the switching decision module;
the switching decision module is used for selecting data transmission through Bluetooth equipment or data transmission through Wifi equipment;
the Bluetooth module is used for carrying out data transmission according to the decision result of the switching decision module;
and the Wifi module is used for carrying out data transmission according to the decision result of the switching decision module.
As a further improvement of the present invention, the handover decision module further includes a cost accounting module, which is used for calculating a bluetooth cost for data transmission by the bluetooth device.
Compared with the prior art, the invention has the advantages that:
1. the invention has two data transmission modes of Bluetooth and Wifi, automatically selects Bluetooth or Wifi for data transmission by automatically sensing the connection state of the Bluetooth and the data flow, has the characteristic of quick self-adaptability to the fluctuation of data rate and connection quality, and has the advantages of low power consumption, low time delay, high speed and the like.
2. The Bluetooth and Wifi switching is realized on the MAC layer, and the existing socket connection does not need to be interrupted in the Bluetooth and Wifi switching process, so that the seamless switching between the Bluetooth and the Wifi is realized.
3. The invention adopts the l2cap packet to carry out network quality detection, and carries out the network quality detection only when data needs to be sent, and the extra energy cost caused by the network quality detection is very small, and the energy consumption is low.
Drawings
FIG. 1 is a schematic flow chart of an embodiment of the present invention.
Fig. 2 is a schematic structural diagram of an embodiment of the present invention.
Detailed Description
The invention is further described below with reference to the drawings and specific preferred embodiments of the description, without thereby limiting the scope of protection of the invention.
As shown in fig. 1, the method for switching between bluetooth and Wifi based on environmental awareness of this embodiment includes: s1, obtaining environmental parameters of the Bluetooth equipment, judging whether the Bluetooth equipment meets the data transmission requirement, if so, jumping to a step S2, otherwise, jumping to a step S4; s2, predicting transmission data flow, calculating the transmission data rate of the transmission data flow, and jumping to the step S3 when the transmission data rate is smaller than a preset switching threshold value, or jumping to the step S4; s3, data transmission is carried out through the Bluetooth equipment; and S4, switching the transmission equipment from the Bluetooth equipment to Wifi equipment, and transmitting data through the Wifi equipment.
In this embodiment, the environment parameters in step S1 include network delay, packet loss rate, and received signal strength of the bluetooth network; and when the network delay is less than a preset delay threshold value, the packet loss rate is less than a preset packet loss threshold value and the received signal strength is greater than a preset signal strength threshold value, judging that the Bluetooth equipment meets the data transmission requirement, otherwise, judging that the Bluetooth equipment does not meet the data transmission requirement. Network delay and packet loss rate are obtained by sending l2cap ping packets, in order to save energy, an asynchronous timing thread is set, environmental parameters are periodically obtained, and the obtaining period can be set to be 1 second. After the Bluetooth connection is established, l2cap ping is sent to the opposite terminal equipment connected with the Bluetooth through the Bluetooth equipment, 4 data packets are totally recorded, the average round-trip time is recorded, and the delay and the packet loss rate of the Bluetooth connection are obtained through the l2cap ping. If the ping fails, that is, the connection is not reachable, or the delay exceeds 100ms, it indicates that the receiving device has exceeded the bluetooth radio frequency range, or the RSSI (received signal strength) of the bluetooth device is lower than RSSIth (signal strength threshold), it is determined that the bluetooth device does not meet the data transmission requirement. Because the l2cap ping data packet is very small, only 44 bytes, the additional overhead introduced by obtaining the network delay and the packet loss rate of the Bluetooth network is very small, and the energy consumption is low.
In this embodiment, before the step S1, a step S0 may be further included: and acquiring and judging the data transmission requirement, and jumping to the step S1 when the data transmission requirement exists, otherwise, continuing to execute the step S0. That is, after the bluetooth connection is established, the detection of the bluetooth environment parameter is not always performed, but only when the device has a data transmission requirement, that is, only when the data transmission queue of the device is not empty, the step S1 is performed to obtain the environment parameter of the bluetooth device. The frequency of acquiring the environmental parameters by the equipment can be greatly reduced, so that the energy consumption of the equipment is also greatly reduced, and the energy is saved.
In this embodiment, the specific steps of predicting the transmission data traffic in step S2 are as follows: s2.1, obtaining historical data flow; and S2.2, predicting the transmission data flow through an autoregressive model according to the historical data flow. The autoregressive model is shown as a formula (1),
Figure BDA0001182808920000041
in the formula (1), the reaction mixture is,
Figure BDA0001182808920000042
for predicted transmission data traffic, Sk-iFor historical data traffic, u is the number of historical data traffic samples taken by the autoregressive model, aiAre coefficients of an autoregressive model. In this embodiment, a 1 st order autoregressive model is used; coefficient a of the autoregressive modeliThe flow rate of the historical data is determined by calculation of a least square method, as shown in a formula (2),
Figure BDA0001182808920000043
in the formula (2), aiBeing coefficients of an autoregressive model, SjV is a preset prediction scale parameter for historical data flow. In this embodiment, the preset prediction scale parameter v is 12, but of course, other values may be selected according to actual needs.
In this embodiment, the acquisition of the environmental parameters of the bluetooth device and the prediction of the transmission data traffic are both performed in the user space.
In this embodiment, when the bluetooth device meets the data transmission requirement and the transmission data rate of the transmission quantity flow is less than the preset switching threshold, the bluetooth device is used for data transmission. The specific steps of step S3 include: and when the transmission data rate is greater than a preset Bluetooth mode selection threshold value, carrying out data transmission in a high-speed transmission mode through the Bluetooth equipment, otherwise, carrying out data transmission in a low-speed mode through the Bluetooth equipment. Because bluetooth transmission has the transmission distance shorter for Wifi transmission, and transmission speed is lower, and the delay is low, characteristics that the energy consumption is low, so to the data of short distance, little traffic, bluetooth transmission is more advantageous than Wifi transmission. In this embodiment, the switching threshold is set to 250Kb/s, when the transmission data rate of the data traffic to be transmitted is less than 250Kb/s, the bluetooth device is used for data transmission, which can ensure that the delay of data transmission meets the transmission requirement and can ensure that the energy consumption is the lowest in the transmission process, otherwise, Wifi is used for data transmission to minimize the delay of data transmission. When carrying out data transmission through bluetooth equipment, further judge according to the transmission data rate, select bluetooth high speed or low-speed mode to carry out data transmission to guarantee can make bluetooth equipment's consumption lower when satisfying the data transmission demand, it is more energy-conserving.
In this embodiment, the step S4 is to switch the transmission device from the bluetooth device to the Wifi device to be implemented on the MAC layer, and the specific implementation steps are as follows: in the MAC layer, the Bluetooth MAC address of the sender in the data packet is replaced by a source MAC address of a Wifi specification, and the Bluetooth MAC address of the receiver in the data packet is replaced by a destination MAC address of the Wifi specification. In the transmission process of the data, the data is finally transmitted in the form of a data packet, and in this embodiment, the address information transmitted by the bluetooth in the data packet is replaced by the address information transmitted by the Wifi in the MAC layer, so that the transmission of the data packet by the bluetooth device can be switched to the transmission by the Wifi device.
In this embodiment, the data transmission through the bluetooth device in step S3 and the data transmission through the Wifi device in step S4 are both implemented by the same SOCKET. In this embodiment, through opening an l2cap socket at the MAC layer, no matter bluetooth or Wifi, all carry out data transmission through this l2cap socket, when needing to switch the bluetooth to Wifi, only need wait to transmit bluetooth MAC address in the data packet replace source MAC address and the destination MAC address of Wifi specification, carry out data transmission at l2cap socket through Wifi can. Because the switching process of bluetooth and Wifi is realized at the MAC layer to adopt same l2cap socket, consequently, need not break off current l2cap socket connection in the switching process, can realize carrying out quick, the seamless switching of not interrupting between bluetooth transmission and Wifi transmission, this kind of switching is transparent at the user plane.
In this embodiment, two devices connected through bluetooth or Wifi adopt the same medium for data transmission, when the device selects to adopt bluetooth transmission, the peer device also adopts bluetooth for data transmission, and when the device selects to adopt Wifi transmission, the peer device also selects to adopt Wifi transmission.
In this embodiment, before the data transmission by the bluetooth device in step S3, a cost accounting step S3A is further included: calculating the Bluetooth cost of data transmission by the Bluetooth device, and jumping to step S4 when the Bluetooth cost is greater than a preset switching cost threshold, otherwise executing step S3 and transmitting data by the Bluetooth device.
In the present embodiment, the bluetooth cost includes a bluetooth time cost and a bluetooth power consumption cost, the bluetooth time cost is calculated by the formula shown in formula (3),
Figure BDA0001182808920000061
in the formula (3), tble_sendFor the Bluetooth time cost, N is the predicted traffic, TmaxIs the maximum transmission rate of bluetooth.
The bluetooth power consumption cost is calculated by the formula shown in formula (4),
Eble_send=Pbletble_send(4)
in the formula (4), Eble_sendFor the cost of Bluetooth power consumption, PblePower of Bluetooth, tble_sendThe time value calculated for equation (3).
In this embodiment, the preset handover cost threshold includes a handover time cost threshold and a handover power consumption cost threshold. In this embodiment, there are two setting methods for the switching time cost threshold and the switching power consumption cost threshold. The first setting mode is as follows: the switching time cost threshold is switching time cost, namely time required for switching the Bluetooth to the Wifi per se; the switching power cost threshold is the switching power cost, which is the energy that needs to be consumed to switch the bluetooth to Wifi itself. The second setting mode is as follows: the switching time cost threshold is the sum of the switching time cost and the Wifi time cost, and the Wifi time cost is the time required for transmitting the data traffic predicted by Wifi transmission; the switching power cost threshold is the sum of the switching power cost and the Wifi power cost, and the Wifi power cost is the energy required to be consumed by transmitting the predicted data traffic through Wifi transmission. Compared with the first setting mode, the second setting mode has the advantages that the switching time cost threshold and the switching power consumption cost threshold are dynamic values, the switching time cost threshold and the switching power consumption cost threshold are more accurate, and the mode with the minimum cost is guaranteed to be selected all the time for data transmission.
In this embodiment, the priority of the time cost and the power consumption cost can be set as required, and the method can be specifically divided into three cases: firstly, the time cost is prioritized to the power consumption cost, namely when the Bluetooth time cost is only required to be greater than the switching time cost threshold, the step S4 is skipped to the Wifi transmission; secondly, the power consumption cost is the time cost with priority, namely when the Bluetooth power consumption cost is larger than the switching power consumption cost threshold value, the step S4 is skipped to, and the Wifi transmission is switched; and thirdly, the time cost and the power consumption cost have the same priority, namely the requirement that the Bluetooth time cost is greater than the switching time cost threshold value and the Bluetooth power consumption cost is greater than the switching power consumption cost threshold value is met, the step S4 is skipped to, and the Wifi transmission is switched to.
As shown in fig. 2, the bluetooth and Wifi switching transmission device based on environment awareness of the present embodiment includes an environment awareness module, a switching decision module, a bluetooth module, and a Wifi module; the environment perception module is used for acquiring environment parameters of the Bluetooth equipment, predicting transmission data flow, calculating a transmission data rate and sending the environment parameters and the transmission data rate to the switching decision module; the switching decision module is used for selecting data transmission through Bluetooth equipment or data transmission through Wifi equipment; the Bluetooth module is used for carrying out data transmission according to the decision result of the switching decision module; and the Wifi module is used for carrying out data transmission according to the decision result of the switching decision module. The switching decision module also comprises a cost accounting module which is used for calculating the Bluetooth cost of data transmission by the Bluetooth equipment. In this embodiment, when the preset handover cost threshold is the second setting manner in the present invention, the cost accounting module is further configured to calculate the handover cost threshold.
In this embodiment, the environment sensing module operates in the user space and is configured to perform the steps of obtaining the environment parameters of the bluetooth device, predicting the transmission data traffic, and calculating the transmission data rate of the transmission data traffic in the method of the present invention. And the switching decision module works on the kernel layer and is used for determining whether to switch between Bluetooth transmission and Wifi transmission or not according to the environmental parameters and the transmission data rate of the environmental perception module and the Bluetooth cost and the cost threshold value calculated by the cost accounting module. Since the environment sensing module and the switching decision module operate in different layers, in this embodiment, data interaction between the environment sensing module and the switching decision module is implemented by a netlink socket. The switching decision module can independently judge whether the Bluetooth equipment meets the data transmission requirement according to the environmental parameters sensed by the environmental sensing module, if so, the Bluetooth equipment is selected for data transmission, and otherwise, the Wifi equipment is selected for data transmission. The environment parameters sensed by the environment sensing module and the accounting result of the cost accounting module can be further comprehensively selected, when the Bluetooth device is used for data transmission through environment parameter selection, the accounting result of the cost accounting module is further considered, when the Bluetooth cost is smaller than a preset switching cost threshold value, the Bluetooth device is selected for data transmission, and otherwise, the Wifi device is used for data transmission. And when the switching decision module determines to switch the Bluetooth transmission into the Wifi transmission, reading a source MAC address and a destination MAC address of Wifi specification in a TCP/IP stack in the equipment, and replacing the Bluetooth MAC address in the transmission data packet by the address.
In this embodiment, through perception connection status and data flow, can switch automatically between bluetooth and Wifi, select suitable equipment to carry out data transmission, simultaneously, when selecting to carry out data transmission through the bluetooth, still can carry out data transmission according to data flow's size automatic selection bluetooth high speed mode or bluetooth low speed mode, through this kind of self-adaptation method, not only can satisfy the demand of different transmission rates to equipment, simultaneously, still fine compromise the requirement to the consumption, possess low latency, low-power consumption, high speed's advantage simultaneously.
The foregoing is considered as illustrative of the preferred embodiments of the invention and is not to be construed as limiting the invention in any way. Although the present invention has been described with reference to the preferred embodiments, it is not intended to be limited thereto. Therefore, any simple modification, equivalent change and modification made to the above embodiments according to the technical spirit of the present invention should fall within the protection scope of the technical scheme of the present invention, unless the technical spirit of the present invention departs from the content of the technical scheme of the present invention.

Claims (8)

1. A Bluetooth and Wifi switching method based on environment perception is characterized by comprising the following steps:
s1, acquiring environmental parameters of the Bluetooth equipment, judging whether the Bluetooth equipment meets the data transmission requirement, if so, jumping to the step S2, otherwise, jumping to the step S4;
s2, predicting the transmission data flow, calculating the transmission data rate of the transmission data flow, and jumping to the step S3 when the transmission data rate is smaller than a preset switching threshold value, or jumping to the step S4;
s3, data transmission is carried out through Bluetooth equipment;
s4, switching the transmission equipment from the Bluetooth equipment to Wifi equipment, and transmitting data through the Wifi equipment;
step S4, switching the transmission device from the bluetooth device to the Wifi device is implemented on the MAC layer, which includes the specific implementation steps: in the MAC layer, replacing the Bluetooth MAC address of the sender in the data packet with a source MAC address of a Wifi specification, and replacing the Bluetooth MAC address of the receiver in the data packet with a destination MAC address of the Wifi specification;
the data transmission through the bluetooth device in the step S3 and the data transmission through the Wifi device in the step S4 are both implemented through the same SOCKET.
2. The bluetooth and Wifi switching method based on environmental awareness as claimed in claim 1, wherein: in step S1, the environment parameters include network delay, packet loss rate, and received signal strength of the bluetooth network; and when the network delay is smaller than a preset delay threshold value, the packet loss rate is smaller than a preset packet loss threshold value and the received signal strength is larger than a preset signal strength threshold value, judging that the Bluetooth equipment meets the data transmission requirement, otherwise, judging that the Bluetooth equipment does not meet the data transmission requirement.
3. The bluetooth and Wifi switching method based on environmental awareness as claimed in claim 2, wherein: the specific step of predicting the transmission data traffic in step S2 includes:
s2.1, acquiring historical data flow;
and S2.2, predicting the transmission data flow through an autoregressive model according to the historical data flow.
4. The bluetooth and Wifi switching method based on environmental awareness as claimed in claim 3, wherein: the specific steps of step S3 include: and when the transmission data rate is greater than a preset Bluetooth mode selection threshold value, carrying out data transmission in a high-speed transmission mode through the Bluetooth equipment, otherwise, carrying out data transmission in a low-speed mode through the Bluetooth equipment.
5. The context awareness-based Bluetooth and Wifi switching method according to any one of claims 1-4, wherein: before data transmission by the bluetooth device in step S3, a cost accounting step S3A is further included: calculating the Bluetooth cost of data transmission by the Bluetooth device, and jumping to step S4 when the Bluetooth cost is greater than a preset switching cost threshold, otherwise executing step S3 and transmitting data by the Bluetooth device.
6. The bluetooth and Wifi switching method based on environmental awareness as claimed in claim 5, wherein: before the step S1, a step S0 is further included: and acquiring and judging the data transmission requirement, and jumping to the step S1 when the data transmission requirement exists, otherwise, continuing to execute the step S0.
7. The utility model provides a bluetooth switches transmission equipment with Wifi based on environmental awareness which characterized in that: the system comprises an environment perception module, a switching decision module, a Bluetooth module and a Wifi module;
the environment sensing module is used for acquiring environment parameters of the Bluetooth equipment, predicting transmission data flow, calculating a transmission data rate and sending the environment parameters and the transmission data rate to the switching decision module;
the switching decision module is used for selecting data transmission through Bluetooth equipment or data transmission through Wifi equipment;
the Bluetooth module is used for carrying out data transmission according to the decision result of the switching decision module;
the Wifi module is used for carrying out data transmission according to the decision result of the switching decision module;
the Bluetooth module and the Wifi module have a common MAC layer, when the Bluetooth device is switched to the Wifi device to transmit data, the Bluetooth MAC address of a sender in the data packet is replaced by a source MAC address of a Wifi specification, and the Bluetooth MAC address of a receiver in the data packet is replaced by a destination MAC address of the Wifi specification;
the Bluetooth module and the Wifi module transmit data through the same SOCKET.
8. The context awareness-based bluetooth and Wifi handover transmission device of claim 7, wherein: the switching decision module also comprises a cost accounting module which is used for calculating the Bluetooth cost of data transmission by the 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 CN106792954A (en) 2017-05-31
CN106792954B true 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 (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

Families Citing this family (14)

* 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
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
CN109890022B (en) * 2019-03-29 2023-12-08 努比亚技术有限公司 Data transmission control method, mobile terminal and computer readable storage medium
CN111224693B (en) * 2019-11-27 2021-08-06 展讯通信(上海)有限公司 Audio data transmission method and device for wireless earphone, storage medium and terminal
CN110996365B (en) * 2019-12-03 2021-05-11 中南大学 Heterogeneous network vertical switching algorithm and system based on multi-objective optimization model
CN113133095B (en) * 2020-01-15 2022-08-26 华为技术有限公司 Method for reducing power consumption of mobile terminal and mobile terminal
CN111466910B (en) * 2020-04-30 2023-11-21 电子科技大学 Sleep monitoring method, system, storage medium, computer program and device
KR20210146082A (en) 2020-05-26 2021-12-03 삼성전자주식회사 Electronic device for wireless communication and method for operation in the electronic device for wireless communication
CN114356172A (en) * 2020-09-30 2022-04-15 华为技术有限公司 Data transmission method and electronic equipment
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
FR3136928B1 (en) * 2022-06-21 2024-05-03 Orange Method and device for switching a Wi-Fi connection

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 (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

Also Published As

Publication number Publication date
CN106792954A (en) 2017-05-31

Similar Documents

Publication Publication Date Title
CN106792954B (en) Bluetooth and Wifi switching method based on environment perception and transmission equipment
US20200359319A1 (en) Unscheduled peer power save mode
JP6397471B2 (en) Terminal for TXOP power saving and terminal communication method
US7756103B2 (en) Device, system and method of adjustment of a delivery mechanism according to access categories
CN112788716A (en) Communication method and device among multilink devices
JP5010553B2 (en) Wireless device
EP2958380B1 (en) Wlan system with opportunistic transitioning to a low power state for power management
JP6168624B2 (en) Base station, wireless terminal, communication system, communication method, program
US20140269468A1 (en) Systems and methods for wireless band switching
US20090257369A1 (en) Radio terminal, radio base station, and radio communication system
KR20080109809A (en) Multicast and broadcast traffic with power management
WO2009136355A1 (en) Power save mechanism for wireless communication devices
US9485728B1 (en) Power saving with WNM-sleep mode
EP3503631B1 (en) Power-efficient communication of group-addressed frames
Keshav et al. Energy efficient scheduling in 4G smart phones for mobile hotspot application
CN109756963B (en) Method, device and equipment for determining working mode
JP2009088976A (en) Radio link selection control unit, radio device, and radio link selection method
WO2017167141A1 (en) Method and device for sending wireless local area network beacon
CN115567973A (en) Method and device for determining data caching condition
EP2936883B1 (en) Power saving in wlan stations using data accumulation at an access point
US9420532B2 (en) Shaping data packet traffic
US9504045B2 (en) Bluetooth service estimation apparatus and bluetooth service estimation method thereof
CN103517393A (en) Networking method based on power control of heterogeneous networks
CN107548143B (en) Message sending and receiving method and device, wireless access equipment and terminal equipment
CN101119257A (en) Ack tactics configuring method and corresponding device

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

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

TR01 Transfer 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

PE01 Entry into force of the registration of the contract for pledge of patent right
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.

CP01 Change in the name or title of a patent holder
PM01 Change of the registration of the contract for pledge of patent right

Change date: 20240520

Registration number: Y2021980000747

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

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

PC01 Cancellation of the registration of the contract for pledge of patent right

Granted publication date: 20200204

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

Pledgor: New Cloud Technology Group Co.,Ltd.

Registration number: Y2021980000747

PC01 Cancellation 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
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: A Bluetooth and WiFi switching method and transmission device based on environmental perception

Granted publication date: 20200204

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

Pledgor: New Cloud Technology Group Co.,Ltd.

Registration number: Y2024980019289