CN107368415A - A kind of real-time stream debugging software component and its adjustment method - Google Patents
A kind of real-time stream debugging software component and its adjustment method Download PDFInfo
- Publication number
- CN107368415A CN107368415A CN201710594723.2A CN201710594723A CN107368415A CN 107368415 A CN107368415 A CN 107368415A CN 201710594723 A CN201710594723 A CN 201710594723A CN 107368415 A CN107368415 A CN 107368415A
- Authority
- CN
- China
- Prior art keywords
- data
- real
- data flow
- buffer zone
- processing module
- 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/362—Software debugging
- G06F11/3644—Software debugging by instrumenting at runtime
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/362—Software debugging
- G06F11/3636—Software debugging by tracing the execution of the program
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/362—Software debugging
- G06F11/366—Software debugging using diagnostics
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The present invention relates to embedded control field in real time, and it is an object of the present invention to provide a kind of real-time stream debugging software component and its adjustment method based on triggering pattern and rolling mode.Used technical scheme is:A kind of real-time stream debugging software component, including receive and parse through and perform the command reception execution module of host computer instruction, collect data flow and data flow is updated into the data real-time update module to data buffer zone, sends the gathered data processing module of data flow;The host computer instruction includes setting data flow transceiver mode, and the data flow transceiver mode includes triggering pattern and rolling mode.The present invention is provided with triggering pattern and rolling mode simultaneously, can preferably detect each item data in program operation process.
Description
Technical field
The present invention relates to embedded real-time control field, and in particular to a kind of real-time stream debugging software component and its tune
Method for testing.
Background technology
In embedded real-time control field, the disposal ability of microcontroller is more and more stronger, and processing speed is more and more faster, exploitation
The software systems of personnel also become increasingly complex.When software is in offline debugging, developer must write data flow debugging software
Component carrys out the internal data of Real Time Observation controller operation, with this come whether observed data correct, program whether normal operation.
Under normal circumstances, the number in the mode reading program of our service life when observing the program of steady-state operation
According to.But when we think related data of the extraction procedure under some specified conditions, using week due to program operation speed quickly
The mode of phase property, which reads data, can cause the serious loss of data;And the data flow debugging of most of embedded software systems at present
Component contains only the rolling mode function of periodically reading data, be not included in the triggering pattern that data are read under trigger condition
Function, such as:Automobile industry main flow demarcation survey tool CANape, DiagRA etc., only rolling mode function, do not trigger
Mode capabilities.Therefore, it is necessary to which a kind of real-time stream debugging software component extracts data, when ensureing that specified conditions occur, use
Family can extract the partial data under the conditions of this.
The content of the invention
It is an object of the invention to provide a kind of real-time stream debugging software group based on triggering pattern and rolling mode
Part and its adjustment method.
To achieve the above object, the technical solution adopted by the present invention is:
A kind of real-time stream debugging software component and its adjustment method, including receive and parse through and perform host computer instruction
Command reception execution module, collect data flow and by data flow renewal to data buffer zone data real-time update module, hair
Send the gathered data processing module of data flow;The host computer instruction includes setting data flow transceiver mode, and the data flow is received
Hair pattern includes triggering pattern and rolling mode.
Preferably, the command reception execution module, data real-time update module and gathered data processing module account for respectively
With a thread, data protection schemes and synchronization mechanism are set between each thread.
Preferably, the host computer instruction also includes start-up and shut-down control, sets channel signal, sets trigger condition, setting and touch
Shampoo is flat, sets pre-trigger, sets the rolling cycle.
Preferably, the trigger condition includes at least one in rising edge, trailing edge, bilateral edge, high level and low level
Kind.
Accordingly, the adjustment method of above-mentioned real-time stream debugging software component, including following debugging step are utilized:A) refer to
Order receives the instruction that execution module receives host computer, and is instructed according to host computer and set data flow transceiver mode, channel signal, touch
Clockwork spring part, triggering level, pre-trigger and rolling cycle;B) the data real-time update module arrives each channel data real-time update
Data buffer zone;When data flow transceiver mode is arranged to rolling mode, the data real-time update module continues to update the data,
Without special action;When data flow transceiver mode is arranged to triggering pattern, the data real-time update module continues to update the data
And trigger condition is waited, after trigger condition occurs, the data real-time update module is horizontal according to channel signal, triggering
Data buffer zone arrive into the renewal of the data flow of respective channel with pre-trigger, and before thering is trigger condition to occur renewal according to pre-trigger
The data buffer zone of data flow is protected after data flow and trigger condition occur, after the completion of data flow renewal, the data
Real-time update module sets renewal complement mark and renewal complement mark is sent into gathered data processing module;C) collection
Data processing module sends data flow according to data flow transceiver mode;When data flow transceiver mode is arranged to rolling mode, institute
Gathered data processing module is stated to read data from data buffer zone according to rolling cycle and channel signal timing and send data
Go out, and data buffer zone is discharged after being sent completely;When data flow transceiver mode is arranged to triggering pattern, the collection number
More new state according to processing module testing number according to real-time update module, when gathered data processing module detects renewal complement mark
When, the gathered data processing module sends the protected partial data stream in data buffer zone, and after being sent completely
Remove renewal complement mark, release data buffer zone.
Beneficial effects of the present invention embody a concentrated reflection of, a kind of real-time stream debugging software component of the present invention and its
Adjustment method, there is provided the command reception execution module for receiving, parsing, performing host computer instruction, command reception execution module can
So that data flow transceiver mode is arranged into rolling mode or triggering pattern according to host computer instruction.Under rolling mode, this hair
It is bright periodically to collect and send data;Under triggering pattern, data real-time update module can be by the data under trigger condition
Data buffer zone is arrived in stream renewal, and after pending data stream renewal completely to data buffer zone, gathered data processing module will can buffer
The partial data stream in area is sent.The present invention is not only provided with periodic rolling mode, is also provided with triggering pattern, can be with
Each item data more easily in collection and transmission program running, allow the operating of the more preferable analysis program of related personnel
Situation, there is the value promoted the use of.
Brief description of the drawings
Fig. 1 is the structural representation of the present invention;
Fig. 2 is the workflow diagram of data real-time update module;
Fig. 3 is the workflow diagram of gathered data processing module;
Fig. 4 is the collaborative work flow figure of data real-time update module and gathered data processing module under triggering pattern.
Embodiment
1~4 the present invention is expanded on further below in conjunction with the accompanying drawings.
A kind of real-time stream debugging software component and its adjustment method, including receive and parse through and perform host computer instruction
Command reception execution module, collect data flow and by data flow renewal to data buffer zone data real-time update module, hair
Send the gathered data processing module of data flow;The host computer instruction includes setting data flow transceiver mode, and the data flow is received
Hair pattern includes triggering pattern and rolling mode.It should be appreciated that the data flow transceiver mode refers to collect and send number
According to the pattern of stream, the execution frequency of the data real-time update module is high, and in order to mitigate processor load, the command reception
The execution frequency of module and gathered data processing module is generally relatively low.When data transmit-receive pattern is arranged to rolling mode, due to
Data flow sample frequency is relatively low, and every time only send one group of data, data volume it is small, so generally without buffered data protection and
Synchronous, the data flow being collected into can be transferred directly to the transmission of gathered data processing module by data real-time update module.Work as data
When transceiver mode is arranged to triggering pattern, data real-time update module, which can update the data flow of collection to data buffer zone, to be carried out
Protection, after completing once complete data flow and collecting, gathered data processing module can send the data flow of data buffer zone
Go out.
Further, the command reception execution module, data real-time update module and gathered data processing module difference
A thread is taken, data protection schemes and synchronization mechanism are set between each thread.It should be appreciated that data are set to protect
Protection mechanism and synchronization mechanism can protect data flow, avoid data flow wrong because of the data in data flow caused by the reasons such as hardware interrupts
Position is abnormal.In addition, the present invention will send independent one thread of row than relatively time-consuming data flow, real time data is updated into individually row
One thread so that when continuously transmitting data, real time data renewal is unaffected, and ensure that the complete of real-time stream
Property.
Further, the host computer instruction also includes start-up and shut-down control, sets channel signal, set trigger condition, set
Triggering is horizontal, sets pre-trigger, sets the rolling cycle.It should be appreciated that host computer to command reception module by sending finger
Make to start or stop this real-time stream debugging software component.The channel signal is exactly the default data-signal of developer
List, user can select a signal to be used as the data-signal of current channel from data-signal list;The present invention can be with
The data flow of multiple passages is extracted simultaneously, and each passage can set different data-signals, facilitate user to be observed in the same time
The real-time stream of multiple passages.The interval time for rolling cycle expression and data regularly being sent under rolling mode;This hair
It is bright to be provided with the adjustable rolling cycle, compared with rolling the debugging software that the cycle is fixed, more flexibly, conveniently.The pre-trigger is
Refer to the ratio shared by data flow before being triggered in collection and the total data stream sent, the span of pre-trigger is 0~100%, 0 table
Show the data updated after being full triggering from the data that data buffer zone is extracted and is sent, 100% represents to extract from data buffer zone
Data with transmission are the data of renewal before triggering entirely.The triggering level refer to making the value of the data-signal that triggering occurs with
The ratio of the positive peak of data-signal, span are -100%~100%;When triggering is horizontally placed to -100%, then
When data-signal reaches negative peak, triggering occurs;When triggering is horizontally placed to 100%, then data-signal is reaching maximum just
During value, triggering occurs.
Further, the trigger condition is included in rising edge, trailing edge, bilateral edge, high level and low level at least
It is a kind of.It should be appreciated that the present invention when trigger schema extraction data, can set the trigger conditions of various various combinations with
Triggering is horizontal, such as:Trigger condition is arranged to rising edge, and triggering is horizontally placed to 20%, then when the value of data-signal is in upper
The state of liter and when rising to the 20% of data-signal positive peak, triggering occurs;Or trigger condition is arranged to trailing edge,
Triggering is horizontally placed to 40%, then when the value of data-signal is in decline state and drops to data-signal positive peak
When 40%, triggering occurs.The present invention can also set pre-trigger percentage, such as:Pre-trigger percentage can be arranged to percentage
30, extraction triggering before 30 percent data flow and triggering after 70 percent data flow, can also be by pre-trigger
Percentage is arranged to 40 percent, before extraction triggering after 40 percent data flow and triggering 60 percent data
Stream.
Accordingly, the adjustment method of above-mentioned real-time stream debugging software component, including following debugging step are utilized:A) refer to
Order receives the instruction that execution module receives host computer, and is instructed according to host computer and set data flow transceiver mode, channel signal, touch
Clockwork spring part, triggering level, pre-trigger and rolling cycle;B) the data real-time update module arrives each channel data real-time update
Data buffer zone;When data flow transceiver mode is arranged to rolling mode, the data real-time update module continues to update the data,
Without special action;When data flow transceiver mode is arranged to triggering pattern, the data real-time update module continues to update the data
And trigger condition is waited, after trigger condition occurs, the data real-time update module is horizontal according to channel signal, triggering
Data buffer zone arrive into the renewal of the data flow of respective channel with pre-trigger, and before thering is trigger condition to occur renewal according to pre-trigger
The data buffer zone of data flow is protected after data flow and trigger condition occur, after the completion of data flow renewal, the data
Real-time update module sets renewal complement mark and renewal complement mark is sent into gathered data processing module;C) collection
Data processing module sends data flow according to data flow transceiver mode;When data flow transceiver mode is arranged to rolling mode, institute
Gathered data processing module is stated to read data from data buffer zone according to rolling cycle and channel signal timing and send data
Go out, and data buffer zone is discharged after being sent completely;When data flow transceiver mode is arranged to triggering pattern, the collection number
More new state according to processing module testing number according to real-time update module, when gathered data processing module detects renewal complement mark
When, the gathered data processing module sends the protected partial data stream in data buffer zone, and after being sent completely
Remove renewal complement mark, release data buffer zone.
The present invention will gather using data flow transceiver mode, trigger condition, triggering level, pre-trigger etc. as input condition
Data flow instruction can be sent by host computer as output result, user, the parameters of the rational allotment present invention, spirit
Data in ground living procedures of observation, even there is different observation to require or observe different programs, it is not required that to this hair
It is bright to be rewritten, there is extraordinary flexibility and convenience.Simultaneously in order to obtain the data flow under certain specified conditions, the present invention
Triggering mode capabilities are added, channel signal, trigger condition, triggering level etc. are provided with to each passage, works as trigger condition
After generation, the data flow storage under trigger condition can be arrived buffering area by the present invention, and user can extract number after the completion of triggering
According to the partial data of buffering area.In addition, the present invention is not related to hardware bottom layer, carries communication protocol, so can very easily move
Plant different Embedded Software Platforms.It is of the invention flexibly, conveniently, versatility it is wide, there is the value promoted the use of.
Although the embodiment of the present invention is the foregoing described, it will be appreciated by those of skill in the art that not
On the premise of the principle and essence of the present invention, various changes or modifications can be made to these embodiments, but these become
More protection scope of the present invention is each fallen within modification.
Claims (5)
- A kind of 1. real-time stream debugging software component, it is characterised in that:Including receiving and parsing through and performing host computer instruction Command reception execution module, collect data flow and the data real-time update module of data buffer zone is arrived into data flow renewal, sent The gathered data processing module of data flow;The host computer instruction includes setting data flow transceiver mode, the data flow transmitting-receiving Pattern includes triggering pattern and rolling mode.
- A kind of 2. real-time stream debugging software component according to claim 1, it is characterised in that:The command reception is held Row module, data real-time update module and gathered data processing module take a thread respectively, are set between each thread Data protection schemes and synchronization mechanism.
- A kind of 3. real-time stream debugging software component according to claim 1, it is characterised in that:The host computer instruction Also include start-up and shut-down control, setting channel signal, horizontal trigger condition, setting triggering, setting pre-trigger are set, rolling week is set Phase.
- A kind of 4. real-time stream debugging software component according to claim 3, it is characterised in that:The trigger condition bag Include at least one of rising edge, trailing edge, bilateral edge, high level and low level.
- 5. utilize the adjustment method of the real-time stream debugging software component described in claim 3, it is characterised in that:Including following Debugging step:A) command reception execution module receives the instruction of host computer, and is instructed according to host computer and set data flow to receive and dispatch mould Formula, channel signal, trigger condition, triggering level, pre-trigger and rolling cycle;B) the data real-time update module is by each passage Data real-time update is to data buffer zone;When data flow transceiver mode is arranged to rolling mode, the data real-time update mould Block continues to update the data, without special action;When data flow transceiver mode is arranged to triggering pattern, the data real-time update mould Block continues to update the data and wait trigger condition, and after trigger condition occurs, the data real-time update module is according to logical Road signal, triggering is horizontal and the data flow renewal of respective channel is arrived data buffer zone by pre-trigger, and according to pre-trigger to renewal The data buffer zone for having data flow after data flow and trigger condition occur before trigger condition generation is protected, when data flow updates After the completion of, the data real-time update module sets renewal complement mark and renewal complement mark is sent into gathered data processing Module;C) the gathered data processing module sends data flow according to data flow transceiver mode;When data flow transceiver mode is set During into rolling mode, the gathered data processing module regularly reads number according to cycle and channel signal is rolled from data buffer zone Sent according to and by data, and data buffer zone is discharged after being sent completely;When data flow transceiver mode is arranged to trigger mode During formula, the gathered data processing module testing number according to real-time update module more new state, when gathered data processing module examine When measuring renewal complement mark, the gathered data processing module sends out the protected partial data stream in data buffer zone Go, and renewal complement mark, release data buffer zone are removed after being sent completely.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710594723.2A CN107368415A (en) | 2017-07-20 | 2017-07-20 | A kind of real-time stream debugging software component and its adjustment method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710594723.2A CN107368415A (en) | 2017-07-20 | 2017-07-20 | A kind of real-time stream debugging software component and its adjustment method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107368415A true CN107368415A (en) | 2017-11-21 |
Family
ID=60307503
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710594723.2A Pending CN107368415A (en) | 2017-07-20 | 2017-07-20 | A kind of real-time stream debugging software component and its adjustment method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107368415A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109634766A (en) * | 2019-02-20 | 2019-04-16 | 深圳大学 | Promote method, apparatus, equipment and the storage medium of data flow computer operational efficiency |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030046614A1 (en) * | 2001-08-31 | 2003-03-06 | Brokish Charles W. | System and method for using embedded real-time analysis components |
CN102004711A (en) * | 2010-11-17 | 2011-04-06 | 北京理工大学 | Single-interrupt real-time data transmission method based on FPGA (Field Programmable Gate Array) |
CN102323791A (en) * | 2011-04-01 | 2012-01-18 | 清华大学 | Optimized calibration system of entire new energy automobile |
CN203038259U (en) * | 2012-08-28 | 2013-07-03 | 瑞萨集成电路设计(北京)有限公司 | Data collecting device and on-line simulation debugging system |
CN106547694A (en) * | 2016-10-25 | 2017-03-29 | 浙江大学 | A kind of on-line debugging system based on ARM CortexM4 core processors |
-
2017
- 2017-07-20 CN CN201710594723.2A patent/CN107368415A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030046614A1 (en) * | 2001-08-31 | 2003-03-06 | Brokish Charles W. | System and method for using embedded real-time analysis components |
CN102004711A (en) * | 2010-11-17 | 2011-04-06 | 北京理工大学 | Single-interrupt real-time data transmission method based on FPGA (Field Programmable Gate Array) |
CN102323791A (en) * | 2011-04-01 | 2012-01-18 | 清华大学 | Optimized calibration system of entire new energy automobile |
CN203038259U (en) * | 2012-08-28 | 2013-07-03 | 瑞萨集成电路设计(北京)有限公司 | Data collecting device and on-line simulation debugging system |
CN106547694A (en) * | 2016-10-25 | 2017-03-29 | 浙江大学 | A kind of on-line debugging system based on ARM CortexM4 core processors |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109634766A (en) * | 2019-02-20 | 2019-04-16 | 深圳大学 | Promote method, apparatus, equipment and the storage medium of data flow computer operational efficiency |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104050075B (en) | The method of testing and device of Andriod application programs | |
US9674058B2 (en) | Time series data processing device, time series data processing method, and computer-readable recording medium storing time series data processing program | |
CN110245053A (en) | Failure predication diagnostic method and system | |
CN103995764B (en) | A kind of logic analyser with serial bus protocol continuous trigger function | |
CN101916224A (en) | Test progress abnormality detection method and automatic test control device | |
CN101976217A (en) | Anomaly detection method and system for network processing unit | |
CN102682229A (en) | Malicious code behavior detection method based on virtualization technology | |
CN107505883A (en) | A kind of highly reliable dual redundant integrated control module based on microcontroller | |
CN106445755A (en) | Method for automatically testing integral cabinet servers | |
CN106201802A (en) | The CPU internal interrupt response time of logic-based analyser and the measuring method of recovery time | |
CN101556679A (en) | Method for processing failures in integrated front-end system and computer equipment | |
CN105911377A (en) | Testing method for input/output ports | |
CN105224856A (en) | Computer system detection method and device | |
CN107368415A (en) | A kind of real-time stream debugging software component and its adjustment method | |
JP6754693B2 (en) | How to match data and event gaps sent and received on networks using different communication technologies | |
CN104407927B (en) | Circuit and method for monitoring synchronous running state of processor | |
CN109634175B (en) | Method and system for controlling dynamic verification of configuration program | |
CN105116869B (en) | Large-scale maintenance machinery electrical malfunction real-time monitoring diagnostic method | |
CN102216909A (en) | A network processor and a diagnostic method of procedures stored in the network process | |
CN203038259U (en) | Data collecting device and on-line simulation debugging system | |
CN103631689A (en) | Data acquisition device, on-line simulation debugging system and on-line simulation debugging method | |
CN111599033B (en) | Processing method for diagnosing cigarette machine fault | |
CN109597389A (en) | A kind of test macro of embedded control system | |
CN104865717A (en) | Adaptive error processing method in MIPI (Mobile Industry Processor Interface) module dot screen testing | |
CN105786585A (en) | System and method for online transfer of memory data |
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 |
Application publication date: 20171121 |
|
RJ01 | Rejection of invention patent application after publication |