Data processing method and device, Bluetooth equipment, storage medium and product
By receiving and parsing the carrier frequency information in the target radio frequency signal, determining the demodulation time of the Bluetooth data packet, solving the problem of large structural overhead in traditional Bluetooth data packet transmission, and achieving efficient data transmission.
Patent Information
- Application Number
- CN202311020969.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-14
- Publication Date
- 2025-03-11
AI Technical Summary
Traditional packets that use EDR technology for Bluetooth data transmission have problems such as packet structure overhead or packet bit overhead.
By receiving the target radio frequency signal sent by the second Bluetooth device, the frequency information of the carrier signal is determined, and the target moment when the protocol data unit appears in the target radio frequency signal is determined based on the frequency information, so that the demodulation process of the protocol data unit is started at the target moment.
On the premise that the synchronization sequence is not included in the Bluetooth data packet, accurate demodulation of the Bluetooth data packet is achieved, reducing the structural overhead or bit overhead of the data packet and improving data transmission efficiency.
Smart Images

Figure CN119603658A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a data processing method, apparatus, Bluetooth device, storage medium, and product. Background Art
[0002] With the rapid development of electronic device related technologies, Bluetooth has become a common way to transmit data between electronic devices. Bluetooth technology can realize short-distance wireless data transmission between electronic devices, so it is very convenient and fast, and the use process is relatively flexible and convenient.
[0003] In order to increase the data transmission rate through Bluetooth technology, Bluetooth Enhanced Data Rate (EDR) technology has emerged. Among them, the data transmission rate of Bluetooth technology can be greatly improved through EDR technology.
[0004] However, traditional data packets transmitted using EDR technology have the problem of large data packet structure overhead or data packet bit overhead. Summary of the invention
[0005] The embodiments of the present application provide a data processing method, apparatus, Bluetooth device, and computer-readable storage medium, which can reduce data packet structure overhead or data packet bit overhead.
[0006] In one aspect, a data processing method is provided, which is applied to a first Bluetooth device, and the method includes:
[0007] Receive a target radio frequency signal sent by a second Bluetooth device; the target radio frequency signal is a signal obtained by modulating a Bluetooth data packet on a carrier signal; the Bluetooth data packet includes a physical layer frame header and a protocol data unit, the protocol data unit includes a data payload; and the modulation method of the physical layer frame header and the protocol data unit is different;
[0008] Determine frequency information of the carrier signal according to the target radio frequency signal, and determine a target time when the protocol data unit appears in the target radio frequency signal according to the frequency information;
[0009] A demodulation process for the protocol data unit is started at the target time.
[0010] On the other hand, a data processing device is provided, which is applied to a first Bluetooth device, and the device includes:
[0011] A radio frequency signal receiving module, used to receive a target radio frequency signal sent by a second Bluetooth device; the target radio frequency signal is a signal obtained by modulating a Bluetooth data packet on a carrier signal; the Bluetooth data packet includes a physical layer frame header and a protocol data unit, and the protocol data unit includes a data payload; and the modulation method of the physical layer frame header and the protocol data unit is different;
[0012] a target time determination module, configured to determine frequency information of the carrier signal according to the target radio frequency signal, and determine a target time at which the protocol data unit appears in the target radio frequency signal according to the frequency information;
[0013] The demodulation module is used to start executing the demodulation process of the protocol data unit at the target time.
[0014] On the other hand, a chip is provided, comprising a processor, wherein the processor is configured to execute the data processing method as described above.
[0015] On the other hand, a first Bluetooth device is provided, comprising a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the steps of the data processing method described above.
[0016] On the other hand, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the data processing method described above are implemented.
[0017] On the other hand, a computer program product is provided, comprising a computer program, which implements the steps of the data processing method described above when executed by a processor.
[0018] In the above data processing method, device, first Bluetooth device, storage medium and product, the first Bluetooth device receives the target radio frequency signal sent by the second Bluetooth device; the target radio frequency signal is a signal obtained by modulating the Bluetooth data packet on the carrier signal; the Bluetooth data packet includes a physical layer frame header and a protocol data unit, and the protocol data unit includes a data payload; and the modulation mode of the physical layer frame header and the protocol data unit is different. The frequency information of the carrier signal is determined according to the target radio frequency signal, and the target time when the protocol data unit appears in the target radio frequency signal is determined according to the frequency information. The demodulation process of the protocol data unit is started at the target time. Since the modulation mode of the physical layer frame header and the protocol data unit is different when the Bluetooth data packet is modulated on the carrier signal to obtain the target radio frequency signal, after the first Bluetooth device receives the target radio frequency signal sent by the second Bluetooth device, the demodulation mode used for the physical layer frame header and the protocol data unit is also different, and before executing the demodulation process of the protocol data unit, data synchronization needs to be performed between the first Bluetooth device and the second Bluetooth device. Then, firstly, the first Bluetooth device can determine the frequency information of the carrier signal according to the received target radio frequency signal. Secondly, the target time when the protocol data unit appears in the target radio frequency signal can be determined according to the frequency information. Thus, data synchronization can be achieved between the first Bluetooth device and the second Bluetooth device according to the target time when the protocol data unit appears in the target radio frequency signal.
[0019] Furthermore, by starting to execute the demodulation process of the protocol data unit at the target time, that is, using the demodulation method of the protocol data unit for demodulation, it is possible to accurately demodulate the Bluetooth data packet under the premise that the synchronization sequence is not included in the Bluetooth data packet. Since the Bluetooth data packet in the present application does not include the synchronization sequence, it is obvious that the structural overhead or bit overhead of the data packet is reduced. Furthermore, resource occupation is reduced and data transmission efficiency is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0021] Figure 1 An application environment diagram of a data processing method in an embodiment;
[0022] Figure 2 is a flow chart of a data processing method in one embodiment;
[0023] Figure 3 for Figure 2A flow chart of a method for determining a target time at which a protocol data unit appears in a target radio frequency signal according to frequency information;
[0024] Figure 4 for Figure 2 A flow chart of a method for determining frequency information of a carrier signal according to a target radio frequency signal;
[0025] Figure 5 is a schematic diagram of a time-frequency analysis diagram obtained by performing short-time Fourier transform processing on a target radio frequency signal in one embodiment;
[0026] Figure 6 A schematic diagram of the structure of a Bluetooth data packet in an embodiment;
[0027] Figure 7 for Figure 2 A flowchart of a method for demodulating a protocol data unit starting at a target time;
[0028] Figure 8 is a flow chart of a data processing method in another embodiment;
[0029] Fig. 9 is a schematic diagram of a data processing method in an exemplary embodiment;
[0030] Fig.10 is a structural block diagram of a data processing device in one embodiment;
[0031] Fig.11 FIG. 1 is a schematic diagram of the internal structure of a Bluetooth device in an embodiment. DETAILED DESCRIPTION
[0032] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0033] It is understood that the terms "first", "second", etc. used in this application may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish a first element from another element. For example, without departing from the scope of this application, a first Bluetooth device may be referred to as a second Bluetooth device, and similarly, a second Bluetooth device may be referred to as a first Bluetooth device. Both the first Bluetooth device and the second Bluetooth device are Bluetooth devices, but they are not the same Bluetooth device.
[0034] With the rapid development of Bluetooth related technologies, Bluetooth has become a common way to transmit data between electronic devices. Bluetooth technology can realize short-distance wireless data transmission between electronic devices, so it is very convenient and fast, and the use process is relatively flexible and convenient.
[0035] In order to increase the rate of data transmission through Bluetooth technology, Bluetooth Enhanced Data Rate (EDR) technology has emerged. Among them, the Bluetooth data packet includes a physical layer frame header and a protocol data unit, and the physical layer frame header includes an access code and a data packet header. The access code and data packet header in the Bluetooth data packet transmitted using EDR technology are modulated using Gaussian frequency shift keying (GFSK) modulation, while the protocol data unit in the data packet is modulated using differential phase shift keying (DPSK) modulation. It is known that when DPSK is used for modulation, one time domain symbol can encode multiple bits, while when GFSK modulation is used for modulation, one time domain symbol can only encode one bit. Therefore, the data transmission rate of Bluetooth can be greatly improved by EDR technology.
[0036] However, since the Bluetooth data packet is modulated using two different modulation methods, an interval sequence is reserved between the data packet header and the protocol data unit of the Bluetooth data packet to provide transition time for switching between the two different modulation methods. In addition, it is necessary to add a DPSK synchronization sequence before the protocol data unit to synchronize the data payload in the protocol data unit between Bluetooth devices. And when the data payload in the protocol data unit is synchronized between Bluetooth devices according to the DPSK synchronization sequence, it is necessary to perform autocorrelation calculation based on the synchronization sequence to achieve time synchronization. Obviously, the calculation process is more complicated.
[0037] Since the Bluetooth data packet transmitted using the EDR technology not only reserves an interval sequence but also adds a DPSK synchronization sequence, the traditional data packet transmitted using the EDR technology has the problem of large data packet structure overhead or data packet bit overhead.
[0038] Figure 1 FIG. 1 is a schematic diagram of an application environment of a data processing method in an embodiment. Figure 1As shown, the application environment includes a first Bluetooth device 120 and a second Bluetooth device 140, the first Bluetooth device 120 receives a target radio frequency signal sent by the second Bluetooth device 140; the target radio frequency signal is a signal obtained by modulating a Bluetooth data packet on a carrier signal; the Bluetooth data packet includes a physical layer frame header and a protocol data unit, and the protocol data unit includes a data payload; and the modulation mode of the physical layer frame header and the protocol data unit is different; the frequency information of the carrier signal is determined according to the target radio frequency signal, and the target time when the protocol data unit appears in the target radio frequency signal is determined according to the frequency information; and the demodulation process of the protocol data unit is started at the target time. Among them, the first Bluetooth device 120 and the second Bluetooth device 140 are electronic devices that support Bluetooth functions, which can be but are not limited to various personal computers, laptops, smart phones, tablet computers, Internet of Things devices and portable wearable devices, and the Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, smart cars, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc.
[0039] Figure 2 FIG. 1 is a flow chart of a data processing method in one embodiment. The data processing method in this embodiment is executed on Figure 1 The first Bluetooth device 120 in the example is used as an example for description. Figure 2 As shown, the data processing method includes steps 220 to 260, wherein:
[0040] Step 220, receiving a target radio frequency signal sent by a second Bluetooth device; the target radio frequency signal is a signal obtained by modulating a Bluetooth data packet on a carrier signal; the Bluetooth data packet includes a physical layer frame header and a protocol data unit, and the protocol data unit includes a data payload; and the modulation method of the physical layer frame header and the protocol data unit is different.
[0041] Among them, the second Bluetooth device can generate a Bluetooth data packet, modulate the Bluetooth data packet on a carrier signal to obtain a target radio frequency signal, and send the target radio frequency signal to the first Bluetooth device through a Bluetooth channel. Optionally, the second Bluetooth device can generate the Bluetooth data packet based on the access code and the data packet header and the protocol data unit, and an interval sequence will be reserved between the data packet header and the protocol data unit, but no synchronization sequence will be included. Since the Bluetooth data packet here is a data packet transmitted using EDR technology, when the Bluetooth data packet is modulated on a carrier signal to obtain a target radio frequency signal, the access code and the data packet header in the Bluetooth data packet are modulated on the carrier signal using GFSK modulation, and the protocol data unit in the Bluetooth data packet is modulated on the carrier signal using DPSK modulation to obtain the target radio frequency signal.
[0042] Then, the first Bluetooth device receives the target radio frequency signal sent by the second Bluetooth device through the Bluetooth channel.
[0043] Step 240: determine frequency information of the carrier signal according to the target radio frequency signal, and determine a target time when the protocol data unit appears in the target radio frequency signal according to the frequency information.
[0044] After receiving the target RF signal, the first Bluetooth device needs to demodulate the target RF signal. Here, when the second Bluetooth device modulates the Bluetooth data packet on the carrier signal to obtain the target RF signal, the access code and the data packet header in the Bluetooth data packet are modulated on the carrier signal using the GFSK modulation method, and the protocol data unit part in the Bluetooth data packet is modulated on the carrier signal using the DPSK modulation method to obtain the target RF signal. Therefore, the access code and the data packet header in the Bluetooth data packet can be demodulated using the GFSK demodulation method first, and then the protocol data unit part in the Bluetooth data packet can be demodulated using the DPSK demodulation method. Among them, the GFSK demodulation method corresponds to the GFSK modulation method, and the DPSK demodulation method corresponds to the DPSK modulation method.
[0045] However, before the DPSK demodulation method is used to demodulate the protocol data unit part in the Bluetooth data packet, data synchronization needs to be performed between the first Bluetooth device and the second Bluetooth device.
[0046] However, the Bluetooth data packet transmitted between the first Bluetooth device and the second Bluetooth device in the present application does not include a synchronization sequence, and the synchronization sequence is used to synchronize data between the first Bluetooth device and the second Bluetooth device. Since the GFSK modulation mode is different from the DPSK modulation mode, it can be seen that the GFSK modulation mode transmits information by changing the carrier frequency (the frequency of the carrier signal), while the DPSK modulation mode does not transmit information by changing the carrier frequency, but transmits information by changing the phase (the phase of the carrier signal). Therefore, the carrier frequency of the GFSK modulation mode presents a periodic change feature within a preset time period, while the carrier frequency of the DPSK modulation mode presents a characteristic of being stable or even unchanged within a preset time period. Then, after receiving the target radio frequency signal, the first Bluetooth device in the present application can determine the frequency information of the carrier signal according to the target radio frequency signal. Furthermore, from the frequency information of the carrier signal, the carrier frequency that presents a characteristic of being stable or even unchanged is determined as the carrier frequency corresponding to the DPSK modulation mode. Then, according to the carrier frequency corresponding to the DPSK modulation mode, the target time when the protocol data unit appears in the target radio frequency signal is determined, that is, data synchronization between the first Bluetooth device and the second Bluetooth device is realized. The target time at which the protocol data unit appears in the target radio frequency signal indicates that the Bluetooth data packet modulated in the target radio frequency signal at this time is modulated on the carrier signal using the DPSK modulation method.
[0047] In this way, after the first Bluetooth device and the second Bluetooth device perform data synchronization, the protocol data unit part in the Bluetooth data packet can be demodulated using the DPSK demodulation method.
[0048] Step 260, start the demodulation process of the protocol data unit at the target time.
[0049] Then, based on the target time when the protocol data unit appears in the target radio frequency signal, the demodulation process of the protocol data unit can be started. Optionally, at the target time, the DPSK demodulation method is used to demodulate the target radio frequency signal to generate the protocol data unit.
[0050] In an embodiment of the present application, a first Bluetooth device receives a target radio frequency signal sent by a second Bluetooth device; the target radio frequency signal is a signal obtained by modulating a Bluetooth data packet on a carrier signal; the Bluetooth data packet includes a physical layer frame header and a protocol data unit, and the protocol data unit includes a data payload; and the modulation modes of the physical layer frame header and the protocol data unit are different. The frequency information of the carrier signal is determined according to the target radio frequency signal, and the target time when the protocol data unit appears in the target radio frequency signal is determined according to the frequency information. The demodulation process of the protocol data unit is started at the target time. Since the modulation modes for the physical layer frame header and the protocol data unit are different when the Bluetooth data packet is modulated on the carrier signal to obtain the target radio frequency signal, after the first Bluetooth device receives the target radio frequency signal sent by the second Bluetooth device, the demodulation modes used for the physical layer frame header and the protocol data unit are also different, and before executing the demodulation process for the protocol data unit, data synchronization is required between the first Bluetooth device and the second Bluetooth device. Then, firstly, the first Bluetooth device can determine the frequency information of the carrier signal according to the received target radio frequency signal. Secondly, the target time when the protocol data unit appears in the target radio frequency signal can be determined according to the frequency information. In this way, data synchronization can be achieved between the first Bluetooth device and the second Bluetooth device according to the target time when the protocol data unit appears in the target radio frequency signal.
[0051] Furthermore, by starting to execute the demodulation process of the protocol data unit at the target time, that is, using the demodulation method of the protocol data unit for demodulation, it is possible to accurately demodulate the Bluetooth data packet under the premise that the synchronization sequence is not included in the Bluetooth data packet. Since the Bluetooth data packet in the present application does not include the synchronization sequence, it is obvious that the structural overhead or bit overhead of the data packet is reduced. Furthermore, resource occupation is reduced and data transmission efficiency is improved.
[0052] In the previous embodiment, it is described that the first Bluetooth device can synchronize data between the first Bluetooth device and the second Bluetooth device according to the target time when the protocol data unit appears in the target radio frequency signal, and then start the demodulation process of the protocol data unit at the target time. The embodiment of the present application further describes that the physical layer frame header is modulated by the first modulation method, the protocol data unit is modulated by the second modulation method, and the carrier frequency corresponding to the first modulation method is different from the carrier frequency corresponding to the second modulation method; Figure 3 As shown, step 240, determining the target time when the protocol data unit appears in the target radio frequency signal according to the frequency information, includes:
[0053] Step 242, determining the occurrence time of the carrier frequency corresponding to the second modulation mode according to the frequency information;
[0054] Step 244: taking the occurrence time of the carrier frequency corresponding to the second modulation method as the target time.
[0055] Among them, the first digital modulation method includes frequency shift keying modulation (FSK) or Gaussian frequency shift keying modulation (GFSK). Here, the FSK modulation method is used to carry information by changing the frequency of the carrier. In other words, the FSK modulation method is a method of transmitting digital signals using discrete signals. For example, the FSK modulation method includes a binary frequency shift keying modulation method, in which two binary states, logic 1 and logic 0, are included, and logic 0 and logic 1 are represented by analog waveforms respectively. For example, a higher frequency in the analog waveform can be used to represent logic 1, and a lower frequency in the analog waveform can be used to represent logic 0. Here, the GFSK modulation method is used to modulate the input data after the spectral width of the signal is limited by a Gaussian low-pass filter, and then the FSK (frequency shift keying, frequency shift keying) modulation method is used. For example, a 0.5BT GFSK modulation method can be used to realize the modulation of information, and the carrier frequency is shifted up by 157KHz to represent "1", and the carrier frequency is shifted down by 157KHz to represent "0". Here, 0.5BT (Bandwidth Time) is defined as a 3dB bandwidth at half the data rate, that is, 500kHz. Of course, the present application does not specifically limit the bandwidth time of the GFSK modulation method.
[0056] The second digital modulation method includes an amplitude shift keying modulation method (ASK) or a differential phase shift keying modulation method (DPSK). Here, the amplitude shift keying modulation method can also be called an amplitude shift keying modulation method, which is used to transmit information by utilizing the change in the relative amplitude of the carrier between the previous and next code elements of the modulation signal without changing the frequency of the carrier.
[0057] Here, DPSK modulation is used to transmit information by using the change in the relative phase of the carrier between the preceding and following symbols of the modulation signal without changing the frequency of the carrier. Differential phase shift keying modulation includes four-phase differential phase shift keying modulation (DQPSK) or eight-phase differential phase shift keying modulation (8DPSK).
[0058] Here, when GFSK modulation is used, the data transmission rate = 1 times the modulation rate of GFSK; when DQPSK modulation is used, the data transmission rate = 2 times the modulation rate of DQPSK; when 8DPSK modulation is used, the data transmission rate = 3 times the modulation rate of 8DPSK. Obviously, DQPSK modulation or 8DPSK modulation, and the data transmission rate is greater than the data transmission rate of GFSK modulation.
[0059] In the present application, the physical layer frame header in the Bluetooth data packet is modulated by GFSK modulation, while the protocol data unit in the Bluetooth data packet is modulated by DPSK modulation. And the carrier frequencies corresponding to the GFSK modulation and DPSK modulation are different. Since the GFSK modulation and DPSK modulation are different, it can be seen that the GFSK modulation transmits information by changing the carrier frequency (the frequency of the carrier signal), while the DPSK modulation does not transmit information by changing the carrier frequency, but transmits information by changing the phase (the phase of the carrier signal). Therefore, the carrier frequency of the GFSK modulation presents a periodic change feature within the preset time period, while the carrier frequency of the DPSK modulation presents a characteristic of being stable or even unchanged within the preset time period. Then, after receiving the target radio frequency signal, the first Bluetooth device in the present application can determine the frequency information of the carrier signal according to the target radio frequency signal. Furthermore, from the frequency information of the carrier signal, the carrier frequency that presents a characteristic of being stable or even unchanged is determined as the appearance time of the carrier frequency corresponding to the second modulation mode, that is, the carrier frequency corresponding to the DPSK modulation mode is determined.
[0060] Optionally, the time when the carrier frequency does not change, or the time when the carrier frequency is stable, can be determined from the frequency information of the carrier signal as the time when the carrier frequency corresponding to the second modulation mode appears.
[0061] The time when the carrier frequency corresponding to the second modulation method appears is used as the target time. That is, the carrier frequency corresponding to the DPSK modulation method is determined as the target time when the protocol data unit appears in the target radio frequency signal, thereby realizing data synchronization between the first Bluetooth device and the second Bluetooth device. Among them, the target time when the protocol data unit appears in the target radio frequency signal indicates that the Bluetooth data packet modulated in the target radio frequency signal at this time is modulated on the carrier signal using the DPSK modulation method.
[0062] In an embodiment of the present application, when the first Bluetooth device determines the target time when the protocol data unit appears in the target radio frequency signal based on the frequency information, first, the time when the carrier frequency corresponding to the second modulation method appears is determined based on the frequency information. Secondly, the time when the carrier frequency corresponding to the second modulation method appears is used as the target time. In this way, data synchronization between the first Bluetooth device and the second Bluetooth device can be achieved based on the target time when the protocol data unit appears in the target radio frequency signal. There is no need to perform autocorrelation operations based on synchronization sequences as in traditional methods to achieve time synchronization. Obviously, the method of achieving data synchronization between the first Bluetooth device and the second Bluetooth device based on the target time in the present application is relatively simple and convenient.
[0063] Furthermore, by starting to execute the demodulation process of the protocol data unit at the target time, that is, using the demodulation method of the protocol data unit for demodulation, it is possible to accurately demodulate the Bluetooth data packet under the premise that the synchronization sequence is not included in the Bluetooth data packet. Since the Bluetooth data packet in the present application does not include the synchronization sequence, it is obvious that the structural overhead or bit overhead of the data packet is reduced. Furthermore, resource occupation is reduced and data transmission efficiency is improved.
[0064] In the previous embodiment, the process of determining the occurrence time of the carrier frequency corresponding to the second modulation mode according to the frequency information and taking the occurrence time of the carrier frequency corresponding to the second modulation mode as the target time is described, such as Figure 4 As shown, the embodiment of the present application further describes step 240, which determines the frequency information of the carrier signal according to the target radio frequency signal, including:
[0065] Step 246: extracting frequency spectrum features from the target radio frequency signal to obtain frequency spectrum features of the target radio frequency signal.
[0066] Since the target RF signal is a time domain signal, the target RF signal can be converted from the time domain to the frequency domain during the process of extracting the spectral features of the target RF signal. In other words, the spectral features are extracted from the target RF signal to obtain the spectral features of the target RF signal. Here, a variety of methods can be used to convert the target RF signal from the time domain to the frequency domain. For example, any one of short-time Fourier transform, discrete Fourier transform, and continuous Fourier transform can be used to convert the target RF signal from the time domain to the frequency domain; wavelet transform can also be used to convert the target RF signal from the time domain to the frequency domain; Laplace transform can also be used to convert the target RF signal from the time domain to the frequency domain, etc.; this application does not limit this.
[0067] Among them, short-time Fourier transform (STFT, short-time Fourier transform, or short-termFourier transform) is a mathematical transformation related to Fourier transform, which is used to determine the frequency and phase of the local sinusoidal wave of the time-varying signal. Therefore, after the first Bluetooth device receives the target RF signal sent by the second Bluetooth device, the target RF signal is processed by short-time Fourier transform, and the target RF signal can be converted into time-frequency, and then the spectrum characteristics of the target RF signal can be obtained.
[0068] Among them, wavelet transform is based on wavelet transform function, which converts time domain signal into frequency domain signal. Laplace transform can process nonlinear signals and can process various signals such as sound, image and information.
[0069] Here, the frequency spectrum feature of the target radio frequency signal refers to the relationship between the frequency of the target radio frequency signal and time. For example, a time-frequency analysis diagram may be used to represent the relationship between the frequency of the target radio frequency signal and time.
[0070] In addition, short-time Fourier transform processing of the target RF signal can increase the signal's ability to resist multipath delay interference with the surrounding environment, and can also accurately estimate and compensate for the delay of the propagation path, thereby improving the accuracy of the signal.
[0071] Step 248: Obtain frequency information of the carrier signal according to the frequency spectrum characteristics of the target radio frequency signal.
[0072] Since the spectrum characteristics of the target RF signal can reflect the changing characteristics of the carrier frequency, the first Bluetooth device can obtain the frequency information of the carrier signal based on the spectrum characteristics of the target RF signal. If the spectrum characteristics of the target RF signal are presented using a time-frequency analysis diagram, the time-frequency analysis diagram can be analyzed to obtain the frequency information of the carrier signal. Here, the frequency information of the carrier signal may refer to the frequency change information of the carrier signal. For example, the time-frequency analysis diagram shows that the frequency of the carrier signal changes over time during a period of time, while the frequency of the carrier signal does not change over time during another period of time. Of course, the present application does not specifically limit the characteristics of the frequency change of the carrier signal over time.
[0073] like Figure 5 , which is a schematic diagram of a time-frequency analysis diagram obtained by performing short-time Fourier transform processing on a target radio frequency signal in one embodiment. Figure 5 The relationship between the frequency of the carrier signal and time is shown in Figure 1. Figure 5 It can be seen that between 0s and 1s, the frequency of the carrier signal moves up by 157KHz in a period of time, and then moves down by 157KHz in the next period of time, which can be understood as the frequency of the carrier signal periodically jumping in a preset time period. It can be understood that between 0s and 1s, the frequency of the carrier signal changes over time, that is, the carrier signal can carry information by changing the frequency of the carrier. In other words, the frequency of the carrier signal between 0s and 1s is the carrier frequency corresponding to the GFSK modulation method.
[0074] Among them, 1s-2s is the interval time corresponding to the interval sequence in the Bluetooth data packet. Starting from 2s, the frequency of the carrier signal does not change and remains constant. Assuming that the frequency of the carrier signal is f0 starting from 2s, the frequency of the carrier signal between 0s and 1s is f0+157KHz or f0-157KHz. Of course, this application does not limit this. In other words, starting from 2s, the frequency of the carrier signal is the carrier frequency corresponding to the DPSK modulation method.
[0075] In an embodiment of the present application, the first Bluetooth device performs short-time Fourier transform processing on the target radio frequency signal to obtain the spectrum characteristics of the target radio frequency signal, and obtains the frequency change information of the carrier signal according to the spectrum characteristics of the target radio frequency signal. By performing short-time Fourier transform processing on the target radio frequency signal, the target radio frequency signal can be converted into a time-frequency signal, so that the spectrum characteristics of the target radio frequency signal can be accurately obtained. Since the spectrum characteristics of the target radio frequency signal can reflect the frequency change characteristics of the carrier signal, the frequency change characteristics of the carrier signal can be accurately obtained according to the spectrum characteristics of the target radio frequency signal. It is convenient to accurately determine the target time when the protocol data unit appears in the target radio frequency signal based on the frequency change characteristics of the carrier signal, so that data synchronization can be achieved between the first Bluetooth device and the second Bluetooth device. Ultimately, the accuracy of data synchronization between the first Bluetooth device and the second Bluetooth device can be improved.
[0076] In the previous embodiment, a process of performing short-time Fourier transform processing on a target radio frequency signal to obtain a spectrum characteristic of the target radio frequency signal and obtaining frequency information of a carrier signal according to the spectrum characteristic of the target radio frequency signal is described. In the embodiment of the present application, step 246 is further described, performing short-time Fourier transform processing on the target radio frequency signal to obtain a spectrum characteristic of the radio frequency signal, including:
[0077] Performing windowing processing on the target radio frequency signal using a preset window function to obtain a windowed target radio frequency signal;
[0078] The windowed target RF signal is subjected to Fourier transform processing to obtain the frequency spectrum characteristics of the target RF signal.
[0079] Among them, the window function is a function that truncates the signal in the time domain. The signal can be divided into several windows through the window function, and the signal in each window can be regarded as stable. Here, the window function can be a variety of different types of window functions, such as rectangular window, Hanning window, Hamming window, Blackman window, Kaiser window, etc., which is not limited in this application.
[0080] During the short-time Fourier transform processing, a preset window function can be used to perform windowing processing on the target RF signal to obtain a windowed target RF signal. Among them, the preset window function can be any of the above window functions, and the window width of the window function can be selected according to the specific application scenario, and this application does not limit this. The window width refers to the length of the interception time window of the window function, and the size of the window width can determine the effect of the window function filtering. Here, the target RF signal after windowing is to divide the target RF signal into several time periods, and the target RF signal in each time period can be regarded as stable.
[0081] Then, the windowed target RF signal can be Fourier transformed, that is, the target RF signal in each time period can be Fourier transformed to obtain the spectrum characteristics of the target RF signal. Here, the Fourier transform function can be used to perform Fourier transform processing on the target RF signal in each time period to obtain the spectrum characteristics of the target RF signal. Among them, the expression of the Fourier transform function (STFT) can be shown in the following formula 1:
[0082]
[0083] Among them, x(τ) is the target RF signal, that is, the analysis signal, and h(τ-t) is the window function. STFT can perform windowing processing on the target RF signal according to the window function to obtain the local characteristics of the target RF signal, that is, the spectrum characteristics.
[0084] In an embodiment of the present application, when the first Bluetooth device performs short-time Fourier transform processing on the target radio frequency signal to obtain the spectrum characteristics of the radio frequency signal, it includes: using a preset window function to perform windowing processing on the target radio frequency signal to obtain the windowed target radio frequency signal. Here, the target radio frequency signal is windowed, that is, the target radio frequency signal can be filtered, so that the windowed target radio frequency signal can better suppress and prevent interference. Furthermore, the windowed target radio frequency signal is Fourier transformed to obtain the spectrum characteristics of the target radio frequency signal. Thereby, the accuracy of the spectrum characteristics of the obtained target radio frequency signal can be improved.
[0085] In the previous embodiment, a process of performing short-time Fourier transform processing on the target radio frequency signal to obtain the spectrum characteristics of the target radio frequency signal is described. In an embodiment of the present application, a data processing method is further provided, which also includes:
[0086] A first demodulation method is adopted to execute a demodulation process for a physical layer frame header; the first demodulation method corresponds to the first modulation method.
[0087] The first Bluetooth device receives a target radio frequency signal sent by the second Bluetooth device through a Bluetooth channel. The target radio frequency signal is a signal obtained by modulating a Bluetooth data packet on a carrier signal, and the Bluetooth data packet includes a physical layer frame header and a protocol data unit. Since the Bluetooth data packet here is a data packet transmitted using EDR technology, when the Bluetooth data packet is modulated on a carrier signal to obtain the target radio frequency signal, the physical layer frame header (including the access code and the data packet header part) in the Bluetooth data packet is modulated on the carrier signal using the first modulation method (GFSK modulation method), and the protocol data unit part in the Bluetooth data packet is modulated on the carrier signal using the second modulation method (DPSK modulation method) to obtain the target radio frequency signal.
[0088] Therefore, after receiving the target RF signal, the first Bluetooth device needs to demodulate the target RF signal. Then, first, the first Bluetooth device adopts the first demodulation mode to perform the demodulation process of the physical layer frame header. Among them, the first demodulation mode corresponds to the first modulation mode, that is, the first demodulation mode corresponds to the GFSK modulation mode, which can be called the GFSK demodulation mode.
[0089] In the embodiment of the present application, since the Bluetooth data packet here is a data packet transmitted using the EDR technology, when the Bluetooth data packet is modulated on the carrier signal to obtain the target radio frequency signal, the physical layer frame header in the Bluetooth data packet is modulated on the carrier signal using the first modulation method, and the protocol data unit part in the Bluetooth data packet is modulated on the carrier signal using the second modulation method to obtain the target radio frequency signal. Then, after the first Bluetooth device receives the target radio frequency signal, it is necessary to demodulate the target radio frequency signal. First, the first Bluetooth device uses the first demodulation method corresponding to the first modulation method to perform the demodulation process of the physical layer frame header. In this way, the physical layer frame header in the target radio frequency signal can be accurately demodulated to obtain the physical layer frame header part.
[0090] In the previous embodiment, it is described that the first Bluetooth device adopts the first demodulation method corresponding to the first modulation method to perform a demodulation stream on the physical layer frame header to obtain a physical layer frame header part. The embodiment of the present application further describes that the Bluetooth data packet also includes an interval sequence, the interval sequence is located between the physical layer frame header and the protocol data unit, and the interval sequence is adjacent to the physical layer frame header and the protocol data unit.
[0091] Combination Figure 6 As shown, it is a schematic diagram of the structure of a Bluetooth data packet in an embodiment. Among them, the Bluetooth data packet transmitted using the EDR technology includes a physical layer frame header, an interval sequence and a protocol data unit in sequence, and the interval sequence is located between the physical layer frame header and the protocol data unit, and the interval sequence is adjacent to the physical layer frame header and the protocol data unit. Among them, the physical layer frame header includes an access code and a data packet header part, and the protocol data unit includes a data payload; and the modulation method of the physical layer frame header and the protocol data unit is different.
[0092] It can be seen that the Bluetooth data packet in the present application does not include a synchronization sequence after the interval sequence. Obviously, the structural overhead or bit overhead of the data packet is reduced. Furthermore, resource occupancy is reduced and data transmission efficiency is improved. After the first Bluetooth device receives the target radio frequency signal sent by the second Bluetooth device, it can determine the frequency information of the carrier signal according to the target radio frequency signal, and determine the target time when the protocol data unit appears in the target radio frequency signal according to the frequency information. In this way, data synchronization can be achieved between the first Bluetooth device and the second Bluetooth device according to the target time when the protocol data unit appears in the target radio frequency signal.
[0093] Furthermore, by starting to execute the demodulation process of the protocol data unit at the target time, that is, adopting the demodulation method of the protocol data unit for demodulation, it is possible to accurately demodulate the Bluetooth data packet even if the Bluetooth data packet does not include a synchronization sequence.
[0094] In the embodiment of the present application, the Bluetooth data packet in the present application does not include a synchronization sequence after the interval sequence. Obviously, the structural overhead or bit overhead of the data packet is reduced. In turn, resource occupation is reduced and data transmission efficiency is improved.
[0095] In the previous embodiment, the structure of the Bluetooth data packet transmitted using the EDR technology in this application is described. The embodiment of this application further describes, Figure 7 As shown, step 260, starting to perform a demodulation process of the protocol data unit at the target time, includes:
[0096] Step 262, switching the first demodulation mode to the second demodulation mode within the interval sequence; the second demodulation mode corresponds to the second modulation mode.
[0097] Among them, the Bluetooth data packet transmitted by using EDR technology includes a physical layer frame header, an interval sequence and a protocol data unit in sequence, and the interval sequence is located between the physical layer frame header and the protocol data unit, and the interval sequence is adjacent to the physical layer frame header and the protocol data unit. It is known that when the Bluetooth data packet is modulated on a carrier signal to obtain a target radio frequency signal, the physical layer frame header (including the access code and the data packet header part) in the Bluetooth data packet is modulated on the carrier signal using a first modulation method (GFSK modulation method), and the protocol data unit part in the Bluetooth data packet is modulated on the carrier signal using a second modulation method (DPSK modulation method) to obtain the target radio frequency signal.
[0098] Therefore, the first demodulation mode can be switched to the second demodulation mode within the interval sequence to achieve the transition of the demodulation mode. Here, the interval sequence can also be called a guard time. Figure 6As shown, it mainly refers to the interval time from the end moment of the bit of the trailer of the physical layer frame header to the start moment of the first bit of the protocol data unit. For example, the guard time can be 5 microseconds, but considering the actual time fluctuations, the guard time can be allowed to vary by + / -0.25 microseconds. That is, the range of the guard time can fall between [0.25, 0.75] microseconds. Of course, the guard time can also take other values, for example, 3 microseconds, 7 microseconds or 10 microseconds, etc., which is not limited in this application. Among them, the values in the interval sequence can all be binary numbers 0000, or they can be repeated binary numbers 0101, which is not limited in this application.
[0099] After the first Bluetooth device receives the target RF signal sent by the second Bluetooth device through the Bluetooth channel, it needs to demodulate the target RF signal. Then, firstly, the first Bluetooth device adopts the first demodulation mode to perform the demodulation process of the physical layer frame header. Among them, the first demodulation mode corresponds to the first modulation mode, that is, the first demodulation mode corresponds to the GFSK modulation mode, which can be called the GFSK demodulation mode.
[0100] After the demodulation process of the physical layer frame header is completed, the first demodulation mode is switched to the second demodulation mode within the interval sequence; the second demodulation mode corresponds to the second modulation mode. If the second modulation mode is the DPSK modulation mode, then switching the first demodulation mode to the second demodulation mode can be understood as switching the GFSK demodulation mode to the DPSK demodulation mode.
[0101] Step 264: Time-synchronize the radio frequency signal corresponding to the protocol data unit in the target radio frequency signal between the first Bluetooth device and the second Bluetooth device according to the target time, and obtain the synchronized radio frequency signal corresponding to the protocol data unit.
[0102] Then, the frequency information of the carrier signal is determined according to the target radio frequency signal, and the target time when the protocol data unit appears in the target radio frequency signal is determined according to the frequency information. Optionally, the Bluetooth data packet transmitted between the first Bluetooth device and the second Bluetooth device in the present application does not include a synchronization sequence, and the synchronization sequence is used to synchronize data between the first Bluetooth device and the second Bluetooth device. Since the GFSK modulation mode is different from the DPSK modulation mode, it can be known that the GFSK modulation mode transmits information by changing the carrier frequency (the frequency of the carrier signal), while the DPSK modulation mode does not transmit information by changing the carrier frequency, but transmits information by changing the phase (the phase of the carrier signal). Therefore, the carrier frequency of the GFSK modulation mode presents a periodic change feature within the preset time period, while the carrier frequency of the DPSK modulation mode presents a characteristic of being stable or even unchanged within the preset time period. Then, after receiving the target radio frequency signal in the present application, the first Bluetooth device can determine the frequency information of the carrier signal according to the target radio frequency signal. Furthermore, from the frequency information of the carrier signal, the carrier frequency that presents a characteristic of being stable or even unchanged is determined as the carrier frequency corresponding to the DPSK modulation mode. Then, according to the carrier frequency corresponding to the DPSK modulation method, the target time when the protocol data unit appears in the target radio frequency signal is determined, so that data synchronization between the first Bluetooth device and the second Bluetooth device is achieved. Among them, the target time when the protocol data unit appears in the target radio frequency signal indicates that the Bluetooth data packet modulated in the target radio frequency signal at this time is modulated on the carrier signal using the DPSK modulation method.
[0103] Therefore, the first Bluetooth device performs time synchronization on the RF signal corresponding to the protocol data unit in the target RF signal between the first Bluetooth device and the second Bluetooth device according to the target time, and obtains the RF signal corresponding to the synchronized protocol data unit, that is, data synchronization is achieved between the first Bluetooth device and the second Bluetooth device.
[0104] Step 266: Starting at the target time, the second demodulation mode is used to demodulate the radio frequency signal corresponding to the synchronized protocol data unit.
[0105] After data synchronization is performed between the first Bluetooth device and the second Bluetooth device, the second demodulation method can be used at the target time to demodulate the radio frequency signal corresponding to the synchronized protocol data unit. If the second demodulation method is the DPSK demodulation method, the DPSK demodulation method is used at the target time to demodulate the radio frequency signal corresponding to the synchronized protocol data unit to generate the protocol data unit.
[0106] In this way, after the first Bluetooth device receives the target RF signal sent by the second Bluetooth device through the Bluetooth channel, it completes the demodulation process of the physical frame header and the protocol data unit in the target RF signal to generate the physical frame header and the protocol data unit. Subsequently, the first Bluetooth device can also make a judgment on the generated physical frame header and the protocol data unit.
[0107] In an embodiment of the present application, the first demodulation mode is switched to the second demodulation mode within the interval sequence, wherein the second demodulation mode corresponds to the second modulation mode. According to the target time, the radio frequency signal corresponding to the protocol data unit in the target radio frequency signal is time-synchronized between the first Bluetooth device and the second Bluetooth device to obtain the radio frequency signal corresponding to the synchronized protocol data unit. The second demodulation mode is adopted at the target time to demodulate the radio frequency signal corresponding to the synchronized protocol data unit.
[0108] Since the target time is the time when the protocol data unit determined according to the frequency information of the carrier signal appears in the target radio frequency signal, the radio frequency signal corresponding to the protocol data unit in the target radio frequency signal can be time-synchronized between the first Bluetooth device and the second Bluetooth device according to the target time. Then, the demodulation process of the protocol data unit is started at the target time. That is, by adopting the demodulation method of the protocol data unit for demodulation, it is possible to accurately demodulate the Bluetooth data packet under the premise that the synchronization sequence is not included in the Bluetooth data packet. Since the Bluetooth data packet in the present application does not include the synchronization sequence, it is obvious that the structural overhead or bit overhead of the data packet is reduced. Then, resource occupancy is reduced and data transmission efficiency is improved.
[0109] Based on the same inventive concept, the present application proposes a data transmission method, which is applied to a second Bluetooth device, such as Figure 8 As shown, the method includes:
[0110] Step 820: modulate the physical layer frame header in the Bluetooth data packet using a first modulation method to generate a radio frequency signal corresponding to the physical layer frame header.
[0111] The Bluetooth data packet in this application is a Bluetooth data packet sent using EDR technology, which includes a physical layer frame header and a protocol data unit, and a reserved interval sequence between the data packet header and the protocol data unit, but does not include a synchronization sequence. Among them, the protocol data unit includes a data payload; and the modulation method of the physical layer frame header and the protocol data unit is different.
[0112] After a Bluetooth connection based on EDR technology is established between the first Bluetooth device and the second Bluetooth device, the second Bluetooth device is used to send the Bluetooth data packet to the first Bluetooth device. Then, firstly, the second Bluetooth device modulates the physical layer frame header in the Bluetooth data packet by a first modulation method to generate a radio frequency signal corresponding to the physical layer frame header. The first modulation method includes a GFSK modulation method.
[0113] Step 840: modulate the protocol data unit in the Bluetooth data packet by a second modulation method to generate a radio frequency signal corresponding to the protocol data unit; the protocol data unit includes a data payload.
[0114] Secondly, the second Bluetooth device modulates the protocol data unit in the Bluetooth data packet by a second modulation method to generate a radio frequency signal corresponding to the protocol data unit. The second modulation method includes a DPSK modulation method.
[0115] Step 860: Generate a target radio frequency signal based on the radio frequency signal corresponding to the physical layer frame header, the interval sequence, and the radio frequency signal corresponding to the protocol data unit, and send the target radio frequency signal to the second Bluetooth device through the Bluetooth channel.
[0116] In the Bluetooth data packet, an interval sequence is reserved between the data packet header and the protocol data unit. The interval sequence is used for phase smoothing between the first modulation mode and the second modulation mode, that is, it can be understood that the first Bluetooth device can switch the first modulation mode to the second modulation mode within the interval sequence.
[0117] Then, the first Bluetooth device can generate a target RF signal based on the RF signal corresponding to the physical layer frame header, the interval sequence and the RF signal corresponding to the protocol data unit. Finally, the first Bluetooth device can send the target RF signal to the second Bluetooth device through the Bluetooth channel.
[0118] In an embodiment of the present application, the second Bluetooth device modulates the physical layer frame header in the Bluetooth data packet by the first modulation method to generate a radio frequency signal corresponding to the physical layer frame header. The protocol data unit in the Bluetooth data packet is modulated by the second modulation method to generate a radio frequency signal corresponding to the protocol data unit; the protocol data unit includes a data payload. Based on the radio frequency signal corresponding to the physical layer frame header, the interval sequence and the radio frequency signal corresponding to the protocol data unit, a target radio frequency signal is generated, and the target radio frequency signal is sent to the second Bluetooth device through the Bluetooth channel. Since the Bluetooth data packet in the present application does not include a synchronization sequence, it is obvious that the structural overhead or bit overhead of the data packet is reduced. In addition, resource occupancy is reduced and data transmission efficiency is improved.
[0119] In an exemplary embodiment, a data processing method is provided, such as Fig. 9 As shown, applied to a first Bluetooth device, comprising:
[0120] Step 902, receiving a target radio frequency signal sent by a second Bluetooth device;
[0121] The target radio frequency signal is a signal obtained by modulating a Bluetooth data packet onto a carrier signal; the Bluetooth data packet includes a physical layer frame header, an interval sequence and a protocol data unit, and the interval sequence is located between the physical layer frame header and the protocol data unit; the protocol data unit includes a data payload; and the physical layer frame header is modulated by a first modulation method, and the protocol data unit is modulated by a second modulation method, and the carrier frequency corresponding to the first modulation method is different from the carrier frequency corresponding to the second modulation method;
[0122] Step 904, performing short-time Fourier transform processing on the target radio frequency signal to obtain the frequency spectrum characteristics of the target radio frequency signal;
[0123] Step 906, acquiring frequency information of the carrier signal according to the spectrum characteristics of the target radio frequency signal;
[0124] Step 908, determining the occurrence time of the carrier frequency corresponding to the second modulation mode according to the frequency information;
[0125] Step 910: Taking the occurrence time of the carrier frequency corresponding to the second modulation method as the target time.
[0126] Step 912, using a first demodulation mode to perform a demodulation process for a physical layer frame header; the first demodulation mode corresponds to the first modulation mode;
[0127] Step 914, switching the first demodulation mode to a second demodulation mode within the interval sequence; the second demodulation mode corresponds to the second modulation mode;
[0128] Step 916, according to the target time, time synchronization is performed between the first Bluetooth device and the second Bluetooth device on the radio frequency signal corresponding to the protocol data unit in the target radio frequency signal, to obtain the radio frequency signal corresponding to the synchronized protocol data unit;
[0129] Step 918: Starting at the target time, the second demodulation mode is used to demodulate the radio frequency signal corresponding to the synchronized protocol data unit.
[0130] In an embodiment of the present application, a first Bluetooth device receives a target radio frequency signal sent by a second Bluetooth device; the target radio frequency signal is a signal obtained by modulating a Bluetooth data packet on a carrier signal; the Bluetooth data packet includes a physical layer frame header and a protocol data unit, and the protocol data unit includes a data payload; and the modulation modes of the physical layer frame header and the protocol data unit are different. The frequency information of the carrier signal is determined according to the target radio frequency signal, and the target time when the protocol data unit appears in the target radio frequency signal is determined according to the frequency information. The demodulation process of the protocol data unit is started at the target time. Since the modulation modes for the physical layer frame header and the protocol data unit are different when the Bluetooth data packet is modulated on the carrier signal to obtain the target radio frequency signal, after the first Bluetooth device receives the target radio frequency signal sent by the second Bluetooth device, the demodulation modes used for the physical layer frame header and the protocol data unit are also different, and before executing the demodulation process for the protocol data unit, data synchronization is required between the first Bluetooth device and the second Bluetooth device. Then, firstly, the first Bluetooth device can determine the frequency information of the carrier signal according to the received target radio frequency signal. Secondly, the target time when the protocol data unit appears in the target radio frequency signal can be determined according to the frequency information. In this way, data synchronization can be achieved between the first Bluetooth device and the second Bluetooth device according to the target time when the protocol data unit appears in the target radio frequency signal.
[0131] Furthermore, by starting to execute the demodulation process of the protocol data unit at the target time, that is, using the demodulation method of the protocol data unit for demodulation, it is possible to accurately demodulate the Bluetooth data packet under the premise that the synchronization sequence is not included in the Bluetooth data packet. Since the Bluetooth data packet in the present application does not include the synchronization sequence, it is obvious that the structural overhead or bit overhead of the data packet is reduced. Furthermore, resource occupation is reduced and data transmission efficiency is improved.
[0132] It should be understood that, although the various steps in the above-mentioned flow chart are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the above-mentioned flow chart may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these sub-steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.
[0133] In one embodiment, a data processing apparatus is provided, which is applied to a first Bluetooth device, such as Fig.10 As shown, the data processing device 1000 includes:
[0134] The RF signal receiving module 1020 is used to receive a target RF signal sent by a second Bluetooth device; the target RF signal is a signal obtained by modulating a Bluetooth data packet on a carrier signal; the Bluetooth data packet includes a physical layer frame header and a protocol data unit, and the protocol data unit includes a data payload; and the modulation method of the physical layer frame header and the protocol data unit is different;
[0135] A target time determination module 1040, configured to determine frequency information of a carrier signal according to a target radio frequency signal, and determine a target time at which a protocol data unit appears in the target radio frequency signal according to the frequency information;
[0136] The demodulation module 1060 is used to start executing the demodulation process of the protocol data unit at the target time.
[0137] In one embodiment, the physical layer frame header is modulated by a first modulation method, the protocol data unit is modulated by a second modulation method, and the carrier frequency corresponding to the first modulation method is different from the carrier frequency corresponding to the second modulation method; the target time determination module 1040 is used to determine the time when the carrier frequency corresponding to the second modulation method occurs based on the frequency information; and the time when the carrier frequency corresponding to the second modulation method occurs is used as the target time.
[0138] In one embodiment, the target time determination module 1040 includes:
[0139] A spectrum feature determination unit, used to extract spectrum features from the target radio frequency signal to obtain the spectrum features of the target radio frequency signal;
[0140] The frequency information acquisition unit is used to acquire the frequency information of the carrier signal according to the frequency spectrum characteristics of the target radio frequency signal.
[0141] In one embodiment, the spectrum feature determination unit is further used to perform windowing processing on the target RF signal using a preset window function to obtain a windowed target RF signal; and perform Fourier transform processing on the windowed target RF signal to obtain the spectrum feature of the target RF signal.
[0142] In one embodiment, a data processing device is provided, further comprising:
[0143] The first modulation module is used to adopt a first demodulation method to execute a demodulation process for the physical layer frame header; the first demodulation method corresponds to the first modulation method.
[0144] In one embodiment, the Bluetooth data packet further includes an interval sequence, the interval sequence is located between the physical layer frame header and the protocol data unit, and the interval sequence is adjacent to both the physical layer frame header and the protocol data unit.
[0145] In one embodiment, the demodulation module 1060 includes:
[0146] A demodulation mode switching unit, used for switching the first demodulation mode to a second demodulation mode within the interval sequence; the second demodulation mode corresponds to the second modulation mode;
[0147] A time synchronization unit, used to perform time synchronization between the first Bluetooth device and the second Bluetooth device on the radio frequency signal corresponding to the protocol data unit in the target radio frequency signal according to the target time, and obtain the radio frequency signal corresponding to the synchronized protocol data unit;
[0148] The demodulation unit is used to adopt the second demodulation mode at the target time to demodulate the radio frequency signal corresponding to the synchronized protocol data unit.
[0149] In one embodiment, the first digital modulation method includes a Gaussian frequency shift keying modulation method, and the second digital modulation method includes a differential phase shift keying modulation method.
[0150] In one embodiment, a chip is provided, including a processor, wherein the processor is configured to execute the above data processing method.
[0151] The division of the various modules in the above-mentioned data processing device is only for illustration. In other embodiments, the data processing device may be divided into different modules as needed to complete all or part of the functions of the above-mentioned data processing device.
[0152] For the specific definition of the data processing device, please refer to the definition of the data processing method above, which will not be repeated here. Each module in the above data processing device can be implemented in whole or in part by software, hardware and a combination thereof. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0153] Fig.11Schematic diagram of the internal structure of a Bluetooth device in an embodiment. The Bluetooth device can be any terminal device such as a mobile phone, a tablet computer, a laptop computer, a desktop computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), a car computer, a wearable device, etc. The Bluetooth device includes a processor and a memory connected via a system bus. Among them, the processor may include one or more processing units. The processor may be a CPU (Central Processing Unit) or a DSP (Digital Signal Processing), etc. The memory may include a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The computer program can be executed by the processor to implement a data processing method provided in each of the following embodiments. The internal memory provides a cache operating environment for the operating system computer program in the non-volatile storage medium.
[0154] The implementation of each module in the data processing device provided in the embodiment of the present application can be in the form of a computer program. The computer program can be run on a Bluetooth device. The program module constituted by the computer program can be stored in the memory of the Bluetooth device. When the computer program is executed by the processor, the steps of the method described in the embodiment of the present application are implemented.
[0155] The embodiment of the present application also provides a computer-readable storage medium, which is one or more non-volatile computer-readable storage media containing computer-executable instructions, and when the computer-executable instructions are executed by one or more processors, the processors execute the steps of the data processing method.
[0156] The embodiment of the present application also provides a computer program product including instructions, which, when executed on a computer, enables the computer to execute the data processing method.
[0157] Any reference to memory, storage, database or other medium used in this application may include non-volatile and / or volatile memory. Non-volatile memory may include ROM (Read-Only Memory), PROM (Programmable Read-only Memory), EPROM (Erasable Programmable Read-Only Memory), EEPROM (Electrically Erasable Programmable Read-only Memory) or flash memory. Volatile memory may include RAM (Random Access Memory), which is used as an external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as SRAM (Static Random Access Memory), DRAM (Dynamic Random Access Memory), SDRAM (Synchronous Dynamic Random Access Memory), Double Data Rate DDRSDRAM (Double Data Rate Synchronous Dynamic Random Access memory), ESDRAM (Enhanced Synchronous Dynamic Random Access memory), SLDRAM (Sync Link Dynamic Random Access Memory), RDRAM (Rambus Dynamic Random Access Memory), and DRDRAM (Direct Rambus Dynamic Random Access Memory).
[0158] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A data processing method, characterized in that: Applied to a first Bluetooth device, the method includes: Receive a target radio frequency signal sent by a second Bluetooth device; the target radio frequency signal is a signal obtained by modulating a Bluetooth data packet on a carrier signal; the Bluetooth data packet includes a physical layer frame header and a protocol data unit, the protocol data unit includes a data payload; and the modulation method of the physical layer frame header and the protocol data unit is different; Determine frequency information of the carrier signal according to the target radio frequency signal, and determine a target time when the protocol data unit appears in the target radio frequency signal according to the frequency information; A demodulation process for the protocol data unit is started at the target time.
2. The method according to claim 1, characterized in that The physical layer frame header is modulated by a first modulation mode, the protocol data unit is modulated by a second modulation mode, and a carrier frequency corresponding to the first modulation mode is different from a carrier frequency corresponding to the second modulation mode; and determining a target time when the protocol data unit appears in the target radio frequency signal according to the frequency information includes: Determine, according to the frequency information, a time instant at which a carrier frequency corresponding to the second modulation mode occurs; The time when the carrier frequency corresponding to the second modulation method appears is used as the target time.
3. The method according to claim 2, characterized in that The determining the frequency information of the carrier signal according to the target radio frequency signal includes: Extracting frequency spectrum features from the target radio frequency signal to obtain frequency spectrum features of the target radio frequency signal; The frequency information of the carrier signal is acquired according to the frequency spectrum characteristics of the target radio frequency signal.
4. The method according to claim 3, characterized in that The performing short-time Fourier transform processing on the target radio frequency signal to obtain the frequency spectrum characteristics of the target radio frequency signal includes: Performing windowing processing on the target radio frequency signal using a preset window function to obtain a windowed target radio frequency signal; Performing Fourier transform processing on the windowed target radio frequency signal to obtain a frequency spectrum feature of the target radio frequency signal.
5. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: A first demodulation method is adopted to execute a demodulation process for the physical layer frame header; the first demodulation method corresponds to the first modulation method.
6. The method according to claim 5, characterized in that The Bluetooth data packet further includes an interval sequence, wherein the interval sequence is located between the physical layer frame header and the protocol data unit, and the interval sequence is adjacent to both the physical layer frame header and the protocol data unit.
7. The method according to claim 6, characterized in that The step of starting to perform a demodulation process on the protocol data unit at the target time includes: Switching the first demodulation mode to a second demodulation mode within the interval sequence; the second demodulation mode corresponds to the second modulation mode; According to the target time, time-synchronize the radio frequency signal corresponding to the protocol data unit in the target radio frequency signal between the first Bluetooth device and the second Bluetooth device to obtain a synchronized radio frequency signal corresponding to the protocol data unit; The second demodulation mode is adopted starting at the target time to demodulate the radio frequency signal corresponding to the synchronized protocol data unit.
8. The method according to claim 2, characterized in that: The first digital modulation method includes a frequency shift keying modulation method or a Gaussian frequency shift keying modulation method, and the second digital modulation method includes an amplitude shift keying modulation method or a differential phase shift keying modulation method.
9. The method according to claim 8, characterized in that The differential phase shift keying modulation mode includes a four-phase differential phase shift keying modulation mode or an eight-phase differential phase shift keying modulation mode.
10. A data processing device, characterized in that: Applied to a first Bluetooth device, the apparatus comprises: A radio frequency signal receiving module, used to receive a target radio frequency signal sent by a second Bluetooth device; the target radio frequency signal is a signal obtained by modulating a Bluetooth data packet on a carrier signal; the Bluetooth data packet includes a physical layer frame header and a protocol data unit, and the protocol data unit includes a data payload; and the modulation method of the physical layer frame header and the protocol data unit is different; a target time determination module, configured to determine frequency information of the carrier signal according to the target radio frequency signal, and determine a target time at which the protocol data unit appears in the target radio frequency signal according to the frequency information; The demodulation module is used to start executing the demodulation process of the protocol data unit at the target time.
11. A chip, comprising a processor, characterized in that: The processor is configured to execute the data processing method according to any one of claims 1 to 9.
12. A Bluetooth device, comprising a memory and a processor, wherein a computer program is stored in the memory, wherein: When the computer program is executed by the processor, the processor is caused to perform the steps of the data processing method according to any one of claims 1 to 9.
13. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the data processing method according to any one of claims 1 to 9 are implemented.
14. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the data processing method according to any one of claims 1 to 9 are implemented.