CN109831765A - A kind of hard-wired low-power consumption bluetooth HCI layer data method of flow control - Google Patents
A kind of hard-wired low-power consumption bluetooth HCI layer data method of flow control Download PDFInfo
- Publication number
- CN109831765A CN109831765A CN201910167688.5A CN201910167688A CN109831765A CN 109831765 A CN109831765 A CN 109831765A CN 201910167688 A CN201910167688 A CN 201910167688A CN 109831765 A CN109831765 A CN 109831765A
- Authority
- CN
- China
- Prior art keywords
- data
- power consumption
- low
- layer
- event
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Abstract
The present invention discloses a kind of hard-wired low-power consumption bluetooth HCI layer data method of flow control, to whole low-power consumption bluetooth system, determine link layer, baseband layer and HCI layers of position, data flow is divided into order data stream, event data stream and asynchronous connection data flow, different data streams are accordingly controlled, realize the interconnection of each interlayer.The disadvantage that the period that such control method can solve the low-power consumption bluetooth protocol development that traditional firmware is realized is long, design complexities are high, operation firmware power consumption is high, meets the needs of current mobile device and Internet of Things are for low-power consumption bluetooth interconnection technique.
Description
Technical field
The present invention relates to a kind of low-power consumption bluetooth HCI layer data method of flow control realized with hardware circuit.
Background technique
Blue-tooth technology is global short-distance wireless communication technology important component, is a kind of technology that comparison is open
Property specification.Bluetooth technology was initially formulated by telecommunications giant Ericsson in 1994, was replacing as RS232 data line at that time
For scheme.For further genralrlization, develop this technology of bluetooth, combines in famous international corporation, family more than 1998 and set up bluetooth
Technology-based Alliance (SIG), its object is to Bluetooth technology is established as a kind of global applicable short-distance wireless communication standard.
With the development of mobile device and wearable device, low-power consumption interconnection technique is become more and more important, in this feelings
Under condition, low-power consumption bluetooth (Bluetooth Low Energy) is obtained by characteristics such as its low complex degree, low cost, super low-power consumptions
It obtained and was widely applied.And as HCI layers of low-power consumption bluetooth of low-power consumption bluetooth host and control unit interface efficiently simplify
Design becomes particularly important.
The method that traditional firmware realizes bluetooth HCI layer data flow control has the advantage of oneself, for example can pass through at any time
Software upgrading does not need flow expense etc..But this method have the shortcomings that for low-power consumption bluetooth one it is fatal, that
It is exactly power consumption control.Because firmware will operate on bottom circuit, it is difficult to control power consumption in this way, and general power consumption all compares
It is higher.And hardware plan is used, low-power consumption bluetooth HCI layer data flow control is realized with the mode of ASIC circuit, due to bottom electricity
Road, which works, does not need the long-term participation of CPU, is not take up a large amount of memory, is greatly lowered power consumption in this way, can more protrude low function
Consume the low-power consumption advantage of bluetooth itself.
Summary of the invention
The purpose of the present invention is to provide a kind of hard-wired low-power consumption bluetooth HCI layer data method of flow control, can
The period for solving the low-power consumption bluetooth protocol development that traditional firmware is realized is long, design complexities are high, operation firmware power consumption is high lacks
Point meets the needs of current mobile device and Internet of Things are for low-power consumption bluetooth interconnection technique.
In order to achieve the above objectives, solution of the invention is:
A kind of hard-wired low-power consumption bluetooth HCI layer data method of flow control determines whole low-power consumption bluetooth system
Data flow is divided into order data stream, event data stream and asynchronous connection data flow by link layer, baseband layer and HCI layers of position,
Different data streams are accordingly controlled, realize the interconnection of each interlayer.
After adopting the above scheme, the present invention is relative to traditional firmware implementation method, when CPU is occupied when hardware circuit works
Between it is short, memory requirements is small, and CPU does not need to execute a large amount of I/O operation, and modules concurrent working reduces time delayed difference value, contracting
The short design cycle, power consumption is reduced to the maximum extent.Its cardinal principle is according to low-power consumption bluetooth HCI layer protocol, in conjunction with low
Power consumption technology designs circuit using HDL to realize its function.This method can be from architecture level and bottom circuit grade pair
Entire design optimizes, and verifies its function eventually by FPGA.Present invention is mainly applied to low-power consumption bluetooths, it can also be used to pass
In the bluetooth ASIC of system.
Detailed description of the invention
Fig. 1 is data flow control grouping and the connection figure with other layers;
Fig. 2 is order data flow control circuit figure;
Fig. 3 is event data flow control circuit figure;
Fig. 4 is that serial ports sends order data result figure;
Fig. 5 is serial ports receiving event data result figure;
Fig. 6 is simulation result of the modelsim to order data flow control circuit;
Fig. 7 is synthesis result of the quartusII to data flow control circuitry;
Fig. 8 is the Bluetooth air data packet after broadcasting instructions are sent;
Fig. 9 is the Bluetooth air data packet after asynchronous connection logical data is sent.
Specific embodiment
Below with reference to attached drawing, technical solution of the present invention and beneficial effect are described in detail.
(1) global analysis
For entire low-power consumption bluetooth system, it is first determined HCI layers of position and effect.Followed by data flow control mechanism
Realization.The data transmission of low-power consumption bluetooth is not only present in HCI layers, while existing in the data of HCI layers with other layers
Interaction.The data interaction with other layers is taken into account during realizing this layer data flow control.Data flow control grouping and
Connection with other layers is as shown in Figure 1.
The data flow includes order data stream, event data stream, asynchronous connection data flow etc., the control of order data stream
Circuit module includes the data interaction of HCI layers, link layer, baseband layer.To upper layer circuit send data, control circuit to its into
Row detection and judgement enter order segment processing module after buffered, order data are enable correctly to transmit.
Various different data sections are formed format by data and form corresponding thing by event data stream above-mentioned, control section
Number of packages evidence, with realization group packet.Group packet in addition to realizing event also send the event packet after group packet according to byte-by-byte mode
To top section.
Asynchronous connection data flow above-mentioned, for realizing the exchange of data between bluetooth equipment, which exists controlling mechanism
Transmitted in both directions is carried out between host and controller, can also be had been established at two and be carried out transmitted in both directions in connection equipment.
The hardware mode refers to integrated circuit, and the low-power consumption bluetooth is the ASIC of an entirety, the upper number of plies
It is a part of ASIC according to flow control circuit, circuit includes multilayer module, and link layer, baseband layer and HCI layer have respective core
Function, each layer data stream while self-contr ol also with other layers of progress data exchange.The link layer refers to that control is blue
The functional layer of tooth controller state, baseband layer refer to the functional layer for being modulated demodulation to blue-teeth data by the communication of algorithms, HCI
Layer refers to the functional layer that can be realized to data group packet and unpacking, data transmission and data flow control.
The low-power consumption, which refers to, gives up traditional firmware implementation, optimizes electricity from hardware system, framework and RTL level
Road eliminates the shortcomings that firmware largely occupies CPU and memory, eliminates a large amount of I/O operation, reach complete low-power consumption effect.
(2) order data flow control circuit
Order data flow control circuit is as shown in Figure 2.It not only include HCI layers of order flow control and place in control circuit module
Circuit is managed, the event handling electricity Lu ﹑ link layer and baseband portion with control circuit there are data interaction are further related to.Firstly, bluetooth
It starts to work, host sends the enabled instruction of broadcast, and controller starts to send broadcast data packet to aerial, makes the bluetooth equipment can be with
It is identified by other equipment.Secondly, control circuit receives upper layer circuit data by serial ports, and determine data type (i.e. data
It whether is order).Each data packet first character section is instruction byte (indicator), as shown in table 1, the finger of order data
Show that byte is 0x01.The particular content that may determine that data in conjunction with instruction byte, command operation code and parameter length, judged
Journey is as follows: will receive data and store, and compared with the progress one by one of reference command data, comparison result unanimously can then be determined
Specific instruction, compares without consistent after being fully completed, is not then order data.If host disposably sends a plurality of instruction,
And HCI layers can not parse these orders in a short time, will store the order data of transmission this when.Judging
After being order, so that it may which these data are stored in FIFO.The characteristics of according to FIFO first in first out, order data processing circuit
The order that meeting first processing is first sent.Finally, the order after buffered enters order segment processing module, this place is in data
It is played a crucial role in flow control.Some command parameters need to be transferred to link layer, some parameters need to be transferred to thing
Part processing module etc., the transmission of these parameters are all completed in the module.This module writes RAM's according to command type, control
Address, or control signal is written in RAM or direct signal is transmitted to link layer etc..In these flow control modules
Under effect, order data can be transmitted correctly.
1 order data format of table
(3) event data flow-control mechanism
In the data stream transmitting of low-power consumption bluetooth, in order to make host obtain the working condition of controller, sent in host
After order data or asynchronous connection data, controller needs to return a signal to host after receiving the data, this letter
Event of doing of howling (event).I.e. after host sends an order, controller can all return to an event.Event data stream
Control circuit is as shown in Figure 3.There are three source, command processing module, link layer and HCI layer for the parameter of composition event packet
The RAM docked with link layer.The main function of this partial circuit is a group packet, i.e., the parameter group from modules is integral
Event packet be sent to host, data format is as shown in table 2.State processing is important supplementary module, and effect is
Ensure the correct transmission and transmission abnormality detection processing of data between host and controller.Almost each order is sent completely
Afterwards, controller can all return to an order completion event.It include an important parameter, completion status in completion event.Work as master
After machine has correctly sent order, and order is completely received by controller, controller can return one completion event of host.This
Completion status in the case of kind in completion event is set to 0, and representative is correctly completed order.If in transmission process or controller executes
It malfunctions in the process, this completion status parameter can be set according to type of error.Error type has very much, this state processing mould
Block specially handles this situation.There are also repetition parameter filtering circuits for supplementary module.This module is primarily used to processing scanning
The return event of instruction.After host has sent scan instruction, controller can scan the bluetooth equipment of surrounding, and scanning is arrived
The same bluetooth device address, if need duplicate return non-host, this be exactly with this repeat filtration parameter control
's.For the two main modules, organizes packet module and be combined into according to the format of these parameters and bluetooth event data such as table 2
Complete data packet, is then sent to host by serial ports.
2 event data format of table
(4) asynchronous connection data flow control mechanism
In low-power consumption bluetooth, the data transmitted between bluetooth equipment are mainly asynchronous connection logical data
(Asynchronous Connection-Oriented Link data packet) has mainly been established in slave connection
At the data of rear transmission, the data can between host and controller transmitted in both directions, can also be in two connection status
Transmitted in both directions between lower bluetooth equipment.Acl data are a kind of data transmitted between two bluetooth equipments, the unification of data
Format is as shown in table 3.According to the regulation in 4.0 agreement of bluetooth about ultrashort data packet, for acl data, 8 can be once sent
To the data of 27 bytes, i.e., once can only at most send the acl data of 27 byte, thus need exist for acl data into
Row buffering processing, such as host want to send the acl data of 108 bytes, then host will be by uart transport layer to HCI
Layer sends 108 bytes, and HCI layers are more than that the fifo of 108 bytes buffers data with regard to needing a depth, then every time
27 bytes are at most sent backward, are sent completely until by all acl data.Can according to the data identification burst in data come
The type of data is distinguished, so the major function of this partial circuit is buffering and identification.
The asynchronous connection logical data format of table 3
(5) test result is designed
With hardware realization low-power consumption bluetooth HCI layer data flow control, related syndrome result is as shown in Figure 7.Design result needs
Carry out modelsim emulation and FPGA verifying.Modelsim emulation is carried out first, as shown in fig. 6, simulation result shows data
Flow control is normal, and parameter correctly can be transmitted and be stored.Under the premise of simulation result is right-on, FPGA verifying is carried out.
Data are sent and received by computer serial port, as shown in Figure 4 and Figure 5.Finally by the HCI layer data control stream cooperation leading portion of design
Radio frequency transceiver carries out broadcast data and connection data test, and the result for carrying out packet capturing with Sinffer is as shown in Figure 8 and Figure 9,
Verification result meets expection, illustrates that design meets the requirements, circuit function produces a desired effect.
The above examples only illustrate the technical idea of the present invention, and this does not limit the scope of protection of the present invention, all
According to the technical idea provided by the invention, any changes made on the basis of the technical scheme each falls within the scope of the present invention
Within.
Claims (6)
1. a kind of hard-wired low-power consumption bluetooth HCI layer data method of flow control, it is characterised in that: to whole low-power consumption bluetooth
System determines link layer, baseband layer and HCI layers of position, and data flow is divided into order data stream, event data stream and asynchronous company
Data flow is connect, different data streams are accordingly controlled, realize the interconnection of each interlayer.
2. the method as described in claim 1, it is characterised in that: the control program of the order data stream is: control circuit is logical
It crosses serial ports and receives upper layer circuit data, and determine data type, in conjunction with instruction byte, command operation code and parameter length judgement
The particular content of data;After judgement is order, these data are stored in FIFO;Order after buffered enters order segmentation
Processing module is transferred to link layer, event processing module or baseband layer according to command type.
3. method according to claim 2, it is characterised in that: the combination instruction byte, command operation code and parameter are long
Degree judges the particular content of data, and deterministic process is as follows: will receive data and stores, and carries out one by one with reference command data
Compare, comparison result unanimously can then determine specific instruction, compare without consistent after being fully completed, be not then order data.
4. the method as described in claim 1, it is characterised in that: the control program of the event data stream is: host sends life
After enabling data or asynchronous connection data, controller returns event to host after receiving the data, forms the ginseng of event packet
There are three source, command processing module, the link layer and HCI layers of RAM docked with link layer, by the ginseng from modules for number
The integral event packet of array is sent to host.
5. the method as described in claim 1, it is characterised in that: the control program of the asynchronous connection data flow is: slave
After the completion of connection is established, asynchronous connection data flow transmitted in both directions between host and controller, or in two connection shapes
Then transmitted in both directions between bluetooth equipment under state sends the advanced row buffering of the data that need to be transmitted successively, until by all data
It is sent completely.
6. the method as described in claim 1, it is characterised in that: the control program of each data flow carries out modelsim emulation
It is verified with FPGA.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910167688.5A CN109831765A (en) | 2019-03-06 | 2019-03-06 | A kind of hard-wired low-power consumption bluetooth HCI layer data method of flow control |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910167688.5A CN109831765A (en) | 2019-03-06 | 2019-03-06 | A kind of hard-wired low-power consumption bluetooth HCI layer data method of flow control |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109831765A true CN109831765A (en) | 2019-05-31 |
Family
ID=66865432
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910167688.5A Pending CN109831765A (en) | 2019-03-06 | 2019-03-06 | A kind of hard-wired low-power consumption bluetooth HCI layer data method of flow control |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109831765A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110572174A (en) * | 2019-09-02 | 2019-12-13 | 苏州卓智创芯电子科技有限公司 | radio frequency transceiver supporting Bluetooth BLE protocol and control method thereof |
CN111580994A (en) * | 2020-05-11 | 2020-08-25 | 南京英锐创电子科技有限公司 | Bluetooth module, event control method of Bluetooth module and electronic equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080081560A1 (en) * | 2006-09-29 | 2008-04-03 | Broadcom Corporation | System and method for streaming identical data over severl bluetooth links |
CN103238371A (en) * | 2010-12-03 | 2013-08-07 | 摩托罗拉解决方案公司 | Method and apparatus for ensuring transmission of critical data through wireless adapter |
US20160277522A1 (en) * | 2015-03-20 | 2016-09-22 | Qualcomm Incorporated | Detecting playback buffer underrun at sink device to improve streaming media quality over bluetooth |
CN106888271A (en) * | 2017-03-30 | 2017-06-23 | 北京萤芯科技有限公司 | A kind of software and hardware interactive interface applied in BLE5.0 protocol systems and system |
-
2019
- 2019-03-06 CN CN201910167688.5A patent/CN109831765A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080081560A1 (en) * | 2006-09-29 | 2008-04-03 | Broadcom Corporation | System and method for streaming identical data over severl bluetooth links |
CN103238371A (en) * | 2010-12-03 | 2013-08-07 | 摩托罗拉解决方案公司 | Method and apparatus for ensuring transmission of critical data through wireless adapter |
US20160277522A1 (en) * | 2015-03-20 | 2016-09-22 | Qualcomm Incorporated | Detecting playback buffer underrun at sink device to improve streaming media quality over bluetooth |
CN106888271A (en) * | 2017-03-30 | 2017-06-23 | 北京萤芯科技有限公司 | A kind of software and hardware interactive interface applied in BLE5.0 protocol systems and system |
Non-Patent Citations (4)
Title |
---|
GEMMY: "蓝⽛协议中HCI层的研究与开发", 《3、 HTTP://WWW.360DOC.COM/CONTENT/14/0526/16/19525_381162036.SHTML》 * |
TEXAS INSTRUMENTS: "SWRU442B", 《WILINK™ 8.0 BLUETOOTH》 * |
张熠: "蓝牙核心规范中HCI层的研究与开发分析", 《电脑知识与技术》 * |
王星标: "低功耗蓝牙HCI层的设计", 《信息科技辑》 * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110572174A (en) * | 2019-09-02 | 2019-12-13 | 苏州卓智创芯电子科技有限公司 | radio frequency transceiver supporting Bluetooth BLE protocol and control method thereof |
CN110572174B (en) * | 2019-09-02 | 2021-04-06 | 苏州卓智创芯电子科技有限公司 | Radio frequency transceiver supporting Bluetooth BLE protocol and control method thereof |
CN111580994A (en) * | 2020-05-11 | 2020-08-25 | 南京英锐创电子科技有限公司 | Bluetooth module, event control method of Bluetooth module and electronic equipment |
CN111580994B (en) * | 2020-05-11 | 2023-09-15 | 南京英锐创电子科技有限公司 | Bluetooth module, event control method of Bluetooth module and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106612141B (en) | A kind of fiber channel protocol common simulation test card and its data interactive method | |
CN104809094B (en) | SPI controller and its communication means | |
CN101840387B (en) | USB (Universal Serial Bus) Key device and method for realizing smart card communications using USB interface | |
CN102495920B (en) | Integrated logic analysis module based on PCIe (peripheral component interconnection express) for FPGA (field programmable gate array) | |
CN109376118A (en) | Programmable logic device on piece integrated network | |
CN107980215A (en) | A kind of protocol converter and method for converting protocol | |
CN104168162B (en) | A kind of software-hardware synergism realizes the traffic generator for interchanger validation test | |
CN109831765A (en) | A kind of hard-wired low-power consumption bluetooth HCI layer data method of flow control | |
CN105068955B (en) | A kind of local bus architecture and data interactive method | |
CN100421424C (en) | Integrated router based on PCI Express bus | |
CN106603420A (en) | Network-on-chip router with real-time and fault-tolerant feature | |
CN106682370A (en) | Simulation verification system | |
CN103530211A (en) | PCIE loop back self-test method based on UVM platform | |
CN104219003B (en) | Communicator, test system and method for testing thereof | |
CN107943732A (en) | One kind realizes 1553B bus modules based on production domesticization FPGA device | |
CN106656625B (en) | Based on the train of ARM CAN communication switching control method and conversion module | |
CN102880583B (en) | Device and method for configuring dynamic link of multi-way server | |
CN104200148A (en) | Smart card redundancy switching method based on independently domestic redundancy server | |
CN107563075B (en) | Method for realizing CosiMate network and DDS network interconnection | |
CN106487718A (en) | A kind of independently controlled router controls exchange system | |
CN107070937B (en) | FPGA-based protocol conversion device and method | |
CN104991848A (en) | Method and system for implementing Key code burning on basis of MSComm control | |
CN204597989U (en) | Based on the AFDX terminal test equipment of CPCI interface | |
CN106842915A (en) | A kind of formal modeling method and device for robot distributed control system | |
CN107370508A (en) | 4G mobile communication gateways for train-mounted information equipment |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190531 |