WO2020258910A1 - 一种蓝牙基带芯片的广告数据管理方法及装置 - Google Patents

一种蓝牙基带芯片的广告数据管理方法及装置 Download PDF

Info

Publication number
WO2020258910A1
WO2020258910A1 PCT/CN2020/077369 CN2020077369W WO2020258910A1 WO 2020258910 A1 WO2020258910 A1 WO 2020258910A1 CN 2020077369 W CN2020077369 W CN 2020077369W WO 2020258910 A1 WO2020258910 A1 WO 2020258910A1
Authority
WO
WIPO (PCT)
Prior art keywords
advertisement data
advertising
data packet
advertisement
auxiliary
Prior art date
Application number
PCT/CN2020/077369
Other languages
English (en)
French (fr)
Inventor
胡斌
胡胜发
Original Assignee
安凯(广州)微电子技术有限公司
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 安凯(广州)微电子技术有限公司 filed Critical 安凯(广州)微电子技术有限公司
Publication of WO2020258910A1 publication Critical patent/WO2020258910A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0241Advertisements
    • G06Q30/0251Targeted advertisements
    • G06Q30/0267Wireless devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • This application relates to the field of network communication technology, and in particular to a method and device for managing advertisement data of a Bluetooth baseband chip.
  • Bluetooth low energy mode Bluetooth low energy
  • multi-point-to-multipoint broadcast data transmission messages
  • the latest Bluetooth 5.0 standard protocol expands the single packet capacity (up to 254-Byte) of advertising data, longer transmission distance (higher transmission power allowed), and higher transmission rate (up to 2Mbps).
  • the Bluetooth 5.0 core protocol optimizes the advertising data transmission mode from the protocol layer and adds the extended advertising transmission mode.
  • the extended advertising sending mode increases the flexibility of advertising data sending, that is, in an advertising event, in order to minimize the total number and time of advertising data sent, advertising can only be sent in auxiliary advertising data packets AUX_ADV_IND, AUX_SYNC_IND and AUX_CHAIN_IND data.
  • the data length of a single packet of the extended advertising data packet can be up to 254 bytes. Due to the possibility of chain packets, the total amount of advertising data actually transmitted in an extended advertising event may be very large according to the needs of the application scenario. Therefore, the memory capacity required by the Bluetooth baseband chip is increased, and the prior art cannot effectively manage the large amount of advertisement data that the Bluetooth baseband chip needs to send, resulting in an increase in the power consumption of the Bluetooth baseband chip.
  • the technical problem to be solved by the embodiments of the present application is to provide a Bluetooth baseband chip advertising data management method and device, which can save additional memory space required by the Bluetooth baseband chip and reduce the power consumption of the Bluetooth baseband chip.
  • the embodiment of the present application provides a Bluetooth baseband chip advertising data management method, which is suitable for execution in a computing device and includes at least the following steps:
  • the advertisement data sets include extended advertisement data packets stored in an external memory; K is a positive integer;
  • the sending time point of the auxiliary advertisement data packet is determined according to the frame arrangement situation of the advertisement data set in the frame arrangement circular queue.
  • the acquiring an advertisement data set in response to the extended advertisement event includes:
  • the framing circular queue includes a plurality of sectors arranged according to frame numbers; the sectors are used to store data;
  • the writing of each of the advertisement data sets in the framing circular queue along the write pointer so that the Bluetooth baseband chip sends the advertisement data sets in the framing circular queue along the read pointer includes:
  • the next sector of the first target sector in the framing circular queue pointed to by the write pointer is used as a new first target sector
  • the Bluetooth baseband chip sends the advertisement data set in the second target sector along the read pointer, and clears the second target The advertisement data set that has been read in the sector.
  • determining the sending time point of the auxiliary advertisement data packet according to the frame situation of the advertisement data set in the frame circling queue includes:
  • the sending time of the auxiliary advertisement data packet in the i+1th advertisement data set overlaps with the sending time of the i-th advertisement data set by more than the preset unit time, the i+1th The auxiliary advertisement data packet in the advertisement data set is sent before the i-th advertisement data set; where i is a positive integer and i ⁇ K.
  • an embodiment of the present application also provides a Bluetooth baseband chip advertisement data management device, including:
  • the advertisement data acquisition module is used to obtain K advertisement data sets in response to an extended advertisement event; wherein the advertisement data sets include extended advertisement data packets stored in an external memory; K is a positive integer;
  • the advertisement data sending module is configured to write each of the advertisement data sets into the frame cyclic queue along the write pointer, so that the Bluetooth baseband chip sends the advertisement data sets in the frame cyclic queue along the read pointer;
  • the sending time determining module is configured to determine the sending time point of the auxiliary advertising data packet according to the frame arrangement of the advertising data set in the frame circling queue when the auxiliary advertising data packet exists in the advertising data set .
  • the timing adjustment module is used for when the sending time of the auxiliary advertisement data packet in the i+1th advertisement data set overlaps with the sending time of the i-th advertisement data set by more than a preset unit time, then The auxiliary advertisement data packet in the i+1th advertisement data set is sent before the i th advertisement data set; where i is a positive integer and i ⁇ K.
  • the method and device for managing advertisement data of Bluetooth baseband chip acquire K advertisement data sets by responding to extended advertisement events; wherein, the advertisement data sets include extended advertisement data packets stored in external memory;
  • the pointer writes each advertising data set into the framing circular queue, so that the Bluetooth baseband chip sends the advertising data set in the framing circular queue along the read pointer; and, when there is an auxiliary advertising data packet in the advertising data set, according to the advertising data set Determine the sending time point of the auxiliary advertisement data packet in the frame arrangement situation in the frame arrangement circular queue.
  • the embodiment of the application stores the extended advertisement data packet in the external memory, which saves the extra memory space required by the Bluetooth baseband chip, and reduces the power consumption of the Bluetooth baseband chip by managing the sending of the advertisement data packet. This effectively improves the efficiency of the Bluetooth baseband chip.
  • Figure 1 is a basic model and timing diagram of sending advertisement data in an extended advertisement event
  • FIG. 2 is a schematic flowchart of a method for managing advertisement data of a Bluetooth baseband chip provided by an embodiment of the present application
  • Fig. 3 is a storage format diagram of an extended advertisement data package provided by an embodiment of the present application.
  • FIG. 4 is a schematic diagram of a frame cyclic queue provided by an embodiment of the present application.
  • FIG. 5 is a schematic flowchart of step S2 in FIG. 1 provided by an embodiment of the present application.
  • FIG. 6 is a schematic flowchart of a method for managing advertisement data of a Bluetooth baseband chip provided by another embodiment of the present application.
  • Figure 7 is a model diagram of sending multiple advertisement data sets
  • FIG. 8 is a schematic structural diagram of a Bluetooth baseband chip advertising data management device provided by an embodiment of the present application.
  • FIG. 9 is a schematic structural diagram of a Bluetooth baseband chip advertisement data management device provided by another embodiment of the present application.
  • the ADV_EXT_IND packet is transmitted on a primary advertising physical channel (primary advertising channel), and its associated auxiliary advertising package and subsequent advertising packets are transmitted on a secondary advertising physical channel (secondary advertising channel).
  • primary advertising channel primary advertising channel
  • secondary advertising channel secondary advertising channel
  • FIG. 2 it is a schematic flowchart of a method for managing advertisement data of a Bluetooth baseband chip provided by an embodiment of the present application. As shown in Fig. 1, it includes steps S1 to S3. The specific steps are as follows:
  • Step S1 In response to the extended advertisement event, N advertisement data sets are obtained.
  • the advertisement data set includes an extended advertisement data packet stored in an external memory; N is a positive integer.
  • Step S2 Write each advertisement data set into the framing circular queue along the write pointer, so that the Bluetooth baseband chip sends the advertisement data set in the framing circular queue along the read pointer.
  • Step S3 When the auxiliary advertisement data packet exists in the advertisement data set, the sending time point of the auxiliary advertisement data packet is determined according to the frame arrangement situation of the advertisement data set in the frame arrangement circular queue.
  • step S1 specifically, in response to the extended advertising event, determine the M extended advertising data packets that need to be sent in the N advertising data sets, and the sending order of the M extended data packets, and according to the base of the M extended advertising data packets Address to obtain M extended advertising data packets.
  • M is a positive integer and M ⁇ N.
  • the extended advertisement data packet sent by the extended advertisement is larger than the data packet sent by the traditional advertisement, the time required to transmit a complete advertisement data packet is relatively long, and the data format of different types of extended advertisement data packets is also different. It is not fixed and can be changed according to changes in the application environment. Therefore, in this embodiment, the extended advertising data packet is stored in an external readable and writable memory, which is separated from the traditional advertising data packet stored in a fixed internal storage area, so as to achieve backward compatibility in the design and implementation of the Bluetooth baseband chip. Version Bluetooth core protocol for the purpose. Among them, the storage format of the extended advertisement data packet is shown in Figure 3.
  • the base address of the extended advertising data packet stored in the external memory needs to be written into the address register of the Bluetooth baseband chip, so that when responding to the extended advertising event, the corresponding extended advertising data can be obtained according to the base address package.
  • the data offset address of the subsequently sent extended advertising data packet is also written into the address register.
  • the framing circular queue includes N sectors, and the frame number of each sector is arranged from 0 to N-1.
  • W is the write pointer, which points to the frame position where the next data is written
  • R is the read pointer, which points to the frame position where the current data is read.
  • the write pointer W is written according to the current frame arrangement, and the read pointer R is written by the baseband chip according to the position of processing frame information.
  • the read pointer R cannot cross the position of the write pointer W, and vice versa. If the values of R and W are equal, it means that the current frame cyclic queue is empty or full.
  • the length of time occupied by each frame in the framing circular queue is 1250 us.
  • each ADV_EXT_IND advertising data packet sent on it needs to be except the Aux offset value of the auxiliary advertising data packet pointer field (AuxPtr) Except for the update, other fields can remain unchanged. Therefore, in this embodiment, each time the advertisement data set is written into the framed circular queue and the advertisement data set is sent from the framed circular queue, the content of the extended advertisement data packet sent needs to be updated at the same time, but the data base address can be maintained constant.
  • step S2 includes:
  • Step S11 the sector pointed to by the write pointer is taken as the first target sector.
  • Step S12 writing an advertisement data set to the first target sector.
  • step S13 after the first target sector is full, the next sector of the first target sector in the framing circular queue pointed to by the write pointer is taken as the new first target sector.
  • Step S14 the sector pointed to by the read pointer is taken as the second target sector, so that the Bluetooth baseband chip sends the advertisement data set in the second target sector along the read pointer, and clears the advertisements that have been read in the second target sector data set.
  • step S3 specifically, the advertisement data is collected, the extended advertisement data packet associated with the auxiliary advertisement data packet is used as the first target data packet, and the auxiliary advertisement data packet is determined according to the frame arrangement situation of the first target data packet in the framing circular queue.
  • the sending time point of the auxiliary advertisement data packet is determined.
  • D is the length of the framing circular queue
  • F is the frame number of the sector where the first target data packet is located
  • A is the Aux Offset value of the auxiliary advertising data packet
  • B is the first target data packet in the framing circular queue
  • the intra-frame sending offset in, C is the length of time occupied by each sector, and the intra-frame sending time offset is the initial sending moment of the data packet in the framing circular queue.
  • the calculated f is 3 and ⁇ is 750us, that is, the auxiliary advertisement data packet and the first target data packet are sent in the same frame.
  • the calculated f is 4 and ⁇ is 200us, that is, the auxiliary advertisement data packet is sent in the next frame of the first target data packet.
  • the Aux Offset value associated with each ADV_EXT_IND packet sent on the main advertisement channel in an advertisement event needs to be recalculated. Therefore, in this embodiment, Also includes:
  • the interval time T of the extended advertisement data packet ADV_EXT_IND is 10ms and A is 21000us.
  • x is 11000us; when m is 3, x is 1000us.
  • the embodiment of the application stores the extended advertisement data packet in the external memory, which saves the extra memory space required by the Bluetooth baseband chip, and reduces the power consumption of the Bluetooth baseband chip by managing the sending of the advertisement data packet. This effectively improves the efficiency of the Bluetooth baseband chip.
  • FIG. 6 it is a schematic flowchart of a method for managing advertisement data of a Bluetooth baseband chip according to another embodiment of the present application. In addition to the steps shown in Figure 1, it also includes:
  • Step S4 When the sending time of the auxiliary advertisement data packet in the i+1th advertisement data set overlaps with the sending time of the i-th advertisement data set by more than a preset unit time, the i+1th advertisement The auxiliary advertisement data packet in the data set is sent before the i-th advertisement data set.
  • i is a positive integer and i ⁇ K.
  • the previously sent advertising extension data packet is not associated with the currently sent auxiliary advertising data packet, as shown in Figure 7. Therefore, in this embodiment, when the i+1 The data frame sent by the auxiliary advertising data packet in the advertising data set overlaps with the data frame sent by the i-th advertising data set, and the overlapping time exceeds a unit time (30 or 300us), the auxiliary advertisement data packet is sent first to ensure the integrity of the extended advertisement event that has been sent but not yet completed.
  • FIG. 8 it is a schematic structural diagram of a Bluetooth baseband chip advertisement data management device provided by an embodiment of the present application, including:
  • the advertisement data obtaining module 101 is used to obtain K advertisement data sets in response to an extended advertisement event.
  • the advertisement data set includes an extended advertisement data packet stored in an external memory; K is a positive integer.
  • the advertisement data sending module 102 is configured to write each advertisement data set into the frame cyclic queue along the write pointer, so that the Bluetooth baseband chip sends the advertisement data set in the frame cyclic queue along the read pointer.
  • the sending time determining module 103 is used for determining the sending time point of the auxiliary advertising data packet according to the frame arrangement situation of the advertising data set in the framing circular queue when the auxiliary advertising data packet exists in the advertising data set.
  • the embodiment of the application stores the extended advertisement data packet in the external memory, which saves the extra memory space required by the Bluetooth baseband chip, and reduces the power consumption of the Bluetooth baseband chip by managing the sending of the advertisement data packet. This effectively improves the efficiency of the Bluetooth baseband chip.
  • FIG. 9 it is a schematic structural diagram of a Bluetooth baseband chip advertisement data management device provided by another embodiment of the present application. In addition to the structure shown in Figure 8, it also includes:
  • the timing adjustment module 104 is configured to: when the sending time of the auxiliary advertisement data packet in the i+1th advertisement data set overlaps with the sending time of the i-th advertisement data set by more than a preset unit time, the i-th The auxiliary advertisement data packet in the +1 advertisement data set is sent before the i-th advertisement data set.
  • i is a positive integer and i ⁇ K.
  • the embodiment of the present application determines whether the advertisement data set sent before and the auxiliary advertisement data packet sent later belong to the same extended advertising event. When the two do not belong to the same extended advertising event, and both If the sending time of the user overlaps more than the preset unit time, the auxiliary advertising data packet is sent first to ensure the integrity of the extended advertising event that has been sent but not yet completed.
  • the program can be stored in a computer-transmissible storage medium. When executed, it may include the processes of the above-mentioned method embodiments.
  • the storage medium may be a magnetic disk, an optical disc, a read-only memory (Read-Only Memory, ROM), or a random access memory (Random Access Memory, RAM), etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • Accounting & Taxation (AREA)
  • Signal Processing (AREA)
  • Finance (AREA)
  • Development Economics (AREA)
  • Marketing (AREA)
  • Economics (AREA)
  • Game Theory and Decision Science (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本申请公开了一种蓝牙基带芯片的广告数据管理方法及装置,通过响应扩展广告事件,获取K个广告数据集;其中,广告数据集包括存储于外部存储器的扩展广告数据包;沿写指针将各广告数据集写入排帧循环队列中,以使蓝牙基带芯片沿读指针发送排帧循环队列中的广告数据集;以及,当广告数据集存在辅助广告数据包时,根据广告数据集在排帧循环队列中的排帧情况,确定辅助广告数据包的发送时间点。与现有技术相比,本申请实施例将扩展广告数据包存储于外部存储器,节省蓝牙基带芯片所需要的额外内存空间,并通过管理广告数据包的发送,降低了蓝牙基带芯片的功耗,进而有效提高蓝牙基带芯片的工作效率。

Description

一种蓝牙基带芯片的广告数据管理方法及装置 技术领域
本申请涉及网络通信技术领域,尤其涉及一种蓝牙基带芯片的广告数据管理方法及装置。
背景技术
蓝牙技术经过20多年的不断发展,其核心协议也在不断演化改进,应用领域和方向也不断得到扩展,从最初的主要应用于短距离连续稳定音频流(ACL和SCO)的传输和控制,到最近几年的低功耗蓝牙模式(Bluetooth low energy,BLE)点对点小数据量传输,以及目前多点对多点的广播数据传输(mesh),体现了蓝牙技术演化的基本路径,即适应当前IoT和智能化应用发展的主流趋势。最新的蓝牙5.0标准协议扩大了广告数据发送的单包容量(最多可达254-Byte),传输距离更远(允许的传输功率更高),传输速率更高(可达2Mbps)。
蓝牙5.0核心协议为了提高广告数据包的传输效率,从协议层优化了广告数据的发送模式,增加了扩展广告发送的模式。然而扩展广告发送模式虽然增加了广告数据发送的灵活性,即在一个广告事件中,为了尽可能减少广告数据总的发送数量和时间,只能在辅助广告数据包AUX_ADV_IND、AUX_SYNC_IND和AUX_CHAIN_IND中发送广告数据。但扩展广告数据包单包的数据长度最大可达254个字节,由于考虑到可能存在chain包的情形,因此在一个扩展广告事件中实际传输的广告数据总量根据应用场景的需要可能很大,进而导致蓝牙基带芯片所需的内存容量增加,且现有技术也无法有效地对蓝牙基带芯片所需发送的大量广告数据进行有效管理,导致蓝牙基带芯片的功耗增加。
发明内容
本申请实施例所要解决的技术问题在于,提供一种蓝牙基带芯片的广告数据管理方法及装置,节省蓝牙基带芯片所需要的额外内存空间,降低蓝牙基带 芯片的功耗。
为解决上述问题,本申请实施例提供一种蓝牙基带芯片的广告数据管理方法,适于在计算设备中执行,至少包括如下步骤:
响应扩展广告事件,获取K个广告数据集;其中,所述广告数据集包括存储于外部存储器的扩展广告数据包;K为正整数;
沿写指针将各所述广告数据集写入排帧循环队列中,以使蓝牙基带芯片沿读指针发送所述排帧循环队列中的所述广告数据集;以及,
当所述广告数据集存在辅助广告数据包时,根据所述广告数据集在所述排帧循环队列中的排帧情况,确定所述辅助广告数据包的发送时间点。
进一步的,所述响应扩展广告事件,获取广告数据集,包括:
响应扩展广告事件,确定K个所述广告数据集中,所需发送的M个所述扩展广告数据包,及M个所述扩展数据包的发送顺序,并根据M个所述扩展广告数据包的基地址,获取M个所述扩展广告数据包;其中,M为正整数且M≥K。
进一步的,所述排帧循环队列包括多个按帧号排列的扇区;所述扇区用于存储数据;
所述沿写指针将各所述广告数据集写入排帧循环队列中,以使蓝牙基带芯片沿读指针发送所述排帧循环队列中的所述广告数据集,包括:
将所述写指针所指向的所述扇区作为第一目标扇区;
向所述第一目标扇区写入所述广告数据集;
在所述第一目标扇区被写满后,将所述写指针指向的所述排帧循环队列中所述第一目标扇区的下一扇区,作为新的第一目标扇区;
将所述读指针所指向的所述扇区作为第二目标扇区,以使蓝牙基带芯片沿读指针发送所述第二目标扇区中的所述广告数据集,并清除所述第二目标扇区中已读的所述广告数据集。
进一步的,当所述广告数据集存在辅助广告数据包时,根据所述广告数据集在所述排帧循环队列中的排帧情况,确定所述辅助广告数据包的发送时间点,包括:
将所述广告数据集中,与所述辅助广告数据包相关联的所述扩展广告数据包作为第一目标数据包,根据所述第一目标数据包在所述排帧循环队列中的排帧情况,确定所述辅助广告数据包应位于的所述扇区的帧号f为f=(F+((A+B)/C))%D,以及确定所述辅助广告数据包的帧内发送时间偏移量ε为ε=(A+B)%C;其中,D为所述排帧循环队列的长度,F为所述第一目标数据包所位于的扇区的帧号,A为所述辅助广告数据包的Aux Offset值,B为所述第一目标数据包在所述排帧循环队列中的帧内发送偏移量,C为各所述扇区占用的时间长度;
根据所述帧号f及所述帧内发送时间偏移量ε,确定所述辅助广告数据包的发送时间点。
进一步的,还包括:
当主广告通道个数为n时,根据与所述第一目标数据包相关联的辅助广告数据包的Aux Offset值A,以及所述广告数据集中相邻所述扩展广告数据包的间隔时间T,确定与所述广告数据集中第二目标数据包相关联的辅助广告数据包的Aux Offset值x;其中,所述第二目标数据包为在所述第一目标数据包后发送的第m个扩展广告数据包;x=A-(m-1)*T*1000;1<m≤n。
进一步的,还包括:
当第i+1个所述广告数据集中的辅助广告数据包的发送时间,与第i个所述广告数据集的发送时间之间交叠超过预设的单位时间,则将第i+1个所述广告数据集中的辅助广告数据包,先于第i个所述广告数据集发送;其中,i为正整数且i<K。
进一步的,本申请实施例还提供一种蓝牙基带芯片的广告数据管理装置,包括:
广告数据获取模块,用于响应扩展广告事件,获取K个广告数据集;其中,所述广告数据集包括存储于外部存储器的扩展广告数据包;K为正整数;
广告数据发送模块,用于沿写指针将各所述广告数据集写入排帧循环队列中,以使蓝牙基带芯片沿读指针发送所述排帧循环队列中的所述广告数据集; 以及,
发送时间确定模块,用于当所述广告数据集存在辅助广告数据包时,根据所述广告数据集在所述排帧循环队列中的排帧情况,确定所述辅助广告数据包的发送时间点。
进一步的,还包括:
时序调整模块,用于当第i+1个所述广告数据集中的辅助广告数据包的发送时间,与第i个所述广告数据集的发送时间之间交叠超过预设的单位时间,则将第i+1个所述广告数据集中的辅助广告数据包,先于第i个所述广告数据集发送;其中,i为正整数且i<K。
实施本申请实施例,具有如下有益效果:
本申请实施例提供的一种蓝牙基带芯片的广告数据管理方法及装置,通过响应扩展广告事件,获取K个广告数据集;其中,广告数据集包括存储于外部存储器的扩展广告数据包;沿写指针将各广告数据集写入排帧循环队列中,以使蓝牙基带芯片沿读指针发送排帧循环队列中的广告数据集;以及,当广告数据集存在辅助广告数据包时,根据广告数据集在排帧循环队列中的排帧情况,确定辅助广告数据包的发送时间点。与现有技术相比,本申请实施例将扩展广告数据包存储于外部存储器,节省蓝牙基带芯片所需要的额外内存空间,并通过管理广告数据包的发送,降低了蓝牙基带芯片的功耗,进而有效提高蓝牙基带芯片的工作效率。
附图说明
图1是扩展广告事件中发送广告数据的基本模型及时序关系图;
图2是本申请的一个实施例提供的蓝牙基带芯片的广告数据管理方法的流程示意图;
图3是本申请的实施例提供的扩展广告数据包的存放格式图;
图4是本申请的实施例提供的排帧循环队列示意图;
图5是本申请的实施例提供的图1中步骤S2的流程示意图;
图6是本申请的又一个实施例提供的蓝牙基带芯片的广告数据管理方法的流程示意图;
图7是发送多个广告数据集的模型图;
图8是本申请的一个实施例提供的蓝牙基带芯片的广告数据管理装置的结构示意图;
图9是本申请的又一个实施例提供的蓝牙基带芯片的广告数据管理装置的结构示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
参见图1,是扩展广告事件中发送广告数据的基本模型及时序关系图。其中,ADV_EXT_IND包在主广告物理通道(primary advertising channel)上进行传输,与其相关联的辅助广告包及后续的广告包在辅广告物理通道(secondary advertising channel)上进行传输。
进一步的,参见图2,是本申请的一个实施例提供的蓝牙基带芯片的广告数据管理方法的流程示意图。如图1所示,包括步骤S1至步骤S3。各步骤具体如下:
步骤S1,响应扩展广告事件,获取N个广告数据集。
其中,广告数据集包括存储于外部存储器的扩展广告数据包;N为正整数。
步骤S2,沿写指针将各广告数据集写入排帧循环队列中,以使蓝牙基带芯片沿读指针发送排帧循环队列中的广告数据集。
步骤S3,当广告数据集存在辅助广告数据包时,根据广告数据集在排帧循环队列中的排帧情况,确定辅助广告数据包的发送时间点。
对于步骤S1,具体的,响应扩展广告事件,确定N个广告数据集中,所需 发送的M个扩展广告数据包,及M个扩展数据包的发送顺序,并根据M个扩展广告数据包的基地址,获取M个扩展广告数据包。
其中,M为正整数且M≥N。
由于扩展广告发送的扩展广告数据包相比于传统广告发送的数据包要大,传输一个完整的广告数据包所需要的时间相对也比较长,且对不同类型的扩展广告数据包其数据格式也不是固定不变的,可以根据应用环境的变化而有所变化。因此在本实施例中,扩展广告数据包存放在外部可读写存储器中,与存放在一个固定的内部存储区域的传统广告的数据包分开,以达到蓝牙基带芯片设计和实现中向下兼容各版本蓝牙核心协议为目的。其中,扩展广告数据包的存放格式如图3所示。
在本实施例中,存放在外部存储器中的扩展广告数据包的基地址base address需要写入蓝牙基带芯片的地址寄存器中,使得在响应扩展广告事件时,可根据基地址获取对应的扩展广告数据包。对于存在多个连续扩展广告数据包发送的情形,后续发送的扩展广告数据包的数据偏移地址也一并写入地址寄存器。
对于步骤S2,在本实施例中,如图4所示,排帧循环队列包括N个扇区,各扇区的帧号从0到N-1进行排列。W为写指针,指向下一个数据写入的帧位置,R为读指针,指向当前数据读取的帧位置。写指针W根据当前的排帧写入,读指针R由基带芯片根据处理帧信息的位置写入,读指针R不能越过写指针W的位置,反之亦然。如果R和W的值相等,说明当前的排帧循环队列为空或者为满。
需要说明的是,排帧循环队列中每一帧所占用的时间长度为1250us。
由于对于一个扩展广告事件,如果可用的主广告物理通道(primary advertising channel)存在多个,则在其上发送的每个ADV_EXT_IND广告数据包除了辅助广告数据包指针域(AuxPtr)的Aux offset值需要更新外,其它的字段域可以保持不变。因此在本实施例中,在每次将广告数据集写入排帧循环队列以及从排帧循环队列发送广告数据集时,需要同时更新所发送的扩展广告数据包内容,但数据基地址可以保持不变。
需要说明的是,当K>1时,若主广告通道或辅广告通道发送的扩展广告数据包的数据字段保持不变,则只更新需要修改的字段内容,比如AuxPtr,AdvData Info(ADI),AdvData等,扩展广告数据包保存在存储器中的基地址可以保持不变。
进一步的,如图5所示,步骤S2包括:
步骤S11,将写指针所指向的扇区作为第一目标扇区。
步骤S12,向第一目标扇区写入广告数据集。
步骤S13,在第一目标扇区被写满后,将写指针指向的排帧循环队列中第一目标扇区的下一扇区,作为新的第一目标扇区。
步骤S14,将读指针所指向的扇区作为第二目标扇区,以使蓝牙基带芯片沿读指针发送第二目标扇区中的广告数据集,并清除第二目标扇区中已读的广告数据集。
对于步骤S3,具体的,将广告数据集中,与辅助广告数据包相关联的扩展广告数据包作为第一目标数据包,根据第一目标数据包在排帧循环队列中的排帧情况,确定辅助广告数据包应位于的扇区的帧号f为f=(F+((A+B)/C))%D,以及确定辅助广告数据包的帧内发送时间偏移量ε为ε=(A+B)%C。
根据帧号f及帧内发送时间偏移量ε,确定辅助广告数据包的发送时间点。
其中,D为排帧循环队列的长度,F为第一目标数据包所位于的扇区的帧号,A为辅助广告数据包的Aux Offset值,B为第一目标数据包在排帧循环队列中的帧内发送偏移量,C为各扇区占用的时间长度,帧内发送时间偏移量为数据包在排帧循环队列中的起始发送时刻。
如,假设F为3,A为600us,B为150us,C为1250us,则计算得到的f为3,ε为750us,即辅助广告数据包与第一目标数据包是在同一帧内发送。假设F为3,A为1300us,B为150us,C为1250us,则计算得到的f为4,ε为200us,即辅助广告数据包在第一目标数据包的下一帧发送。
由于对于扩展广告事件中扩展广告数据包的Aux Offset偏移时间值,一个 广告事件中每个在主广告通道上发送的ADV_EXT_IND包所关联的Aux Offset值需要重新计算,因此在本实施例中,还包括:
当主广告通道个数为n时,根据与第一目标数据包相关联的辅助广告数据包的Aux Offset值A,以及广告数据集中相邻扩展广告数据包的间隔时间T,确定与广告数据集中第二目标数据包相关联的辅助广告数据包的Aux Offset值x。其中,第二目标数据包为在第一目标数据包后发送的第m个扩展广告数据包;x=A-(m-1)*T*1000;1<m≤n。
比如,同一个扩展广告事件内扩展广告数据包ADV_EXT_IND间隔时间T为10ms,A为21000us,则当m为2时,x为11000us;当m为3时,x则为1000us。
与现有技术相比,本申请实施例将扩展广告数据包存储于外部存储器,节省蓝牙基带芯片所需要的额外内存空间,并通过管理广告数据包的发送,降低了蓝牙基带芯片的功耗,进而有效提高蓝牙基带芯片的工作效率。
进一步的,参见图6,是本申请的又一个实施例提供的蓝牙基带芯片的广告数据管理方法的流程示意图。除图1所示步骤外,还包括:
步骤S4,当第i+1个广告数据集中的辅助广告数据包的发送时间,与第i个广告数据集的发送时间之间交叠超过预设的单位时间,则将第i+1个广告数据集中的辅助广告数据包,先于第i个广告数据集发送。
其中,i为正整数且i<K。
当存在多个广告数据集时,可能出现前一个发送的广告扩展数据包与当前发送的辅助广告数据包并不关联,如图7所示,因此在本实施例中,当第i+1个广告数据集中的辅助广告数据包发送的数据帧,与第i个广告数据集发送的数据帧存在交叠,且交叠的时间超过辅助广告数据包起始发送时间开始的一个单位时间(30或者300us),则优先发送该辅助广告数据包,以保证已经发送但尚未完成的扩展广告事件的完整性。
进一步的,参见图8,是本申请的一个实施例提供的蓝牙基带芯片的广告数据管理装置的结构示意图,包括:
广告数据获取模块101,用于响应扩展广告事件,获取K个广告数据集。其中,广告数据集包括存储于外部存储器的扩展广告数据包;K为正整数。
广告数据发送模块102,用于沿写指针将各广告数据集写入排帧循环队列中,以使蓝牙基带芯片沿读指针发送排帧循环队列中的广告数据集。
发送时间确定模块103,用于当广告数据集存在辅助广告数据包时,根据广告数据集在排帧循环队列中的排帧情况,确定辅助广告数据包的发送时间点。
与现有技术相比,本申请实施例将扩展广告数据包存储于外部存储器,节省蓝牙基带芯片所需要的额外内存空间,并通过管理广告数据包的发送,降低了蓝牙基带芯片的功耗,进而有效提高蓝牙基带芯片的工作效率。
进一步的,参见图9,是本申请的又一个实施例提供的蓝牙基带芯片的广告数据管理装置的结构示意图。除图8所示结构外,还包括:
时序调整模块104,用于当第i+1个广告数据集中的辅助广告数据包的发送时间,与第i个广告数据集的发送时间之间交叠超过预设的单位时间,则将第i+1个广告数据集中的辅助广告数据包,先于第i个广告数据集发送。
其中,i为正整数且i<K。
与现有技术相比,本申请的实施例通过判断在前发送的广告数据集,与在后发送的辅助广告数据包是否属于同一扩展广告事件,当两者不属于同一扩展广告事件,且两者的发送时间之间交叠超过预设的单位时间,优先发送该辅助广告数据包,以保证已经发送但尚未完成的扩展广告事件的完整性。
以上所述是本申请的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本申请原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也视为本申请的保护范围。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可发送存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。

Claims (8)

  1. 一种蓝牙基带芯片的广告数据管理方法,其特征在于,至少包括如下步骤:
    响应扩展广告事件,获取K个广告数据集;其中,所述广告数据集包括存储于外部存储器的扩展广告数据包;K为正整数;
    沿写指针将各所述广告数据集写入排帧循环队列中,以使蓝牙基带芯片沿读指针发送所述排帧循环队列中的所述广告数据集;以及,
    当所述广告数据集存在辅助广告数据包时,根据所述广告数据集在所述排帧循环队列中的排帧情况,确定所述辅助广告数据包的发送时间点。
  2. 根据权利要求1所述的蓝牙基带芯片的广告数据管理方法,其特征在于,所述响应扩展广告事件,获取广告数据集,包括:
    响应扩展广告事件,确定K个所述广告数据集中,所需发送的M个所述扩展广告数据包,及M个所述扩展数据包的发送顺序,并根据M个所述扩展广告数据包的基地址,获取M个所述扩展广告数据包;其中,M为正整数且M≥K。
  3. 根据权利要求1所述的蓝牙基带芯片的广告数据管理方法,其特征在于,所述排帧循环队列包括多个按帧号排列的扇区;所述扇区用于存储数据;
    所述沿写指针将各所述广告数据集写入排帧循环队列中,以使蓝牙基带芯片沿读指针发送所述排帧循环队列中的所述广告数据集,包括:
    将所述写指针所指向的所述扇区作为第一目标扇区;
    向所述第一目标扇区写入所述广告数据集;
    在所述第一目标扇区被写满后,将所述写指针指向的所述排帧循环队列中所述第一目标扇区的下一扇区,作为新的第一目标扇区;
    将所述读指针所指向的所述扇区作为第二目标扇区,以使蓝牙基带芯片沿读指针发送所述第二目标扇区中的所述广告数据集,并清除所述第二目标扇区中已读的所述广告数据集。
  4. 根据权利要求3所述的蓝牙基带芯片的广告数据管理方法,其特征在于,当所述广告数据集存在辅助广告数据包时,根据所述广告数据集在所述排帧循环队列中的排帧情况,确定所述辅助广告数据包的发送时间点,包括:
    将所述广告数据集中,与所述辅助广告数据包相关联的所述扩展广告数据包作为第一目标数据包,根据所述第一目标数据包在所述排帧循环队列中的排帧情况,确定所述辅助广告数据包应位于的所述扇区的帧号f为f=(F+((A+B)/C))%D,以及确定所述辅助广告数据包的帧内发送时间偏移量ε为ε=(A+B)%C;其中,D为所述排帧循环队列的长度,F为所述第一目标数据包所位于的扇区的帧号,A为所述辅助广告数据包的Aux Offset值,B为所述第一目标数据包在所述排帧循环队列中的帧内发送偏移量,C为各所述扇区占用的时间长度;
    根据所述帧号f及所述帧内发送时间偏移量ε,确定所述辅助广告数据包的发送时间点。
  5. 根据权利要求4所述的蓝牙基带芯片的广告数据管理方法,其特征在于,还包括:
    当主广告通道个数为n时,根据与所述第一目标数据包相关联的辅助广告数据包的Aux Offset值A,以及所述广告数据集中相邻所述扩展广告数据包的间隔时间T,确定与所述广告数据集中第二目标数据包相关联的辅助广告数据包的Aux Offset值x;其中,所述第二目标数据包为在所述第一目标数据包后发送的第m个扩展广告数据包;x=A-(m-1)*T*1000;1<m≤n。
  6. 根据权利要求1所述的蓝牙基带芯片的广告数据管理方法,其特征在于,还包括:
    当第i+1个所述广告数据集中的辅助广告数据包的发送时间,与第i个所述广告数据集的发送时间之间交叠超过预设的单位时间,则将第i+1个所述广 告数据集中的辅助广告数据包,先于第i个所述广告数据集发送;其中,i为正整数且i<K。
  7. 一种蓝牙基带芯片的广告数据管理装置,其特征在于,包括:
    广告数据获取模块,用于响应扩展广告事件,获取K个广告数据集;其中,所述广告数据集包括存储于外部存储器的扩展广告数据包;K为正整数;
    广告数据发送模块,用于沿写指针将各所述广告数据集写入排帧循环队列中,以使蓝牙基带芯片沿读指针发送所述排帧循环队列中的所述广告数据集;以及,
    发送时间确定模块,用于当所述广告数据集存在辅助广告数据包时,根据所述广告数据集在所述排帧循环队列中的排帧情况,确定所述辅助广告数据包的发送时间点。
  8. 根据权利要求7所述的一种蓝牙基带芯片的广告数据管理装置,其特征在于,还包括:
    时序调整模块,用于当第i+1个所述广告数据集中的辅助广告数据包的发送时间,与第i个所述广告数据集的发送时间之间交叠超过预设的单位时间,则将第i+1个所述广告数据集中的辅助广告数据包,先于第i个所述广告数据集发送;其中,i为正整数且i<K。
PCT/CN2020/077369 2019-06-27 2020-03-01 一种蓝牙基带芯片的广告数据管理方法及装置 WO2020258910A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910572894.4 2019-06-27
CN201910572894.4A CN110337097B (zh) 2019-06-27 2019-06-27 一种蓝牙基带芯片的广告数据管理方法及装置

Publications (1)

Publication Number Publication Date
WO2020258910A1 true WO2020258910A1 (zh) 2020-12-30

Family

ID=68143577

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/077369 WO2020258910A1 (zh) 2019-06-27 2020-03-01 一种蓝牙基带芯片的广告数据管理方法及装置

Country Status (2)

Country Link
CN (1) CN110337097B (zh)
WO (1) WO2020258910A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110337097B (zh) * 2019-06-27 2020-10-27 安凯(广州)微电子技术有限公司 一种蓝牙基带芯片的广告数据管理方法及装置

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107608630A (zh) * 2017-09-07 2018-01-19 四川九洲北斗导航与位置服务有限公司 数据读写方法及装置
EP3339877A1 (fr) * 2016-12-23 2018-06-27 Valeo Comfort and Driving Assistance Procédé de localisation d'un terminal utilisateur par rapport à un véhicule automobile
CN108886677A (zh) * 2016-04-14 2018-11-23 高通股份有限公司 用于蓝牙设备发现的系统和方法
WO2018228377A1 (en) * 2017-06-12 2018-12-20 Mediatek Inc. Bluetooth advertising processing techniques
CN109565365A (zh) * 2016-06-22 2019-04-02 高通股份有限公司 用于反向信道通信的系统和方法
CN110337097A (zh) * 2019-06-27 2019-10-15 安凯(广州)微电子技术有限公司 一种蓝牙基带芯片的广告数据管理方法及装置

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101154183B (zh) * 2006-09-29 2011-12-28 上海海尔集成电路有限公司 一种微控制器嵌入式在线仿真调试系统
US8463181B2 (en) * 2008-08-14 2013-06-11 Mediatek Inc. Communication apparatuses and methods for flexibly providing various application profiles of a wireless communication system
CN101594299B (zh) * 2009-05-20 2011-06-29 清华大学 基于链表的交换网络中队列缓冲管理方法
CN102033233A (zh) * 2009-09-28 2011-04-27 深圳市海威讯科技有限公司 整合蓝牙技术的全球定位系统接收机
CN101789043B (zh) * 2010-01-29 2012-07-04 上海富瀚微电子有限公司 一种基于asic设计的bm3d集合装置
KR20130046540A (ko) * 2011-10-28 2013-05-08 삼성에스디에스 주식회사 데이터 전송 장치 및 방법
US9886207B2 (en) * 2014-09-16 2018-02-06 Mediatek Inc. Memory-access method using batch command queue and associated controller
CN104461917A (zh) * 2014-12-05 2015-03-25 宁波新尚智能电气有限公司 基于Nor Flash的区域循环存储方法

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108886677A (zh) * 2016-04-14 2018-11-23 高通股份有限公司 用于蓝牙设备发现的系统和方法
CN109565365A (zh) * 2016-06-22 2019-04-02 高通股份有限公司 用于反向信道通信的系统和方法
EP3339877A1 (fr) * 2016-12-23 2018-06-27 Valeo Comfort and Driving Assistance Procédé de localisation d'un terminal utilisateur par rapport à un véhicule automobile
WO2018228377A1 (en) * 2017-06-12 2018-12-20 Mediatek Inc. Bluetooth advertising processing techniques
CN107608630A (zh) * 2017-09-07 2018-01-19 四川九洲北斗导航与位置服务有限公司 数据读写方法及装置
CN110337097A (zh) * 2019-06-27 2019-10-15 安凯(广州)微电子技术有限公司 一种蓝牙基带芯片的广告数据管理方法及装置

Also Published As

Publication number Publication date
CN110337097A (zh) 2019-10-15
CN110337097B (zh) 2020-10-27

Similar Documents

Publication Publication Date Title
WO2021088466A1 (zh) 提高网络芯片报文存储效率的方法、设备及存储介质
US11681452B2 (en) Memory access technology and computer system
EP2913963B1 (en) Data caching system and method for an ethernet device
US7930451B2 (en) Buffer controller and management method thereof
US8560778B2 (en) Accessing data blocks with pre-fetch information
CN100481028C (zh) 一种利用缓存实现数据存储的方法和装置
KR101121592B1 (ko) 버스트 판독기록 동작을 구비한 처리 장치
US20090138597A1 (en) system and method for accessing memory
CN102253898B (zh) 一种图像数据的内存管理方法及装置
WO2019061270A1 (zh) 数据缓存装置及控制方法、数据处理芯片、数据处理系统
EP3166269B1 (en) Queue management method and apparatus
CN111491284B (zh) 蓝牙ble时延优化方法、设备和存储介质
CN107783727B (zh) 一种内存设备的访问方法、装置和系统
WO2020258910A1 (zh) 一种蓝牙基带芯片的广告数据管理方法及装置
CN104572498B (zh) 报文的缓存管理方法和装置
CN102215286A (zh) 一种嵌入式多通道电话录音录时系统
TWI360744B (en) Data packet processing device
WO2023165188A1 (zh) 一种顺序读预读的方法、装置、设备及介质
US8717891B2 (en) Shaping apparatus and method
CN114579505A (zh) 芯片以及核间通信方法
CN112688833A (zh) 网络时延和时延抖动的测量方法、装置及计算机存储介质
CN112685358A (zh) 一种基于fpga的ddr3分组读写方法
CN111949486B (zh) 一种实时集群业务监控的实现方法、装置
CN116578741B (zh) 视图混合存储方法、装置及系统
US8843661B2 (en) Data transfer between wireless universal serial bus (USB) host controller driver and wireless USB host controller in a wireless USB host

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20833566

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20833566

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 20/07/2022)

122 Ep: pct application non-entry in european phase

Ref document number: 20833566

Country of ref document: EP

Kind code of ref document: A1