CN107018481B - Beacon broadcasting method and device based on BLE5 - Google Patents

Beacon broadcasting method and device based on BLE5 Download PDF

Info

Publication number
CN107018481B
CN107018481B CN201710295847.0A CN201710295847A CN107018481B CN 107018481 B CN107018481 B CN 107018481B CN 201710295847 A CN201710295847 A CN 201710295847A CN 107018481 B CN107018481 B CN 107018481B
Authority
CN
China
Prior art keywords
broadcast packet
information
packet data
broadcast
time
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.)
Active
Application number
CN201710295847.0A
Other languages
Chinese (zh)
Other versions
CN107018481A (en
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.)
Peach Core Technology (Suzhou) Co., Ltd.
Original Assignee
Peach Core Technology (suzhou) 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 Peach Core Technology (suzhou) Co Ltd filed Critical Peach Core Technology (suzhou) Co Ltd
Priority to CN201710295847.0A priority Critical patent/CN107018481B/en
Publication of CN107018481A publication Critical patent/CN107018481A/en
Application granted granted Critical
Publication of CN107018481B publication Critical patent/CN107018481B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the invention provides a Beacon broadcasting method and device based on BLE5, wherein the method comprises the following steps: generating broadcast packet data according to broadcast packet index information and preset broadcast packet mode information, wherein the broadcast packet index information is used for indicating the number and the sequence of the broadcast packet data, and the preset broadcast packet mode information comprises multi-tag mode information, entity information mode information and comprehensive information mode information; creating a time parameter for the broadcast packet data according to the broadcast packet index information, and performing time distribution on the broadcast packet data according to the time parameter, the broadcast packet index information and the time axis information to obtain time scheduling information of the broadcast packet data; generating a broadcast packet queue from the broadcast packet data according to the time scheduling information; and starting a timer according to the time parameter, and selecting and sending the broadcast packet data to the Bluetooth terminal equipment from the broadcast packet queue according to the time parameter of the broadcast packet data and the real-time of the timer. The embodiment of the invention meets the actual requirement of Beacon broadcasting.

Description

Beacon broadcasting method and device based on BLE5
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a Beacon broadcasting method and device based on BLE 5.
Background
Along with the continuous popularization of internet of things, the demand of emerging fields such as intelligent families, intelligent medical treatment, wearable equipment, automatic driving and payment for the communication capacity of the internet of things is continuously improved, and the Bluetooth Beacon technology is also rapidly promoted and developed. The Bluetooth Beacon technology is widely applied to the fields of indoor positioning, message pushing and Internet of things application, in particular to large public service institutions such as shopping malls and supermarkets.
Because the capacity of a traditional Beacon broadcast packet is limited to 32 bytes, only indirect information such as label information and the like can be independently pushed to a user terminal for a user terminal application program to analyze, characteristics such as a Beacon position, a Beacon number and a Beacon attribute are further determined, and the user terminal accesses a server through the characteristics to read required data information.
With the requirement improvement of various applications, the information carrying capacity of the traditional Beacon broadcast obviously restricts the diversity development of the applications. The Beacon technology is applied as a service device, the broadcast implementation method is single, the broadcast packet data specificity is extremely strong, the sharing of Beacon software and hardware resources is not facilitated, and rich application is more difficult to develop.
Disclosure of Invention
The embodiment of the invention provides a Beacon broadcasting method and device based on BLE5, and aims to solve the problem that the existing Beacon broadcasting cannot meet actual requirements.
According to an aspect of the embodiments of the present invention, a Beacon broadcasting method based on BLE5 is provided, including: generating broadcast packet data according to broadcast packet index information and preset broadcast packet mode information, wherein the broadcast packet index information is used for indicating the number and the sequence of the broadcast packet data, and the preset broadcast packet mode information comprises: multi-tag mode information, entity information mode information, and integrated information mode information; creating a time parameter for the broadcast packet data according to the broadcast packet index information, and performing time distribution on the broadcast packet data according to the time parameter, the broadcast packet index information and time axis information to obtain time scheduling information of the broadcast packet data; generating a broadcast packet queue from the broadcast packet data according to the time scheduling information; and starting a timer according to the time parameter, and selecting and sending the broadcast packet data from the broadcast packet queue to Bluetooth terminal equipment according to the time parameter of the broadcast packet data and the real-time of the timer.
According to another aspect of the embodiments of the present invention, there is also provided a Beacon broadcasting device based on BLE5, including: a broadcast mode management module, configured to generate broadcast packet data according to broadcast packet index information and preset broadcast packet mode information, where the broadcast packet index information is used to indicate the number and sequence of the broadcast packet data, and the preset broadcast packet mode information includes: multi-tag mode information, entity information mode information, and integrated information mode information; the broadcast time management module is used for creating a time parameter for the broadcast packet data according to the broadcast packet index information and performing time distribution on the broadcast packet data according to the time parameter, the broadcast packet index information and time axis information to obtain time scheduling information of the broadcast packet data; the Bluetooth processor module is used for generating a broadcast packet queue from the broadcast packet data according to the time scheduling information; and the broadcast control module is used for starting a timer according to the time parameter, selecting and sending the broadcast packet data to the Bluetooth terminal equipment from the broadcast packet queue according to the time parameter of the broadcast packet data and the real-time of the timer.
According to the Beacon broadcasting method and device based on BLE5 provided by the embodiment of the invention, the broadcasting packet data are generated according to the broadcasting packet index information and the preset broadcasting packet mode information, wherein the broadcasting packet index information is used for indicating the number and the sequence of the broadcasting packet data, for example, the broadcasting packet index information can be accumulated one by one starting from 1. The preset broadcast packet mode information includes: multi-tag schema information, entity information schema information, and integrated information schema information. And creating a time parameter for the broadcast packet data according to the broadcast packet index information, and performing time distribution on the broadcast packet data according to the time parameter, the broadcast packet index information and the time axis information to obtain time scheduling information of the broadcast packet data. And generating a broadcast packet queue for the broadcast packet data according to the time scheduling information. And starting a timer according to the time parameter, and selecting and sending the broadcast packet data to the Bluetooth equipment from the broadcast packet queue according to the time parameter of the broadcast packet data and the real-time of the timer.
The embodiment of the invention achieves the purpose of simultaneously supporting a plurality of Bluetooth terminal devices by presetting the broadcast packet mode information, thereby realizing the shared application of Beacon software and hardware.
In the embodiment of the invention, if the preset broadcast packet mode information is entity information mode information or comprehensive information mode information, the entity information such as pictures, characters, network links, symbols and the like and the combination thereof can be carried in the broadcast packet data, so that the Bluetooth terminal equipment can directly acquire the entity information.
In the embodiment of the invention, if the preset broadcast packet mode information is multi-label mode information, various labels can be carried in the broadcast packet data, so that various types of Bluetooth terminal equipment can share one broadcast packet data and source equipment thereof.
The embodiment of the invention creates the time parameter for the broadcast packet data, selects and sends the broadcast packet data from the broadcast packet queue to the Bluetooth terminal equipment according to the time scheduling information, and improves the efficiency of Beacon application.
Drawings
Figure 1 is a flowchart illustrating steps of a Beacon broadcasting method based on BLE5 according to a first embodiment of the present invention;
fig. 2a is a schematic diagram illustrating a cyclic broadcasting manner of broadcasting packet data according to a first embodiment of the present invention;
FIG. 2b is a diagram illustrating a single broadcasting mode for broadcasting packet data according to a first embodiment of the present invention;
figure 3 is a flowchart of steps of a Beacon broadcasting method based on BLE5 according to a second embodiment of the present invention;
figure 4 is a schematic diagram illustrating the principle of a Beacon broadcasting method based on BLE5 according to a second embodiment of the present invention;
figure 5 is a block diagram of a Beacon broadcasting device based on BLE5 according to a third embodiment of the present invention;
figure 6 is a block diagram of a Beacon broadcasting device based on BLE5 according to a fourth embodiment of the present invention;
figure 7 is a flowchart of the operation of a Beacon broadcasting device based on BLE5 according to a fourth embodiment of the present invention.
Detailed Description
The following detailed description of embodiments of the invention is provided in conjunction with the accompanying drawings (like numerals indicate like elements throughout the several views) and examples. The following examples are intended to illustrate the invention but are not intended to limit the scope of the invention.
It will be understood by those of skill in the art that the terms "first," "second," and the like in the embodiments of the present invention are used merely to distinguish one element, step, device, module, or the like from another element, and do not denote any particular technical or logical order therebetween.
Example one
Figure 1 shows a flowchart of steps of a Beacon broadcasting method based on BLE5 according to a first embodiment of the present invention.
The Beacon broadcasting method based on BLE5 provided by the embodiment of the invention comprises the following steps.
And step S100, generating broadcast packet data according to the broadcast packet index information and the preset broadcast packet mode information.
In this embodiment, the broadcast packet index information is used to indicate the number and sequence of broadcast packet data, for example, the broadcast packet index information is accumulated one by one starting from 1: 1. 2, 3 … … n. The preset broadcast packet mode information includes: multi-tag schema information, entity information schema information, and integrated information schema information. The integrated information mode information is information obtained by combining multi-label mode information and entity information mode information. The broadcast packet mode information can be set according to actual needs.
In this embodiment, the broadcast packet data may be set to a single broadcast mode or a cyclic broadcast mode, where a single broadcast time in the single broadcast mode may be set to any time. The broadcasting frequency and the broadcasting time length in the circulating broadcasting mode can be set in a self-defining mode. In the circulation broadcast manner, as shown in fig. 2a, the broadcast packet data 1, the broadcast packet data 2, the broadcast packet data 3, the broadcast packet data 4, and the broadcast packet data 5 are transmitted at a time point T1, a time point T2, a time point T3, a time point T4, and a time point Tn, respectively, and the time point T1, the time point T2, the time point T3, the time point T4, and the time point Tn are time points of a sequential circulation. In the one-time broadcasting scheme, as shown in fig. 2b, the broadcast packet data 1 and the broadcast packet data 2 are transmitted at a time point T1 and a time point T2, respectively.
Step S102, creating a time parameter for the broadcast packet data according to the broadcast packet index information, and performing time distribution on the broadcast packet data according to the time parameter, the broadcast packet index information and the time axis information to obtain time scheduling information of the broadcast packet data.
In step S102, the broadcast packet data may be scheduled in the time dimension, so as to implement time division multiplexing of different broadcast packet data. Each broadcast packet data can set time parameters such as a broadcast period, a broadcast interval and the like according to actual needs.
And step S104, generating a broadcast packet queue according to the time scheduling information.
For example, if the broadcast packet data 1 is transmitted at the time point T1, the broadcast packet data 2 is transmitted at the time point T2, and the broadcast packet data 3 is transmitted at the time point T3, and if the time points T1, T2, and T3 are sequential time points, i.e., the time point T1 is followed by the time point T2, and the time point T2 is followed by the time point T3, a broadcast packet queue including the broadcast packet data 1, the broadcast packet data 2, and the broadcast packet data 3 is generated in the order of the broadcast packet data 1, the broadcast packet data 2, and the broadcast packet data 3.
And step S106, starting the timer according to the time parameter, and selecting and sending the broadcast packet data to the Bluetooth terminal equipment from the broadcast packet queue according to the time parameter of the broadcast packet data and the real-time of the timer.
In this embodiment, the time of the timer may be set according to a time parameter of the broadcast packet data. As for the above example, if the real-time of the timer is time point T1, selecting broadcast packet data 1 from the broadcast packet queue, and sending the broadcast packet data 1 to the bluetooth terminal device; if the real time of the timer is time point T2, selecting broadcast packet data 2 from the broadcast packet queue and transmitting the broadcast packet data 2 to the bluetooth terminal device.
According to the Beacon broadcasting method based on BLE5 provided by the embodiment, broadcast packet data is generated according to broadcast packet index information and preset broadcast packet mode information, wherein the broadcast packet index information is used for indicating the number and the sequence of the broadcast packet data, and for example, the broadcast packet index information may be accumulated one by one starting from 1. The preset broadcast packet mode information includes: multi-tag schema information, entity information schema information, and integrated information schema information. And creating a time parameter for the broadcast packet data according to the broadcast packet index information, and performing time distribution on the broadcast packet data according to the time parameter, the broadcast packet index information and the time axis information to obtain time scheduling information of the broadcast packet data. And generating a broadcast packet queue for the broadcast packet data according to the time scheduling information. And starting a timer according to the time parameter, and selecting and sending the broadcast packet data to the Bluetooth equipment from the broadcast packet queue according to the time parameter of the broadcast packet data and the real-time of the timer.
The purpose of simultaneously supporting multiple Bluetooth terminal devices is achieved by presetting broadcast packet mode information, and then the sharing application of Beacon software and hardware is realized.
In this embodiment, if the preset broadcast packet mode information is entity information mode information or integrated information mode information, the preset broadcast packet mode information may carry entity information such as pictures, characters, network links, symbols, and the like, and a combination thereof in the broadcast packet data, so that the bluetooth terminal device can directly obtain the entity information.
In this embodiment, if the preset broadcast packet mode information is multi-tag mode information, multiple tags may be carried in the broadcast packet data, so that multiple types of bluetooth terminal devices share one broadcast packet data and source devices thereof.
In the embodiment, the time parameter is created for the broadcast packet data, and the broadcast packet data is selected from the broadcast packet queue and sent to the Bluetooth terminal equipment according to the time scheduling information, so that the efficiency of Beacon application is improved.
Example two
Figure 3 shows a flowchart of steps of a Beacon broadcasting method based on BLE5 according to a second embodiment of the present invention.
The present embodiment focuses on emphasizing the differences from the above embodiments, and reference may be made to the related descriptions in the above embodiments for the same parts, which are not described herein again.
The Beacon broadcasting method based on BLE5 provided by the present embodiment includes the following steps.
And step S300, reading preset broadcast packet mode information from a memory according to the broadcast packet index information.
The preset broadcast packet mode information can be set according to actual needs, and the set broadcast packet mode information can be stored in a memory, such as a memory, for subsequent calling. In addition, in the execution process of the embodiment, the broadcast packet mode information can be added to the memory at any time without affecting the existing broadcast packet mode information.
Step S302, generating broadcast packet data according to the broadcast packet index information and the preset broadcast packet mode information.
This step S302 may include the following steps.
And step S3020, reading the external input data from the memory.
The external input data in this embodiment may be external device data, such as sensor data, or may also be entity information, such as pictures, words, links, and the like.
Step S3022, generating broadcast packet data according to the external input data and the preset broadcast packet mode information.
This step S3022 may encapsulate the external input data as entity information in the broadcast packet data.
Step S304, creating a time parameter for the broadcast packet data according to the broadcast packet index information, and performing time distribution on the broadcast packet data according to the time parameter, the broadcast packet index information and the time axis information to obtain time scheduling information of the broadcast packet data.
The time parameter in this embodiment may include: a broadcast period, a broadcast interval, a broadcast window, initialization information, start information, and stop information of the timer.
Step S306, generating a broadcast packet queue according to the time scheduling information.
And step S308, starting a timer according to the time parameter, and selecting and sending the broadcast packet data to the Bluetooth terminal equipment from the broadcast packet queue according to the time parameter of the broadcast packet data and the real-time of the timer.
This step S308 may include the following steps.
Step S3080, determining the broadcast packet data corresponding to the real-time of the timer from the broadcast packet queue according to the time parameter of the broadcast packet data.
For example, if the real time of the timer is time point T2, the broadcast packet data 2 corresponding to time point T2 is determined from the broadcast queue.
And step S3082, transmitting the determined broadcast packet data to the Bluetooth terminal equipment.
Based on the introduction of the Beacon broadcasting method based on BLE5, the embodiment can implement multiple applications sharing tag IDs, and share bluetooth hardware devices, thereby ensuring both the specificity of each application development and the compatibility of bluetooth hardware. Meanwhile, real-time scheduling of the broadcast packet data can be realized, and the application capability of the Beacon equipment is improved. In one possible implementation, n tags of ID1 and ID2 … IDn are combined into one broadcast packet data. The ID1 and the ID2 … IDn respectively represent identification IDs of applications of different manufacturers, and are set by self-definition according to requirements of application manufacturers, for example, the ID1 represents an identification ID of an indoor positioning application of a company A, the ID2 represents an identification ID of a shop preference information push application of a company B, and the IDn represents an identification ID of an enterprise electronic business card application of a company C. After the broadcast packet data is sent out, when the applications enter a broadcast range, each application analyzes the ID number segment belonging to the application according to the ID number and implements the application according to the ID number content.
In the embodiment, the entity information mode displays direct data contents such as pictures, characters, links, electronic business cards and the like, so that the broadcast packet data is quickly and intuitively displayed to the user terminal. For example, the map position and the preference information can be directly shown by the picture. The text can be directly used for content description. The link may provide subsequent access, etc.
In the integrated information mode in this embodiment, multi-tag information and entity information are combined to form broadcast packet data of mixed information, where the tag information is used for multi-application support, and the entity information is used for visual information display, so as to provide an effective solution for multi-application sharing of bluetooth hardware devices.
In one possible embodiment, three modes of broadcast packet data are first generated, namely a multi-tag mode, a general information mode, and an entity information mode. Then, a time parameter is set for each broadcast packet data and the broadcast packet data is generated into a broadcast packet queue. And secondly, scheduling the broadcast packet data according to time. When the Bluetooth terminal equipment enters the range of the broadcast packet data, the Bluetooth terminal equipment receives the corresponding broadcast packet data according to the requirement, analyzes the broadcast packet data and then applies the broadcast packet data. Referring to fig. 4, broadcast packet data, which are a multi-label broadcast packet, a general information broadcast packet, and an entity information broadcast packet, respectively, are originated from the Beacon node, and correspond to time point T1, time point T2, and time point T3, respectively. The bluetooth terminal device 1 corresponds to the tag ID1, the bluetooth terminal device 2 corresponds to the tag ID2, and the bluetooth terminal device n corresponds to the tag IDn, and after each bluetooth terminal device receives the respective broadcast packet data, each bluetooth terminal device analyzes the broadcast packet data, and interacts with the corresponding application server 1, application server 2, and application server 3.
According to the Beacon broadcasting method based on BLE5 provided by the embodiment, broadcast packet data is generated according to broadcast packet index information and preset broadcast packet mode information, wherein the broadcast packet index information is used for indicating the number and the sequence of the broadcast packet data, and for example, the broadcast packet index information may be accumulated one by one starting from 1. The preset broadcast packet mode information includes: multi-tag schema information, entity information schema information, and integrated information schema information. And creating a time parameter for the broadcast packet data according to the broadcast packet index information, and performing time distribution on the broadcast packet data according to the time parameter, the broadcast packet index information and the time axis information to obtain time scheduling information of the broadcast packet data. And generating a broadcast packet queue for the broadcast packet data according to the time scheduling information. And starting a timer according to the time parameter, and selecting and sending the broadcast packet data to the Bluetooth equipment from the broadcast packet queue according to the time parameter of the broadcast packet data and the real-time of the timer.
The purpose of simultaneously supporting multiple Bluetooth terminal devices is achieved by presetting broadcast packet mode information, and then the sharing application of Beacon software and hardware is realized.
In this embodiment, if the preset broadcast packet mode information is entity information mode information or integrated information mode information, the preset broadcast packet mode information may carry entity information such as pictures, characters, network links, symbols, and the like, and a combination thereof in the broadcast packet data, so that the bluetooth terminal device can directly obtain the entity information.
In this embodiment, if the preset broadcast packet mode information is multi-tag mode information, multiple tags may be carried in the broadcast packet data, so that multiple types of bluetooth terminal devices share one broadcast packet data and source devices thereof.
In the embodiment, the time parameter is created for the broadcast packet data, and the broadcast packet data is selected from the broadcast packet queue and sent to the Bluetooth terminal equipment according to the time scheduling information, so that the efficiency of Beacon application is improved.
According to the embodiment, the limited broadcast packet data form the broadcast packet queue, the broadcast packet data in the broadcast packet queue are scheduled in a time-sharing mode, and the adaptability and the expansion capability of the Beacon device to the application are improved.
The embodiment dynamically acquires the external input data and encapsulates the external input data into the broadcast packet data, thereby enriching the content of the broadcast packet data.
EXAMPLE III
Figure 5 shows a block diagram of a Beacon broadcasting device based on BLE5 according to a third embodiment of the present invention.
The Beacon broadcasting device based on BLE5 provided by this embodiment includes: a broadcast mode management module 500, configured to generate broadcast packet data according to broadcast packet index information and preset broadcast packet mode information, where the broadcast packet index information is used to indicate the number and sequence of the broadcast packet data, and the preset broadcast packet mode information includes: multi-tag schema information, entity information schema information, and integrated information schema information. The broadcast time management module 502 is configured to create a time parameter for the broadcast packet data according to the broadcast packet index information, and perform time allocation on the broadcast packet data according to the time parameter, the broadcast packet index information, and the time axis information to obtain time scheduling information of the broadcast packet data. And the bluetooth processor module 504 is configured to generate a broadcast packet queue from the broadcast packet data according to the time scheduling information. And the broadcast control module 506 is used for starting the timer according to the time parameter, and selecting and sending the broadcast packet data to the bluetooth terminal device from the broadcast packet queue according to the time parameter of the broadcast packet data and the real-time of the timer. The broadcast control module 506 is configured to perform real-time maintenance on the broadcast packet data in the broadcast packet queue, including executing a broadcast command, stopping the broadcast command, restarting the broadcast command, and controlling the broadcast command in a timing manner. And a broadcast control module 506, configured to send the broadcast packet data to the bluetooth terminal device according to the bluetooth protocol command.
According to the Beacon broadcasting device based on BLE5 that this embodiment provided, through predetermineeing broadcast packet mode information, reach the purpose that supports many money bluetooth terminal equipment simultaneously, and then realize the shared application of Beacon software and hardware.
In this embodiment, if the preset broadcast packet mode information is entity information mode information or integrated information mode information, the preset broadcast packet mode information may carry entity information such as pictures, characters, network links, symbols, and the like, and a combination thereof in the broadcast packet data, so that the bluetooth terminal device can directly obtain the entity information.
In this embodiment, if the preset broadcast packet mode information is multi-tag mode information, multiple tags may be carried in the broadcast packet data, so that multiple types of bluetooth terminal devices share one broadcast packet data and source devices thereof.
In the embodiment, the time parameter is created for the broadcast packet data, and the broadcast packet data is selected from the broadcast packet queue and sent to the Bluetooth terminal equipment according to the time scheduling information, so that the efficiency of Beacon application is improved.
Example four
Figure 6 shows a block diagram of a Beacon broadcasting device based on BLE5 according to a third embodiment of the present invention.
The Beacon broadcasting device based on BLE5 provided by this embodiment includes: a broadcast mode management module 600, configured to generate broadcast packet data according to broadcast packet index information and preset broadcast packet mode information, where the broadcast packet index information is used to indicate the number and sequence of the broadcast packet data, and the preset broadcast packet mode information includes: multi-tag schema information, entity information schema information, and integrated information schema information. The broadcast time management module 602 is configured to create a time parameter for the broadcast packet data according to the broadcast packet index information, and perform time allocation on the broadcast packet data according to the time parameter, the broadcast packet index information, and the time axis information to obtain time scheduling information of the broadcast packet data. Wherein, the time parameter includes: broadcast period, broadcast interval, broadcast window, initialization information, start information and stop information of the timer. The bluetooth processor module 604 is configured to generate a broadcast packet queue from the broadcast packet data according to the time scheduling information. And the broadcast control module 606 is configured to start a timer according to the time parameter, and select and send the broadcast packet data from the broadcast packet queue to the bluetooth terminal device according to the time parameter of the broadcast packet data and the real-time of the timer.
Optionally, the broadcast mode management module 600 is further configured to read the preset broadcast packet mode information from the memory according to the broadcast packet index information before generating the broadcast packet data according to the broadcast packet index information and the preset broadcast packet mode information.
Optionally, the broadcast mode management module 600 includes: the external input data reading module is used for reading external input data from the memory; and the broadcast packet data generating module is used for generating broadcast packet data according to external input data and preset broadcast packet mode information.
Optionally, the broadcast control module 606 includes: the broadcast packet data determining module is used for determining broadcast packet data corresponding to the real-time of the timer from the broadcast packet queue according to the time parameter of the broadcast packet data; and the broadcast packet data sending module is used for sending the determined broadcast packet data to the Bluetooth terminal equipment.
Based on the introduction of the Beacon broadcasting device based on BLE5, the broadcast mode management module 600 is configured to manage scheduling policies of broadcast packet data in multiple modes, and mainly includes setting of broadcast packet modes and content organization, such as multi-tag broadcasting, entity information broadcasting, and general information broadcasting. The broadcast mode management module 600 combines the tags, the entity information and the mixing information required by the user according to the requirement of the user and the protocol format of the broadcast packet data, and sends the combined information to the bluetooth processor module 604 for processing. The broadcast mode management module 600 supports the simultaneous organization of the content of a plurality of broadcast packet data.
The broadcast time management module 602 is configured to schedule broadcast packet data in a time dimension, so as to implement time division multiplexing of different broadcast packet data. Each broadcast packet data can define time parameters such as a broadcast period, a broadcast interval and the like according to user needs. The broadcast time management module 602 implements low power consumption control of the bluetooth device through optimal time scheduling and optimal sleep settings.
The Beacon broadcasting device based on BLE5 of this embodiment further includes: the external input control module 608 is mainly used for receiving data and control commands sent by data centers such as external sensors, servers, and control systems. The external input control module 608 may optionally serve as a data information source for the broadcast mode management module 600 and the broadcast time management module 602 for the establishment of broadcast rules. When the external input control module 608 has no data input, the packet data is packaged according to the existing data of the broadcast mode management module 600 and the broadcast time management module 602. The external input control module 608 is capable of expanding bluetooth device application combinations through input output ports.
The bluetooth processor module 604 is used for controlling the mode and broadcast time of the broadcast packet data according to the instructions sent by the broadcast mode management module 600, the broadcast time management module 602 and the external input control module 608. The method comprises the steps of distributing broadcast packet data and time parameters, establishing a broadcast packet queue, canceling the broadcast packet queue, controlling the operation of a Bluetooth system and the like. Related application designs of the Bluetooth external data control interface can be optionally realized, such as timing reading of sensor data and composition of broadcast packet data.
The broadcast control module 606 mainly implements real-time maintenance of broadcast packet data in the broadcast packet queue. Including executing broadcast commands, stopping broadcast commands, restarting broadcast commands, timing control broadcast commands. The broadcast packet data is transmitted to the bluetooth terminal device in accordance with the bluetooth protocol command, and the stop command is transmitted to terminate the ongoing broadcast. And updating the broadcast packet queue in real time, removing the broadcast packet queue after a single task executes broadcasting, and broadcasting the circulating broadcast task at regular time according to the time mark. Finally, the broadcast control module 606 sends the broadcast packet data in the multi-tag broadcast, entity information, and general information broadcast modes to the bluetooth terminal device.
The broadcast control module 606 maintains the broadcast packet queue, so that users can generate multiple broadcast packet data, different users can exclusively share the broadcast packet data, and the multiple broadcast packet data is broadcast in order.
The broadcast control module 606 is further configured to update external data, such as temperature data of an external sensor, in real time, and send the updated external data to the bluetooth terminal device.
In a possible implementation, the operation flow of the Beacon broadcasting device based on BLE5 is shown in fig. 7, before the broadcasting device starts to operate, a mode of the broadcast packet data needs to be defined and stored in the memory for subsequent calling. After the broadcasting equipment is started, the Bluetooth processor module is initialized to complete the initialization of the Bluetooth system, the Bluetooth protocol and the application are started, and all necessary processes required by the Bluetooth protocol are initialized. The other modules are then started, including: starting a broadcast mode management module, starting a broadcast time management module, starting an external input control module and starting a broadcast control module. The external input control module is started, so that an external device driver, a server network interface, a control center instruction driver and the like can be initialized, and external data is stored in the memory for subsequent calling. And starting the broadcast mode management module, reading data stored in the memory according to the broadcast packet index information, establishing broadcast packet data, sending an instruction to the Bluetooth processor module to acquire input data of the external input control module, such as sensor data, generating the broadcast packet data by the sensor data and the memory data together, and sending the generated broadcast packet data to the Bluetooth processor module. The broadcast mode management module can generate broadcast packet data of a specified mode according to the needs of users, and provides a basis for application requirements. And the broadcast time management module is started, and time parameters are created for the broadcast packet data according to the broadcast packet index information, wherein the time parameters comprise broadcast time and period, broadcast packet cycle period, timer initialization and start stop information and the like. The broadcast time management module distributes broadcast time according to the time axis and the broadcast packet index information, provides a function of customizing time parameters, provides customized service for user application programs, and improves application flexibility. The Bluetooth processor module combines the broadcast packet data into a broadcast packet queue according to the time scheduling task of the broadcast time management module, starts the broadcast control module and sends the broadcast packet queue to the broadcast control module. The broadcast control module starts a timer, continuously retrieves and compares the real-time with the time parameter of the broadcast packet queue, selects the broadcast packet data with the arrival time, sends the selected broadcast packet data to the Bluetooth terminal equipment, recalculates the time parameter of the broadcast packet data after the broadcast is completed, inserts the recalculated time parameter into the broadcast packet queue and prepares for scheduling in the subsequent broadcast. And if the starting time of the broadcast packet data in the broadcast packet queue does not arrive, continuing the timer for timing.
According to the Beacon broadcasting device based on BLE5 that this embodiment provided, through predetermineeing broadcast packet mode information, reach the purpose that supports many money bluetooth terminal equipment simultaneously, and then realize the shared application of Beacon software and hardware.
In this embodiment, if the preset broadcast packet mode information is entity information mode information or integrated information mode information, the preset broadcast packet mode information may carry entity information such as pictures, characters, network links, symbols, and the like, and a combination thereof in the broadcast packet data, so that the bluetooth terminal device can directly obtain the entity information.
In this embodiment, if the preset broadcast packet mode information is multi-tag mode information, multiple tags may be carried in the broadcast packet data, so that multiple types of bluetooth terminal devices share one broadcast packet data and source devices thereof.
In the embodiment, the time parameter is created for the broadcast packet data, and the broadcast packet data is selected from the broadcast packet queue and sent to the Bluetooth terminal equipment according to the time scheduling information, so that the efficiency of Beacon application is improved.
According to the embodiment, the limited broadcast packet data form the broadcast packet queue, the broadcast packet data in the broadcast packet queue are scheduled in a time-sharing mode, and the adaptability and the expansion capability of the Beacon device to the application are improved.
The embodiment dynamically acquires the external input data and encapsulates the external input data into the broadcast packet data, thereby realizing the real-time update of the Beacon broadcast packet data and enriching the content of the broadcast packet data.
Those of ordinary skill in the art will appreciate that the various illustrative elements and method steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present embodiments.
The above embodiments are only for illustrating the embodiments of the present invention and not for limiting the embodiments of the present invention, and those skilled in the art can make various changes and modifications without departing from the spirit and scope of the embodiments of the present invention, so that all equivalent technical solutions also belong to the scope of the embodiments of the present invention, and the scope of patent protection of the embodiments of the present invention should be defined by the claims.

Claims (10)

1. A Beacon broadcasting method based on BLE5, comprising:
generating broadcast packet data according to broadcast packet index information and preset broadcast packet mode information, wherein the broadcast packet index information is used for indicating the number and the sequence of the broadcast packet data, and the preset broadcast packet mode information comprises: multi-tag mode information, entity information mode information, and integrated information mode information;
creating a time parameter for the broadcast packet data according to the broadcast packet index information, and performing time distribution on the broadcast packet data according to the time parameter, the broadcast packet index information and time axis information to obtain time scheduling information of the broadcast packet data;
generating a broadcast packet queue from the broadcast packet data according to the time scheduling information;
and starting a timer according to the time parameter, and selecting and sending the broadcast packet data from the broadcast packet queue to Bluetooth terminal equipment according to the time parameter of the broadcast packet data and the real-time of the timer.
2. The method of claim 1, wherein before the generating of the broadcast packet data according to the broadcast packet index information and the preset broadcast packet mode information, the method further comprises:
and reading the preset broadcast packet mode information from a memory according to the broadcast packet index information.
3. The method of claim 2, wherein the generating of the broadcast packet data according to the broadcast packet index information and the preset broadcast packet mode information comprises:
reading external input data from the memory;
and generating the broadcast packet data according to the external input data and the preset broadcast packet mode information.
4. The method of claim 1, wherein the selecting and transmitting the broadcast packet data from the broadcast packet queue to the bluetooth terminal device according to the time parameter of the broadcast packet data and the real time of the timer comprises:
determining broadcast packet data corresponding to the real-time of the timer from the broadcast packet queue according to the time parameter of the broadcast packet data;
and sending the determined broadcast packet data to the Bluetooth terminal equipment.
5. The method according to any of claims 1-4, wherein the time parameters comprise: a broadcast period, a broadcast interval, a broadcast window, initialization information, start information, and stop information of the timer.
6. A Beacon broadcaster based on BLE5, comprising:
a broadcast mode management module, configured to generate broadcast packet data according to broadcast packet index information and preset broadcast packet mode information, where the broadcast packet index information is used to indicate the number and sequence of the broadcast packet data, and the preset broadcast packet mode information includes: multi-tag mode information, entity information mode information, and integrated information mode information;
the broadcast time management module is used for creating a time parameter for the broadcast packet data according to the broadcast packet index information and performing time distribution on the broadcast packet data according to the time parameter, the broadcast packet index information and time axis information to obtain time scheduling information of the broadcast packet data;
the Bluetooth processor module is used for generating a broadcast packet queue from the broadcast packet data according to the time scheduling information;
and the broadcast control module is used for starting a timer according to the time parameter, selecting and sending the broadcast packet data to the Bluetooth terminal equipment from the broadcast packet queue according to the time parameter of the broadcast packet data and the real-time of the timer.
7. The apparatus of claim 6, wherein the broadcast mode management module is further configured to read the predetermined broadcast packet mode information from a memory according to broadcast packet index information before the broadcast packet data is generated according to the broadcast packet index information and the predetermined broadcast packet mode information.
8. The apparatus of claim 7, wherein the broadcast mode management module comprises:
the external input data reading module is used for reading external input data from the memory;
and the broadcast packet data generating module is used for generating the broadcast packet data according to the external input data and the preset broadcast packet mode information.
9. The apparatus of claim 6, wherein the broadcast control module comprises:
a broadcast packet data determining module for determining broadcast packet data corresponding to the real-time of the timer from the broadcast packet queue according to the time parameter of the broadcast packet data;
and the broadcast packet data sending module is used for sending the determined broadcast packet data to the Bluetooth terminal equipment.
10. The apparatus according to any of claims 6-9, wherein the time parameters comprise: a broadcast period, a broadcast interval, a broadcast window, initialization information, start information, and stop information of the timer.
CN201710295847.0A 2017-04-28 2017-04-28 Beacon broadcasting method and device based on BLE5 Active CN107018481B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710295847.0A CN107018481B (en) 2017-04-28 2017-04-28 Beacon broadcasting method and device based on BLE5

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710295847.0A CN107018481B (en) 2017-04-28 2017-04-28 Beacon broadcasting method and device based on BLE5

Publications (2)

Publication Number Publication Date
CN107018481A CN107018481A (en) 2017-08-04
CN107018481B true CN107018481B (en) 2020-02-21

Family

ID=59448655

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710295847.0A Active CN107018481B (en) 2017-04-28 2017-04-28 Beacon broadcasting method and device based on BLE5

Country Status (1)

Country Link
CN (1) CN107018481B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109429206B (en) * 2018-05-30 2021-10-26 展讯通信(上海)有限公司 Bluetooth data transmission method and device and user equipment
CN110601865A (en) * 2018-06-13 2019-12-20 十维度股份有限公司 Message transmission system, receiving apparatus thereof, receiving method thereof, and computer-readable recording medium
CN110769382B (en) * 2019-10-09 2021-10-22 Oppo广东移动通信有限公司 Message pushing method and device, terminal equipment and storage medium
EP4358547A1 (en) * 2021-08-01 2024-04-24 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Sending method, receiving method and apparatuses for bluetooth broadcasting, devices and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104918216A (en) * 2015-05-11 2015-09-16 上海网罗电子科技有限公司 Advertisement pushing system based on position service and method
CN106102167A (en) * 2016-06-22 2016-11-09 武汉大学 Real-time on-demand data broadcast scheduling adaptive channel divides and distribution system and method
CN106301478A (en) * 2015-06-26 2017-01-04 博通集成电路(上海)有限公司 Data transmission method and broadcast transmitting apparatus thereof
CN106535103A (en) * 2016-12-09 2017-03-22 中山市凌波网络科技有限公司 Unmanned plane smart data transmission means based on Bluetooth communication

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104918216A (en) * 2015-05-11 2015-09-16 上海网罗电子科技有限公司 Advertisement pushing system based on position service and method
CN106301478A (en) * 2015-06-26 2017-01-04 博通集成电路(上海)有限公司 Data transmission method and broadcast transmitting apparatus thereof
CN106102167A (en) * 2016-06-22 2016-11-09 武汉大学 Real-time on-demand data broadcast scheduling adaptive channel divides and distribution system and method
CN106535103A (en) * 2016-12-09 2017-03-22 中山市凌波网络科技有限公司 Unmanned plane smart data transmission means based on Bluetooth communication

Also Published As

Publication number Publication date
CN107018481A (en) 2017-08-04

Similar Documents

Publication Publication Date Title
CN107018481B (en) Beacon broadcasting method and device based on BLE5
CN111182025B (en) Message processing method, device, server and storage medium
CN101283565B (en) Device interface architecture and protocol
US20200057550A1 (en) Method and apparatus for generating customized visualization component
CN109635211B (en) Method for realizing promotion page and server
JP2008135028A (en) Method and system for updating content
JP2009187526A (en) Digital signage network
CN110647278A (en) Method and device for controlling plug-in display, computing equipment and storage medium
CN103561379A (en) Alarm clock setting method and mobile terminal
CN112351479B (en) Electronic price tag communication system, method and device
CN110119262A (en) Show update method, control terminal, electronic tag and the display system of data
CN104932859B (en) A kind of system and method synchronously issued with LED display for mobile phone microfiber web
JP2004213533A (en) Screen reception device, screen delivery device, screen information transmission/reception system, screen reception method, screen delivery method and program therefor
CN106797393B (en) Method for assigning actions to tags within a network, corresponding network and control device
CN106302093B (en) Communication method, system and server
CN112073488A (en) Method and device for processing request
CN108966034B (en) Virtual article display method, device and storage medium
CN113572816B (en) Equipment control processing method and device, storage medium and electronic device
CN105245438A (en) Content sharing method, content sharing device and content sharing system
CN1983159A (en) Network display apparatus, computer and control method thereof
CN105808593B (en) Shop information display method, server and communication system thereof
CN106302722A (en) Elevator things-internet gateway and the data transmission method of elevator Internet of Things
CN113434233A (en) Interface skipping method and device, storage medium and electronic device
CN102622216A (en) Method and system for cooperative work of applications
CN111914296A (en) Multi-platform authority unified management method, device, terminal and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20190417

Address after: Room 402-403, Building D, Zhangjiagang Economic and Technological Development Zone, Suzhou City, Jiangsu Province

Applicant after: Peach Core Technology (Suzhou) Co., Ltd.

Address before: 100080 Haidian Street, Haidian District, Beijing

Applicant before: Beijing firefly Technology Co., Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant