CN107807731A - A kind of method of data capture and state analysis for low-power consumption bluetooth chip - Google Patents

A kind of method of data capture and state analysis for low-power consumption bluetooth chip Download PDF

Info

Publication number
CN107807731A
CN107807731A CN201711074774.9A CN201711074774A CN107807731A CN 107807731 A CN107807731 A CN 107807731A CN 201711074774 A CN201711074774 A CN 201711074774A CN 107807731 A CN107807731 A CN 107807731A
Authority
CN
China
Prior art keywords
low
power consumption
chip
consumption bluetooth
bluetooth chip
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201711074774.9A
Other languages
Chinese (zh)
Inventor
张修远
马昆
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Huahong Integrated Circuit Co Ltd
Original Assignee
Shanghai Huahong Integrated Circuit 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 Shanghai Huahong Integrated Circuit Co Ltd filed Critical Shanghai Huahong Integrated Circuit Co Ltd
Priority to CN201711074774.9A priority Critical patent/CN107807731A/en
Publication of CN107807731A publication Critical patent/CN107807731A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/3293Power saving characterised by the action undertaken by switching to a less power-consuming processor, e.g. sub-CPU

Abstract

The invention discloses a kind of method of data capture and state analysis for low-power consumption bluetooth chip.The innovative real-time capture for realizing information flow in protocol stack main frame (host protocol layer) and controller (controller protocol layer) interaction for low-power consumption bluetooth chip of this method.Capturing information stream is stored into nonvolatile memory by specific instruction.Due to above- mentioned information stream can be preserved in real time during the use of Bluetooth chip, once therefore there is exception at work in low-power consumption bluetooth chip, information flow and working condition when very easily abnormality can occur from nonvolatile memory using this method, there is provided be used to analyze to design and a large amount of true, the accurate information of tester.It is of the invention innovative to solve the problems, such as expensive third party's hardware be used to carry out information flow acquisition and analysis in current bluetooth test equipment, therefore the characteristics of be provided simultaneously with high accuracy, efficiency high, low cost.

Description

A kind of method of data capture and state analysis for low-power consumption bluetooth chip
Technical field
The present invention relates to low-power consumption bluetooth chip field, is caught more particularly to a kind of data for low-power consumption bluetooth chip Catch the method with state analysis.
Background technology
With the arrival of information age, application of the low-power consumption bluetooth chip in daily life is more and more wider It is general.But because the market demand is huge, the abundant domestic Innovation Input for low-power consumption bluetooth chip of application scenarios is very big.But with This is simultaneously because the research and development of domestic low-power consumption bluetooth compared with developed countries are started late, and various technological accumulation are insufficient, therefore state Interior low-power consumption bluetooth chip in stability and the compatibility of complex application context on also have many places to be improved.Cause Low-power consumption bluetooth chip test at the scene and use during, easily go wrong, it is often necessary to debugged.But existing low work( It is narrow to consume the test equipment selectable range of Bluetooth chip, mostly dependent on external producer, using third party's hardware device of costliness To be monitored seizure to the signal of low-power consumption bluetooth chip and the interaction of other bluetooth equipments, threshold height is used;And the 3rd Also easily by other interference from 2.4Ghz (WIFI wireless networks etc.) signal while method, apparatus catches data, except this it Outer third party's hardware device is to the friendship in low-power consumption bluetooth chip state in itself and bluetooth protocol repertory between main frame and controller Mutual information still can not be obtained and analyzed.On the other hand, the technical staff of on-the-spot test often lacks directly to low-power consumption bluetooth The working condition that chip is carried out obtains and the means of analysis, so as to cause debugging difficulty to greatly increase.This patent, which focuses on, captures It is this kind of test at the scene in captured and the technical barrier of analysis for the working condition of low-power consumption bluetooth chip, we are from low first The oneself state of caused information exchange flow and low-power consumption bluetooth chip between power consumption Bluetooth chip and other communication equipments Start with, analyze in detail comprehensively.The final complete and accurate, reliable and expeditiously obtain these low-power consumption of realizing Interactive information between Bluetooth chip and other communication equipments, and analysis of the paid completion to capturing information.So as to solve this Individual the problem of all being had a headache for the R&D personnel of low-power consumption bluetooth chip and tester.
The content of the invention
The technical problem to be solved in the present invention is by providing a kind of data capture for low-power consumption bluetooth chip and shape The method of state analysis, it has the characteristics of reliability height, efficiency high, low cost.
The present invention adopts the following technical scheme that realization:
Low-power consumption bluetooth chip main frame (Host:Host protocol layer) it is sent to controller (Controller:Controller protocol Layer, hereafter referred to collectively as main frame) data, controller (Controller:Controller protocol layer, hereafter referred to collectively as controller) send master Machine data and the register value for reacting low-power consumption bluetooth chip status, above- mentioned information is using data capture function with default rule Then carried out in before carrying out to communication process next time to the memory space erasable.Once communication process or chip processing Go wrong, be monitored using this method, can read relevant information from nonvolatile memory after electricity on next chip enters Row analysis.
Using the method for the present invention, required hardware is all built upon in low-power consumption bluetooth chip system.Also just mean , the present invention need to only utilize low-power consumption bluetooth chip own hardware to can be achieved.Be integrated with chip nonvolatile memory with And the hardware such as microprocessor.Nonvolatile memory has the characteristic that data are not lost after power down.Its major advantage is can be with The confession that is erasable, and being protected in the event of a power failure to data without power supply of data is carried out to memory cell online Electricity.And microprocessor has small volume, low-power consumption, high performance feature, the execution speed of instruction is also very fast, in whole system In play a part of central brain.
The present invention eliminates expensive signal audiomonitor hardware purchase and maintenance cost without third party's hardware device; As long as there are enough nonvolatile memory storage spaces or can outside extension nonvolatile memory storage suitable for all The low-power consumption bluetooth chip in space.With the degree of accuracy is high, cost is low, efficiency high, use it is simple, easy realize, technology replicability The advantages of strong.In addition, with fabulous portability, it can almost meet on-the-spot test personnel and the various application scenarios of research staff Working environment demand.
Brief description of the drawings
Fig. 1 low-power consumption bluetooth chip structure figures
Fig. 2 low-power consumption bluetooth protocol stack structure figures
Embodiment
1,2 the present invention is further detailed explanation with embodiment below in conjunction with the accompanying drawings:
Accompanying drawing is the embodiment of the method schematic diagram 1 of the data capture based on low-power consumption bluetooth chip and state analysis, 2.With reference to accompanying drawing 1, shown in 2, the data capture and state analysis method based on low-power consumption bluetooth chip are by low work( The software approach of Bluetooth chip itself is consumed to realize.Whole implementation process is the nonvolatile memory of low-power consumption bluetooth chip In reserve specific data parking space, then low-power consumption bluetooth chip main frame be sent to controller data, controller send Host data and the register value for reacting low-power consumption bluetooth chip status, above- mentioned information is by calling the data capture letter write Number, with certain default rule erasable in this piece nonvolatile memory before chip carries out to flow next time.Wherein The realization of data capture function is based on the operation to nonvolatile memory, and main function is by main frame and controller interaction Data and low-power consumption bluetooth chip during this status register value write-in mark off come nonvolatile memory In unit.Because the region of the non-volatile memory cells of write-in is fixed, only needed in the data capture function The method to storage device write-in that increase low-power chip provides writes data into region fixed in storage device.By Have in the piece non-volatile memory cells and power off the characteristic that will not lose data, so being dashed forward when chip operation So remain to these data being stored in this piece memory cell in the case of power-off.Technical staff or work when low-power consumption bluetooth Cheng Shi needs to analyze at the scene in certain data interaction caused data and chip some special at this flow State, it is only necessary to chip again on after electricity enters steady-working state, pass through to instruct and read the data deposited in storage device. And the realization of these instructions can directly invoke the function read to storage device that chip provides in itself, to what is reserved before Fixed data storage area is read out.Pass through these data, it is possible to recognize number of the chip in previous communication process According to this and the state that is in of chip.For the engineer of field adjustable, it is only necessary to understand the instruction of these digital independents just It can correctly realize seizure.
The method of the present invention has for those technical staff and engineer for needing problem analysis and debugging at the scene The advantages of traditional means are incomparable before.
First, in general is quicker using interference of the data capture and analysis means of third party's hardware to surrounding environment Sense, when bluetooth equipment is with bluetooth equipment interactive mode, the signal transmitted in the air is very easy to by other 2.4Ghz (particularly WIFI wireless networks etc.) signal disturbed, the seizure of data becomes very difficult under some special environment;Third party is hard Part equipment to the interactive information in low-power consumption bluetooth chip state in itself and bluetooth protocol repertory between main frame and controller still It can not be obtained and be analyzed.And the method for the present invention is that the function of low-power consumption bluetooth chip in itself has been fully utilized, by soft For the means of part come what is realized, the interference to extraneous irrelevant signal has good anti-interference.
Secondly, in general has very big unreliability using the data capture and analysis hand of third party's hardware, often occurs The signal after frequency hopping can not be followed the trail of, occur leakage grab, error analysis phenomena such as, the crawl analysis of the seizure of a data generally will be through After trial several times and verification of data, operating efficiency substantially reduces;And the method reliability of the present invention, then it is built upon chip In the reliability of built-in function itself, largely reduce the probability to make a mistake, so as to improve the efficiency of work with Accuracy.
Finally, only a few foreign brand name can provide third party's data capture and the analytical equipment of better performances, but purchase It is very expensive with later maintenance expense, it is also very high using threshold.This kind equipment, which generally requires external power supply, to be used, and itself has Certain volume, largely limit the applicable occasion of institute;And the method for the present invention is then only to need several softwares to refer to Order, it is not necessary to which carrying any equipment can complete.
In summary, there is the advantage to hardly match for the relatively conventional means of the present invention.
Here is a specific embodiment, can be better understood by technical scheme, implementation process and be had Beneficial effect.
A low-power consumption bluetooth chip has 48k memory space, and wherein 40k memory space is used as storage low-power consumption bluetooth The program of chip, storage areas of the 4k as software patch, also 4k is as the area of space for realizing the method for the invention.
In the addition data capture function Ble_function_ of the Host-Controller interface routine of low-power consumption bluetooth chip Spy (), Ble_function_GetRecord (index) and Ble_function_erase ().The storage device being stored into It is stored in for convenience of using in the form of recording (but in the form of being not limited to record):
Record label+0xFF+Le+ record contents (controller transmission)
Wherein, the sequence number marked as this record is recorded, to sequentially increase;0xFF (represents controller number for record mark According to main frame and register data are marked with same method);The length that Le is followed by recorded.
The implementation of the data capture function is as follows:
Define global variable:The structure of order is all stored in structure gController;It is stored in storage device records Sequence number index.
The specific function function is
Ble_function_Spy () function, which realizes data that are receiving card or will sending and is saved in, to be deposited Store up in space (4K) specified in equipment.This function use controller, main frame send data when, i.e., chip receive or Person can perform this function when receiving data, store data in the regulation memory cell of equipment.
Ble_function_GetRecord (index) function realize will be stored in it is postread in memory space Function.Record is to record label+0xFF+Le+ records content (controller, main frame send data with reference in the form of the record) Form is stored in memory space, thus the incoming parameter of this function indicates a desire to the record label of reading.Upper using, this function is special Door reads instruction as one and used, and present engineer can be used with technical staff when needing to read record.
Ble_function_erase () function realizes the function of emptying the data in 4k spaces.When field engineer with When the instruction that technical staff sends based on above-mentioned Ble_function_GetRecord (index) returns to error code, represent 4k memory space does not have instruct in record record indicated by label, represent 1k space write it is full, you can send with Instruction based on Ble_function_erase () function empties the record in 4k spaces.
The present invention is described in detail above by embodiment and embodiment, but these are not composition pair The limitation of the present invention.Without departing from the principles of the present invention, those skilled in the art can also make many deformations and change Enter, these also should be regarded as protection scope of the present invention.

Claims (2)

1. a kind of method of data capture and state analysis for low-power consumption bluetooth chip, it is characterised in that:Low-power consumption bluetooth In chip signal interaction, the controller and main frame of chip internal bluetooth protocol repertory can constantly enter row data communication, in master Stored in machine-control unit interface and by data capture function by Content of Communication into the nonvolatile memory in chip;One Denier communication process or chip processing go wrong, and are monitored using this method, can be from non-volatile after electricity on next chip Property memory read relevant information analyzed.
2. the method as described in claim 1, it is characterised in that:In the nonvolatile memory of the low-power consumption bluetooth chip Reserve specific data parking space;Nonvolatile memory can be integrated in chip internal or expand in chip exterior The nonvolatile memory of exhibition;Low-power consumption bluetooth chip main frame is sent to controller data, controller Receiving Host data, and phase The register value for the low-power consumption bluetooth chip status answered, above- mentioned information use data capture function, entered according to default rule It is erasable to being carried out in the memory space before row to communication process next time.
CN201711074774.9A 2017-11-06 2017-11-06 A kind of method of data capture and state analysis for low-power consumption bluetooth chip Pending CN107807731A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711074774.9A CN107807731A (en) 2017-11-06 2017-11-06 A kind of method of data capture and state analysis for low-power consumption bluetooth chip

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711074774.9A CN107807731A (en) 2017-11-06 2017-11-06 A kind of method of data capture and state analysis for low-power consumption bluetooth chip

Publications (1)

Publication Number Publication Date
CN107807731A true CN107807731A (en) 2018-03-16

Family

ID=61583393

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711074774.9A Pending CN107807731A (en) 2017-11-06 2017-11-06 A kind of method of data capture and state analysis for low-power consumption bluetooth chip

Country Status (1)

Country Link
CN (1) CN107807731A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111934723A (en) * 2020-08-26 2020-11-13 上海仪电(集团)有限公司中央研究院 Bypass interception Bluetooth communication device, method and application thereof

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1741407A (en) * 2004-08-26 2006-03-01 华为技术有限公司 Method for expanding blue-tooth chip
CN105488441A (en) * 2014-09-19 2016-04-13 上海华虹集成电路有限责任公司 Signal grasping and state analyzing method based on chip of non-contact smart card

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1741407A (en) * 2004-08-26 2006-03-01 华为技术有限公司 Method for expanding blue-tooth chip
CN105488441A (en) * 2014-09-19 2016-04-13 上海华虹集成电路有限责任公司 Signal grasping and state analyzing method based on chip of non-contact smart card

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111934723A (en) * 2020-08-26 2020-11-13 上海仪电(集团)有限公司中央研究院 Bypass interception Bluetooth communication device, method and application thereof

Similar Documents

Publication Publication Date Title
CN101995547B (en) On-die logic analyzer for semiconductor die
CN102231852B (en) Method and device for programming serial number of set-top box
CN101493755B (en) Method for simultaneously reading and writing memory and data acquisition unit
KR100589227B1 (en) Apparatus capable of multi-interfacing memories and interfacing method of the same
CN109254883B (en) Debugging device and method for on-chip memory
CN103593271A (en) Method and device for chip tracking debugging of system on chip
CN110109853A (en) Data acquisition and processing (DAP) device and method
CN106294056A (en) Chip adjustment method and device
CN101751327A (en) Method for tracing embedded processor debugging
CN114356846A (en) Image data sending method and device, electronic equipment and storage medium
CN107807731A (en) A kind of method of data capture and state analysis for low-power consumption bluetooth chip
CN105446848B (en) The test method and device of the data processing performance of electronic equipment
CN102611836A (en) High-speed image collecting method based on Labview
CN106406654A (en) Application icon automatic sorting method and system, and mobile device comprising system
CN109669858A (en) Test method, device and the equipment of program deadlock
CN108867719A (en) A kind of dead load test on pile foundation remote supervision system and method
CN102984682A (en) Data access method of signaling collection device in mobile communication system
CN104318283A (en) Mobile terminal type test instrument management system and method
CN205959254U (en) Intelligence system of patrolling and examining
CN101706746A (en) Device and method for carrying out online debugging on memory interface circuit
CN103294602B (en) The digital independent of logic analyser and write the method for its storer
CN102455969B (en) Method for recording Linux serial communication log
CN105204799A (en) Method for increasing display refreshing rate of multi-channel deep memory logic analyzer
CN107465569A (en) A kind of SAS Switch whole machine cabinets crawl node phy error count method and system
CN201345098Y (en) Data acquisition device capable of simultaneously reading and writing to memory

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
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20180316