A data processing method, device and electronic equipment
By setting consistent and alternating bit values for the preamble and access code in Bluetooth data frames, combined with GFSK modulation and a rate indication field, the problem of difficulty in distinguishing frames in Bluetooth data transmission is solved, achieving higher data transmission accuracy and adaptability, and meeting various rate requirements in high-speed transmission scenarios.
Patent Information
- Application Number
- CN202210101406.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-27
- Publication Date
- 2025-10-24
- Estimated Expiration
- 2042-01-27
AI Technical Summary
During Bluetooth data transmission, it is difficult to distinguish adjacent data frames, resulting in data transmission errors and reducing user experience.
By designing the data frame structure, the value of the last bit in the preamble field is the same as the value of the first bit in the access code field, and the bit pattern of the preamble field is set to alternate between 0 and 1. Combined with Gaussian Frequency Shift Keying (GFSK) modulation, a data frame is generated, and a rate indicator field is added to the data frame to indicate the modulation method, bandwidth and code rate, so as to meet the needs of Bluetooth high-speed transmission scenarios.
It effectively distinguishes data frames, reduces the probability of data misprocessing, improves the accuracy and adaptability of Bluetooth data transmission, and meets the various transmission rate requirements of high-speed Bluetooth transmission.
Smart Images

Figure CN116567595B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of communication, and in particular to a data processing method and device and electronic equipment. BACKGROUND
[0002] Bluetooth is a short-range wireless communication technology specification, and its working frequency band is generally the globally unified and open 2.4 GHz industrial, scientific and medical (ISM) frequency band. Bluetooth can be integrated into most devices due to its small size and low power. At present, in the process of transmitting data by using Bluetooth, it is often difficult to distinguish adjacent data frames, resulting in data transmission errors and reducing user experience. SUMMARY
[0003] The present application provides a data processing method and device, electronic equipment, computer storage medium and computer program product, which can conveniently distinguish adjacent data frames in the process of transmitting data by using Bluetooth, and reduce the probability of data misprocessing.
[0004] In a first aspect, the present application provides a data processing method, which comprises: generating a data frame, wherein the data frame comprises a preamble field and an access code field, the value of the last bit in the preamble field is the same as the value of the first bit in the access code field, and the form of the bits in the preamble field is 0 / 1 alternation; and transmitting the data frame by using Bluetooth.
[0005] In this way, by setting the form of the bits in the preamble field in the data frame as 0 / 1 alternation and setting the value of the last bit in the preamble field as the same as the value of the first bit in the access code field, the preamble field and the access code field in the data frame can be easily distinguished, so that the content contained in the data frame can be accurately processed, and the probability of data misprocessing is reduced.
[0006] In a possible implementation, the number of bits in the preamble field is 8 bits or 16 bits.
[0007] In a possible implementation, the data frame further comprises a header field, and the header field comprises a rate indication field, which is used to indicate at least one of a modulation mode, a bandwidth, a transmission rate and a code rate. In this way, by using the RI field to indicate the corresponding modulation mode, bandwidth, transmission rate and / or code rate, different modulation modes, bandwidths, transmission rates and / or code rates can be used to modulate, transmit and / or encode the data to be transmitted, and a plurality of different MCS levels can be obtained, so that a plurality of transmission rates can be formed in the Bluetooth high-speed transmission scenario, thereby meeting the data transmission in the Bluetooth high-speed transmission scenario.
[0008] In a possible implementation, the number of bits of the bit in the rate indication field is N bits, and N is greater than or equal to 3.
[0009] In a possible implementation, the preamble field and the access code field are modulated by a Gaussian frequency shift keying (GFSK) modulation mode.
[0010] In a possible implementation, the number of bits of the bit in the rate indication field is N bits, and N is greater than or equal to 3.
[0011] In a possible implementation, the number of bits of the bit in the preamble field is 8 bits or 16 bits.
[0012] In a possible implementation, the data frame further includes a header field, and the header field includes a rate indication field, where the rate indication field is used to indicate at least one of a modulation mode, a bandwidth, a transmission rate, and a code rate.
[0013] In a possible implementation, the number of bits of the bit in the rate indication field is N bits, and N is greater than or equal to 3.
[0014] In a possible implementation, the preamble field and the access code field are modulated by a Gaussian frequency shift keying (GFSK) modulation mode.
[0015] In a possible implementation, the number of bits of the bit in the rate indication field is N bits, and N is greater than or equal to 3.
[0016] In a possible implementation, the number of bits of the bit in the preamble field is 8 bits or 16 bits.
[0017] In a possible implementation, the data frame further includes a header field, and the header field includes a rate indication field, where the rate indication field is used to indicate at least one of a modulation mode, a bandwidth, a transmission rate, and a code rate.
[0018] In a possible implementation, the number of bits of the bit in the rate indication field is N bits, and N is greater than or equal to 3.
[0019] In a fourth aspect, the present application provides a data processing apparatus, comprising: a processing unit, configured to generate a data frame, wherein the data frame comprises a preamble field and an access code field, a value of a last bit in the preamble field is the same as a value of a first bit in the access code field, and a pattern of bits in the preamble field is 0 / 1 alternation; and a communication unit, configured to send the data frame.
[0020] In a possible implementation, a number of bits in the preamble field is 8 bits or 16 bits.
[0021] In a possible implementation, the data frame further comprises a header field, and the header field comprises a rate indication field, the rate indication field being used to indicate at least one of a modulation mode, a bandwidth, a transmission rate and a code rate.
[0022] In a possible implementation, a number of bits in the rate indication field is N bits, and N is greater than or equal to 3.
[0023] In a possible implementation, the preamble field and the access code field are modulated by a Gaussian frequency shift keying (GFSK) modulation mode.
[0024] In a fifth aspect, the present application provides a data processing apparatus, comprising: a communication unit, configured to receive a data frame, wherein the data frame comprises a preamble field and an access code field, a value of a last bit in the preamble field is the same as a value of a first bit in the access code field, and a pattern of bits in the preamble field is 0 / 1 alternation.
[0025] In a possible implementation, a number of bits in the preamble field is 8 bits or 16 bits.
[0026] In a possible implementation, the data frame further comprises a header field, and the header field comprises a rate indication field, the rate indication field being used to indicate at least one of a modulation mode, a bandwidth, a transmission rate and a code rate.
[0027] In a possible implementation, a number of bits in the rate indication field is N bits, and N is greater than or equal to 3.
[0028] In a possible implementation, the preamble field and the access code field are modulated by a Gaussian frequency shift keying (GFSK) modulation mode.
[0029] In a sixth aspect, the present application provides an electronic device control apparatus, comprising: at least one memory, configured to store a program; and at least one processor, configured to execute the program stored in the memory, and when the program stored in the memory is executed, the processor is configured to execute the method provided in the first aspect or the second aspect.
[0030] In a seventh aspect, the present application provides an electronic device, comprising at least one memory for storing a program and at least one processor for executing the program stored in the memory. When the program stored in the memory is executed, the processor is configured to perform the method provided in the first aspect or the second aspect.
[0031] In an eighth aspect, the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is run on an electronic device, the electronic device is caused to perform the method provided in the first aspect or the second aspect.
[0032] In a ninth aspect, the present application provides a computer program product, which causes an electronic device to perform the method provided in the first aspect or the second aspect when the computer program product is run on the electronic device.
[0033] It can be understood that the beneficial effects of the above-mentioned second aspect to ninth aspect can be referred to the related description in the first aspect, which will not be repeated here. BRIEF DESCRIPTION OF DRAWINGS
[0034] Figure 1 is a structure schematic diagram of a data frame provided by an embodiment of the present application;
[0035] Figure 2 is a structure schematic diagram of a preamble and an access code in a data frame provided by an embodiment of the present application;
[0036] Figure 3 is a structure schematic diagram of a preamble and an access code in another data frame provided by an embodiment of the present application;
[0037] Figure 4 is a structure schematic diagram of another data frame provided by an embodiment of the present application;
[0038] Figure 5 is a structure schematic diagram of another data frame provided by an embodiment of the present application;
[0039] Figure 6 is a process schematic diagram of a data processing method provided by an embodiment of the present application. DETAILED DESCRIPTION
[0040] The term “and / or” in this document is a description of an association relationship between associated objects, which means that there can be three relationships, for example, A and / or B can represent the following three cases: A exists alone, A and B exist together, and B exists alone. The symbol “ / ” in this document represents an or relationship of associated objects, for example, A / B represents A or B.
[0041] The terms "first" and "second" and the like in the description and in the claims of this application are used for distinguishing between similar objects and are not necessarily used to describe a particular sequential or chronological order. For example, the first response message and the second response message are used for distinguishing between different response messages, and are not used to describe a particular sequential or chronological order of the response messages.
[0042] In this application, the terms "exemplary" and "for example" are used to mean "an example of" or "an example, only. Any implementation described herein as "exemplary" or "for example" is not necessarily to be construed as preferred or advantageous over other implementations. The terms "exemplary" and "for example" are intended to be used as tools for structuring this application. It is further intended that the use of these terms in this application is not related to a preference or advantage of one implementation over another.
[0043] In the description of the embodiments of this application, unless otherwise specified, "multiple" means two or more, for example, multiple processing units means two or more processing units, and the like; multiple elements means two or more elements, and the like.
[0044] For example, when using the Bluetooth low energy (BLE) protocol and transmitting data through Bluetooth, it is generally necessary to use Gaussian frequency shift keying (GFSK) to modulate the data to be transmitted to obtain a data frame, and send the data frame to other receiving devices. The GFSK modulation method uses different frequencies to represent 0 or 1. Generally, increasing the frequency by a certain value represents 1, and vice versa. Since GFSK represents information by frequency change, and Bluetooth devices need power when changing frequency, the frequency change of GFSK needs to maintain a small value in the definition of existing Bluetooth to meet the performance of using low-cost devices. However, since the frequency modulation index of the signal is not accurately estimated in the actual transmission process, and since the frequency change affects the temperature of the hardware, after a certain period of time, due to the change in temperature of the Bluetooth device, it will cause the receiving end to be unable to accurately estimate. In order to avoid this situation, the preamble of the frame structure in this application can be designed to use the 0, 1 alternation method to increase the amplitude of the frequency change, and reduce the influence of the change in temperature of the Bluetooth device, reduce the probability of unclear preamble caused by ambiguous phase in the transmission process, thereby improving the transmission performance of the data frame itself.
[0045] For example, the structure of the data frame obtained by GFSK modulation can be as shown in Figure 1 Figure 1 In the BLE protocol, the preamble is mainly used to identify the data of each frame, and can also be regarded as separating two data frames. The length of the preamble is related to the performance of the Bluetooth. The longer the preamble, the clearer the distinction between frames, but the longer the time delay. The shorter the preamble, the lower the time delay, but the more ambiguous the distinction between frames. For example, Figure 1 In the BLE protocol, the preamble can be an alternating sequence of 8 bits, such as 01010101 or 10101010. The sequence of bits in the preamble mainly depends on the first bit of the access code. The last bit in the preamble is different from the first bit in the access code. For example, if the first bit of the access code is 0, the bit sequence in the preamble is 01010101. If the first bit of the access code is 1, the bit sequence in the preamble is 10101010. In some embodiments, the preamble can also be 16 bits, or other number of bits.
[0046] The access code (AC) is mainly used by the receiving device to identify the received packet. The access code can be a field of 68 or 72 bits.
[0047] The protocol data unit (PDU) mainly refers to the data unit transmitted between peer layers. The protocol data unit can include a header, data length, and data.
[0048] The check code is mainly used for error detection of data transmission. For example, the check code can be a cyclic redundancy check (CRC).
[0049] Continuing to refer to Figure 1 Because the BLE protocol specifies that the last bit in the preamble is different from the first bit in the access code, and the 0 / 1 alternating form is used in the preamble. Therefore, it is difficult to distinguish between the preamble and the access code, which further leads to difficulty in distinguishing between two data frames, resulting in data recognition errors. For example, as shown in Figure 2 The bit sequence in the preamble is "01010101", and the first bit in the access code is "0". When identifying the preamble, the alternating 0 and 1 can be regarded as bits in the preamble, which makes it easy to regard the first bit in the access code as a bit in the preamble, and further leads to data recognition errors.
[0050] In order to distinguish the preamble and the access code in the data frame when transmitting data using Bluetooth, the last bit in the preamble and the first bit in the access code are set to the same value in the embodiments of the present application, that is, they are the same. For example, as shown in Figure 3As shown in (A), if the bit sequence in the preamble is "01010101", the first bit in the access code is 1; Figure 3 As shown in (B), if the bit sequence in the preamble is "10101010", the first bit in the access code is 0. Since the bit sequence in the preamble is in the form of alternating 0 / 1, when the 0 / 1 alternation no longer occurs, it indicates that the recognition of the preamble has ended and the recognition of the access code begins. This makes it easy to distinguish between the preamble and the access code, making it easier to distinguish between two adjacent data frames, reducing the error rate of data recognition.
[0051] In some embodiments, in order to meet the requirements of Bluetooth high-speed transmission scenarios, such as improving the Bluetooth transmission rate, the number of bits in the preamble can be increased in this scenario. For example, the number of bits in the preamble can be increased from 8 bits to 16 bits, etc., to ensure the distinction between longer data frame transmissions.
[0052] In some embodiments, Bluetooth data transmission often uses a fixed rate (such as 2 Mbps or 4 Mbps). This suffices for encoding and modulating the data to be transmitted, requiring only a fixed rate and / or modulation scheme. However, in Bluetooth HDT scenarios, multiple transmission rates exist, as the scenario supports multiple modulation and coding scheme (MCS) levels. This makes current transmission methods difficult to meet Bluetooth HDT requirements. To address this issue, embodiments of the present application add a rate indicator (RI) field to the data frame. The RI field primarily indicates the modulation scheme, bandwidth, transmission rate, and / or bit rate. By using the RI field to indicate the desired modulation scheme, bandwidth, transmission rate, and / or bit rate, different modulation schemes, bandwidths, transmission rates, and / or bit rates can be used for modulation, transmission, and / or encoding of the data to be transmitted, as well as achieving multiple MCS levels. This allows for multiple transmission rates within Bluetooth HDT scenarios, ensuring data transmission within these scenarios. In addition, the RI field can be used to change the rate and / or modulation mode without signaling, thereby improving the convenience of data transmission.
[0053] For example, Figure 4 Figure 2 shows a data frame structure. Figure 4As shown, the data frame mainly includes: a preamble, an access code (AC), a protocol data unit (PDU) and a check code (CRC). The protocol data unit (PDU) mainly includes a header and a data payload. The header mainly includes a rate indication (RI) field, a next expected sequence number (NESN), a sequence number (SN) and a header error control (HEC) field.
[0054] The RI field is used to indicate the modulation mode and code rate of the subsequent data. For example, Table 1 provides a possible way of indicating the MCS level by the RI field under a fixed bandwidth. In Table 1, the possible selection of the RI field includes 8 combinations from the rate of 2Mbps to 8Mbps. In Table 1, QPSK is quadrature phase shift keying, 8PSK is 8 phase shift keying, and 16QAM is quadrature amplitude modulation. In the first combination in Table 1, the transmission rate is 2Mbps, the modulation mode is QPSK, the code rate is 1 / 2, and the content of the RI field is 000. It can be understood that, since Table 1 is under a fixed bandwidth, the bandwidth does not need to be indicated.
[0055] Table 1
[0056] RI Rate (Mbps) Modulation Code rate Content of the RI field 0 2 QPSK 1 / 2 000 1 3 QPSK 3 / 4 001 2 4 QPSK 1 010 3 5 8PSK 5 / 6 011 4 6 8PSK 1 100 5 6 16QAM 3 / 4 101 6 7 16QAM 7 / 8 110 7 8 16QAM 1 111
[0057] For example, Table 2 provides a possible way of indicating the MCS level by the RI field under a variable bandwidth. In Table 2, the bit width of the RI field can be, but is not limited to, 4 bits, which is represented as: X (indicating the bandwidth) XXX (indicating the modulation mode and the code rate). Table 2 only lists one possible representation of the RI field, for example, 0XXX represents a bandwidth of 2, and 1XXX represents a bandwidth of 4. The bit width and other contents of the indication of the MCS level for the bandwidth can have more forms of representation. In the first combination in Table 2, the bandwidth is 2, the transmission rate is 2Mbps, the modulation mode is QPSK, the code rate is 1 / 2, and the content of the RI field is 0000. It can be understood that, since Table 2 is under a variable bandwidth, the bandwidth needs to be indicated; in addition, in this case, Bluetooth can support multiple bandwidths.
[0058] Table 2
[0059]
[0060]
[0061] The expected sequence number (NESN) is used to indicate the sequence number of the next data frame. The sequence number (SN) is used to indicate the sequence numbers of consecutive frames. The header error control (HEC) field is used to provide error detection and correction information about bit errors.
[0062] For example, Figure 5 Shows another data frame structure. Figure 5 As shown, the data frame includes a preamble, an access code (AC), a header, a guard interval (guard), a synchronous code (Sync), a data payload (payload), a check code (CRC), and a trailer. The header may include an RI field, an expected sequence number (NESN), a sequence number (SN), a header error control (HEC) field, and a zero padding field. Exemplarily, the preamble, access code (AC), and header may be transmitted using GFSK modulation; the synchronous code (Sync), data payload, and check code (CRC) may be transmitted using the modulation mode, bandwidth, transmission rate, and code rate indicated by the RI field in the header, i.e., using the bandwidth and MCS indicated by the RI field.
[0063] It is understood that the structure of the data frame illustrated in the embodiment of the present application does not constitute a specific limitation on the data frame. In other embodiments of the present application, the data frame may include more or fewer fields than those illustrated above.
[0064] Next, based on the content described above, a data processing method provided by this application is introduced.
[0065] For example, Figure 6 A flow chart of a data processing method is shown. Figure 6 In the embodiment, both the first device and the second device may be configured with a Bluetooth module so that the two can communicate via Bluetooth. For example, the Bluetooth communication scenario between the first device and the second device may be a Bluetooth high-speed transmission scenario. For example, both the first device and the second device may be, but are not limited to, electronic devices such as mobile phones, televisions, and computers. Figure 6 As shown, the data processing method may include the following steps:
[0066] S601. The first device generates a data frame, wherein the data frame comprises a preamble field and an access code field, a value of a last bit in the preamble field is the same as a value of a first bit in the access code field, and a pattern of bits in the preamble field is 0 / 1 alternation.
[0067] Specifically, when generating the data frame, the first device can generate the preamble, the access code and the header in the data frame by a modulation mode of GFSK, and process the to-be-transmitted data according to a modulation mode, a bandwidth, a transmission rate and / or a code rate and the like obtained in advance or in other manners (such as determined by a transmission quality of a channel or determined by an upper layer protocol, etc.) to generate the data in the data frame. The data frame comprises the preamble field and the access code field, the value of the last bit in the preamble field is the same as the value of the first bit in the access code field, and the pattern of the bits in the preamble field is 0 / 1 alternation. Exemplarily, the preamble field can be understood as the preamble described above, and the access code field can be understood as the access code described above. Exemplarily, the data frame can further comprise the PDU described above.
[0068] S602. The first device transmits the data frame.
[0069] Specifically, after generating the data frame, the first device can transmit the data frame to the second device through Bluetooth thereon.
[0070] S603. The second device receives the data frame.
[0071] Specifically, after the first device transmits the data frame to the second device through Bluetooth, the second device can receive the data frame through Bluetooth thereon. Exemplarily, when receiving the data frame, the second device can distinguish the data frame from the previous data frame through the preamble and the access code in the data frame.
[0072] Thus, when communicating, the first device sets the pattern of the bits in the preamble field in the data frame transmitted by the first device to 0 / 1 alternation, and sets the value of the last bit in the preamble field to be the same as the value of the first bit in the access code field, so that the second device can easily distinguish the preamble field and the access code field in the data frame when obtaining the data frame, and thus can accurately process the content contained in the data frame, thereby reducing the probability of data misprocessing.
[0073] In some embodiments, the number of bits in the preamble field can be 16 bits to ensure the distinction for longer data frame transmission.
[0074] In some embodiments, the data frame generated by the first device can further include a header field (which can be understood as the header described above), and the header field can include the rate indication (RI) field described above. In this way, the corresponding modulation mode, bandwidth, transmission rate and / or code rate can be indicated by the RI field, so that the transmitted data can be modulated, transmitted and / or encoded using different modulation modes, bandwidths, transmission rates and / or code rates, and a plurality of different MCS levels can be obtained, thereby forming a plurality of transmission rates in the Bluetooth high-speed transmission scenario, and meeting the data transmission in the Bluetooth high-speed transmission scenario. For example, when the second device receives the data frame, it can also learn the corresponding modulation mode, bandwidth, transmission rate and / or code rate according to the RI field in the header field of the data frame, and then receive and process the data frame by the corresponding modulation mode, receiving bandwidth and / or decoding rate, so as to obtain the required data.
[0075] Based on the method in the above embodiments, the application further provides a data processing apparatus. The apparatus can include a processing unit and a communication unit. The processing unit is configured to generate a data frame, the data frame including a preamble field and an access code field, the value of the last bit in the preamble field being the same as the value of the first bit in the access code field, and the bits in the preamble field being in the form of 0 / 1 alternation. The communication unit is configured to send the data frame. For example, the processing unit can be a processor, and the communication unit can be a Bluetooth module.
[0076] In one embodiment, the number of bits in the preamble field is 8 bits or 16 bits.
[0077] In one embodiment, the data frame further includes a header field, and the header field includes a rate indication field, the rate indication field being used to indicate at least one of a modulation mode, a bandwidth, a transmission rate and a code rate.
[0078] In one embodiment, the number of bits in the rate indication field is N bits, and N≥3.
[0079] In one embodiment, the preamble field and the access code field are modulated by a Gaussian frequency shift keying (GFSK) modulation mode.
[0080] It should be understood that the above apparatus is used to execute the method in the above embodiments, and the corresponding program modules in the apparatus have similar implementation principles and technical effects to those described in the above method. The working process of the apparatus can refer to the corresponding process in the above method, and will not be described here.
[0081] Based on the method in the above embodiment, the application further provides another data processing device. The device can include a communication unit. The communication unit can be used to receive a data frame, the data frame including a preamble field and an access code field, the value of the last bit in the preamble field being the same as the value of the first bit in the access code field, and the form of the bits in the preamble field being 0 / 1 alternation. The communication unit can be a Bluetooth module, for example.
[0082] In one embodiment, the number of bits in the bits in the preamble field is 8 bits or 16 bits.
[0083] In one embodiment, the data frame further includes a header field, and the header field includes a rate indication field, the rate indication field being used to indicate at least one of a modulation mode, a bandwidth, a transmission rate and a code rate.
[0084] In one embodiment, the number of bits in the bits in the rate indication field is N bits, N≥3.
[0085] In one embodiment, the preamble field and the access code field are modulated by a Gaussian frequency shift keying (GFSK) modulation mode.
[0086] It should be understood that the above device is used to execute the method in the above embodiment, and the corresponding program modules in the device have similar implementation principles and technical effects to those described in the above method, and the working process of the device can refer to the corresponding process in the above method, which will not be described here.
[0087] It can be understood that the processor in the embodiments of the application can be a central processing unit (CPU), and can also be other general-purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field programmable gate arrays (FPGAs) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. The general-purpose processor can be a microprocessor or any conventional processor.
[0088] The method steps in the embodiments of the present application can be implemented by hardware, or by a combination of software and hardware executed by a processor. The software instructions can be composed of a corresponding software module, which can be stored in a random access memory (RAM), a flash memory, a read-only memory (ROM), a programmable read-only memory (PROM), an erasable PROM (EPROM), an electrically EPROM (EEPROM), a register, a hard disk, a mobile hard disk, a CD-ROM, or any other form of storage medium well known in the art. An exemplary storage medium is coupled to a processor, so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an ASIC.
[0089] In the above embodiments, all or part of the embodiments can be implemented by software, hardware, firmware, or any combination thereof. When implemented by software, all or part of the embodiments can be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium or transmitted by the computer-readable storage medium. The computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center by wire (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. integrated with one or more available media. The available media can be a magnetic medium (for example, a floppy disk, a hard disk, a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid state disk (SSD)), etc.
[0090] It can be understood that the various numerical numbers involved in the embodiments of the present application are only for the convenience of differentiation, and are not used to limit the scope of the embodiments of the present application.
Claims
1. A data processing method, characterized by, The method comprises: generating a data frame, wherein the data frame comprises a preamble field and an access code field, a value of a last bit in the preamble field is the same as a value of a first bit in the access code field, and a form of bits in the preamble field is 0 / 1 alternation; sending the data frame through Bluetooth.
2. The method of claim 1, wherein, A bit number of the bits in the preamble field is 8 bits or 16 bits.
3. The method according to claim 1 or 2, characterized in that, The data frame further comprises a header field, and the header field comprises a rate indication field, the rate indication field being used to indicate at least one of a modulation mode, a bandwidth, a transmission rate and a code rate.
4. The method of claim 3, wherein, A bit number of the bits in the rate indication field is N bits, N≥3.
5. The method according to any of claims 1 to 4, characterized in that, The preamble field and the access code field are modulated by a Gaussian frequency shift keying (GFSK) modulation mode.
6. A data processing method, characterized by, The method comprises: receiving a data frame through Bluetooth, the data frame comprising a preamble field and an access code field, a value of a last bit in the preamble field being the same as a value of a first bit in the access code field, and a form of bits in the preamble field being 0 / 1 alternation.
7. The method of claim 6, wherein, A bit number of the bits in the preamble field is 8 bits or 16 bits.
8. The method according to claim 6 or 7, characterized in that, The data frame further comprises a header field, and the header field comprises a rate indication field, the rate indication field being used to indicate at least one of a modulation mode, a bandwidth, a transmission rate and a code rate.
9. The method of claim 8, wherein, A bit number of the bits in the rate indication field is N bits, N≥3.
10. The method according to any of claims 6-9, characterized by, The preamble field and the access code field are modulated by a Gaussian frequency shift keying (GFSK) modulation mode.
11. A data frame structure, characterized by Comprise: a preamble field and an access code field, wherein a value of a last bit in the preamble field is the same as a value of a first bit in the access code field, and a form of bits in the preamble field is 0 / 1 alternation.
12. The data frame structure of claim 11, wherein, A bit number of the bits in the preamble field is 8 bits or 16 bits.
13. The data frame structure of claim 11 or 12, wherein, The data frame further comprises a header field, and the header field comprises a rate indication field, the rate indication field being used to indicate at least one of a modulation mode, a bandwidth, a transmission rate and a code rate.
14. The data frame structure of claim 13, wherein, A bit number of the bits in the rate indication field is N bits, N≥3.
15. A data processing apparatus, characterized by: The apparatus comprises: a processing unit configured to generate a data frame, wherein the data frame comprises a preamble field and an access code field, a value of a last bit in the preamble field is the same as a value of a first bit in the access code field, and a form of bits in the preamble field is 0 / 1 alternation; a communication unit configured to send the data frame.
16. A data processing apparatus, characterized by The apparatus comprises: a communication unit configured to receive a data frame, the data frame comprising a preamble field and an access code field, a value of a last bit in the preamble field being the same as a value of a first bit in the access code field, and a form of bits in the preamble field being 0 / 1 alternation.
17. An electronic device, comprising: Comprise at least one memory configured to store a program; at least one processor configured to execute the program stored in the memory; wherein, when the program stored in the memory is executed, the processor is configured to execute the method in any one of claims 1-5, or execute the method in any one of claims 6-10.
18. A computer readable storage medium, storing a computer program, which, when executed on an electronic device, causes the electronic device to perform the method according to any one of claims 1-5, or, to perform the method according to any one of claims 6-10.
19. A computer program product, characterised in that, The computer program product, when executed on an electronic device, causes the electronic device to perform the method according to any one of claims 1-5, or, to perform the method according to any one of claims 6-10.
Citation Information
Patent Citations
Wake up lead code generation method, synchronization method and synchronization device
CN107969029A
Robust radio packet acquisition in the presence of continuous wave interference
US20190238309A1