Movatterモバイル変換


[0]ホーム

URL:


CN116567595A - A data processing method, device and electronic equipment - Google Patents

A data processing method, device and electronic equipment
Download PDF

Info

Publication number
CN116567595A
CN116567595ACN202210101406.3ACN202210101406ACN116567595ACN 116567595 ACN116567595 ACN 116567595ACN 202210101406 ACN202210101406 ACN 202210101406ACN 116567595 ACN116567595 ACN 116567595A
Authority
CN
China
Prior art keywords
field
bits
data frame
preamble
access code
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210101406.3A
Other languages
Chinese (zh)
Inventor
鄂楠
张晓风
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co LtdfiledCriticalHuawei Technologies Co Ltd
Priority to CN202210101406.3ApriorityCriticalpatent/CN116567595A/en
Publication of CN116567595ApublicationCriticalpatent/CN116567595A/en
Pendinglegal-statusCriticalCurrent

Links

Classifications

Landscapes

Abstract

The application provides a data processing method, a data processing device and electronic equipment, and relates to the technical field of communication. The method comprises the following steps: 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 through Bluetooth. In this way, during communication, the transmitting end sets the bit form in the preamble field in the data frame 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 receiving end can easily distinguish the preamble field and the access code field in the data frame when acquiring the data frame, thereby accurately processing the content contained in the data frame and reducing the probability of data error processing.

Description

Translated fromChinese
一种数据处理方法、装置及电子设备A data processing method, device and electronic equipment

技术领域technical field

本申请涉及通信技术领域,尤其涉及一种数据处理方法、装置及电子设备。The present application relates to the technical field of communications, and in particular to a data processing method, device and electronic equipment.

背景技术Background technique

蓝牙(bluetooth)是一种短距无线通信的技术规范,其工作频段一般为全球统一开放的2.4GHz工业、科学和医学(industrial,scientific and medical,ISM)频段。由于蓝牙体积小、功率低,因此可以将蓝牙集成到大部分的设备之中。目前,在利用蓝牙传输数据过程中,常常会存在难以区分相邻的数据帧的情况,致使出现数据传输错误,降低了用户体验。Bluetooth (bluetooth) is a technical specification for short-range wireless communication, and its operating frequency band is generally the 2.4GHz industrial, scientific and medical (ISM) frequency band that is unified and open globally. Due to its small size and low power consumption, Bluetooth can be integrated into most devices. At present, in the process of using Bluetooth to transmit data, it is often difficult to distinguish adjacent data frames, resulting in data transmission errors and reducing user experience.

发明内容Contents of the invention

本申请提供了一种数据处理方法、装置、电子设备、计算机存储介质和计算机程序产品,能够使得在利用蓝牙传输数据过程中,便捷的区分相邻的数据帧,降低了数据误处理的概率。The present application provides a data processing method, device, electronic equipment, computer storage medium and computer program product, which can conveniently distinguish adjacent data frames during data transmission using Bluetooth, and reduce the probability of data mishandling.

第一方面,本申请提供一种数据处理方法,方法包括:生成数据帧,其中,数据帧包括前导码字段和接入码字段,前导码字段中的最后一个比特的值与接入码字段中的第一个比特的值相同,且前导码字段中的比特的形态为0/1交替;通过蓝牙发送数据帧。In a first aspect, the present application provides a data processing method. The method includes: generating a data frame, wherein the data frame includes a preamble field and an access code field, and the value of the last bit in the preamble field is the same as that in the access code field. The value of the first bit of the preamble field is the same, and the shape of the bits in the preamble field is 0/1 alternating; the data frame is sent via Bluetooth.

这样,通过将数据帧中的前导码字段中的比特形态设置为0/1交替,并将前导码字段中的最后一个比特的值与接入码字段中的第一个比特的值设置相同,使得可以容易的区分该数据帧中的前导码字段和接入码字段,从而可以准确的对该数据帧所包含的内容进行处理,降低了数据误处理的概率。In this way, by setting the bit pattern in the preamble field in the data frame to alternate 0/1, and setting 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, 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 mishandling is reduced.

在一种可能的实现方式中,前导码字段中的比特的位数为8位或16位。In a possible implementation manner, the number of bits in the preamble field is 8 bits or 16 bits.

在一种可能的实现方式中,数据帧中还包括报头字段,报头字段中包括速率指示字段,速率指示字段用于指示调制方式、带宽、传输速率和码率中的至少一种。这样,通过该RI字段以指示对应的调制方式、带宽、传输速率和/或码率,使得可以使用不同的调制方式、带宽、传输速率和/或码率对待传输数据进行调制、传输和/或编码,以及得到多种不同的MCS等级,进而可以在蓝牙高速传输场景下形成多种传输速率,满足蓝牙高速传输的场景下的数据传输。In a possible implementation manner, the data frame further includes a header field, and the header field includes a rate indication field, and the rate indication field is used to indicate at least one of modulation mode, bandwidth, transmission rate, and code rate. In this way, the RI field is used to indicate the corresponding modulation method, bandwidth, transmission rate and/or code rate, so that different modulation methods, bandwidths, transmission rates and/or code rates can be used to modulate, transmit and/or transmit data to be transmitted. Encoding, and obtaining a variety of different MCS levels, and then can form a variety of transmission rates in the Bluetooth high-speed transmission scenario, to meet the data transmission in the Bluetooth high-speed transmission scenario.

在一种可能的实现方式中,速率指示字段中比特的位数为N位,N≥3。In a possible implementation manner, the number of bits in the rate indication field is N bits, where N≥3.

在一种可能的实现方式中,前导码字段和接入码字段通过高斯频移键控GFSK的调制方式调制得到。In a possible implementation manner, the preamble field and the access code field are obtained through Gaussian frequency shift keying (GFSK) modulation.

第二方面,本申请提供一种数据处理方法,方法包括:通过蓝牙接收数据帧,数据帧包括前导码字段和接入码字段,前导码字段中的最后一个比特的值与接入码字段中的第一个比特的值相同,且前导码字段中的比特的形态为0/1交替。In a second aspect, the present application provides a data processing method. The method includes: receiving a data frame through Bluetooth, the data frame includes a preamble field and an access code field, and the value of the last bit in the preamble field is the same as that in the access code field. The value of the first bit is the same, and the shape of the bits in the preamble field is 0/1 alternating.

在一种可能的实现方式中,前导码字段中的比特的位数为8位或16位。In a possible implementation manner, the number of bits in the preamble field is 8 bits or 16 bits.

在一种可能的实现方式中,数据帧中还包括报头字段,报头字段中包括速率指示字段,速率指示字段用于指示调制方式、带宽、传输速率和码率中的至少一种。In a possible implementation manner, the data frame further includes a header field, and the header field includes a rate indication field, and the rate indication field is used to indicate at least one of modulation mode, bandwidth, transmission rate, and code rate.

在一种可能的实现方式中,速率指示字段中比特的位数为N位,N≥3。In a possible implementation manner, the number of bits in the rate indication field is N bits, where N≥3.

在一种可能的实现方式中,前导码字段和接入码字段通过高斯频移键控GFSK的调制方式调制得到。In a possible implementation manner, the preamble field and the access code field are obtained through Gaussian frequency shift keying (GFSK) modulation.

第三方面,本申请提供一种数据帧结构,包括:前导码字段和接入码字段,其中,前导码字段中的最后一个比特的值与接入码字段中的第一个比特的值相同,且前导码字段中的比特的形态为0/1交替。In a third aspect, the present application provides a data frame structure, including: a preamble field and an access code field, wherein 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 alternating.

在一种可能的实现方式中,前导码字段中的比特的位数为8位或16位。In a possible implementation manner, the number of bits in the preamble field is 8 bits or 16 bits.

在一种可能的实现方式中,数据帧中还包括报头字段,报头字段中包括速率指示字段,速率指示字段用于指示调制方式、带宽、传输速率和码率中的至少一种。In a possible implementation manner, the data frame further includes a header field, and the header field includes a rate indication field, and the rate indication field is used to indicate at least one of modulation mode, bandwidth, transmission rate, and code rate.

在一种可能的实现方式中,速率指示字段中比特的位数为N位,N≥3。In a possible implementation manner, the number of bits in the rate indication field is N bits, where N≥3.

第四方面,本申请提供一种数据处理装置,装置包括:处理单元,用于生成数据帧,其中,数据帧包括前导码字段和接入码字段,前导码字段中的最后一个比特的值与接入码字段中的第一个比特的值相同,且前导码字段中的比特的形态为0/1交替;通信单元,用于发送数据帧。In a fourth aspect, the present application provides a data processing device, which includes: a processing unit configured to generate a data frame, wherein the data frame includes a preamble field and an access code field, and 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 is the same, and the form of the bits in the preamble field is 0/1 alternate; the communication unit is used to send the data frame.

在一种可能的实现方式中,前导码字段中的比特的位数为8位或16位。In a possible implementation manner, the number of bits in the preamble field is 8 bits or 16 bits.

在一种可能的实现方式中,数据帧中还包括报头字段,报头字段中包括速率指示字段,速率指示字段用于指示调制方式、带宽、传输速率和码率中的至少一种。In a possible implementation manner, the data frame further includes a header field, and the header field includes a rate indication field, and the rate indication field is used to indicate at least one of modulation mode, bandwidth, transmission rate, and code rate.

在一种可能的实现方式中,速率指示字段中比特的位数为N位,N≥3。In a possible implementation manner, the number of bits in the rate indication field is N bits, where N≥3.

在一种可能的实现方式中,前导码字段和接入码字段通过高斯频移键控GFSK的调制方式调制得到。In a possible implementation manner, the preamble field and the access code field are obtained through Gaussian frequency shift keying (GFSK) modulation.

第五方面,本申请提供一种数据处理装置,装置包括:通信单元,用于接收数据帧,数据帧包括前导码字段和接入码字段,前导码字段中的最后一个比特的值与接入码字段中的第一个比特的值相同,且前导码字段中的比特的形态为0/1交替。In a fifth aspect, the present application provides a data processing device, which includes: a communication unit, configured to receive a data frame, the data frame includes a preamble field and an access code field, and the value of the last bit in the preamble field is related to the access code field. The value of the first bit in the code field is the same, and the form of the bits in the preamble field is 0/1 alternating.

在一种可能的实现方式中,前导码字段中的比特的位数为8位或16位。In a possible implementation manner, the number of bits in the preamble field is 8 bits or 16 bits.

在一种可能的实现方式中,数据帧中还包括报头字段,报头字段中包括速率指示字段,速率指示字段用于指示调制方式、带宽、传输速率和码率中的至少一种。In a possible implementation manner, the data frame further includes a header field, and the header field includes a rate indication field, and the rate indication field is used to indicate at least one of modulation mode, bandwidth, transmission rate, and code rate.

在一种可能的实现方式中,速率指示字段中比特的位数为N位,N≥3。In a possible implementation manner, the number of bits in the rate indication field is N bits, where N≥3.

在一种可能的实现方式中,前导码字段和接入码字段通过高斯频移键控GFSK的调制方式调制得到。In a possible implementation manner, the preamble field and the access code field are obtained through Gaussian frequency shift keying (GFSK) modulation.

第六方面,本申请提供一种电子设备控制装置,包括:至少一个存储器,用于存储程序;至少一个处理器,用于执行存储器存储的程序,当存储器存储的程序被执行时,处理器用于执行如第一方面或第二方面中所提供的方法。In a sixth aspect, the present application provides an electronic equipment control device, including: at least one memory for storing programs; at least one processor for executing the programs stored in the memory, and when the programs stored in the memory are executed, the processor is used for Execute the method as provided in the first aspect or the second aspect.

第七方面,本申请提供一种电子设备,该电子设备包括至少一个用于存储程序的存储器和至少一个用于执行存储器存储的程序的处理器。其中,当存储器存储的程序被执行时,处理器用于执行如第一方面或第二方面中所提供的方法。In a seventh aspect, the present application provides an electronic device, which includes at least one memory for storing programs and at least one processor for executing the programs stored in the memory. Wherein, 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.

第八方面,本申请提供一种计算机可读存储介质,计算机可读存储介质存储有计算机程序,当计算机程序在电子设备上运行时,使得电子设备执行如第一方面或第二方面中所提供的方法。In an eighth aspect, the present application provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is run on an electronic device, the electronic device executes the electronic device as provided in the first aspect or the second aspect. Methods.

第九方面,本申请提供一种计算机程序产品,当计算机程序产品在电子设备上运行时,使得电子设备执行如第一方面或第二方面中所提供的方法。In a ninth aspect, the present application provides a computer program product. When the computer program product is run on an electronic device, the electronic device is made to execute the method provided in the first aspect or the second aspect.

可以理解的是,上述第二方面至第九方面的有益效果可以参见上述第一方面中的相关描述,在此不再赘述。It can be understood that, for the beneficial effects of the above-mentioned second aspect to the ninth aspect, reference can be made to the relevant description in the above-mentioned first aspect, and details are not repeated here.

附图说明Description of drawings

图1是本申请实施例提供的一种数据帧的结构示意图;FIG. 1 is a schematic structural diagram of a data frame provided by an embodiment of the present application;

图2是本申请实施例提供的一种数据帧中前导码和接入码的结构示意图;FIG. 2 is a schematic structural diagram of a preamble and an access code in a data frame provided by an embodiment of the present application;

图3是本申请实施例提供的另一种数据帧中前导码和接入码的结构示意图;FIG. 3 is a schematic structural diagram of a preamble and an access code in another data frame provided by an embodiment of the present application;

图4是本申请实施例提供的另一种数据帧的结构示意图;FIG. 4 is a schematic structural diagram of another data frame provided by an embodiment of the present application;

图5是本申请实施例提供的又一种数据帧的结构示意图;FIG. 5 is a schematic structural diagram of another data frame provided by the embodiment of the present application;

图6是本申请实施例提供的一种数据处理方法的过程示意图。FIG. 6 is a process schematic diagram of a data processing method provided by an embodiment of the present application.

具体实施方式Detailed ways

本文中术语“和/或”,是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。本文中符号“/”表示关联对象是或者的关系,例如A/B表示A或者B。The term "and/or" in this article is an association relationship describing associated objects, which means that there can be three relationships, for example, A and/or B can mean: A exists alone, A and B exist simultaneously, and B exists alone These three situations. The symbol "/" in this document indicates that the associated object is an or relationship, for example, A/B indicates A or B.

本文中的说明书和权利要求书中的术语“第一”和“第二”等是用于区别不同的对象,而不是用于描述对象的特定顺序。例如,第一响应消息和第二响应消息等是用于区别不同的响应消息,而不是用于描述响应消息的特定顺序。The terms "first" and "second" and the like in the specification and claims herein are used to distinguish different objects, rather than to describe a specific order of objects. For example, the first response message and the second response message are used to distinguish different response messages, rather than describing a specific order of the response messages.

在本申请实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。In the embodiments of the present application, words such as "exemplary" or "for example" are used as examples, illustrations or illustrations. Any embodiment or design scheme described as "exemplary" or "for example" in the embodiments of the present application shall not be interpreted as being more preferred or more advantageous than other embodiments or design schemes. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete manner.

在本申请实施例的描述中,除非另有说明,“多个”的含义是指两个或者两个以上,例如,多个处理单元是指两个或者两个以上的处理单元等;多个元件是指两个或者两个以上的元件等。In the description of the embodiments of the present application, unless otherwise specified, "multiple" means two or more, for example, multiple processing units refer to two or more processing units, etc.; multiple A component refers to two or more components or the like.

示例性的,在采用低功耗蓝牙(bluetooh low energy,BLE)协议并通过蓝牙传输数据时,一般需要使用高斯频移键控(gauss frequency shift keying,GFSK)对待传输的数据进行调制,以得到数据帧,并将该数据帧发送至其他的接收设备。其中,GFSK调制方式是使用不同的频率表示0或1。通常情况下,将频率提高一个特定的值表示1,反之将频率减少一个特定的值表示0。由于GFSK是通过频率变化表示信息,而蓝牙器件在变频时需要功率参与,因此在现有蓝牙的定义中GFSK的频率变化需要维持一个较小的值,以满足使用低成本器件的性能。但是由于信号的频率调制指数在实际传输过程中并不是准确估计,并且由于变频对硬件的温度会产生影响,因此在一定时间后,由于蓝牙器件的温度发生变化,会导致在接收端无法进行准确的估计。为了避免这种情况出现,本申请中可以将帧结构的前导码设计为采用0、1交替的方式,以提升了频率变化的幅度,并且降低了蓝牙器件随温度的变化影响,降低传输过程中相位含混导致的前导码不清晰的概率,从而提升数据帧本身的传输性能。Exemplarily, when using the Bluetooth low energy (bluetooh low energy, BLE) protocol and transmitting data through Bluetooth, it is generally necessary to use Gaussian frequency shift keying (gauss frequency shift keying, GFSK) to modulate the data to be transmitted to obtain data frame and send the data frame to other receiving devices. Among them, the GFSK modulation method uses different frequencies to represent 0 or 1. Typically, increasing the frequency by a specific value represents 1, and conversely decreasing the frequency by a specific value represents 0. Since GFSK expresses information through frequency changes, and Bluetooth devices require power participation during frequency conversion, the frequency change of GFSK in the existing Bluetooth definition needs to maintain a small value to meet the performance of using low-cost devices. However, since the frequency modulation index of the signal is not accurately estimated during the actual transmission process, and because the frequency conversion will affect the temperature of the hardware, after a certain period of time, due to the temperature change of the Bluetooth device, it will cause the receiver to fail to perform accurate estimate. In order to avoid this situation, in this application, the preamble of the frame structure can be designed to alternate between 0 and 1, so as to increase the range of frequency changes, reduce the influence of Bluetooth devices with temperature changes, and reduce the transmission process. The probability of unclear preamble caused by phase ambiguity improves the transmission performance of the data frame itself.

示例性的,通过GFSK调制得到的数据帧的结构可以如图1所示。在图1中,前导码(preamble)主要是用于标识每帧的数据,也可以看做是分隔两个数据帧,前导码的长度与蓝牙的性能相关,前导码越长,则帧与帧之间的区分度越清晰,但时延越长;前导码越短,则时延越低,但帧与帧之间的区分度越模糊。示例性的,图1中前导码可以是8比特的交替序列,比如01010101或者10101010。前导码中比特的序列主要取决于接入码的第一个比特,其中,前导码中的最后一个比特与接入码中的第一个比特不相同,例如:若接入码的第一个比特为0,前导码中的比特序列则为01010101,若接入码的第一个比特为1,前导码中的比特序列则为10101010。在一些实施例中前导码也可以为16位,或者其他位数。Exemplarily, the structure of a data frame obtained through GFSK modulation may be as shown in FIG. 1 . In Figure 1, the preamble is mainly used to identify the data of each frame, and it can also be regarded as separating two data frames. The length of the preamble is related to the performance of Bluetooth. The longer the preamble, the frame and frame The clearer the distinction between frames, but the longer the delay; the shorter the preamble, the lower the delay, but the blurrier the distinction between frames. Exemplarily, the preamble in FIG. 1 may 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, where the last bit in the preamble is not the same as the first bit in the access code, e.g. if the first bit of the access code If the bit 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 bits.

接入码(access code,AC)主要用于接收装置识别所接收到的封包。接入码可以是一个68或72比特的字段。The access code (AC) is mainly used for the receiving device to identify the received packet. The access code can be a 68 or 72 bit field.

协议数据单元(protocol data unit,PDU)主要是指对等层次之间传递的数据单位。协议数据单元中可以包括报头(header)、数据长度和数据等。A protocol data unit (protocol data unit, PDU) mainly refers to a data unit transferred between peer layers. The protocol data unit may include a header (header), data length, data, and so on.

校验码主要是用于对数据传输进行检错。示例性的,校验码可以为循环冗余校验码(cyclic redundancy check,CRC)。The check code is mainly used to detect errors in data transmission. Exemplarily, the check code may be a cyclic redundancy check code (cyclic redundancy check, CRC).

继续参阅图1,由于在BLE协议中规定了前导码中的最后一个比特与接入码中的第一个比特不同,且前导码中采用的0/1交替的形式。因此,这使得在前导码和接入码之间难以区分,进而导致难以区分两个数据帧,致使数据识别出错。举例来说,如图2所示,前导码中的比特序列为“01010101”,接入码中的第一个比特为“0”,在识别前导码时,可以将交替出现的0和1,均作为前导码中的比特,这就使得容易将接入码中的第一个比特当作是前导码中的比特,进而导致数据识别出错。Continuing to refer to FIG. 1 , since the BLE protocol stipulates that the last bit in the preamble is different from the first bit in the access code, and the preamble adopts an alternating form of 0/1. Therefore, this makes it difficult to distinguish between the preamble and the access code, which in turn makes it difficult to distinguish the two data frames, resulting in erroneous data recognition. 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, 0 and 1 that appear alternately can be Both are used as bits in the preamble, which makes it easy to regard the first bit in the access code as a bit in the preamble, which leads to data identification errors.

为便于区分在使用蓝牙传输数据时数据帧中的前导码和接入码,本申请实施例中将前导码中的最后一个比特和接入码中的第一个比特置为同一个值,即两者相同。例如,如图3的(A)所示,若前导码中的比特序列为“01010101”,则接入码中的第一个比特为1;如图3的(B)所示,若前导码中的比特序列为“10101010”,则接入码中的第一个比特为0。由于前导码中的比特序列是0/1交替的形式,因此当不在出现0/1交替时,表明已结束对前导码的识别,此时开始对接入码进行识别,这样即可以便捷的区分前导码和接入码,从而容易区分两个相邻的数据帧,降低数据识别的错误率。In order to facilitate the distinction between the preamble and the access code in the data frame when using Bluetooth to transmit data, in the embodiment of this application, the last bit in the preamble and the first bit in the access code are set to the same value, that is Both are the same. For example, as shown in (A) of Figure 3, if the bit sequence in the preamble is "01010101", the first bit in the access code is 1; as shown in (B) of Figure 3, if the preamble The bit sequence in is "10101010", then the first bit in the access code is 0. Since the bit sequence in the preamble is in the form of 0/1 alternation, when there is no 0/1 alternation, it indicates that the identification of the preamble has ended, and at this time, the identification of the access code is started, so that it can be easily distinguished Preamble and access code, so that it is easy to distinguish two adjacent data frames and reduce the error rate of data identification.

在一些实施例中,为了满足蓝牙高速传输的场景,比如:提高蓝牙传输速率的场景,在这种场景下还可以增加前导码中的比特的位数,例如,将前导码中的比特的位数由8位增加至16位等,以保证对于更长的数据帧传输的区分。In some embodiments, in order to meet the scenario of Bluetooth high-speed transmission, such as: the scenario of increasing the Bluetooth transmission rate, in this scenario, the number of bits in the preamble can also be increased, for example, the number of bits in the preamble The number is increased from 8 bits to 16 bits, etc., to ensure the distinction for longer data frame transmission.

在一些实施例中,由于在蓝牙传输数据时往往是采用固定速率(比如2Mbps或4Mbps等)进行数据传输,这使得在对待传输数据调制编码过程中,只需按照固定的速率和/或调制方式对数据进行编码和/或调制即可。但在蓝牙HDT场景中,由于该场景支持多种不同的调制编码策略(modulation and scheme,MCS)等级,因此在该场景下存在多种传输速率,这就使得目前的传输方式难以满足蓝牙HDT场景。为解决这一问题,本申请实施例中,在数据帧内增加了一个速率指示(rate indicator,RI)字段。该RI字段主要用于指示调制方式、带宽、传输速率和/或码率。通过该RI字段以指示此次传输所需的调制方式、带宽、传输速率和/或码率,使得可以使用不同的调制方式、带宽、传输速率和/或码率对待传输数据进行调制、传输和/或编码,以及得到多种不同的MCS等级,进而可以在蓝牙HDT场景下形成多种传输速率,满足蓝牙HDT场景下的数据传输。此外,通过RI字段,也可以达到在不使用信令参与的情况下变更速率和/或调制方式的目的,提升了数据传输的便利性。In some embodiments, since Bluetooth data is often transmitted at a fixed rate (such as 2Mbps or 4Mbps, etc.) for data transmission, this makes it necessary to follow the fixed rate and/or modulation method during the modulation and encoding process of the data to be transmitted. Encoding and/or modulation of the data is sufficient. However, in the Bluetooth HDT scenario, since the scenario supports a variety of different modulation and coding strategy (modulation and scheme, MCS) levels, there are multiple transmission rates in this scenario, which makes it difficult for the current transmission method to meet the Bluetooth HDT scenario. . To solve this problem, in the embodiment of the present application, a rate indicator (rate indicator, RI) field is added in the data frame. The RI field is mainly used to indicate modulation mode, bandwidth, transmission rate and/or code rate. The RI field is used to indicate the modulation method, bandwidth, transmission rate and/or code rate required for this transmission, so that different modulation methods, bandwidths, transmission rates and/or code rates can be used to modulate, transmit and /or encoding, and obtaining a variety of different MCS levels, and then can form a variety of transmission rates in the Bluetooth HDT scenario to meet the data transmission in the Bluetooth HDT scenario. In addition, through the RI field, the purpose of changing the rate and/or the modulation mode without using signaling can also be achieved, which improves the convenience of data transmission.

示例性的,图4示出了一种数据帧的结构。如图4所示,该数据帧主要包括:前导码、接入码AC、协议数据单元PDU和校验码CRC。其中,协议数据单元PDU主要包括报头(header)和数据负载(payload)。报头(header)主要包括速率指示RI字段、预期序列号(nextexpected sequence number,NESN)、序列号(sequence number,SN)和标头错误控制(hybrid error correction,HEC)字段。Exemplarily, Fig. 4 shows a structure of a data frame. As shown in FIG. 4 , the data frame mainly includes: a preamble, an access code AC, a protocol data unit PDU and a check code CRC. Wherein, the protocol data unit PDU mainly includes a header (header) and a data load (payload). The header (header) mainly includes a rate indication RI field, an expected sequence number (nextexpected sequence number, NESN), a sequence number (sequence number, SN) and a header error control (hybrid error correction, HEC) field.

其中,RI字段用于指示后续的数据的调制方式和码率。示例性的,表1提供了一种在固定带宽下通过RI字段指示MCS等级的一种可能方式。在表1中,RI字段可能的选择包括从速率2Mbps~8Mbps的8种组合。表1中的QPSK为四相移相键控(quadrature phase shiftkeying),8PSK为8移相键控(8phase shift keying),16QAM为正交幅度调制(quadratureamplitude modulation)。在表1中,第一种组合里,传输速率为2Mbps,调制方式为QPSK,码率为1/2,RI字段的内容为000。可以理解的是,由于表1是在固定带宽下,所以可以不需要指示带宽。Wherein, the RI field is used to indicate the modulation mode and code rate of the subsequent data. Exemplarily, Table 1 provides a possible manner of indicating the MCS level through the RI field under a fixed bandwidth. In Table 1, the possible choices of the RI field include 8 combinations ranging from 2Mbps to 8Mbps. QPSK in Table 1 is quadrature phase shift keying (quadrature phase shift keying), 8PSK is 8 phase shift keying (8 phase shift keying), and 16QAM is quadrature amplitude modulation (quadrature amplitude modulation). In Table 1, in the first combination, the transmission rate is 2Mbps, the modulation method 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, there is no need to indicate the bandwidth.

表1Table 1

RIRI速率(Mbps)Rate(Mbps)调制modulation码率code rateRI字段的内容Contents of the RI field0022QPSKQPSK1/21/20000001133QPSKQPSK3/43/40010012244QPSKQPSK1101001033558PSK8PSK5/65/601101144668PSK8PSK11100100556616QAM16QAM3/43/4101101667716QAM16QAM7/87/8110110778816QAM16QAM11111111

示例性的,表2提供了一种在可变带宽下通过RI字段指示MCS等级的一种可能方式。在表2中,RI字段的位宽可以但不限于为4bit,其表示为:X(指示带宽)XXX(指示调制方式及码率),表2中仅列举了一种可能的RI字段表示方式,例如,0XXX表示带宽为2,1XXX表示带宽为4。其中对于带宽,MCS等级的指示的位宽等内容可有更多表现形式。在表2中,第一种组合里,带宽为2,传输速率为2Mbps,调制方式为QPSK,码率为1/2,RI字段的内容为0000。可以理解的是,由于表2是在可变带宽下,所以需要指示带宽;此外,在这种情况下,蓝牙可以支持多种带宽。Exemplarily, Table 2 provides a possible way of indicating the MCS level through the RI field under variable bandwidth. In Table 2, the bit width of the RI field can be but not limited to 4 bits, which is expressed as: X (indicating the bandwidth) XXX (indicating the modulation mode and code rate), and only one possible representation of the RI field is listed in Table 2 , for example, 0XXX means the bandwidth is 2, and 1XXX means the bandwidth is 4. For the bandwidth, the bit width of the indication of the MCS level, etc., there may be more expressions. In Table 2, in the first combination, the bandwidth is 2, the transmission rate is 2Mbps, the modulation method 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 variable bandwidth, the bandwidth needs to be indicated; in addition, in this case, Bluetooth can support multiple bandwidths.

表2Table 2

预期序列号NESN主要用来指示下一数据帧的序号。序列号SN主要用来指示连续帧的序号。标头错误控制HEC字段主要用来提供有关位错的检错纠错信息。The expected sequence number NESN is mainly used to indicate the sequence number of the next data frame. The sequence number SN is mainly used to indicate the sequence number of consecutive frames. The header error control HEC field is mainly used to provide error detection and correction information about bit errors.

示例性的,图5示出了另一种数据帧的结构。如图5所示,该数据帧包括前导码(preamble)、接入码(access code,AC)、报头(header)、保护间隔(guard)、同步码(synchronous,Sync)、数据负载(payload)、校验码(CRC)和报尾(trailer)。其中,报头(header)可以包括:RI字段、预期序列号NESN、序列号SN、标头错误控制HEC字段和零填充字段(zero padding)。示例性的,前导码(preamble)、接入码(access code,AC)和报头(header)可以通过GFSK调制进行传输;同步码(synchronous,Sync)、数据负载(payload)和校验码(CRC)可以通过报头(header)中的RI字段指示的调制方式、带宽、传输速率及码率进行传输,即通过RI字段指示的带宽及MCS进行传输。Exemplarily, FIG. 5 shows another data frame structure. As shown in Figure 5, the data frame includes a preamble (preamble), access code (access code, AC), header (header), guard interval (guard), synchronization code (synchronous, Sync), data load (payload) , check code (CRC) and trailer (trailer). Wherein, the header (header) may include: RI field, expected sequence number NESN, sequence number SN, header error control HEC field and zero padding field (zero padding). Exemplarily, a preamble (preamble), an access code (access code, AC) and a header (header) can be transmitted through GFSK modulation; a synchronization code (synchronous, Sync), a data load (payload) and a check code (CRC ) can be transmitted through the modulation mode, bandwidth, transmission rate and code rate indicated by the RI field in the header (header), that is, transmitted through the bandwidth and MCS indicated by the RI field.

可以理解的是,本申请实施例示意的数据帧的结构并不构成对数据帧的具体限定。在本申请另一些实施例中,数据帧可以包括比上述图示更多或更少的字段。It can be understood that, the structure of the data frame shown 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 less fields than those shown above.

接下来基于上文所描述的内容,对本申请提供的一种数据处理方法进行介绍。Next, based on the content described above, a data processing method provided by this application is introduced.

示例性的,图6示出了一种数据处理方法的流程示意图。在图6中,第一设备和第二设备中均可以配置有蓝牙模块,以便两者之间可以通过蓝牙通信。示例性的,第一设备和第二设备之间的蓝牙通信场景可以为蓝牙高速传输的场景。示例性的,第一设备和第二设备均可以但不限于为手机、电视、电脑等电子设备。如图6所示,该数据处理方法可以包括以下步骤:Exemplarily, FIG. 6 shows a schematic flowchart of a data processing method. In FIG. 6 , both the first device and the second device may be configured with Bluetooth modules, so that the two can communicate through Bluetooth. Exemplarily, the Bluetooth communication scenario between the first device and the second device may be a Bluetooth high-speed transmission scenario. Exemplarily, both the first device and the second device may be, but not limited to, electronic devices such as mobile phones, televisions, and computers. As shown in Figure 6, the data processing method may include the following steps:

S601、第一设备生成数据帧,其中,数据帧包括前导码字段和接入码字段,前导码字段中的最后一个比特的值与接入码字段中的第一个比特的值相同,且前导码字段中的比特的形态为0/1交替。S601. The first device generates a data frame, wherein the data frame includes 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 preamble The form of the bits in the code field is 0/1 alternating.

具体地,第一设备在生成数据帧时,可以通过GFSK的调制方式生成数据帧中的前导码、接入码和报头,以及按照预先配置或者其他方式得到(比如通过信道的传输质量确定的或者上层协议确定的等)的调制方式、带宽、传输速率和/或码率等对待传输数据对待传输数据进行处理,以生成数据帧中的数据。其中,该数据帧包括前导码字段和接入码字段,前导码字段中的最后一个比特的值与接入码字段中的第一个比特的值相同,且前导码字段中的比特的形态为0/1交替。示例性的,前导码字段可以理解为上文所描述的前导码,接入码字段可以理解为上文所描述的接入码。示例性的,数据帧中还可以包括上文所述描述的数据协议单元PDU。Specifically, when generating a data frame, the first device may generate the preamble, access code, and header in the data frame through the GFSK modulation method, and obtain them according to preconfiguration or other methods (such as determined by the transmission quality of the channel or The modulation mode, bandwidth, transmission rate and/or code rate determined by the upper layer protocol, etc.) are processed to generate data in the data frame. Wherein, the data frame includes 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 bit in the preamble field is 0/1 alternate. 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 may further include the data protocol unit PDU described above.

S602、第一设备发送数据帧。S602. The first device sends a data frame.

具体地,第一设备生成数据帧后,可以通过其上的蓝牙向第二设备发送该数据帧。Specifically, after the first device generates the data frame, it can send the data frame to the second device through the Bluetooth on it.

S603、第二设备接收数据帧。S603. The second device receives the data frame.

具体地,第一设备在通过蓝牙向第二设备发送数据帧后,第二设备可以通过其上的蓝牙接收该数据帧。示例性的,第二设备在接收数据帧时,可以通过数据帧中的前导码和接入码区分出该数据帧与上一个数据帧。Specifically, after the first device sends the data frame to the second device through the Bluetooth, the second device can receive the data frame through the Bluetooth on it. Exemplarily, when receiving a data frame, the second device may distinguish the data frame from the previous data frame through the preamble and the access code in the data frame.

由此,第一设备和第二设备在通信时,第一设备将其发送的数据帧中的前导码字段中的比特形态设置为0/1交替,并将其前导码字段中的最后一个比特的值与接入码字段中的第一个比特的值设置相同,使得第二设备在获取到该数据帧时可以容易的区分该数据帧中的前导码字段和接入码字段,从而可以准确的对该数据帧所包含的内容进行处理,降低了数据误处理的概率。Thus, when the first device and the second device communicate, the first device sets the bit pattern in the preamble field in the data frame it sends to alternate 0/1, and sets the last bit in the preamble field to The value of is set 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, so that it can accurately The content contained in the data frame is processed, reducing the probability of data mishandling.

在一些实施例中,前导码字段中的比特的位数可以为16位,以保证对于更长的数据帧传输的区分。In some embodiments, the number of bits in the preamble field may be 16 bits, so as to ensure discrimination for transmission of longer data frames.

在一些实施例中,第一设备生成的数据帧中还可以包括报头字段(其可以理解为上文所描述的报头header),该报头字段中可以包括上文所描述的速率指示RI字段。这样以便于通过该RI字段以指示对应的调制方式、带宽、传输速率和/或码率,使得可以使用不同的调制方式、带宽、传输速率和/或码率对待传输数据进行调制、传输和/或编码,以及得到多种不同的MCS等级,进而可以在蓝牙高速传输场景下形成多种传输速率,满足蓝牙高速传输的场景下的数据传输。示例性的,第二设备在接收数据帧时,还可以根据该数据帧中报头字段内的RI字段获知到对应的调制方式、带宽、传输速率和/或码率,进而可以由对应的调制方式、接收带宽和/或解码率等接收并处理数据帧,从而获取到所需的数据。In some embodiments, the data frame generated by the first device may further include a header field (which may be understood as the header described above), and the header field may include the rate indication RI field described above. In this way, the RI field can be used to indicate the corresponding modulation method, bandwidth, transmission rate and/or code rate, so that different modulation methods, bandwidths, transmission rates and/or code rates can be used to modulate, transmit and/or transmit data Or encoding, and obtain a variety of different MCS levels, and then can form a variety of transmission rates in the Bluetooth high-speed transmission scenario, to meet the data transmission in the Bluetooth high-speed transmission scenario. Exemplarily, when the second device receives a data frame, it can also know 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 can use the corresponding modulation mode , receiving bandwidth and/or decoding rate, etc. to receive and process the data frame, so as to obtain the required data.

基于上述实施例中的方法,本申请还提供了一种数据处理装置。该装置可以包括:处理单元和通信单元。其中,处理单元,用于生成数据帧,该数据帧包括前导码字段和接入码字段,前导码字段中的最后一个比特的值与接入码字段中的第一个比特的值相同,且前导码字段中的比特的形态为0/1交替。通信单元,用于发送数据帧。示例性的,处理单元可以为处理器,通信单元可以为蓝牙模块。Based on the methods in the foregoing embodiments, the present application further provides a data processing device. The apparatus may include: a processing unit and a communication unit. Wherein, the processing unit is configured to generate a data frame, the data frame includes 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 shape of the bits in the preamble field is 0/1 alternating. The communication unit is used to send data frames. Exemplarily, the processing unit may be a processor, and the communication unit may be a Bluetooth module.

在一个实施例中,前导码字段中的比特的位数为8位或16位。In one embodiment, the number of bits in the preamble field is 8 bits or 16 bits.

在一个实施例中,数据帧中还包括报头字段,报头字段中包括速率指示字段,速率指示字段用于指示调制方式、带宽、传输速率和码率中的至少一种。In one embodiment, the data frame further includes a header field, the header field includes a rate indication field, and the rate indication field is used to indicate at least one of modulation mode, bandwidth, transmission rate and code rate.

在一个实施例中,速率指示字段中比特的位数为N位,N≥3。In one embodiment, the number of bits in the rate indication field is N bits, where N≥3.

在一个实施例中,前导码字段和接入码字段通过高斯频移键控GFSK的调制方式调制得到。In one embodiment, the preamble field and the access code field are obtained through Gaussian frequency shift keying (GFSK) modulation.

应当理解的是,上述装置用于执行上述实施例中的方法,装置中相应的程序模块,其实现原理和技术效果与上述方法中的描述类似,该装置的工作过程可参考上述方法中的对应过程,此处不再赘述。It should be understood that the above-mentioned device is used to execute the method in the above-mentioned embodiment, and the corresponding program modules in the device have similar implementation principles and technical effects to the description in the above-mentioned method, and the working process of the device can refer to the corresponding program module in the above-mentioned method The process will not be repeated here.

基于上述实施例中的方法,本申请还提供了另一种数据处理装置。该装置可以包括:通信单元。该通信单元可以用于接收数据帧,数据帧包括前导码字段和接入码字段,前导码字段中的最后一个比特的值与接入码字段中的第一个比特的值相同,且前导码字段中的比特的形态为0/1交替。示例性的,通信单元可以为蓝牙模块。Based on the methods in the foregoing embodiments, the present application also provides another data processing device. The apparatus may include: a communication unit. The communication unit can be used to receive a data frame, the data frame includes 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 preamble The form of the bits in the field is 0/1 alternating. Exemplarily, the communication unit may be a Bluetooth module.

在一个实施例中,前导码字段中的比特的位数为8位或16位。In one embodiment, the number of bits in the preamble field is 8 bits or 16 bits.

在一个实施例中,数据帧中还包括报头字段,报头字段中包括速率指示字段,速率指示字段用于指示调制方式、带宽、传输速率和码率中的至少一种。In one embodiment, the data frame further includes a header field, the header field includes a rate indication field, and the rate indication field is used to indicate at least one of modulation mode, bandwidth, transmission rate and code rate.

在一个实施例中,速率指示字段中比特的位数为N位,N≥3。In one embodiment, the number of bits in the rate indication field is N bits, where N≥3.

在一个实施例中,前导码字段和接入码字段通过高斯频移键控GFSK的调制方式调制得到。In one embodiment, the preamble field and the access code field are obtained through Gaussian frequency shift keying (GFSK) modulation.

应当理解的是,上述装置用于执行上述实施例中的方法,装置中相应的程序模块,其实现原理和技术效果与上述方法中的描述类似,该装置的工作过程可参考上述方法中的对应过程,此处不再赘述。It should be understood that the above-mentioned device is used to execute the method in the above-mentioned embodiment, and the corresponding program modules in the device have similar implementation principles and technical effects to the description in the above-mentioned method, and the working process of the device can refer to the corresponding program module in the above-mentioned method The process will not be repeated here.

可以理解的是,本申请的实施例中的处理器可以是中央处理单元(centralprocessing unit,CPU),还可以是其他通用处理器、数字信号处理器(digital signalprocessor,DSP)、专用集成电路(application specific integrated circuit,ASIC)、现场可编程门阵列(field programmable gate array,FPGA)或者其他可编程逻辑器件、晶体管逻辑器件,硬件部件或者其任意组合。通用处理器可以是微处理器,也可以是任何常规的处理器。It can be understood that the processor in the embodiment of the present application may be a central processing unit (central processing unit, CPU), and may also be other general processors, digital signal processors (digital signal processor, DSP), application specific integrated circuits (application specific integrated circuit, ASIC), field programmable gate array (field programmable gate array, FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. A general-purpose processor can be a microprocessor, or any conventional processor.

本申请的实施例中的方法步骤可以通过硬件的方式来实现,也可以由处理器执行软件指令的方式来实现。软件指令可以由相应的软件模块组成,软件模块可以被存放于随机存取存储器(random access memory,RAM)、闪存、只读存储器(read-only memory,ROM)、可编程只读存储器(programmable rom,PROM)、可擦除可编程只读存储器(erasable PROM,EPROM)、电可擦除可编程只读存储器(electrically EPROM,EEPROM)、寄存器、硬盘、移动硬盘、CD-ROM或者本领域熟知的任何其它形式的存储介质中。一种示例性的存储介质耦合至处理器,从而使处理器能够从该存储介质读取信息,且可向该存储介质写入信息。当然,存储介质也可以是处理器的组成部分。处理器和存储介质可以位于ASIC中。The method steps in the embodiments of the present application may be implemented by means of hardware, or may be implemented by means of a processor executing software instructions. The software instructions can be composed of corresponding software modules, and the software modules can be stored in random access memory (random access memory, RAM), flash memory, read-only memory (read-only memory, ROM), programmable read-only memory (programmable rom) , PROM), erasable programmable read-only memory (erasable PROM, EPROM), electrically erasable programmable read-only memory (electrically EPROM, EEPROM), register, hard disk, mobile hard disk, CD-ROM or known in the art any other form of storage medium. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. Of course, the storage medium may also be a component of the processor. The processor and storage medium can be located in the ASIC.

在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者通过所述计算机可读存储介质进行传输。所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘(solid state disk,SSD))等。In the above embodiments, all or part of them may be implemented by software, hardware, firmware or any combination thereof. When implemented using software, it may be implemented in whole or in part 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 the computer, the processes or functions according to the embodiments of the present application will be generated in whole or in part. The computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in or transmitted via a computer-readable storage medium. The computer instructions may be transmitted from one website site, computer, server, or data center to another website site by wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) , computer, server or data center for transmission. The computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server or a data center integrated with one or more available media. The available medium may be a magnetic medium (such as a floppy disk, a hard disk, or a magnetic tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid state disk (solid state disk, SSD)) and the like.

可以理解的是,在本申请的实施例中涉及的各种数字编号仅为描述方便进行的区分,并不用来限制本申请的实施例的范围。It can be understood that the various numbers involved in the embodiments of the present application are only for convenience of description, and are not used to limit the scope of the embodiments of the present application.

Claims (19)

Translated fromChinese
1.一种数据处理方法,其特征在于,所述方法包括:1. A data processing method, characterized in that the method comprises:生成数据帧,其中,所述数据帧包括前导码字段和接入码字段,所述前导码字段中的最后一个比特的值与所述接入码字段中的第一个比特的值相同,且所述前导码字段中的比特的形态为0/1交替;generating a data frame, wherein the data frame includes 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 alternating;通过蓝牙发送所述数据帧。The data frame is sent via bluetooth.2.根据权利要求1所述的方法,其特征在于,所述前导码字段中的比特的位数为8位或16位。2. The method according to claim 1, wherein the number of bits in the preamble field is 8 bits or 16 bits.3.根据权利要求1或2所述的方法,其特征在于,所述数据帧中还包括报头字段,所述报头字段中包括速率指示字段,所述速率指示字段用于指示调制方式、带宽、传输速率和码率中的至少一种。3. The method according to claim 1 or 2, wherein the data frame further includes a header field, the header field includes a rate indication field, and the rate indication field is used to indicate modulation mode, bandwidth, At least one of transmission rate and code rate.4.根据权利要求3所述的方法,其特征在于,所述速率指示字段中比特的位数为N位,N≥3。4. The method according to claim 3, wherein the number of bits in the rate indication field is N bits, and N≥3.5.根据权利要求1-4任一所述的方法,其特征在于,所述前导码字段和所述接入码字段通过高斯频移键控GFSK的调制方式调制得到。5. The method according to any one of claims 1-4, characterized in that, the preamble field and the access code field are obtained through Gaussian Frequency Shift Keying (GFSK) modulation.6.一种数据处理方法,其特征在于,所述方法包括:6. A data processing method, characterized in that the method comprises:通过蓝牙接收数据帧,所述数据帧包括前导码字段和接入码字段,所述前导码字段中的最后一个比特的值与所述接入码字段中的第一个比特的值相同,且所述前导码字段中的比特的形态为0/1交替。receiving a data frame via Bluetooth, 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 are 0/1 alternately.7.根据权利要求6所述的方法,其特征在于,所述前导码字段中的比特的位数为8位或16位。7. The method according to claim 6, wherein the number of bits in the preamble field is 8 bits or 16 bits.8.根据权利要求6或7所述的方法,其特征在于,所述数据帧中还包括报头字段,所述报头字段中包括速率指示字段,所述速率指示字段用于指示调制方式、带宽、传输速率和码率中的至少一种。8. The method according to claim 6 or 7, wherein the data frame further includes a header field, and the header field includes a rate indication field, and the rate indication field is used to indicate modulation mode, bandwidth, At least one of transmission rate and code rate.9.根据权利要求8所述的方法,其特征在于,所述速率指示字段中比特的位数为N位,N≥3。9. The method according to claim 8, wherein the number of bits in the rate indication field is N bits, and N≥3.10.根据权利要求6-9任一所述的方法,其特征在于,所述前导码字段和所述接入码字段通过高斯频移键控GFSK的调制方式调制得到。10. The method according to any one of claims 6-9, characterized in that, the preamble field and the access code field are obtained through Gaussian Frequency Shift Keying (GFSK) modulation.11.一种数据帧结构,其特征在于,包括:前导码字段和接入码字段,其中,所述前导码字段中的最后一个比特的值与所述接入码字段中的第一个比特的值相同,且所述前导码字段中的比特的形态为0/1交替。11. A data frame structure, characterized in that it includes: a preamble field and an access code field, wherein the value of the last bit in the preamble field is the same as the first bit in the access code field The values of are the same, and the form of the bits in the preamble field is 0/1 alternately.12.根据权利要求11所述的数据帧结构,其特征在于,所述前导码字段中的比特的位数为8位或16位。12. The data frame structure according to claim 11, wherein the number of bits in the preamble field is 8 bits or 16 bits.13.根据权利要求11或12所述的数据帧结构,其特征在于,所述数据帧中还包括报头字段,所述报头字段中包括速率指示字段,所述速率指示字段用于指示调制方式、带宽、传输速率和码率中的至少一种。13. The data frame structure according to claim 11 or 12, wherein the data frame further includes a header field, the header field includes a rate indication field, and the rate indication field is used to indicate the modulation mode, At least one of bandwidth, transmission rate and code rate.14.根据权利要求13所述的数据帧结构,其特征在于,所述速率指示字段中比特的位数为N位,N≥3。14. The data frame structure according to claim 13, characterized in that, the number of bits in the rate indication field is N bits, and N≥3.15.一种数据处理装置,其特征在于,所述装置包括:15. A data processing device, characterized in that the device comprises:处理单元,用于生成数据帧,其中,所述数据帧包括前导码字段和接入码字段,所述前导码字段中的最后一个比特的值与所述接入码字段中的第一个比特的值相同,且所述前导码字段中的比特的形态为0/1交替;A processing unit, configured to generate a data frame, wherein the data frame includes a preamble field and an access code field, and the value of the last bit in the preamble field is the same as the first bit in the access code field The values of are the same, and the form of the bits in the preamble field is 0/1 alternate;通信单元,用于发送所述数据帧。A communication unit, configured to send the data frame.16.一种数据处理装置,其特征在于,所述装置包括:16. A data processing device, characterized in that the device comprises:通信单元,用于接收数据帧,所述数据帧包括前导码字段和接入码字段,所述前导码字段中的最后一个比特的值与所述接入码字段中的第一个比特的值相同,且所述前导码字段中的比特的形态为0/1交替。a communication unit, configured to receive a data frame, the data frame includes 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 are the same, and the form of the bits in the preamble field is 0/1 alternately.17.一种电子设备,其特征在于,包括17. An electronic device, characterized in that it comprises至少一个存储器,用于存储程序;at least one memory for storing programs;至少一个处理器,用于执行所述存储器存储的程序;at least one processor configured to execute programs stored in said memory;其中,当所述存储器存储的程序被执行时,所述处理器用于执行如权利要求1-5中任一所述的方法,或者,执行如权利要求6-10中任一所述的方法。Wherein, when the program stored in the memory is executed, the processor is configured to execute the method according to any one of claims 1-5, or to execute the method according to any one of claims 6-10.18.一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,当所述计算机程序在电子设备上运行时,使得所述电子设备执行如权利要求1-5中任一所述的方法,或者,执行如权利要求6-10中任一所述的方法。18. A computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is run on an electronic device, the electronic device is made to execute any one of claims 1-5. The method described above, or, perform the method as described in any one of claims 6-10.19.一种计算机程序产品,其特征在于,当所述计算机程序产品在电子设备上运行时,使得所述电子设备执行如权利要求1-5中任一所述的方法,或者,执行如权利要求6-10中任一所述的方法。19. A computer program product, characterized in that, when the computer program product is run on an electronic device, the electronic device is made to execute the method according to any one of claims 1-5, or to execute the method according to any one of claims 1-5. The method described in any one of claims 6-10.
CN202210101406.3A2022-01-272022-01-27 A data processing method, device and electronic equipmentPendingCN116567595A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202210101406.3ACN116567595A (en)2022-01-272022-01-27 A data processing method, device and electronic equipment

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202210101406.3ACN116567595A (en)2022-01-272022-01-27 A data processing method, device and electronic equipment

Publications (1)

Publication NumberPublication Date
CN116567595Atrue CN116567595A (en)2023-08-08

Family

ID=87498758

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202210101406.3APendingCN116567595A (en)2022-01-272022-01-27 A data processing method, device and electronic equipment

Country Status (1)

CountryLink
CN (1)CN116567595A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20050195930A1 (en)*2000-01-212005-09-08Spital Glenn O.Rapid discrimination preambles and methods for using the same
US20140071956A1 (en)*2012-09-072014-03-13Minyoung ParkMethods and arrangements to signal short interframe spaces
KR20170007192A (en)*2015-07-092017-01-18한국전자통신연구원Method and apparatus for close proximity communications
CN107969029A (en)*2016-10-192018-04-27华为技术有限公司One kind wakes up pilot code generation method, synchronous method and device
CN109565773A (en)*2018-11-052019-04-02深圳市汇顶科技股份有限公司Method of data synchronization, equipment and storage medium
US20190238309A1 (en)*2016-06-282019-08-01Qorvo International Pte. Ltd.Robust radio packet acquisition in the presence of continuous wave interference
CN110691114A (en)*2018-07-062020-01-14华为技术有限公司Communication method, device and equipment
CN111065083A (en)*2019-12-312020-04-24锐迪科微电子科技(上海)有限公司Bluetooth communication method and device, storage medium and terminal
CN113225155A (en)*2020-01-212021-08-06华为技术有限公司Frame delimitation method and related device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20050195930A1 (en)*2000-01-212005-09-08Spital Glenn O.Rapid discrimination preambles and methods for using the same
US20140071956A1 (en)*2012-09-072014-03-13Minyoung ParkMethods and arrangements to signal short interframe spaces
KR20170007192A (en)*2015-07-092017-01-18한국전자통신연구원Method and apparatus for close proximity communications
US20190238309A1 (en)*2016-06-282019-08-01Qorvo International Pte. Ltd.Robust radio packet acquisition in the presence of continuous wave interference
CN107969029A (en)*2016-10-192018-04-27华为技术有限公司One kind wakes up pilot code generation method, synchronous method and device
CN110691114A (en)*2018-07-062020-01-14华为技术有限公司Communication method, device and equipment
CN109565773A (en)*2018-11-052019-04-02深圳市汇顶科技股份有限公司Method of data synchronization, equipment and storage medium
CN111065083A (en)*2019-12-312020-04-24锐迪科微电子科技(上海)有限公司Bluetooth communication method and device, storage medium and terminal
CN113225155A (en)*2020-01-212021-08-06华为技术有限公司Frame delimitation method and related device

Similar Documents

PublicationPublication DateTitle
CN111342941B (en)Configuration method and equipment of feedback control channel
US10148460B2 (en)Packet extension for wireless communication
JP7023918B2 (en) Systems and methods for signaling and generating variable-length block acknowledgment fields in wireless networks
CN110166168B (en)Method, device and system for determining size of transmission block
CN110677371B (en) A communication method and device
US20130176864A1 (en)Rate and power control systems and methods
KR101492928B1 (en)Efficient signaling of discontinuous transmission
JP2021517792A (en) Data transmission method and device based on probability non-uniform modulation
US9240822B2 (en)Method of handling power reduction at transmitter and related communication device
WO2019120303A1 (en)Communication method and apparatus
CN113938257B (en)Method, device and equipment for detecting physical downlink control channel and storage medium
CN110708148A (en) A signaling field indication method and device
CN105164962B (en)A kind of downstream parameter determines method, equipment and device
WO2019079936A1 (en)Waveform selection method and device
WO2019072206A1 (en)Communication method and device
WO2022116014A1 (en)Tbs determining method
CN103516466B (en)A kind of control channel resource mapping method, transmitter, receiver and system
JP6905432B2 (en) Wireless communication device and signal detection method
WO2022127222A1 (en)Data transmission method, apparatus and system, and electronic device and storage medium
CN116567595A (en) A data processing method, device and electronic equipment
CN103001816B (en)Data communications method and equipment
CN103780337B (en)Interleaving treatment method and apparatus in wlan system
WO2024012170A1 (en)Psfch signal detection method and device, storage medium, and electronic device
CN113890679B (en)Signal modulation method, signal modulation device, electronic equipment and computer readable storage medium
CN111431675B (en) Data transmission method and device

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination

[8]ページ先頭

©2009-2025 Movatter.jp