CN107018481A - A kind of Beacon broadcasting methods and device based on BLE5 - Google Patents

A kind of Beacon broadcasting methods and device based on BLE5 Download PDF

Info

Publication number
CN107018481A
CN107018481A CN201710295847.0A CN201710295847A CN107018481A CN 107018481 A CN107018481 A CN 107018481A CN 201710295847 A CN201710295847 A CN 201710295847A CN 107018481 A CN107018481 A CN 107018481A
Authority
CN
China
Prior art keywords
broadcast
broadcast packet
information
time
bag data
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.)
Granted
Application number
CN201710295847.0A
Other languages
Chinese (zh)
Other versions
CN107018481B (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
Beijing Firefly Technology 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 Beijing Firefly Technology Co Ltd filed Critical Beijing Firefly Technology 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

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 embodiments of the invention provide a kind of Beacon broadcasting methods and device based on BLE5, wherein, methods described includes:According to broadcast packet index information and default broadcast packet pattern information generation broadcast bag data, broadcast packet index information is used for the quantity and order for indicating broadcast bag data, and presetting broadcast packet pattern information includes multi-tag pattern information, entity information pattern information and integrated information pattern information;It is broadcast packet data creation time parameter according to broadcast packet index information, the time scheduling information that time distribution obtains broadcasting bag data is carried out to broadcast bag data according to time parameter, broadcast packet index information and timeline information;Bag data generation broadcast packet queue will be broadcasted according to time scheduling information;Timer is started according to time parameter, is selected according to the real-time time of the time parameter of broadcast bag data and timer from broadcast packet queue and sends broadcast packet data to Bluetooth terminal equipment.The embodiment of the present invention meets the actual demand of Beacon broadcast.

Description

A kind of Beacon broadcasting methods and device based on BLE5
Technical field
The present embodiments relate to communication technique field, more particularly to a kind of Beacon broadcasting methods and dress based on BLE5 Put.
Background technology
With the continuous popularization of technology of Internet of things, wired home, intelligent medical, wearable device, automatic Pilot, payment etc. Emerging field is improved constantly to the demand of Internet of Things communication capacity, and bluetooth Beacon technologies are also in rapid lifting development.Bluetooth Beacon technologies are positioned indoors, message is pushed and Internet of Things application numerous areas is used widely, and especially some are large-scale Public services, such as market, supermarket.
Because traditional Beacon broadcast packets capacity limit is in 32 bytes, causing can only be independent by collateral informations such as label informations It is pushed to user terminal to be parsed for user terminal application program, and then determines Beacon positions, Beacon numberings, Beacon The features such as attribute, user terminal accesses server by features above, the data message needed for reading.
Lifted with the demand of various applications, the information carrying capacity of traditional Beacon broadcast substantially constrains many of application Sample sexual development.Beacon technologies are applied as service equipment, and it is broadcasted, and implementation method is single, broadcast bag data specificity pole By force, it is unfavorable for the shared of Beacon software and hardware resources, it is more difficult to develop abundant application.
The content of the invention
The embodiments of the invention provide a kind of Beacon broadcasting methods and device based on BLE5, to solve existing Beacon The problem of broadcast can not meet actual demand.
One side according to embodiments of the present invention there is provided a kind of Beacon broadcasting methods based on BLE5, including:According to Broadcast packet index information and default broadcast packet pattern information generation broadcast bag data, the broadcast packet index information are used to indicate extensively The quantity and order of bag data are broadcast, the default broadcast packet pattern information includes:Multi-tag pattern information, entity information pattern letter Breath and integrated information pattern information;It is the broadcast packet data creation time parameter according to the broadcast packet index information, and presses Time distribution is carried out to the broadcast bag data according to the time parameter, the broadcast packet index information and timeline information, obtained To the time scheduling information of the broadcast bag data;The broadcast bag data is generated into broadcast packet according to the time scheduling information Queue;Timer is started according to the time parameter, and according to the time parameter and the timer of the broadcast bag data Real-time time selects from the broadcast packet queue and sends broadcast packet data to Bluetooth terminal equipment.
Another aspect according to embodiments of the present invention, additionally provides a kind of Beacon broadcasters based on BLE5, including: Broadcast mode management module, for according to broadcast packet index information and default broadcast packet pattern information generation broadcast bag data, institute State broadcast packet index information be used for indicate broadcast the quantity and order of bag data, the default broadcast packet pattern information includes:It is many Label mode information, entity information pattern information and integrated information pattern information;Time management module is broadcasted, for according to described Broadcast packet index information is the broadcast packet data creation time parameter, and is indexed according to the time parameter, the broadcast packet Information and timeline information carry out time distribution to the broadcast bag data, obtain the time scheduling letter of the broadcast bag data Breath;Bluetooth processor module, for the broadcast bag data to be generated into broadcast packet queue according to the time scheduling information;Broadcast Control module, for starting timer according to the time parameter, and according to the broadcast time parameter of bag data and described The real-time time of timer selects from the broadcast packet queue and sends broadcast packet data to Bluetooth terminal equipment.
A kind of the Beacon broadcasting methods and device based on BLE5 provided according to embodiments of the present invention, according to broadcast packet rope Fuse ceases and preset broadcast packet pattern information generation broadcast bag data, wherein, broadcast packet index information is used to indicate broadcast packet number According to quantity and order, for example, broadcast packet index information can one by one add up since 1.Default broadcast packet pattern information bag Include:Multi-tag pattern information, entity information pattern information and integrated information pattern information.It is broadcast according to broadcast packet index information Bag data creation time parameter, and broadcast bag data is carried out according to time parameter, broadcast packet index information and timeline information Time distributes, and obtains broadcasting the time scheduling information of bag data.Bag data generation broadcast packet will be broadcasted according to time scheduling information Queue.Timer is started according to time parameter, and the time parameter and the real-time time of timer according to broadcast bag data are from wide Broadcast and broadcast packet data are selected and sent in bag queue to bluetooth equipment.
The embodiment of the present invention is reached while supporting the mesh of many money Bluetooth terminal equipment by default broadcast packet pattern information , and then realize the sharing application of Beacon software and hardwares.
If presetting broadcast packet pattern information entity information pattern information or integrated information pattern in the embodiment of the present invention Information, then can carry entity informations such as picture, word, network linking and symbol and combinations thereof in broadcast bag data, realize Bluetooth terminal equipment directly obtains entity information.
, then can be in broadcast bag data if presetting broadcast packet pattern information multi-tag pattern information in the embodiment of the present invention It is middle to carry a variety of labels, realize polytype one broadcast bag data of Bluetooth terminal collaborative share and its source device.
The embodiment of the present invention is broadcast packet data creation time parameter, and according to time scheduling information from broadcast packet queue Select and send broadcast packet data to Bluetooth terminal equipment, improve the efficiency of Beacon applications.
Brief description of the drawings
Fig. 1 is a kind of step flow chart of according to embodiments of the present invention one Beacon broadcasting methods based on BLE5;
Fig. 2 a are the broadcast (sites) in turn schematic diagrams of according to embodiments of the present invention one broadcast bag data;
Fig. 2 b are the single broadcast schematic diagrams of according to embodiments of the present invention one broadcast bag data;
Fig. 3 is a kind of step flow chart of according to embodiments of the present invention two Beacon broadcasting methods based on BLE5;
Fig. 4 is a kind of principle schematic of according to embodiments of the present invention two Beacon broadcasting methods based on BLE5;
Fig. 5 is a kind of structured flowchart of according to embodiments of the present invention three Beacon broadcasters based on BLE5;
Fig. 6 is a kind of structured flowchart of according to embodiments of the present invention four Beacon broadcasters based on BLE5;
Fig. 7 is a kind of operational flow diagram of according to embodiments of the present invention four Beacon broadcasters based on BLE5.
Embodiment
(identical label represents identical element in some accompanying drawings) and embodiment, implement to the present invention below in conjunction with the accompanying drawings The embodiment of example is described in further detail.Following examples are used to illustrate the present invention, but are not limited to the present invention Scope.
It will be understood by those skilled in the art that the term such as " first ", " second " in the embodiment of the present invention is only used for difference Different step, equipment or module etc., neither represent any particular technology implication, also do not indicate that the inevitable logic between them is suitable Sequence.
Embodiment one
Fig. 1 shows a kind of step flow of according to embodiments of the present invention one Beacon broadcasting methods based on BLE5 Figure.
Beacon broadcasting methods provided in an embodiment of the present invention based on BLE5 comprise the following steps.
Step S100, according to broadcast packet index information and default broadcast packet pattern information generation broadcast bag data.
In the present embodiment, broadcast packet index information is used for the quantity and order for indicating broadcast bag data, for example, broadcast packet rope Fuse is ceased since 1, is added up one by one:1、2、3……n.Default broadcast packet pattern information includes:Multi-tag pattern information, entity Information pattern information and integrated information pattern information.Wherein, integrated information pattern information is that multi-tag pattern information and entity are believed Cease the information after pattern information combination.Broadcast packet pattern information can be configured according to actual needs.
In the present embodiment, broadcast bag data could be arranged to single broadcast mode or broadcast (sites) in turn mode, wherein, single The single broadcast time in broadcast mode could be arranged to random time.Broadcasting frequency and broadcast duration in broadcast (sites) in turn mode It can be set with self-defined.In broadcast (sites) in turn mode, such as Fig. 2 a, broadcast bag data 1, broadcast bag data 2, broadcast bag data 3, Broadcast bag data 4 and broadcast bag data 5 are entered in time point T1, time point T2, time point T3, time point T4 and time point Tn respectively Row is sent, moreover, time point T1, time point T2, time point T3, time point T4 and time point Tn are the time point of sequential loop. In single broadcast mode, such as Fig. 2 b, broadcast bag data 1 and broadcast bag data 2 are carried out in time point T1 and time point T2 respectively Send.
Step S102, according to broadcast packet index information it is broadcast packet data creation time parameter, and according to time parameter, wide Broadcast bag index information and timeline information and time distribution is carried out to broadcast bag data, obtain broadcasting the time scheduling letter of bag data Breath.
This step S102 can realize different broadcast bag data time-sharing multiplexs in time dimension schedule broadcast bag data. Each broadcast bag data can set the time parameters such as broadcast cycle, broadcast interval according to actual needs.
Step S104, according to time scheduling information will broadcast bag data generation broadcast packet queue.
For example, broadcast bag data 1 is transmitted in time point T1, broadcast bag data 2 is transmitted in time point T2, is broadcasted Bag data 3 is transmitted in time point T3, if time point T1, time point T2 and time point T3 are sequential time point, i.e. time point Be time point T2 after T1, be time point T3 after time point T2, then will be according to broadcast bag data 1, broadcast bag data 2 and broadcast Being sequentially generated for bag data 3 includes broadcast bag data 1, broadcast bag data 2 and the broadcast packet queue for broadcasting bag data 3.
Step S106, start timer according to time parameter, and according to the time parameter and timer of broadcast bag data Real-time time selects from broadcast packet queue and sends broadcast packet data to Bluetooth terminal equipment.
In the present embodiment, the time of timer can be configured according to the time parameter of broadcast bag data.Example is connected, if The real-time time of timer is time point T1, then the selection broadcast bag data 1 from broadcast packet queue, and send broadcast packet data 1 To Bluetooth terminal equipment;If the real-time time of timer is time point T2, the selection broadcast bag data 2 from broadcast packet queue, And broadcast packet data 2 are sent to Bluetooth terminal equipment.
A kind of Beacon broadcasting methods based on BLE5 provided according to the present embodiment, according to broadcast packet index information and in advance If broadcast packet pattern information generation broadcast bag data, wherein, broadcast packet index information be used for indicate broadcast bag data quantity and Sequentially, for example, broadcast packet index information can one by one add up since 1.Default broadcast packet pattern information includes:Multi-tag mould Formula information, entity information pattern information and integrated information pattern information.It is broadcast packet data creation according to broadcast packet index information Time parameter, and time distribution is carried out to broadcast bag data according to time parameter, broadcast packet index information and timeline information, obtain To the time scheduling information of broadcast bag data.Bag data generation broadcast packet queue will be broadcasted according to time scheduling information.According to when Between parameter start timer, and selected according to the time parameter and the real-time time of timer of broadcast bag data from broadcast packet queue Select and send broadcast packet data to bluetooth equipment.
The present embodiment is reached while support the purpose of many money Bluetooth terminal equipment, entered by default broadcast packet pattern information And realize the sharing application of Beacon software and hardwares.
If presetting broadcast packet pattern information entity information pattern information or integrated information pattern information in the present embodiment, Then entity informations such as picture, word, network linking and symbol and combinations thereof can be carried in broadcast bag data, realize that bluetooth is whole End equipment directly obtains entity information.
If presetting broadcast packet pattern information multi-tag pattern information in the present embodiment, then it can be taken in broadcast bag data With a variety of labels, polytype one broadcast bag data of Bluetooth terminal collaborative share and its source device are realized.
The present embodiment is broadcast packet data creation time parameter, and is selected according to time scheduling information from broadcast packet queue And broadcast packet data are sent to Bluetooth terminal equipment, improve the efficiency of Beacon applications.
Embodiment two
Fig. 3 shows a kind of step flow of according to embodiments of the present invention two Beacon broadcasting methods based on BLE5 Figure.
The present embodiment focuses on emphasizing the difference with above-described embodiment, and something in common is referred to above-described embodiment In related description, will not be repeated here.
A kind of Beacon broadcasting methods based on BLE5 that the present embodiment is provided comprise the following steps.
Step S300, default broadcast packet pattern information is read from memory according to broadcast packet index information.
Default broadcast packet pattern information can be configured according to actual needs, and the broadcast packet pattern information that setting completed can To be stored in memory, such as internal memory, for subsequent calls.Moreover, in the implementation procedure of the present embodiment, can at any time including Middle increase broadcast packet pattern information is deposited, existing broadcast packet pattern information is had no effect on.
Step S302, according to broadcast packet index information and default broadcast packet pattern information generation broadcast bag data.
This step S302 may include steps of.
Step S3020, from memory read obtain outer input data.
Outer input data in the present embodiment can be external device data, and such as sensing data can also be entity Information etc., such as picture, word, link, the present embodiment are not particularly limited to outer input data.
Step S3022, according to outer input data and default broadcast packet pattern information generation broadcast bag data.
This step S3022 can be encapsulated in outer input data as entity information in broadcast bag data.
Step S304, according to broadcast packet index information it is broadcast packet data creation time parameter, and according to time parameter, wide Broadcast bag index information and timeline information and time distribution is carried out to broadcast bag data, obtain broadcasting the time scheduling letter of bag data Breath.
Time parameter in the present embodiment can include:Broadcast cycle, broadcast interval, broadcast window, the timer Initialization information, startup information and Stop message.
Step S306, according to time scheduling information will broadcast bag data generation broadcast packet queue.
Step S308, start timer according to time parameter, and according to the time parameter and timer of broadcast bag data Real-time time selects from broadcast packet queue and sends broadcast packet data to Bluetooth terminal equipment.
This step S308 may include steps of.
Step S3080, according to broadcast bag data time parameter determined from broadcast packet queue it is real-time with timer Time broadcasts bag data accordingly.
For example, the real-time time of timer is time point T2, then determined from broadcast queue corresponding with time point T2 Broadcast bag data 2.
Step S3082, the broadcast bag data for obtaining determination are sent to Bluetooth terminal equipment.
Based on the introduction of the above-mentioned Beacon broadcasting methods based on BLE5, the present embodiment can realize that many applications specially enjoy label ID, shares bluetooth hardware equipment, both ensure that the specificity of each application and development, and in turn ensure that the compatibility of bluetooth hardware.Together When, additionally it is possible to the Real-Time Scheduling of broadcast bag data is realized, the application power of Beacon equipment is improved.A kind of feasible embodiment party In formula, by the common n tag combination of ID1, ID2 ... IDn in a broadcast bag data.ID1, ID2 ... IDn represent different factories respectively The identification id of family's application, the demand with specific reference to application producer carries out self-defined setting, and such as ID1 represents company's A indoor positionings should Identification id, ID2 represents the identification id that company's store B favor information pushes application, and IDn represents company's C enterprise electronic calling cards Using identification id.After broadcast bag data is sent, when use above is entered in broadcasting area, each application is parsed according to ID sequence numbers One's own ID number sections, and realization is applied according to the progress of id number content.
The immediate data such as picture, word, link, electronic business card content is carried out exhibition by entity information pattern in the present embodiment Show, broadcast bag data is intuitively showed user terminal rapidly.As picture can directly show map location, favor information. Word can directly carry out content description.Link can provide subsequent access etc..
Integrated information pattern in the present embodiment, is to be combined multi-tag information with entity information, composition mixed information Bag data is broadcasted, wherein label information is used to apply more and supported, entity information is shown for visual information, is that many Application shares are blue Tooth hardware device provides effective solution.
In a kind of feasible embodiment, firstly generate the broadcast bag data of Three models, respectively multi-tag pattern, Integrated information pattern and entity information pattern.Then time parameter is set for each broadcast bag data, and will broadcast bag data life Into broadcast packet queue.Secondly broadcast bag data is scheduled according to the time.When Bluetooth terminal equipment enters broadcast bag data In the range of, Bluetooth terminal equipment receives corresponding broadcast bag data as needed, is applied after being parsed to broadcast bag data. Reference picture 4, broadcast packet data source is in Beacon nodes, and broadcast bag data is respectively multi-tag broadcast packet, integrated information broadcast Bag and entity information broadcast packet, correspond to time point T1, time point T2 and time point T3 respectively.The corresponding label of Bluetooth terminal equipment 1 ID1, the corresponding label ID2 of Bluetooth terminal equipment 2, Bluetooth terminal equipment n corresponding labels IDn, each Bluetooth terminal equipment are received respectively From broadcast bag data after, to broadcast bag data parse, then with corresponding application server 1, application server 2 and apply Server 3 is interacted.
A kind of Beacon broadcasting methods based on BLE5 provided according to the present embodiment, according to broadcast packet index information and in advance If broadcast packet pattern information generation broadcast bag data, wherein, broadcast packet index information be used for indicate broadcast bag data quantity and Sequentially, for example, broadcast packet index information can one by one add up since 1.Default broadcast packet pattern information includes:Multi-tag mould Formula information, entity information pattern information and integrated information pattern information.It is broadcast packet data creation according to broadcast packet index information Time parameter, and time distribution is carried out to broadcast bag data according to time parameter, broadcast packet index information and timeline information, obtain To the time scheduling information of broadcast bag data.Bag data generation broadcast packet queue will be broadcasted according to time scheduling information.According to when Between parameter start timer, and selected according to the time parameter and the real-time time of timer of broadcast bag data from broadcast packet queue Select and send broadcast packet data to bluetooth equipment.
The present embodiment is reached while support the purpose of many money Bluetooth terminal equipment, entered by default broadcast packet pattern information And realize the sharing application of Beacon software and hardwares.
If presetting broadcast packet pattern information entity information pattern information or integrated information pattern information in the present embodiment, Then entity informations such as picture, word, network linking and symbol and combinations thereof can be carried in broadcast bag data, realize that bluetooth is whole End equipment directly obtains entity information.
If presetting broadcast packet pattern information multi-tag pattern information in the present embodiment, then it can be taken in broadcast bag data With a variety of labels, polytype one broadcast bag data of Bluetooth terminal collaborative share and its source device are realized.
The present embodiment is broadcast packet data creation time parameter, and is selected according to time scheduling information from broadcast packet queue And broadcast packet data are sent to Bluetooth terminal equipment, improve the efficiency of Beacon applications.
Limited broadcast packet data are constituted broadcast packet queue by the present embodiment, and the broadcast bag data in broadcast packet queue is entered Row timesharing is dispatched, and improves adaptability and extended capability of the Beacon equipment to application.
The present embodiment dynamic access outer input data, and outer input data is encapsulated into broadcast bag data, enrich The content of broadcast bag data.
Embodiment three
Fig. 5 shows a kind of structured flowchart of according to embodiments of the present invention three Beacon broadcasters based on BLE5.
The Beacon broadcasters based on BLE5 that the present embodiment is provided include:Broadcast mode management module 500, for root According to broadcast packet index information and default broadcast packet pattern information generation broadcast bag data, broadcast packet index information is used to indicate to broadcast The quantity and order of bag data, default broadcast packet pattern information include:Multi-tag pattern information, entity information pattern information and comprehensive Close information pattern information.Time management module 502 is broadcasted, for being the broadcast packet data creation time according to broadcast packet index information Parameter, and time distribution is carried out to broadcast bag data according to time parameter, broadcast packet index information and timeline information, obtain wide Broadcast the time scheduling information of bag data.Bluetooth processor module 504, for bag data generation will to be broadcasted according to time scheduling information Broadcast packet queue.Broadcasting Control module 506, for starting timer according to time parameter, and according to the time of broadcast bag data The real-time time of parameter and timer selects from broadcast packet queue and sends broadcast packet data to Bluetooth terminal equipment.Broadcast control Molding block 506, for carrying out real-time servicing to the broadcast bag data in broadcast packet queue, including performs broadcasting command, stops extensively Broadcast order, restart broadcasting command, timing controlled broadcasting command.Broadcasting Control module 506, for bag data will to be broadcasted according to bluetooth Protocol command is sent to Bluetooth terminal equipment.
A kind of Beacon broadcasters based on BLE5 provided according to the present embodiment, are believed by default broadcast pack mode Breath, reaches while supporting the purpose of many money Bluetooth terminal equipment, and then realize the sharing application of Beacon software and hardwares.
If presetting broadcast packet pattern information entity information pattern information or integrated information pattern information in the present embodiment, Then entity informations such as picture, word, network linking and symbol and combinations thereof can be carried in broadcast bag data, realize that bluetooth is whole End equipment directly obtains entity information.
If presetting broadcast packet pattern information multi-tag pattern information in the present embodiment, then it can be taken in broadcast bag data With a variety of labels, polytype one broadcast bag data of Bluetooth terminal collaborative share and its source device are realized.
The present embodiment is broadcast packet data creation time parameter, and is selected according to time scheduling information from broadcast packet queue And broadcast packet data are sent to Bluetooth terminal equipment, improve the efficiency of Beacon applications.
Example IV
Fig. 6 shows a kind of structured flowchart of according to embodiments of the present invention three Beacon broadcasters based on BLE5.
The Beacon broadcasters based on BLE5 that the present embodiment is provided include:Broadcast mode management module 600, for root According to broadcast packet index information and default broadcast packet pattern information generation broadcast bag data, broadcast packet index information is used to indicate to broadcast The quantity and order of bag data, default broadcast packet pattern information include:Multi-tag pattern information, entity information pattern information and comprehensive Close information pattern information.Time management module 602 is broadcasted, for being the broadcast packet data creation time according to broadcast packet index information Parameter, and time distribution is carried out to broadcast bag data according to time parameter, broadcast packet index information and timeline information, obtain wide Broadcast the time scheduling information of bag data.Wherein, time parameter includes:Broadcast cycle, broadcast interval, broadcast window, timer Initialization information, startup information and Stop message.Bluetooth processor module 604, for according to time scheduling information by broadcast packet Data generate broadcast packet queue.Broadcasting Control module 606, for starting timer according to time parameter, and according to broadcast packet number According to time parameter and the real-time time of timer select and send broadcast packet data to Bluetooth terminal to set from broadcast packet queue It is standby.
Alternatively, broadcast mode management module 600, is additionally operable to according to broadcast packet index information and default broadcast pack mode Before information generation broadcast bag data, default broadcast packet pattern information is read from memory according to broadcast packet index information.
Alternatively, broadcast mode management module 600 includes:Outer defeated input data read module, for being read from memory Obtain outer input data;Broadcast packet data generation module, for according to outer input data and default broadcast pack mode letter Breath generation broadcast bag data.
Alternatively, Broadcasting Control module 606 includes:Broadcast packet data determining module, for according to broadcast bag data when Between parameter determined from broadcast packet queue and corresponding with the real-time time of timer broadcast bag data;Broadcast bag data and send mould Block, for the broadcast bag data for determining to obtain to be sent to Bluetooth terminal equipment.
Based on the introduction of the above-mentioned Beacon broadcasters based on BLE5, broadcast mode management module 600 is more for managing The scheduling strategy of the broadcast bag data of the pattern of kind, main setting and Content Organizing including broadcast data pack mode for example to mark more Label broadcast, entity information broadcast and integrated information broadcast.Broadcast mode management module 600 is according to the demand of user by needed for user Label, entity information and mixed information be combined according to the protocol format of broadcast bag data, and be sent to Bluetooth processor Module 604 is handled.Broadcast mode management module 600 is supported to organize the content of multiple broadcast bag datas simultaneously.
Time management module 602 is broadcasted, for dispatching broadcast packet data on time dimension, different broadcast bag datas are realized Time-sharing multiplex.Each broadcast bag data needs according to user can be with time parameters such as self-defined broadcast cycle, broadcast intervals.Broadcast Time management module 602 is dispatched by optimal time, and optimal sleep is set, and realizes bluetooth equipment low power consumption control.
The Beacon broadcasters based on BLE5 of the present embodiment also include:Outside input control module 608, is mainly used in Receive data and control command that the data centers such as external sensor, server, control system send.Outside input control module The 608 optional data messages as broadcast mode management module 600 and broadcast time management module 602 are originated, and are advised for broadcast Foundation then.In the case that the no data of outside input control module 608 is inputted, by broadcast mode management module 600 and broadcast The available data of time management module 602 completes the group bag of broadcast bag data.Outside input control module 608 can pass through input Output port extension bluetooth equipment application combination.
Bluetooth processor module 604, for according to broadcast mode management module 600 and broadcast time management module 602 with And the instruction that outside input control module 608 is sent carries out the pattern of broadcast bag data and broadcasts time control.Including broadcast packet Distribution, the foundation of broadcast packet queue, the cancellation of broadcast packet queue, Bluetooth system operation control of data and time parameter etc..Can The related application for the realizing Blue tooth peripheral data control interface design of choosing, such as sensing data is read in timing, and constitutes broadcast packet Data.
Broadcasting Control module 606, mainly realizes the real-time servicing that bag data is broadcasted in broadcast packet queue.Including performing broadcast Order, cease-broadcast command, restart broadcasting command, timing controlled broadcasting command.Bag data will be broadcasted according to Bluetooth protocol order Bluetooth terminal equipment is sent to, transmission, which is ceased and desisted order, terminates ongoing broadcast.Broadcast packet queue real-time update, single task Perform and broadcast packet queue is removed after broadcast, broadcast (sites) in turn task is timed broadcast according to time mark.Final Broadcasting Control mould Block 606 broadcasts multi-tag, the broadcast bag data under entity information and integrated information broadcast mode sends to Bluetooth terminal and set It is standby.
Broadcasting Control module 606 is safeguarded to broadcast packet queue, so as to realize that user generates multiple broadcast bag data, no Broadcast bag data is specially enjoyed with user, multicast bag data carries out ordered broadcast.
Broadcasting Control module 606, is additionally operable to external data, the temperature data of such as external sensor carries out real-time update, External data after renewal is sent to Bluetooth terminal equipment.
In a kind of feasible embodiment, the operational processes of the above-mentioned Beacon broadcasters based on BLE5 as shown in fig. 7, , it is necessary to which the pattern of bag data is broadcasted in first definition before broadcaster startup optimization, and it is stored in internal memory, for follow-up tune With.After broadcasting equipment startup, Bluetooth processor module is first initialized, the initialization of Bluetooth system is completed, starts Bluetooth protocol And application, all indispensable flows that initialization Bluetooth protocol needs.Then other modules are started, including:Start broadcast mode pipe Module is managed, starts broadcast time management module, starts outside input control module, start Broadcasting Control module.Wherein, start outer Portion's input control module, can initialize external equipment driving, server network interface, control centre's order-driven etc., and will External data storage is in internal memory, for subsequent calls.Start broadcast mode management module, read according to broadcast packet index information The data deposited in internal memory, set up broadcast bag data, and send instructions to the acquisition outside input control of Bluetooth processor module The input data of module, such as sensing data, sensing data are generated together with internal storage data broadcast bag data, and will generation Broadcast bag data be sent to Bluetooth processor module.Broadcast mode management module can specify mould according to generation the need for user The broadcast bag data of formula, basis is provided for application demand.Start broadcast time management module, be wide according to broadcast packet index information Bag data creation time parameter is broadcast, wherein, time parameter includes broadcast time and cycle, broadcast packet cycle period, and timing Device initializes and started Stop message etc..When broadcast time management module is broadcasted according to time shaft and broadcast packet index information Between distribute, and provide the function of self defined time parameter, providing customization for user application services, and improves application Flexibility.Bluetooth processor module will broadcast bag data and be combined into broadcast according to the time scheduling task of broadcast time management module Bag queue, starts Broadcasting Control module, and broadcast packet queue is sent in Broadcasting Control module.Broadcasting Control module starts fixed When device, and constantly retrieval contrast real-time time and broadcast packet queue time parameter, select the time arrival broadcast bag data, will The broadcast bag data selected is sent to Bluetooth terminal equipment, and the time parameter for broadcasting the broadcast bag data completed is counted again Calculate, and be inserted into broadcast packet queue, preparation is scheduled in subsequent broadcast.If without broadcast bag data in broadcast packet queue The startup time reach, then continue timer timing.
A kind of Beacon broadcasters based on BLE5 provided according to the present embodiment, are believed by default broadcast pack mode Breath, reaches while supporting the purpose of many money Bluetooth terminal equipment, and then realize the sharing application of Beacon software and hardwares.
If presetting broadcast packet pattern information entity information pattern information or integrated information pattern information in the present embodiment, Then entity informations such as picture, word, network linking and symbol and combinations thereof can be carried in broadcast bag data, realize that bluetooth is whole End equipment directly obtains entity information.
If presetting broadcast packet pattern information multi-tag pattern information in the present embodiment, then it can be taken in broadcast bag data With a variety of labels, polytype one broadcast bag data of Bluetooth terminal collaborative share and its source device are realized.
The present embodiment is broadcast packet data creation time parameter, and is selected according to time scheduling information from broadcast packet queue And broadcast packet data are sent to Bluetooth terminal equipment, improve the efficiency of Beacon applications.
Limited broadcast packet data are constituted broadcast packet queue by the present embodiment, and the broadcast bag data in broadcast packet queue is entered Row timesharing is dispatched, and improves adaptability and extended capability of the Beacon equipment to application.
The present embodiment dynamic access outer input data, and outer input data is encapsulated into broadcast bag data, realize Beacon broadcasts the real-time update of bag data, enriches the content of broadcast bag data.
Those of ordinary skill in the art are it is to be appreciated that the list of each example described with reference to the embodiments described herein Member and method and step, can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually Performed with hardware or software mode, depending on the application-specific and design constraint of technical scheme.Professional and technical personnel Described function can be realized using distinct methods to each specific application, but this realization is it is not considered that exceed The scope of the embodiment of the present invention.
Embodiment of above is merely to illustrate the embodiment of the present invention, and the not limitation to the embodiment of the present invention, relevant skill The those of ordinary skill in art field, in the case where not departing from the spirit and scope of the embodiment of the present invention, can also make various Change and modification, therefore all equivalent technical schemes fall within the category of the embodiment of the present invention, the patent of the embodiment of the present invention Protection domain should be defined by the claims.

Claims (10)

1. a kind of Beacon broadcasting methods based on BLE5, it is characterised in that including:
According to broadcast packet index information and default broadcast packet pattern information generation broadcast bag data, the broadcast packet index information is used In the quantity and order that indicate broadcast bag data, the default broadcast packet pattern information includes:Multi-tag pattern information, entity letter Cease pattern information and integrated information pattern information;
It is the broadcast packet data creation time parameter according to the broadcast packet index information, and according to the time parameter, institute State broadcast packet index information and timeline information and time distribution is carried out to the broadcast bag data, obtain the broadcast bag data Time scheduling information;
The broadcast bag data is generated into broadcast packet queue according to the time scheduling information;
Timer, and time parameter and the reality of the timer according to the broadcast bag data are started according to the time parameter When the time selected from the broadcast packet queue and send broadcast packet data to Bluetooth terminal equipment.
2. according to the method described in claim 1, it is characterised in that described according to broadcast packet index information and default broadcast packet Before pattern information generation broadcast bag data, methods described also includes:
The default broadcast packet pattern information is read from memory according to the broadcast packet index information.
3. method according to claim 2, it is characterised in that described according to broadcast packet index information and default broadcast packet mould Formula information generation broadcast bag data, including:
Read from the memory and obtain outer input data;
The broadcast bag data is generated according to the outer input data and the default broadcast packet pattern information.
4. according to the method described in claim 1, it is characterised in that the time parameter and institute according to the broadcast bag data The real-time time for stating timer selects from the broadcast packet queue and sends broadcast packet data to Bluetooth terminal equipment, including:
When real-time with the timer is determined from the broadcast packet queue according to the time parameter of the broadcast bag data Between corresponding broadcast bag data;
The broadcast bag data for determining to obtain is sent to Bluetooth terminal equipment.
5. according to any described methods of claim 1-4, it is characterised in that the time parameter includes:Broadcast cycle, broadcast Interval, broadcast window, initialization information, startup information and the Stop message of the timer.
6. a kind of Beacon broadcasters based on BLE5, it is characterised in that including:
Broadcast mode management module, for generating broadcast packet number according to broadcast packet index information and default broadcast packet pattern information According to the broadcast packet index information is used for the quantity and order for indicating broadcast bag data, the default broadcast packet pattern information bag Include:Multi-tag pattern information, entity information pattern information and integrated information pattern information;
Time management module is broadcasted, for being the broadcast packet data creation time parameter according to the broadcast packet index information, And according to the time parameter, the broadcast packet index information and timeline information is carried out to the broadcast bag data time point Match somebody with somebody, obtain the time scheduling information of the broadcast bag data;
Bluetooth processor module, for the broadcast bag data to be generated into broadcast packet queue according to the time scheduling information;
Broadcasting Control module, for starting timer according to the time parameter, and joins according to the time of the broadcast bag data The real-time time of number and the timer selects from the broadcast packet queue and sends broadcast packet data to Bluetooth terminal equipment.
7. device according to claim 6, it is characterised in that the broadcast mode management module, is additionally operable at described Before broadcast packet index information and default broadcast packet pattern information generation broadcast bag data, according to the broadcast packet index information The default broadcast packet pattern information is read from memory.
8. device according to claim 7, it is characterised in that the broadcast mode management module, including:
Outer defeated input data read module, outer input data is obtained for being read from the memory;
Broadcast packet data generation module, for generating institute according to the outer input data and the default broadcast packet pattern information State broadcast bag data.
9. device according to claim 6, it is characterised in that the Broadcasting Control module, including:
Broadcast packet data determining module, for being determined according to the time parameter of the broadcast bag data from the broadcast packet queue Go out corresponding with the real-time time of the timer to broadcast bag data;
Broadcast packet data transmission blocks, for the broadcast bag data for determining to obtain to be sent to Bluetooth terminal equipment.
10. according to any described devices of claim 6-9, it is characterised in that the time parameter includes:It is broadcast cycle, wide Broadcast interval, broadcast window, initialization information, startup information and the Stop message 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 true CN107018481A (en) 2017-08-04
CN107018481B 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)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109429206A (en) * 2018-05-30 2019-03-05 展讯通信(上海)有限公司 A kind of Bluetooth data transfer method, apparatus 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
CN110769382A (en) * 2019-10-09 2020-02-07 Oppo广东移动通信有限公司 Message pushing method and device, terminal equipment and storage medium
WO2023010237A1 (en) * 2021-08-01 2023-02-09 Oppo广东移动通信有限公司 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

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109429206A (en) * 2018-05-30 2019-03-05 展讯通信(上海)有限公司 A kind of Bluetooth data transfer method, apparatus and user equipment
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
CN110769382A (en) * 2019-10-09 2020-02-07 Oppo广东移动通信有限公司 Message pushing method and device, terminal equipment and storage medium
CN110769382B (en) * 2019-10-09 2021-10-22 Oppo广东移动通信有限公司 Message pushing method and device, terminal equipment and storage medium
WO2023010237A1 (en) * 2021-08-01 2023-02-09 Oppo广东移动通信有限公司 Sending method, receiving method and apparatuses for bluetooth broadcasting, devices and medium

Also Published As

Publication number Publication date
CN107018481B (en) 2020-02-21

Similar Documents

Publication Publication Date Title
CN107018481A (en) A kind of Beacon broadcasting methods and device based on BLE5
EP3654550B1 (en) Communication event notification method, apparatus, and system
CN101217640B (en) A method and device realizing program collection in P2P VOD
CN104967650A (en) Third-party e-commerce platform unified releasing method
CN106170969A (en) Context management
CN104219065B (en) Broadcasting method and Beacon equipment based on Beacon
CN104704483B (en) System and method for the playback for managing streaming digital content
CN104468778A (en) Cloud manufacturing execution system and method based on cloud services
CN108462618A (en) Cloud Server and smart home device method for managing system
CN103561379A (en) Alarm clock setting method and mobile terminal
CN107333095A (en) The processing system of media resource
CN109120963A (en) A kind of multi-screen display method based on single display screen, storage medium and system
CN108093382A (en) Wireless device, server, index data providing method, and data providing method
CN110321502A (en) Electronics promotes resource carousel control method, device, terminal and readable storage medium storing program for executing
CN103079178A (en) Short message management method and system for NGCRM (next-generation customer relationship management) system
CN108270745A (en) A kind of method for pushing of service customizing information, terminal and master control bluetooth equipment
CN108966316A (en) Show the method, device and equipment of multimedia resource, prediction connection waiting time
CN109068371A (en) Push, method, apparatus, equipment, medium and the system for showing multimedia resource
CN110430293A (en) Matching method and device, the storage medium and processor of multi-line system
CN110445854B (en) Information issuing system based on Android system
CN106878927B (en) Multifunctional Bluetooth equipment and attaching method thereof
JP2008027403A (en) Advertisement information display system
CN101465980A (en) Television terminal, television program watch control service system and implementing method thereof
JP2004304315A (en) Radio communication system, network establishing method, terminal, and network establishing authentication key
CN108376340A (en) The interaction retransmission method and system of information

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
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.

GR01 Patent grant
GR01 Patent grant