Background
At present, WIFI and Bluetooth technologies on mobile phones and other personal devices become the most basic configurations, and are applied more and more, and the use scenes are more and more extensive.
However, the 2.4GHz WIFI operating band (2401-. Therefore, mutual interference between WIFI and Bluetooth can be generated in the using process, and the communication quality and the communication efficiency are seriously influenced.
The operating characteristics of the WIFI are time-sharing operation and data exchange is not continuously performed. The working characteristic of the Bluetooth is frequency hopping work, which is not constant work at a certain frequency point, but the optimal frequency band of frequency hopping is selected by maintaining a frequency hopping table and marking each channel with a frequency quality label.
At present, aiming at the interference problem between WIFI and Bluetooth, two solutions are mainly adopted:
1. the first one-time division technique: different time periods are distinguished through WIFI and Bluetooth according to different data transmission types, and only WIFI data or only Bluetooth data are transmitted in each time period, as shown in fig. 1.
However, there are the following drawbacks:
due to the fact that the time period allocated to each data transmission type is limited, the time division technology can affect the transmitted data, such as WIFI throughput reduction, Bluetooth call delay or jamming and the like; software operations and guard intervals waste the available spectrum.
2. Second, frequency division technique: because bluetooth has 80 channels in available bandwidth and can carry out frequency hopping, WIFI has 13 channels in available frequency band; therefore, in the frequency division technology, when the WIFI uses a certain channel, the bluetooth frequency hopping table is set in a channel that is not interfered by the channel used by the WIFI, so as to avoid interference, as shown in fig. 2:
(1) all frequency bands available for WIFI and Bluetooth are 2401 + 2483 MHz;
(2) the bandwidth occupied by the WIFI channel is 2412-2472 MHz;
(3) the residual undisturbed frequency band of the available Bluetooth channel is 2401 and 2412 MHz; 2472 and 2483 MHz.
However, there are the following drawbacks:
as shown in fig. 2, the frequency hopping table of bluetooth is severely compressed due to the intervention of WIFI, especially when WIFI uses 802.11n HT40MHz bandwidth, bluetooth is hardly available, so that bluetooth has to use a low quality channel that has been subject to interference in order to maintain smooth transmission, which seriously affects the transmission quality of bluetooth.
Disclosure of Invention
The invention aims to provide a Bluetooth data transmission method, a Bluetooth data transmission device, a terminal and a computer readable storage medium, and aims to solve the problems of slow Bluetooth data transmission and poor Bluetooth data quality caused by a solution of interference between WIFI and Bluetooth in the prior art.
In order to solve the technical problem, the invention is realized as follows: a bluetooth data transmission method, comprising:
detecting whether the current Bluetooth data transmission time belongs to a wireless data transmission period; the wireless data transmission time interval is the time interval of wireless data transmission in the same frequency interval with the Bluetooth;
if the current Bluetooth data transmission time belongs to the wireless data transmission time period, determining a first preset frequency band outside the frequency band used for wireless data transmission as the frequency band of the current Bluetooth data transmission;
determining first transmitting power for performing Bluetooth data transmission by adopting the first preset frequency band according to a first preset mapping relation; wherein, the first preset mapping relation records the corresponding relation between a plurality of frequency bands and the transmitting power;
and carrying out Bluetooth data transmission according to the determined first preset frequency band and the first transmitting power.
In a first aspect, an embodiment of the present invention further provides a bluetooth data transmission apparatus, including:
the first detection module is used for detecting whether the current Bluetooth data transmission time belongs to a wireless data transmission time interval; the wireless data transmission time interval is the time interval of wireless data transmission in the same frequency interval with the Bluetooth;
the first determining module is used for determining a first preset frequency band outside a frequency band used for wireless data transmission as the frequency band of the current Bluetooth data transmission if the current Bluetooth data transmission time belongs to the wireless data transmission time period;
the second determining module is used for determining first transmitting power for performing Bluetooth data transmission by adopting the first preset frequency band according to a first preset mapping relation; wherein, the first preset mapping relation records the corresponding relation between a plurality of frequency bands and the transmitting power;
and the first processing module is used for carrying out Bluetooth data transmission according to the determined first preset frequency band and the first transmitting power.
In a second aspect, an embodiment of the present invention further provides a terminal, which includes a processor, a memory, and a computer program stored on the memory and executable on the processor, where the computer program, when executed by the processor, implements the steps of the above-mentioned bluetooth data transmission method.
In a third aspect, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the bluetooth data transmission method are implemented.
In the embodiment of the invention, whether the current Bluetooth data transmission time belongs to a wireless data transmission time interval is detected; the wireless data transmission time interval is the time interval of wireless data transmission in the same frequency interval with the Bluetooth; if the current Bluetooth data transmission time belongs to the wireless data transmission time period, determining a first preset frequency band outside the frequency band used for wireless data transmission as the frequency band of the current Bluetooth data transmission; determining first transmitting power for performing Bluetooth data transmission by adopting the first preset frequency band according to a first preset mapping relation; wherein, the first preset mapping relation records the corresponding relation between a plurality of frequency bands and the transmitting power; performing Bluetooth data transmission according to the determined first preset frequency band and the first transmitting power; the frequency band with the largest influence can be effectively avoided in the wireless data transmission period, the frequency band capable of ensuring the transmission quality is selected for carrying out the Bluetooth data transmission, and the communication quality and the communication speed of the coexistence of wireless and Bluetooth are greatly improved; the problem that in the prior art, the Bluetooth data transmission is slow and the quality is poor due to the interference between the WIFI and the Bluetooth is solved well.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Aiming at the problem that the interference between WIFI and Bluetooth in the prior art causes slow Bluetooth data transmission and poor Bluetooth data quality, the invention provides a Bluetooth data transmission method, as shown in FIG. 3, which comprises the following steps:
step 31: detecting whether the current Bluetooth data transmission time belongs to a wireless data transmission period; the wireless data transmission time interval is the time interval of wireless data transmission in the same frequency interval with the Bluetooth.
The step may specifically be: acquiring a transmission time sequence of wireless data transmission, wherein the transmission time sequence comprises a wireless data transmission time period and an inter-code guard interval time period; detecting whether the current Bluetooth data transmission time belongs to a wireless data transmission time interval (according to the transmission time sequence); when the current Bluetooth data transmission time belongs to the inter-code guard interval period, determining that the current Bluetooth data transmission time does not belong to the wireless data transmission period; otherwise, determining that the current Bluetooth data transmission time belongs to the wireless data transmission time interval.
Step 32: and if the current Bluetooth data transmission time belongs to the wireless data transmission time interval, determining a first preset frequency band outside the frequency band used for wireless data transmission as the frequency band of the current Bluetooth data transmission.
The first preset frequency band is a frequency band (a data transmission frequency band of non-interference Bluetooth in a wireless data transmission period) in which Bluetooth data transmission is not interfered by the wireless data transmission, or the first preset frequency band is a frequency band (a data transmission frequency band of Bluetooth in which wireless sideband interference exists in a wireless data transmission period) in which the wireless data transmission has sideband interference on Bluetooth data transmission; when the first preset frequency band is a frequency band where the Bluetooth data transmission is not interfered by the wireless data transmission, the first transmitting power is a first numerical value; when the first preset frequency band is a frequency band with sideband interference on Bluetooth data transmission by the wireless data transmission, the first transmitting power is a second numerical value; the first value is smaller than the second value, and the first value is larger than or equal to a preset threshold value.
The wireless data transmission period corresponds to the wireless data in the wireless data transmission, preferably in conformity with the type.
Step 33: determining first transmitting power for performing Bluetooth data transmission by adopting the first preset frequency band according to a first preset mapping relation; wherein the first preset mapping relation records the corresponding relation between a plurality of frequency bands and the transmitting power.
Correspondingly, the first preset mapping relation records the transmitting power corresponding to the frequency band where the Bluetooth data transmission is not interfered by the wireless data transmission, and the transmitting power corresponding to the frequency band where the wireless data transmission has sideband interference to the Bluetooth data transmission.
Step 34: and carrying out Bluetooth data transmission according to the determined first preset frequency band and the first transmitting power.
Therefore, the normal transmission of the Bluetooth data can be ensured in the wireless data transmission period, the quality meets the requirement, and the condition that the Bluetooth data cannot be transmitted or the transmission instruction is reduced due to the transmission of the wireless data is avoided.
The Bluetooth data transmission method provided by the embodiment of the invention detects whether the current Bluetooth data transmission time belongs to a wireless data transmission time interval; the wireless data transmission time interval is the time interval of wireless data transmission in the same frequency interval with the Bluetooth; if the current Bluetooth data transmission time belongs to the wireless data transmission time period, determining a first preset frequency band outside the frequency band used for wireless data transmission as the frequency band of the current Bluetooth data transmission; determining first transmitting power for performing Bluetooth data transmission by adopting the first preset frequency band according to a first preset mapping relation; wherein, the first preset mapping relation records the corresponding relation between a plurality of frequency bands and the transmitting power; performing Bluetooth data transmission according to the determined first preset frequency band and the first transmitting power; the frequency band with the largest influence can be effectively avoided in the wireless data transmission period, the frequency band capable of ensuring the transmission quality is selected for carrying out the Bluetooth data transmission, and the communication quality and the communication speed of the coexistence of wireless and Bluetooth are greatly improved; the problem that in the prior art, the Bluetooth data transmission is slow and the quality is poor due to the interference between the WIFI and the Bluetooth is solved well.
Further, after detecting whether the current bluetooth data transmission time belongs to the wireless data transmission period, the bluetooth data transmission method further includes: if the current Bluetooth data transmission time does not belong to the wireless data transmission time period, determining a second preset frequency band in all frequency bands which can be used by Bluetooth as the frequency band of the current Bluetooth data transmission; determining a second transmitting power for performing Bluetooth data transmission by adopting the second preset frequency band according to a second preset mapping relation; wherein, the second preset mapping relation records the corresponding relation between a plurality of frequency bands and the transmitting power; and carrying out Bluetooth data transmission according to the determined second preset frequency band and the second transmitting power.
Therefore, normal transmission of Bluetooth data can be guaranteed in a wireless inter-code guard interval period, transmission quality is high, and spectrum utilization rate is improved.
The bluetooth data transmission method provided by the embodiment of the present invention is further described below, wherein the wireless data transmission is WIFI data transmission as an example.
In view of the above technical problems, in the scheme provided by the embodiment of the present invention, a time division scheme and a frequency division scheme are integrated by using a power control mechanism to obtain a bluetooth data transmission method based on time division, frequency division and power control and multidimensional regulation and control, so as to effectively improve the communication quality of wireless WIFI and bluetooth coexistence.
That is, dynamic adjustment control is performed from three dimensions of time, frequency and power to effectively avoid the defects of the existing wireless and bluetooth coexistence scheme, as shown in fig. 4, the vertical axis represents the transmission power of bluetooth and WIFI transmission information, the horizontal axis represents the operating frequency of WIFI and bluetooth, and the front axis represents the time axis.
The following description takes an example that WIFI works in 2.4GHz channel 6, when WIFI works in 2.4GHz channel 6, the center frequency point is 2442MHz, the data bandwidth is 20MHz, and the working frequency of bluetooth is 2400-2483.5 MHz.
Wherein, the frequency axis:
f2 and F4: although outside the WIFI channel, because the rectangular coefficient of the WIFI spectrum template cannot be made to be 1 in an ideal manner, interference smaller than-20 dBr exists in the two spectrum intervals, and the respective bandwidths are 19MHz (corresponding to the frequency bands where the wireless data transmission has sideband interference with the bluetooth data transmission).
F3(2431-2453 MHz): channel 6 for WIFI operation, 20MHz data bandwidth and +/-1MHz guard bandwidth, together accounting for 22MHz wide.
F1 and F5: and the frequency band which is not occupied by the WIFI and is not influenced by the WIFI (wireless fidelity) (the frequency band which corresponds to the frequency band which is not interfered by the wireless data transmission in the Bluetooth data transmission). Each 11MHz wide.
Time axis:
since WIFI is time-sharing operation, GI (Guard Interval) time needs to be reserved between each frame, and there is no WIFI data transmission in the GI time.
T1, T3 and T5: and the data transmission time is WIFI data transmission time.
T2 and T4: and the WIFI protection interval time is set, no WIFI data is transmitted, and the frequency spectrum occupied by the WIFI channel is in an idle state.
Power shaft:
p3: is the transmit power of WIFI channel 6.
P1 and P5: it is sufficient that a default transmission power value is used for the transmission power of the bluetooth in a clear channel (corresponding to a frequency band in which the bluetooth data transmission is not interfered by the wireless data transmission).
P2 and P4: the frequency hopping frequency point transmitting power of the Bluetooth in the frequency band of the WIFI sideband interference (corresponding to the frequency band of the wireless data transmission with the sideband interference on the Bluetooth data transmission) can be improved by using the Bluetooth power control function.
The bluetooth channels can be distinguished as follows:
bluetooth channel in F1: CH (channel) 0 to CH 10;
bluetooth channel in F2: CH 11-CH 30;
bluetooth channel in F3: CH 31-CH 50;
bluetooth channel in F4: CH 51-CH 70;
bluetooth channel in F5: CH 71-CH 80.
The bluetooth data transmission method provided by the embodiment of the invention can be embodied as follows:
time period T1:
as shown in fig. 5, during the time period T1, because WIFI is transmitting data in real time, F3 on the frequency spectrum is an unavailable frequency band, F2 and F4 are available but interfered frequency bands (frequency bands where wireless data transmission has sideband interference with bluetooth data transmission), F1 and F5 are safe frequency bands (frequency bands where bluetooth data transmission is not interfered by the wireless data transmission); then (bluetooth) after acquiring the timing information from WIFI, adjust the hopping schedule to the WIFI transmission period hopping schedule (as table one):
the frequency hopping table mechanism of bluetooth will be according to the operation channel of present WIFI, beat different labels for each channel according to aforementioned rule respectively, if table one:
f1 and F5: the bluetooth channels in this interval are not subject to interference and can operate with optimal power consumption at low power.
F2 and F4: WIFI sideband interference exists, and the power of a Bluetooth channel which needs to operate in the interval is increased to improve the anti-interference capacity.
F3(2431-2453 MHz): the bluetooth channel in this interval is not available at all.
The bluetooth frequency hopping list will then perform frequency hopping transmission according to the different power levels of the frequency hopping list through different channels during the time period.
|
F1
|
F2
|
F3
|
F4
|
F5
|
Bluetooth channel
|
CH0~CH10
|
CH11~CH30
|
CH31~CH50
|
CH51~CH70
|
CH71~CH80
|
Marking
|
Low power
|
High power
|
Is not available
|
High power
|
Low power |
State of Bluetooth channel frequency hopping table mark in WIFI data transmission time period
Further, except for the T1 time period, this mechanism is followed in all subsequent WIFI data transmission states, such as T3 and T5.
Time periods T2 and T4:
during the time periods T2 and T4, the WIFI is in the inter-symbol Guard Interval (GI) and no data is transmitted on the WIFI channel, i.e. the frequency band (2400 + 2483MHz) is idle (each channel may be labeled as described in table two). Therefore, bluetooth is not interfered by WIFI in F1, F2, F3, F4 and F5, and can transmit data in the lowest power optimal power consumption state, as shown in fig. 6.
|
F1
|
F2
|
F3
|
F4
|
F5
|
Bluetooth channel
|
CH0~CH10
|
CH11~CH30
|
CH31~CH50
|
CH51~CH70
|
CH71~CH80
|
Marking
|
Low power
|
Low power
|
Low power
|
Low power
|
Low power |
Marking state of frequency hopping table under WIFI interference-free condition of table II
Then, in the following operation, the bluetooth can adjust its own frequency hopping table in real time only by acquiring the data transmission time of the WIFI in advance, so as to adapt to the optimal capacity of the coexistence system, and the process may specifically be as shown in fig. 7, including:
step 71: acquiring a data transmission time sequence and an occupied frequency band of WIFI;
step 72: generating an interference-free frequency hopping table and an interference frequency hopping table according to the data transmission time sequence and the occupied frequency band of the WIFI;
step 73: and judging whether the current Bluetooth data transmission has interference or not according to the data transmission time sequence (data sending time) of the WIFI, if so, calling the generated interference frequency hopping table, and if not, calling the non-interference frequency hopping table.
Therefore, the scheme provided by the embodiment of the invention effectively utilizes the discontinuous middle guard interval of WIFI data transmission to insert part of Bluetooth frequency hopping points, thereby effectively improving the frequency spectrum utilization rate; in addition, frequency bands interfering with Bluetooth by WIFI sidebands are effectively utilized; to the bluetooth frequency hopping point of operation in the WIFI use period sideband frequency channel, use the effective mark of bluetooth frequency hopping table, promote bluetooth power in order to strengthen the interference killing feature, and then effectively promote the communication quality of bluetooth in the WIFI sideband.
The scheme provided by the embodiment of the invention can be applied to any time division or frequency division technical field with coexistence of wireless and Bluetooth, such as LTE TDD and LTE FDD, and is not limited herein.
An embodiment of the present invention further provides a bluetooth data transmission apparatus, as shown in fig. 8, including:
a first detecting module 81, configured to detect whether a current bluetooth data transmission time belongs to a wireless data transmission period; the wireless data transmission time interval is the time interval of wireless data transmission in the same frequency interval with the Bluetooth;
a first determining module 82, configured to determine, if the current bluetooth data transmission time belongs to a wireless data transmission time period, that a first preset frequency band outside a frequency band used for wireless data transmission is a frequency band of the current bluetooth data transmission;
a second determining module 83, configured to determine, according to a first preset mapping relationship, a first transmit power for performing bluetooth data transmission using the first preset frequency band; wherein, the first preset mapping relation records the corresponding relation between a plurality of frequency bands and the transmitting power;
the first processing module 84 is configured to perform bluetooth data transmission according to the determined first preset frequency band and the first transmit power.
The Bluetooth data transmission device provided by the embodiment of the invention detects whether the current Bluetooth data transmission time belongs to a wireless data transmission time interval; the wireless data transmission time interval is the time interval of wireless data transmission in the same frequency interval with the Bluetooth; if the current Bluetooth data transmission time belongs to the wireless data transmission time period, determining a first preset frequency band outside the frequency band used for wireless data transmission as the frequency band of the current Bluetooth data transmission; determining first transmitting power for performing Bluetooth data transmission by adopting the first preset frequency band according to a first preset mapping relation; wherein, the first preset mapping relation records the corresponding relation between a plurality of frequency bands and the transmitting power; performing Bluetooth data transmission according to the determined first preset frequency band and the first transmitting power; the frequency band with the largest influence can be effectively avoided in the wireless data transmission period, the frequency band capable of ensuring the transmission quality is selected for carrying out the Bluetooth data transmission, and the communication quality and the communication speed of the coexistence of wireless and Bluetooth are greatly improved; the problem that in the prior art, the Bluetooth data transmission is slow and the quality is poor due to the interference between the WIFI and the Bluetooth is solved well.
Further, the bluetooth data transmission apparatus further includes: the third determining module is used for determining a second preset frequency band in all frequency bands which can be used by the Bluetooth as the frequency band of the current Bluetooth data transmission if the current Bluetooth data transmission time does not belong to the wireless data transmission time period after detecting whether the current Bluetooth data transmission time belongs to the wireless data transmission time period; the fourth determining module is used for determining second transmitting power for performing Bluetooth data transmission by adopting the second preset frequency band according to a second preset mapping relation; wherein, the second preset mapping relation records the corresponding relation between a plurality of frequency bands and the transmitting power; and the second processing module is used for carrying out Bluetooth data transmission according to the determined second preset frequency band and the second transmitting power.
Specifically, the first detection module includes: the first acquisition submodule is used for acquiring a transmission time sequence of wireless data transmission, and the transmission time sequence comprises a wireless data transmission time period and an inter-code guard interval time period; a first detection sub-module, configured to detect (according to the transmission timing sequence) whether a current bluetooth data transmission time belongs to a wireless data transmission period; the first determining submodule is used for determining that the current Bluetooth data transmission time does not belong to the wireless data transmission time interval when the current Bluetooth data transmission time belongs to the inter-code guard interval time interval; and the second determining submodule is used for determining that the current Bluetooth data transmission time belongs to the wireless data transmission time interval if the current Bluetooth data transmission time does not belong to the wireless data transmission time interval.
The first preset frequency band is a frequency band in which Bluetooth data transmission is not interfered by wireless data transmission, or the first preset frequency band is a frequency band in which sideband interference exists in the Bluetooth data transmission by the wireless data transmission; when the first preset frequency band is a frequency band where the Bluetooth data transmission is not interfered by the wireless data transmission, the first transmitting power is a first numerical value; when the first preset frequency band is a frequency band with sideband interference on Bluetooth data transmission by the wireless data transmission, the first transmitting power is a second numerical value; the first value is smaller than the second value, and the first value is larger than or equal to a preset threshold value.
The bluetooth data transmission apparatus provided in the embodiment of the present invention can implement each process implemented by the terminal in the method embodiments of fig. 1 to fig. 7, and is not described herein again to avoid repetition.
Fig. 9 is a schematic diagram of a hardware structure of a terminal for implementing various embodiments of the present invention, where the terminal 90 includes, but is not limited to: radio frequency unit 91, network module 92, audio output unit 93, input unit 94, sensor 95, display unit 96, user input unit 97, interface unit 98, memory 99, processor 910, and power supply 911. Those skilled in the art will appreciate that the terminal configuration shown in fig. 9 is not intended to be limiting, and that the terminal may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The processor 910 is configured to detect whether a current bluetooth data transmission time belongs to a wireless data transmission period; the wireless data transmission time interval is the time interval of wireless data transmission in the same frequency interval with the Bluetooth; if the current Bluetooth data transmission time belongs to the wireless data transmission time period, determining a first preset frequency band outside the frequency band used for wireless data transmission as the frequency band of the current Bluetooth data transmission; determining first transmitting power for performing Bluetooth data transmission by adopting the first preset frequency band according to a first preset mapping relation; wherein, the first preset mapping relation records the corresponding relation between a plurality of frequency bands and the transmitting power; and carrying out Bluetooth data transmission according to the determined first preset frequency band and the first transmitting power.
In the embodiment of the invention, whether the current Bluetooth data transmission time belongs to a wireless data transmission time interval is detected; the wireless data transmission time interval is the time interval of wireless data transmission in the same frequency interval with the Bluetooth; if the current Bluetooth data transmission time belongs to the wireless data transmission time period, determining a first preset frequency band outside the frequency band used for wireless data transmission as the frequency band of the current Bluetooth data transmission; determining first transmitting power for performing Bluetooth data transmission by adopting the first preset frequency band according to a first preset mapping relation; wherein, the first preset mapping relation records the corresponding relation between a plurality of frequency bands and the transmitting power; performing Bluetooth data transmission according to the determined first preset frequency band and the first transmitting power; the frequency band with the largest influence can be effectively avoided in the wireless data transmission period, the frequency band capable of ensuring the transmission quality is selected for carrying out the Bluetooth data transmission, and the communication quality and the communication speed of the coexistence of wireless and Bluetooth are greatly improved; the problem that in the prior art, the Bluetooth data transmission is slow and the quality is poor due to the interference between the WIFI and the Bluetooth is solved well.
Optionally, the processor 910 is further configured to, after detecting whether the current bluetooth data transmission time belongs to the wireless data transmission period, determine, if the current bluetooth data transmission time does not belong to the wireless data transmission period, that a second preset frequency band of all frequency bands that can be used by bluetooth is a frequency band for current bluetooth data transmission; determining a second transmitting power for performing Bluetooth data transmission by adopting the second preset frequency band according to a second preset mapping relation; wherein, the second preset mapping relation records the corresponding relation between a plurality of frequency bands and the transmitting power; and carrying out Bluetooth data transmission according to the determined second preset frequency band and the second transmitting power.
Optionally, the processor 910 is specifically configured to obtain a transmission timing sequence of wireless data transmission, where the transmission timing sequence includes a wireless data transmission period and an inter-code guard interval period; detecting whether the current Bluetooth data transmission time belongs to a wireless data transmission time interval (according to the transmission time sequence); when the current Bluetooth data transmission time belongs to the inter-code guard interval period, determining that the current Bluetooth data transmission time does not belong to the wireless data transmission period; otherwise, determining that the current Bluetooth data transmission time belongs to the wireless data transmission time interval.
Optionally, the first preset frequency band is a frequency band in which bluetooth data transmission is not interfered by the wireless data transmission, or the first preset frequency band is a frequency band in which the wireless data transmission has sideband interference with bluetooth data transmission; when the first preset frequency band is a frequency band where the Bluetooth data transmission is not interfered by the wireless data transmission, the first transmitting power is a first numerical value; when the first preset frequency band is a frequency band with sideband interference on Bluetooth data transmission by the wireless data transmission, the first transmitting power is a second numerical value; the first value is smaller than the second value, and the first value is larger than or equal to a preset threshold value.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 91 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 910; in addition, the uplink data is transmitted to the base station. Typically, the radio frequency unit 91 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. Further, the radio frequency unit 91 may also communicate with a network and other devices through a wireless communication system.
The terminal provides wireless broadband internet access to the user via the network module 92, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 93 may convert audio data received by the radio frequency unit 91 or the network module 92 or stored in the memory 99 into an audio signal and output as sound. Also, the audio output unit 93 may also provide audio output related to a specific function performed by the terminal 90 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 93 includes a speaker, a buzzer, a receiver, and the like.
The input unit 94 is for receiving an audio or video signal. The input Unit 94 may include a Graphics Processing Unit (GPU) 941 and a microphone 942, and the Graphics processor 941 processes image data of still pictures or video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 96. The image frames processed by the graphic processor 941 may be stored in the memory 99 (or other storage medium) or transmitted via the radio frequency unit 91 or the network module 92. The microphone 942 may receive sound and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 91 in case of the phone call mode.
The terminal 90 also includes at least one sensor 95, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of the display panel 961 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 961 and/or a backlight when the terminal 90 moves to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the terminal posture (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration identification related functions (such as pedometer, tapping), and the like; the sensors 95 may also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which are not described in detail herein.
The display unit 96 is used to display information input by the user or information provided to the user. The Display unit 96 may include a Display panel 961, and the Display panel 961 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 97 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the terminal. Specifically, the user input unit 97 includes a touch panel 971 and other input devices 972. Touch panel 971, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 971 (e.g., operations by a user on or near touch panel 971 using a finger, a stylus, or any other suitable object or attachment). The touch panel 971 may include two portions of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 910, receives a command from the processor 910, and executes the command. In addition, the touch panel 971 may be implemented by various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 971, the user input unit 97 may include other input devices 972. In particular, other input devices 972 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 971 may be overlaid on the display panel 961, and when the touch panel 971 detects a touch operation on or near the touch panel 971, the touch operation is transmitted to the processor 910 to determine the type of the touch event, and then the processor 910 provides a corresponding visual output on the display panel 961 according to the type of the touch event. Although the touch panel 971 and the display panel 961 are shown in fig. 9 as two independent components to implement the input and output functions of the terminal, in some embodiments, the touch panel 971 and the display panel 961 may be integrated to implement the input and output functions of the terminal, and is not limited herein.
The interface unit 98 is an interface for connecting an external device to the terminal 90. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 98 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the terminal 90 or may be used to transmit data between the terminal 90 and an external device.
The memory 99 may be used to store software programs as well as various data. The memory 99 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 99 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 910 is a control center of the terminal, connects various parts of the entire terminal using various interfaces and lines, and performs various functions of the terminal and processes data by operating or executing software programs and/or modules stored in the memory 99 and calling data stored in the memory 99, thereby integrally monitoring the terminal. Processor 910 may include one or more processing units; preferably, the processor 910 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It is to be appreciated that the modem processor described above may not be integrated into processor 910.
The terminal 90 may further include a power supply 911 (e.g., a battery) for supplying power to various components, and preferably, the power supply 911 may be logically connected to the processor 910 through a power management system, so as to manage charging, discharging, and power consumption through the power management system.
In addition, the terminal 90 includes some functional modules that are not shown, and are not described in detail herein.
Preferably, an embodiment of the present invention further provides a terminal, which includes a processor 910, a memory 99, and a computer program stored in the memory 99 and capable of running on the processor 910, where the computer program is executed by the processor 910 to implement each process of the above-mentioned embodiment of the bluetooth data transmission method, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the above-mentioned embodiment of the bluetooth data transmission method, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.