CN102546301B - A kind of digital signal logic analyzing system - Google Patents

A kind of digital signal logic analyzing system Download PDF

Info

Publication number
CN102546301B
CN102546301B CN201210012759.2A CN201210012759A CN102546301B CN 102546301 B CN102546301 B CN 102546301B CN 201210012759 A CN201210012759 A CN 201210012759A CN 102546301 B CN102546301 B CN 102546301B
Authority
CN
China
Prior art keywords
agreement
module
data
digital signal
protocol
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210012759.2A
Other languages
Chinese (zh)
Other versions
CN102546301A (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.)
Shenzhen Institute of Advanced Technology of CAS
Original Assignee
Shenzhen Institute of Advanced Technology of CAS
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 Shenzhen Institute of Advanced Technology of CAS filed Critical Shenzhen Institute of Advanced Technology of CAS
Priority to CN201210012759.2A priority Critical patent/CN102546301B/en
Publication of CN102546301A publication Critical patent/CN102546301A/en
Application granted granted Critical
Publication of CN102546301B publication Critical patent/CN102546301B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Maintenance And Management Of Digital Transmission (AREA)
  • Computer And Data Communications (AREA)
  • Communication Control (AREA)

Abstract

The present invention relates to a kind of digital signal logic analyzing systems comprising digital communication transceiver, protocol resolution module, user's display module, memory module, agreement describe profile download module;Digital communication transceiver is by using at least one interface of an at least digital communication agreement, the transceiving data in the form of byte stream;The agreement that memory module is used to store digital communication agreement describes document;Protocol resolution module receives byte stream from digital communication transceiver, describes document according to agreement, byte stream is resolved to the structural data of specific data structure;User's display module describes document according to agreement, using pre-seting format, structural data described in Dynamic Announce;Agreement describes profile download module and describes document to memory module by data communication interface download protocol.In this way, integrated testing emulation tool reliable, flexible, that autgmentability is strong can be provided for the system integration, repair, appraiser.

Description

A kind of digital signal logic analyzing system
Technical field
The present invention relates to the analysis of digital signal test, more particularly to it is a kind of based on agreement describe document to digital signal into The digital signal logic analyzing system of row protocol analysis and emulation testing.
Background technology
Existing Digital Signal Analysis mainly uses logic analyser to carry out, and logic analyser can usually be assisted according to communication It discusses from SPI (Serial Peripheral Interface, Serial Peripheral Interface), I2C (Inter-Integrated Circuit, inter-integrated circuit), UART (Universal Asynchronous Receiver/Transmitter, it is general different Walk receiver/transmitter), CAN, parallel interface, in the buses such as USB (Universal Serial BUS, universal serial bus) It records the byte data of communication and is shown in the form of character, numerical value or level change.But the number transmitted in bus According to the structural data being often packaged according to certain format, logic analyser tends not to the knot to data packet from byte stream Structure is parsed, thus is difficult to fully meet the application requirement of protocal analysis.Some network protocol analysis instrument can be to IPX (Internetwork Packet Exchange protocol, the Internet packet exchange agreement), TCP/IP The message of (Transmission Control Protocol/Internet Protocol, transmit control/Internet protocol) etc. into Row analysis, to solve network diagnosis and problem analysis, but due to the variability of application layer protocol, these protocol analyzers cannot The structure of application layer data packet is parsed from byte stream.In short, lacking a kind of tool at present, number of buses can be easily provided According to application layer analysis analytic ability and application packet structure see-through capabilities.
The test of digital display circuit includes not only the detection to digital system bus or digital interface output signal, should also be wrapped It includes and test data or control instruction is sent to digital display circuit by bus or digital interface, observe the reaction or communication of digital display circuit Response;In addition, the both-way communication with digital display circuit is usually directed to multiple digital interfaces and bus, such as exported by universal input Port sends control instruction and also needs to the hair in digital signal at this time by UART or analog-to-digital conversion interface digital signal It send and establishes logical communication link between channel and receiving channel, such as after sending out a control instruction, whether detection receiving channel Receive correct response.These functions are also not available for existing logic analyser and protocol analyzer.
Therefore, the developer of digital display circuit usually requires oneself to write parsing and test software to the progress of digital communications protocol Test and emulation, and experimental verification must be carried out by self-designed hardware platform, and corresponding design of hardware and software can prolong The development cycle of long system reduces the portability of design.
With the development of large scale integrated circuit technology, miscellaneous electronic component is packaged into the chip of micromation In, only communicated with microprocessor chip by limited digital interface or bus.By taking electrocardiogram is developed as an example, traditional electrocardio is adopted Collector is to be made on one piece of circuit board, and ADI (Analog Device Instrument, Analog Devices Inc) is public at present Department, TI (Texas Instruments, Texas Instrument) companies and Shenzhen Xianjin Technology Academe are all proposed the heart of single-chip Electrical analogue front end, completes acquisition and the amplification conditioning of electrocardiosignal, and passes through SPI interface and realization control and data processing function Microprocessor communications.This one chip solution connected by simple data bus is easily achieved large-scale production and production Quality controls, and provides and realize that the Reference Design of corresponding function also generates to simplify the design work of sensor assembly Test to the digital communication interface based on bus and simulation requirements.
Communication protocol is also known as communication control procedure, refers to a kind of agreement that communicating pair controls data transmission.Agreement includes To data format, the method for synchronization, transmission speed, transfer step, examines error correcting system and the problems such as control character defines makes system One regulation, communicating pair must abide by jointly.The debugging of application layer communications protocol needs to solve the problems, such as three levels:1, bottom Data communication (SPI, I2C, TCP/IP, HTTP, file I/O) realizes the byte stream of transmitting-receiving application layer data packet, basic assumption It is that bottom data communication is communications protocol well known to crowd, the transmitting-receiving of data can be completed by the software package of standard.Transmission speed Degree, transfer step, inspection error correcting system, control word are arranged in this level;2, second level is application layer data packet Format parses and emulation, that is, realizes that the conversion between data packet and data model (or structural data) (decomposes data packet For field as defined in application layer protocol, and fill designated data structure);3, third level is that the semanteme of application layer data packet is patrolled Volume, such as the logical relation between data packet and sequence, such as shake hands, each field answers in response etc. and structural data With semanteme.
Lack the easy-to-use application layer protocol to a variety of bus digital communications currently on the market to be parsed and emulated General utility tool.
Common analysis tool includes logic analyser and protocol analyzer, mainly solves to divide bottom data communication Analysis problem can not capture the data model included in byte stream, also not have data sending function, be not used to debugging application The semantic logic of layer communication
If not using logic analyser, have to build corresponding hardware platform, extends exploitation, assessment and verification Period increases cost, also, also lacks the assessment test environment of standard.
Therefore, the prior art needs to improve.
Invention content
The technical problem to be solved in the present invention is to provide a kind of Simulation Test Environment of digital communication interface communications protocol, A kind of integrated service kit of low cost is provided on the basis of this.
In order to solve the above technical problems, the present invention provides a kind of digital signal logic analyzing system comprising digital communication Transceiver, protocol resolution module, user's display module, memory module, agreement describe profile download module;The digital communication is received Hair device is by using at least one interface of an at least digital communication agreement, the transceiving data in the form of byte stream;The storage The agreement that module is used to store the digital communication agreement describes document;The protocol resolution module is received and dispatched from the digital communication Device receives the byte stream, describes document according to the agreement, the byte stream is resolved to the structuring of format Data, for example, it is with specific data structure;User's display module describes the lattice that document preset is set according to the agreement Formula method, for example, specific fields format type or formatting method, structural data described in Dynamic Announce;The agreement Description profile download module downloads the agreement by data communication interface and describes document to the memory module.
Further include a protocol emulation module in the digital signal logic analyzing system, is described according to the agreement The protocol data of emulation is packaged by document according to the specific format, obtains data packet, and pass through the digital communication transceiver The data packet is sent in the form of the byte stream.
Further include a Simulation Control interface generation module, according to described in the digital signal logic analyzing system Agreement describes document dynamic generation Simulation Control interface, and the interface element of generation is described corresponding agreement in document with agreement Data correlation, the Simulation Control interface setting user instruction receiving unit refer to for receiving user instructions according to the user It enables the protocol data for specifying user be packaged, the data packet is obtained, by the digital communication transceiver with the word The form of throttling sends the data packet.
In the digital signal logic analyzing system, the Simulation Control interface also sets up input unit and selection is single Member is respectively used to execute input, selection operation, the parameter of the data packet of the specified transmission is arranged.For example, user pass through it is defeated Enter unit and realizes that input relevant operation, user are realized selection relevant operation by selecting unit, completed for the specified transmission Data packet parameter setting.
Further include an automatic-answering back device module in the digital signal logic analyzing system, respectively with the agreement Parsing module, the protocol emulation module are connected, and the structural data in the protocol resolution module are received, according to institute It states the content of structural data and the agreement describes the artificial intelligence of document, control the protocol emulation module, beat automatically Packet generates reply data packet, and sends the reply data packet by the digital communication transceiver.For example, parsing data can be with It is put into structural data structure, such as in structural data buffering area, then is captured by emulation module or responder module;Also may be used The structural data after parsing is directly submitted to parsing module or responder module by parsing module.
In the digital signal logic analyzing system, data are also passed through a digital analog converter by the protocol emulation module It is converted into analog voltage output.
In the digital signal logic analyzing system, the protocol resolution module also sets up an analog-digital converter, is used for Analog voltage signal is acquired, after carrying out analog-to-digital conversion, is sent to user's display module.
Further include a forwarding mould being connect with the digital communication transceiver in the digital signal logic analyzing system The byte stream that digital communication transceiver receives is forwarded to external system by block, the forwarding module by data communication interface., example As Ethernet card interface or wireless network card interface or USB interface or parallel interface or other data communication interfaces are forwarded to external system System.The forwarding module is also sent the data received from external system by digital communication transceiver in the form of byte stream. The forwarding module also can simultaneously connection protocol parsing module, the structural data is forwarded to outside by data communication interface System.
Further include analysis and processing module in the digital signal logic analyzing system, respectively with the protocol analysis Module, user's display module are connected, for analyzing the structural data and showing analysis result.
Further include the Read-write Catrol list of a universal input and output port in the digital signal logic analyzing system Member carries out visualization read-write at least one input/output port.
In the digital signal logic analyzing system, the universal input and output port read-write control unit also sets up inspection Subelement is surveyed, for being detected to external interrupt caused by input/output port potential change, and testing result is passed to The protocol analysis unit describes document according to the agreement by the protocol resolution module and is converted to the structural data.
Further include a power supply unit, real-time voltage monitoring unit and electricity in the digital signal logic analyzing system Flow monitoring unit.
Further include that agreement describes document management unit and agreement selection in the digital signal logic analyzing system Interface generation unit;The agreement describe document management unit respectively with the protocol resolution module, user's display module, The agreement describes profile download module and is connected, and document is described for starting download, deletion, inquiring one or more agreements, And edit agreement relevant information;The agreement selection interface generation unit describes document management unit, institute with the agreement respectively It states user's display module to be connected, for generating agreement selection interface, receives instruction and select digital signal logic analysis system Currently used agreement of uniting describes document.
In the digital signal logic analyzing system, the digital communication transceiver at least partly data receiver or transmission Be based on direct memory access pattern carry out.
In the digital signal logic analyzing system, the data acquisition through analog-to-digital conversion is visited by direct memory Ask that pattern carries out.
In the digital signal logic analyzing system, the digital-to-analogue conversion is carried out by direct memory access pattern.
Further include that an agreement describes documents editing module in the digital signal logic analyzing system, respectively with it is described Memory module, user's display module are connected, and document is described for visually generating or editing the agreement.
The invention also includes the digital signal analytics of the above-mentioned digital signal logic analyzing system of application.
The beneficial technical effect of the present invention lies in:By designing the integrated detection instrument of low cost, so as to drop Low cost realizes the comprehensive simulating test function for common digital interface with minimum cost;And it may be designed as a variety of tests The integrated integration apparatus of function realizes hardware platform multiplexing, shortens exploitation assessment cycle, and provide unified application layer bus The public verification platform of agreement.The present invention can also solve existing logic analyser by describing the resolve packet of document based on agreement Insoluble packet structure verification and debugging, and shown by visualizing data, emulation testing and automatic simulation response work( It can solve the semantic verification and debugging problem of application layer communications protocol.In this way, the present invention for the test of digital interface, maintenance, Assessment and system integration demand propose corresponding test emulation system, can be provided for the system integration, repair, appraiser reliably, Flexibly, the strong integrated testing emulation tool of autgmentability reduces exploitation maintenance cost, improves working efficiency.
Description of the drawings
Fig. 1 is that the analysis of the Embedded Application layer protocol of one embodiment of the present invention and the technology of artificial debugging are illustrated Figure.
Specific implementation mode
Below by embodiment is introduced, the technology contents of foregoing invention are described in detail.
The analysis of Embedded Application layer protocol and the technology of artificial debugging are as shown in Figure 1, one embodiment is, a kind of number Signal logic analysis system comprising digital communication transceiver S1, protocol resolution module S2, user's display module S3, emulation mould Block S4, responder module S5 (i.e. automatic-answering back device module), structural data buffering area S6, agreement describe document S7, memory module S8; The digital communication transceiver S1 is by using at least one interface of an at least digital communication agreement, such as Serial Peripheral Interface (SPI) (SPI), UART Universal Asynchronous Receiver Transmitter (UART), I2C buses, controller local area network (CAN), Ethernet, parallel interface, USB connect Mouthful etc., the transceiving data in the form of byte stream;The protocol resolution module S2 receives the word from the digital communication transceiver Throttling, the agreement that document S7 is described according to the agreement describe, and the byte stream is resolved to the data for including corresponding data domain Structure and write structure data buffer zone S6;User's display module S3 reads the number from structural data buffering area S6 According to each domain of structure, each data field format type pre-seted in document S7 and formatting method are described according to agreement, moved State shows the structural data, such as signal data is shown in the form of waveform, for numeric field then with field name Title, unit, term of reference are shown simultaneously, wherein field name, unit, term of reference etc. describe document included in the agreement In, warning message is then shown in particular alarm region by specific font or color formatization;User's display module S3 The agreement can also be loaded and describe test case information in document S7, the corresponding Simulation Control interface of dynamic generation, the emulation The interface element of control interface is associated with test case in Protocol document, and the interface element at Simulation Control interface receives user and refers to It enables, is packaged the protocol data for being associated with test case by emulation module S4, and by digital communication transceiver S1 with byte stream Form send.The structural data buffering area S6 is also connect with responder module S5, and responder module S5 is slow from structural data The content that area reads each domain is rushed, and the rule of the response in document is described in conjunction with agreement, automatically generates response message, and pass through emulation Module S4 is packaged, and is then sent in the form of byte stream by the digital communication transceiver S1.The memory module S8 is preserved One or more agreement describes document S7.The download module S9 describes document, and storage to storage from external system download protocol Module S8.In the embodiment above, protocol resolution module S2 also can directly with user display module S3, responder module S5 connections, By the structural data of user's display module S3 display parsings, reply data is generated by responder module S5.
Preferably, which further includes a power supply unit, real-time voltage monitoring unit and electricity Flow monitoring unit.That is, further including a power supply unit, one or more voltages can be exported;Further include that real-time voltage monitoring is single Member and current monitoring unit.
Document is described by agreement, and the soap protocol that parsing is feasible such as famous is carried out to application layer communications protocol, XML data packet can be parsed based on XML Schema.For the communication data packets that embedded chip is common, phase can be established As agreement descriptive model and description method, referring to subsequent example.It, can in order to solve the performance issue of real time data Packet analyzing The overall process of resolve packet is divided into establishment stage and operation phase, in establishment stage using dependency injection pattern according to association View description document changeable assembling analytic thread and data model buffering area, the node of analytic thread are the ripe algorithms of injection, such as will The rudimentary algorithm of parsing is such as searched for, is matched, bit arithmetic, data type conversion are packaged into the objects of some special interface models, The node of tectonic knot chain, in the operation phase, data packet enters data buffer zone after being passed to analytic thread processing and visualizes display, Since the node of analytic thread is ripe binary code, resolving can reach the performance of operation application program.
To above-mentioned each related example connected applications, it is preferred that in the digital signal logic analyzing system, the emulation control Interface processed also sets up input unit and selecting unit, is respectively used to user and executes input, selection operation, described specified to be arranged The parameter of the data packet of transmission.In this way, the Simulation Control interface further includes the Interface Element that can be used for user's input or selection Element so that user can specify the parameter of the data packet of transmission.
To above-mentioned each related example connected applications, it is preferred that in the digital signal logic analyzing system, the agreement is imitative Data are also converted into analog voltage output by true module by a digital analog converter.
To above-mentioned each related example connected applications, it is preferred that in the digital signal logic analyzing system, the agreement solution Analysis module also sets up an analog-digital converter, for acquiring analog voltage signal data, and by the analog signal data of acquisition It is sent to user's display module.
To above-mentioned each related example connected applications, it is preferred that the digital signal logic analyzing system further includes one and institute The forwarding module of digital communication transceiver connection is stated, the byte stream that digital communication transceiver receives is passed through number by the forwarding module Be forwarded to external system according to communication interface, for example, Ethernet card interface or wireless network card interface or USB interface or parallel interface or Other data communication interfaces.Preferably, the forwarding module is also received and dispatched the data received from external system by digital communication Device is sent in the form of byte stream.So as to execute message packet data parsing and protocol emulation function by external system, and make The function of digital communication transceiver is completed with the hardware interface of digital signal logic analyzing system.
To above-mentioned each related example connected applications, it is preferred that the digital signal logic analyzing system further includes expansible Analysis and processing module interface, further analyzed for the data to parsing, and show analysis result.In this way, the number letter Number logic analysis system can be not only used for digital communication message Packet analyzing, it may also be used for the real-time processing of signal is shown and tested Card assessment, such as the features such as frequency of occurrences of output signal-to-noise ratio, calibration information, specific data.
To above-mentioned each related example connected applications, it is preferred that the digital communication transceiver can also read at least one logical With the level information of input/output port or the external interrupt signal of at least one input/output port of capture, and retouched according to agreement It states document above- mentioned information is recorded and shown.The digital communication transceiver can also be arranged at least one by emulation module The level of a input/output port.That is, the digital communication transceiver includes to input/output port read-write and terminal The ability of capture.
To above-mentioned each related example connected applications, it is preferred that the digital signal logic analyzing system further includes that agreement is retouched State document management unit and agreement selection interface generation unit;The agreement describe document management unit respectively with the association View parsing module, user's display module, the download module are connected, for starting download, deleting, inquiry one or more A agreement describes document, and edits agreement relevant information;The agreement selection interface generation unit is described with the agreement respectively Document management unit, user's display module are connected, and for generating agreement selection interface, receive described in user instruction selection The currently used agreement of digital signal logic analyzing system describes document.Multiple agreements can be easily managed thereby using family to retouch Document is stated, and describes to switch between document in different agreements, completes to work to the debugging emulation of different digital communications protocol.
To above-mentioned each related example connected applications, it is preferred that the reception or transmission of the digital communication Transceiver section data It is to be carried out based on direct memory access pattern.For example, what the digital communication Transceiver section or total data were received or were sent It is to be carried out based on direct memory access pattern.
To above-mentioned each related example connected applications, it is preferred that the data acquisition through analog-to-digital conversion is by direct memory Access module carries out.
To above-mentioned each related example connected applications, it is preferred that the digital-to-analogue conversion is carried out by direct memory access pattern.
To above-mentioned each related example connected applications, it is preferred that the digital signal logic analyzing system further includes an agreement Describe documents editing module, be connected respectively with the memory module, user's display module, for visually generate or It edits the agreement and describes document.It describes element for example, the agreement describes documents editing module including a basic agreement and deposits Storage unit stores the basic element for describing application layer communications protocol and corresponding natural language information.For example, basic element Including but not limited to some general basic operation labels such as bit manipulation, message package boundary search operation or well known bottom association Structural description element of view etc..The agreement describes documents editing module and uses the basic element and associated natural language Information dynamic generation application layer communications protocol editing interface, receive user instructions with protocol information input by user, visually It generates the agreement and describes document.Wherein, XML schema are one of example, the example in various embodiments of the present invention With certain generality, these examples can be realized with similar visual edit.For example, agreement describes documents editing mould Block is set to inside digital signal logic analyzing system, the system for forming an entirety;Alternatively, agreement describes documents editing module It is set to outside digital signal logic analyzing system, forms a separable system;Such as, digital signal logic analyzing system is set It is placed in a certain terminal, agreement describes documents editing module and is set to another terminal.
It is combined with any of the above-described example, another example is that the digital signal logic analyzing system also sets up following Each unit:Voltage monitoring unit, current monitoring unit, at least one voltage source output unit.
Since current most embedded chips provide abundant on piece interface resource, the method described in this motion may be with Lower cost is realized.Such as two ADC channels, two serial ports channels can be realized in inventor on MSP430 minimum systems Signal simulation and the emulation of GPIO port control function, realize the test including interface level and protocol level.Therefore the present invention is available In the mating service kit of modular product series, reduce scheme cost, it can also be used to develop comprehensive with customization capability Module interface testing tool, services that vast module level is integrated or the technical staff of system research.
Agreement described in various embodiments of the present invention describes document example, and document may include three parts:Receive message format Description, test case description, response rule.
Receive message format description citing:Such as the message package structure mould that description is made up of one of 4 kinds of mechanism or mixing Type:1, fixed length message, by the field message in series in a designated order of fixed length;2, become long message, by message-length+message The message semantic definition method that body is constituted;Or the message by message coding+corresponding encoded specific length;3, by marking disappearing for boundary Breath, such as similar to DICOM or the message of XML format;By marking the sequence of the message field of boundary can be different;4, by message The message (being typically bit arithmetic) that different domain operations obtain;5, the composite message that above-mentioned various mechanism joints are constituted.Between mechanism Can be nested, such as it can be a fixed length message to become the message body of long message, the description of this nesting can by XML or its Its mode is realized.In addition, message may be by encrypting or compressing.
The boundary of the either message of which type, message is all most important.For the message for thering is connection to shake hands, disappear Since first boundary of breath may identify shaking hands, it is also possible to be obtained by method as described below;For disappearing without what is shaken hands Breath, it usually needs capture the sequence in bus or pass through the capture message boundary of other control lines.
The description of each message further includes the content type of message in addition to comprising composition mechanism, e.g. Wave data, Signal parameter and control instruction, this classification will be helpful to correctly show message content, such as Wave data is using graphical It continuously displays, control instruction need to only be shown as dynamic text;The description of Wave data, signal parameter further includes corresponding natural language Say the information such as label or unit.
Analogue system according to receive message format description can dynamic generation corresponding message all reception domains, and it is correct Ground parses the communication message of reception, and analysis result is stored in corresponding field, and can be shown by user interface.
Test case description citing:The test protocol data of characterising parameter may include parameter in protocol data.This Outside, test case protocol data also includes natural language description information, can automatically generate corresponding control menu in user interface, Realize that interactive protocol data are sent;The protocol data of transmission may also be indefinitely automatically selected based on probability, such as sometimes Message A is sent, sends message B sometimes;It may also include automatic protocol data transmitting mechanisms, by intervals and send suitable Sequence sends one group of message.
The transmission message format of parametrization can support above-mentioned fixed length message, become long message, by mark boundary message, with And 4 type of message by operation between domain (bit arithmetic) and mixed type.And it is packaged according to parameter and generates message.
The description citing of response rule:How the description of response rule can carry after the communication message of response for describing to receive For relevant parameter to be packaged into complete response message example;Such as it sends specific response for specific message content and disappears Breath;Or it is directed to specific message content, different response messages is sent according to certain probability.
It is exemplified below:For the message of label boundary, by the way that message can be described well similar to XML schema Logical construction, you can each domain is effectively broken up messages into, if in the display type or formatted message of schema tag fields (be, for example, waveform signal, digital signal, if by several domains combine display etc.), you can realize the parsing and display of message Function;If increasing natural language description information to test protocol data in schema, you can dynamic generation interactive mode is imitative True control interface.Therefore, the message based on label boundary can solve emulation, test problem with the technology of XML schema.
The parsing and emulation of binary system fixed length message are now illustrated with the example of a serial ports blood oxygen communication.BCI blood oxygens Communication protocol description is as follows:
(1) baud rate 4800,1bit startings, 8bit data, 1bit stop, odd parity;
(2) 60 data packets per second, often wrap 5 bytes, and byte is defined as follows:
RYTE 0:
BYTE 1:
0~6 pulse waves of bit, range 0~99;127 (7FH) indicate invalid
7 sync bits of bit, are always set to 0
BYTE 2:
BYTE 3:
Low 7 of 0~6 pulse frequencies of bit
7 sync bits of bit, always 0
BYTE 4:
0~6 blood oxygen levels of bit, 0~100,127 (7FH) indicate invalid value
7 sync bits of bit, are always set to 0
Its agreement describes document and is exemplified below:
The agreement that blood oxygen agreement is contained in upper example describes the example of document, only comprising receive message format description, by with Under several parts composition.1, the interception (start trifles) of message package;2, the verification (parse/check trifles) of message package;3, message The parsing (rest part of parse trifle message packages) 4 of packet, the formatting of message package is shown (display trifles);5, Yi Jitong Cross user control interface emulation testing (test trifles).It need to only be analyzed once in initial phase since the agreement describes document, Establish corresponding buffering area and data structure, and (such as search is calculated by ripe reusable radix-2 algorithm in the operation phase Method, bit manipulation etc.) complete message package segmentation and domain extraction, therefore good performance can be obtained.
Above-mentioned agreement, which describes document, to facilitate user by user interface Visual Production.Lift a control again below The example of interface parsing and emulation processed, such as system can realize number by SPI digital interfaces and wireless chip NRF24L01 communications According to transmitting-receiving.The agreement is as follows:
Upper example gives the part communication protocol description document of NRF24L01 chip SPI interfaces, in the attribute of proto nodes In illustrate using SPI interface and SPI communication relevant parameter, wherein init attributes be support refers to that emulator can be manual Reset the state of data flow (it is original state to restore each buffering area).Two interactive simulation control instructions are described in this embodiment (two cmd nodes), first cmd instruction (title is to read configuration), emulator is sent by SPI instructs 0x00, and from Dynamic 1 byte information for reading NRF24L01 chips and being returned by SPI, and each position of the information is resolved into configuration register Control word is semantic, and is shown by display system;It is instructed in second cmd, the instruction of emulator two bytes of transmission, first Instruction is 0x20, this is the instruction for writing NRF24L01 configuration registers, and second byte can pass through user circle of dynamic generation Face reading user option (such as configuration information desired by user can be read in by check box in this example, for example whether using receiving Interrupt), and the byte sent according to user option synthesis.Agreement, which describes document also, can emulate NRF24L01 chips to control process The information that device is sent is parsed, and using the example parsed similar to aforementioned blood oxygen, but needs the state of resetting data flow manually, Such as it is placed in data packet by powering on or stopping one section without message time, and by the data flow of digital signal logic analyzing system Boundary condition or Reset Status.
In conclusion the present invention is directed to test, maintenance, assessment and the system integration demand of digital and analog signaling interface It proposes corresponding hardware test platform and test emulation system, digital communication agreement user of service is allow to pass through unified one The agreement for changing test emulation tool and protocol development personnel foundation describes communications protocol described in document rapid evaluation, and accurate grasp is led to The semantic logic of agreement is interrogated, and completes the verification to product on communication protocal conformance, or realizes interface maintenance, reduces exploitation Maintenance cost improves working efficiency.The present invention may also aid in chip or protocol development personnel establish simple, pervasive assessment system System, such as chip or protocol development personnel only need distribution protocol to describe document, and user the document can be used to realize chip communication The entry evaluation to chip and exploitation are realized in the emulation of protocol section, shorten the development cycle.
It should be noted that each technical characteristic listed above, intercombination can form each embodiment, And each embodiment listed above, intercombination form each embodiment without detailed description, should be considered as belonging to this The range that description of the invention is recorded.Also, the foregoing is merely the preferable feasible of the present invention, not limit the protection model of the present invention It encloses, all equivalent structures with made by description of the invention and accompanying drawing content change, and are all contained in protection scope of the present invention It is interior.

Claims (14)

1. a kind of digital signal logic analyzing system, which is characterized in that including digital communication transceiver, protocol resolution module, use Family display module, memory module, agreement describe profile download module;
The digital communication transceiver by using an at least digital communication agreement at least one interface, in the form of byte stream Transceiving data;
The agreement that the memory module is used to store the digital communication agreement describes document;
The protocol resolution module receives the byte stream from the digital communication transceiver, in establishment stage, relies on injection mould Formula describes document changeable assembling analytic thread and data model buffering area according to agreement, then, is passed to byte stream in the operation phase Analytic thread processing, obtains the structural data of specific data structure;
The mode that user's display module describes to pre-set in document according to the agreement, Dynamic Announce formatted data;
The agreement, which describes profile download module, to be downloaded the agreement by data communication interface and describes document to the storage mould Block.
2. digital signal logic analyzing system according to claim 1, which is characterized in that further include a protocol emulation mould Block describes document according to the agreement, the protocol data of emulation is packaged according to specific format, obtain data packet, and passes through institute It states digital communication transceiver and sends the data packet in the form of the byte stream.
3. digital signal logic analyzing system according to claim 2, which is characterized in that further include Simulation Control circle Face generation module describes document dynamic generation Simulation Control interface according to the agreement, and user is arranged in the Simulation Control interface Instruction reception unit is packaged according to the protocol data that the user instruction specifies user, obtains for receiving user instructions To the data packet, the data packet is sent in the form of the byte stream by the digital communication transceiver.
4. digital signal logic analyzing system according to claim 3, which is characterized in that the Simulation Control interface is also set It input unit and selecting unit is set, is respectively used to execute input, selection operation, the data packet of the specified transmission is arranged Parameter.
5. digital signal logic analyzing system according to claim 2, which is characterized in that further include an automatic-answering back device mould Block is connected with the protocol resolution module, the protocol emulation module respectively, receives the institute in the protocol resolution module Formatted data is stated, document is described according to the content of the formatted data and the agreement, controls the protocol emulation module, Automatic packaging generates reply data packet, and sends the reply data packet by the digital communication transceiver.
6. digital signal logic analyzing system according to claim 2, which is characterized in that the protocol emulation module will also Data are converted into analog voltage output by a digital analog converter.
7. digital signal logic analyzing system according to claim 1, which is characterized in that the protocol resolution module is also set An analog-digital converter is set, for acquiring analog voltage signal, after carrying out analog-to-digital conversion, is sent to user's display module.
8. digital signal logic analyzing system according to claim 1, which is characterized in that further include one and the agreement solution The forwarding module for analysing module connection, external system is forwarded to by the formatted data by data communication interface.
9. digital signal logic analyzing system according to claim 1, which is characterized in that further include analysis and processing module, It is connected with the protocol resolution module, user's display module respectively, divides for analyzing the formatted data and showing Analyse result.
10. digital signal logic analyzing system according to claim 1, which is characterized in that further include a universal input The read-write control unit of output port carries out visualization read-write at least one input/output port.
11. digital signal logic analyzing system according to claim 10, which is characterized in that the universal input output end Mouth read-write control unit also sets up detection sub-unit, for being examined to external interrupt caused by input/output port potential change It surveys, and testing result is passed into the protocol analysis unit, document is described according to the agreement by the protocol resolution module It is converted to the formatted data.
12. digital signal logic analyzing system according to claim 1, which is characterized in that further include a power supply unit, reality When voltage monitoring unit and current monitoring unit.
13. digital signal logic analyzing system according to claim 1, which is characterized in that further include that agreement describes document Administrative unit and agreement selection interface generation unit;
The agreement describes document management unit and is connected respectively with the protocol resolution module, user's display module, uses Document is described, and edits agreement relevant information in addition, deletion, the one or more agreements of inquiry;
The agreement selection interface generation unit describes document management unit, user's display module phase with the agreement respectively Connection receives the agreement that instruction selects the digital signal logic analyzing system currently used for generating agreement selection interface Document is described.
14. digital signal logic analyzing system according to claim 1, which is characterized in that further include agreement description text Shelves editor module, is connected with the memory module, user's display module respectively, for visually generation or editor institute It states agreement and describes document.
CN201210012759.2A 2012-01-16 2012-01-16 A kind of digital signal logic analyzing system Active CN102546301B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210012759.2A CN102546301B (en) 2012-01-16 2012-01-16 A kind of digital signal logic analyzing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210012759.2A CN102546301B (en) 2012-01-16 2012-01-16 A kind of digital signal logic analyzing system

Publications (2)

Publication Number Publication Date
CN102546301A CN102546301A (en) 2012-07-04
CN102546301B true CN102546301B (en) 2018-07-27

Family

ID=46352303

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210012759.2A Active CN102546301B (en) 2012-01-16 2012-01-16 A kind of digital signal logic analyzing system

Country Status (1)

Country Link
CN (1) CN102546301B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102908156A (en) * 2012-09-25 2013-02-06 郑蕾娜 Multi-information fusion intelligent health foot pressure analysis system based on internet of things and cloud computation
CN106713343B (en) * 2017-01-09 2019-11-05 青岛金思特电子有限公司 A method of communication protocol intelligently parsing is realized based on cloud computing
CN110445676B (en) * 2019-07-23 2023-04-18 深圳和而泰智能控制股份有限公司 Data monitoring system, method and device and computer readable storage medium
CN111555941B (en) * 2020-04-30 2021-12-17 中国科学院长春光学精密机械与物理研究所 Automatic generation method of communication protocol test driving data
CN111741019A (en) * 2020-07-28 2020-10-02 常州昊云工控科技有限公司 Communication protocol analysis method and system based on field description
CN111970172A (en) * 2020-08-24 2020-11-20 中国科学院长春光学精密机械与物理研究所 Software test requirement analysis method and related components
CN112202745B (en) * 2020-09-23 2023-01-31 深圳力维智联技术有限公司 Streaming protocol development method, device, equipment and storage medium
CN115174431B (en) * 2022-06-30 2023-09-05 无锡融卡科技有限公司 Simple SWP full duplex logic signal acquisition device and method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1848777A (en) * 2006-01-19 2006-10-18 华为技术有限公司 Protocol simulation testing device
CN101021811A (en) * 2007-03-09 2007-08-22 广东技术师范学院 Standard-based real-time logic analysis recording method and system
CN102082797A (en) * 2011-01-21 2011-06-01 中兴通讯股份有限公司 Method and device for carrying out protocol analysis processing on data streams

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2247069B1 (en) * 2003-12-08 2013-09-11 Qualcomm Incorporated High data rate interface with improved link synchronization

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1848777A (en) * 2006-01-19 2006-10-18 华为技术有限公司 Protocol simulation testing device
CN101021811A (en) * 2007-03-09 2007-08-22 广东技术师范学院 Standard-based real-time logic analysis recording method and system
CN102082797A (en) * 2011-01-21 2011-06-01 中兴通讯股份有限公司 Method and device for carrying out protocol analysis processing on data streams

Also Published As

Publication number Publication date
CN102546301A (en) 2012-07-04

Similar Documents

Publication Publication Date Title
CN102546301B (en) A kind of digital signal logic analyzing system
CN102509485B (en) Method for building virtual experiment information representation model
Abdul-Rahman et al. Internet of things application using tethered msp430 to thingspeak cloud
CN104598240B (en) A kind of cross-platform Simulation Model Development method and system
CN105208016B (en) The a variety of data transmissions of agriculture Internet of Things and the method for processing
CN108733552A (en) A kind of FPGA remote debugging systems and remote debugging method
Broering et al. Declarative sensor interface descriptors for the sensor web
CN109240965A (en) Fpga logic capture processing display external member and its application method
CN101609427B (en) Programmable network service automation test system and programmable network service automation method
McGlinn et al. SimCon: A Tool to Support Rapid Evaluation of Smart Building Application Design using Context Simulation and Virtual Reality.
CN103164545A (en) Visual editing method of virtual electronic components
CN107704687A (en) Video monitoring system Computer Aided Design and appraisal procedure
CN103905233B (en) Realize method, system and the access network device of analog sensor plug and play
Bengherbia et al. A MicroBlaze based WSN sink node using XBee transceiver
CN202385126U (en) Gateway device for internet of things
Ottolini et al. Interoperability and scalability trade-offs in open iot platforms
CN111311461B (en) Editor of structured dynamic medical record form based on B-S and generation method
Shea et al. Scoped identifiers for efficient bit aligned logging
CN110324280A (en) Protocol configuration systems, devices and methods in industrial cloud
CN106992899A (en) A kind of network interface test device and method
CN109491919A (en) A kind of method for testing software and test platform
CN115712537A (en) Low-cost vehicle controller CAN signal simulation system
SIVKOV Information system for collection, processing and presentation of data from sensor nodes
CN107544353A (en) A kind of Internet of Things TT&C system of remote joint debugging measure and control device and the application device
CN107992025A (en) A kind of test system

Legal Events

Date Code Title Description
DD01 Delivery of document by public notice

Addressee: Shenzhen Institutes of Advanced Technology, Chinese Academy of Science Li K

Document name: Notification of Passing Preliminary Examination of the Application for Invention

C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant