CN103997385A - Data playback simulating method and system - Google Patents
Data playback simulating method and system Download PDFInfo
- Publication number
- CN103997385A CN103997385A CN201410223926.7A CN201410223926A CN103997385A CN 103997385 A CN103997385 A CN 103997385A CN 201410223926 A CN201410223926 A CN 201410223926A CN 103997385 A CN103997385 A CN 103997385A
- Authority
- CN
- China
- Prior art keywords
- data
- time
- laps
- identification character
- setting
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Abstract
The invention belongs to the technical field of electronic application apparatuses, and provides a data playback simulating method and system. The method comprises the steps that a recording end converts a data package into LAPS frames according to an LAPS protocol, wherein the data package is in a form of Ethernet frames; identification characters are inserted into the LAPS frames every set time, and the LAPS frames and the identification characters serve as effective data to be stored; a downloading end downloads the effective data stored through the recording end, and the effective data are analyzed to acquire a restoring data flow comprising the LAPS frames and the identification characters; the LAPS frames in the restoring data flow are converted into the data package according to the LAPS protocol; the adjacent identification characters in the restoring data flow are delayed by the set time. By means of the data playback simulating method and system, the recorded scene is played back in a simulation mode after the event according to the speed and the time characteristics of recording when the data are stored.
Description
Technical field
The invention belongs to electronic application equipment technical field, relate in particular to a kind of data readback analogy method and system.
Background technology
Along with the high speed development of electronic application equipment, also more and more higher for the requirement of the registers such as real-time data acquisition record, as test monitoring equipment.Existing record device only rests in the basic function for data storage itself according to the record of data, concrete pattern as shown in Figure 1, can not according to preserve data record time speed and time response, to recording the simulation reduction of scene, need user oneself to analyze and reduce afterwards.
Summary of the invention
The embodiment of the present invention provides a kind of data readback analogy method and system, be intended to solve prior art can not according to preserve data record time speed and time response, afterwards to recording the problem of simulation reduction of scene.
On the one hand, provide a kind of data readback analogy method, described method comprises:
Download the described valid data that described record end is preserved, resolve described valid data and obtain the restoring data stream that comprises described LAPS frame and described identification character;
According to Link Access Procedure-SDH protocol, LAPS frame described in described restoring data stream is converted into described packet;
On the time that described data flow after the delay of doing described setting-up time between adjacent described identification character in described restoring data stream is reduced with guarantee and described record end record, be consistent.
On the other hand, provide a kind of data readback analogue system, described system comprises record end and downloading end, and wherein, described record end comprises:
The first conversion unit, for the LAPS frame that packet is converted to by Link Access Procedure-SDH protocol, described packet is ethernet frame;
Mark plug-in unit, for inserting identification character every setting-up time at described LAPS frame, and preserves described LAPS frame and described identification character as valid data;
Described downloading end comprises:
Data Analysis unit, the described valid data of preserving for downloading described record end, resolve described valid data and obtain the restoring data stream that comprises described LAPS frame and described identification character;
The second conversion unit, for according to Link Access Procedure-SDH protocol, is converted into described packet by LAPS frame described in described restoring data stream;
Data reduction unit, was consistent on the time for the described data flow after the delay of doing described setting-up time between the adjacent described identification character of described restoring data stream is reduced with guarantee and described record end record.
In the embodiment of the present invention, record end is converted to packet LAPS frame by Link Access Procedure-SDH protocol, described packet is ethernet frame; In described LAPS frame, insert identification character every setting-up time, and described LAPS frame and described identification character are preserved as valid data; Downloading end is downloaded the described valid data that described record end is preserved, and resolves described valid data and obtains the restoring data stream that comprises described LAPS frame and described identification character; According to Link Access Procedure-SDH protocol, LAPS frame described in described restoring data stream is converted into described packet; Will be described do the delay of described setting-up time between adjacent described identification character in restoring data stream, the present invention, realized according to preserve data record time speed and time response, afterwards to recording the playback simulation of scene.
Brief description of the drawings
Fig. 1 is the data processing mode schematic diagram that background technology of the present invention provides;
Fig. 2 is the realization flow figure of record end in the data readback analogy method that provides of the embodiment of the present invention one;
Fig. 3 is data structure schematic diagram in the data readback analogy method that provides of the embodiment of the present invention one;
Fig. 4 is the realization flow figure of downloading end in the data readback analogy method that provides of the embodiment of the present invention two;
Fig. 5 is the data processing mode schematic diagram of the data readback analogy method that provides of the embodiment of the present invention two
Fig. 6 is the concrete structure block diagram of the data readback analogue system that provides of the embodiment of the present invention three.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
In embodiments of the present invention, record end is converted to packet LAPS frame by Link Access Procedure-SDH protocol, described packet is ethernet frame; In described LAPS frame, insert identification character every setting-up time, and described LAPS frame and described identification character are preserved as valid data; Downloading end is downloaded the described valid data that described record end is preserved, and resolves described valid data and obtains the restoring data stream that comprises described LAPS frame and described identification character; According to Link Access Procedure-SDH protocol, LAPS frame described in described restoring data stream is converted into described packet; The delay of described setting-up time will be done between the adjacent described identification character in described restoring data stream.
Below in conjunction with specific embodiment, realization of the present invention is described in detail:
Embodiment mono-
Fig. 2 shows the realization flow of the data readback analogy method that the embodiment of the present invention one provides, and to record end as executive agent, details are as follows:
In step S201, packet is pressed to the LAPS frame that Link Access Procedure (Link Access Procedure-SDH, the LAPS) protocol conversion on SDH is, described packet is ethernet frame.
In the present embodiment, the intelligent terminal that described record end is save data, as watch-dog.Described packet is ethernet frame.Described LAPS frame is a kind of variant of HDLC protocol frame, and it can provide data link services and protocol specification, and can encapsulate the IP packet of the required transmission of SDH network specially to the ethernet frame after encapsulation is delimited.Record end is converted to packet LAPS frame by Link Access Procedure-SDH protocol, described packet is ethernet frame.
In step S202, in described LAPS frame, insert identification character every setting-up time, and described LAPS frame and described identification character are preserved as valid data.
In the present embodiment, described setting-up time is the set time that user arranges, and the length of described setting-up time is shorter, and the precision of playback simulation is higher; The length of described setting-up time is longer, and the precision of playback simulation is lower.Described identification character is specially 0x7E.Concrete, the valid data that processing obtains through above-mentioned steps are as shown in Figure 3.Record end inserts identification character every setting-up time in described LAPS frame, and described LAPS frame and described identification character are stored in to this locality as valid data.
The present embodiment, according to the time of the actual reception of packet, is recorded to interval writing time between packet in record data with the form of identification character.
Embodiment bis-
Fig. 4 shows the realization flow of the data readback analogy method that the embodiment of the present invention two provides, and taking downloading end as executive agent, details are as follows:
In step S401, download the described valid data that described record end is preserved, resolve described valid data and obtain the restoring data stream that comprises described LAPS frame and described identification character.
In the present embodiment, the intelligent terminal that described record end is save data, as watch-dog.Described packet is ethernet frame.Described LAPS frame is a kind of variant of HDLC protocol frame, and it can provide data link services and protocol specification, and can encapsulate the IP packet of the required transmission of SDH network specially to the ethernet frame after encapsulation is delimited.Downloading end is downloaded the described valid data that described record end is preserved, and resolves described valid data and obtains the restoring data stream that comprises described LAPS frame and described identification character, and described restoring data flows as shown in Figure 5.
In step S402, according to the Link Access Procedure on SDH (Link Access Procedure-SDH, LAPS) agreement, LAPS frame described in described restoring data stream is converted into described packet.
In the present embodiment, described packet is ethernet frame.Downloading end, according to the Link Access Procedure on SDH (Link Access Procedure-SDH, LAPS) agreement, is converted into described packet by LAPS frame described in described restoring data stream.
In step S403, on the time that the described data flow after the delay of doing described setting-up time is reduced with guarantee and described record end record, be consistent between the adjacent described identification character in described restoring data stream.
In the present embodiment, downloading end by the delay of doing described setting-up time between the adjacent described identification character in described restoring data stream to be consistent on the time that ensures described data flow after reduction and described record end and record.
The present embodiment, can reach according to preserve data record time speed and time response, afterwards to recording the playback simulation of scene.
Embodiment bis-
Fig. 6 shows the concrete structure block diagram of the data readback analogue system that the embodiment of the present invention two provides, and for convenience of explanation, only shows the part relevant to the embodiment of the present invention.In the present embodiment, this data readback analogue system comprises: record end 1 and downloading end 2, and wherein, described record end 1 comprises:
The first conversion unit 11, for the LAPS frame that packet is converted to by Link Access Procedure-SDH protocol, described packet is ethernet frame;
Mark plug-in unit 12, for inserting identification character every setting-up time at described LAPS frame, and preserves described LAPS frame and described identification character as valid data;
Described downloading end 2 comprises:
Data Analysis unit 21, the described valid data of preserving for downloading described record end, resolve described valid data and obtain the restoring data stream that comprises described LAPS frame and described identification character;
The second conversion unit 22, for according to Link Access Procedure-SDH protocol, is converted into described packet by LAPS frame described in described restoring data stream;
Data reduction unit 23, was consistent on the time for the described data flow after the delay of doing described setting-up time between the adjacent described identification character of described restoring data stream is reduced with guarantee and described record end record.
The present embodiment, speed and time response can reach the data record that downloading end preserves according to record end time, afterwards to recording the playback simulation of scene.
Further, described setting-up time is the set time that user arranges, and the length of described setting-up time is shorter, and the precision of playback simulation is higher; The length of described setting-up time is longer, and the precision of playback simulation is lower.
Further, described identification character is specially 0x7E.
The data readback analogue system that the embodiment of the present invention provides can be applied in the embodiment of the method one of aforementioned correspondence, and details, referring to the description of above-described embodiment one, do not repeat them here.
It should be noted that in said system embodiment, included unit is just divided according to function logic, but is not limited to above-mentioned division, as long as can realize corresponding function; In addition, the concrete title of each functional unit also, just for the ease of mutual differentiation, is not limited to protection scope of the present invention.
In addition, one of ordinary skill in the art will appreciate that all or part of step realizing in the various embodiments described above method is can carry out the hardware that instruction is relevant by program to complete, corresponding program can be stored in a computer read/write memory medium, described storage medium, as ROM/RAM, disk or CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any amendments of doing within the spirit and principles in the present invention, be equal to and replace and improvement etc., within all should being included in protection scope of the present invention.
Claims (7)
1. a data readback analogy method, is characterized in that, described method comprises:
Download the described valid data that described record end is preserved, resolve described valid data and obtain the restoring data stream that comprises described LAPS frame and described identification character;
According to Link Access Procedure-SDH protocol, LAPS frame described in described restoring data stream is converted into described packet;
On the time that described data flow after the delay of doing described setting-up time between adjacent described identification character in described restoring data stream is reduced with guarantee and described record end record, be consistent.
2. the method for claim 1, is characterized in that, described method also comprises:
The LAPS frame that packet is converted to by Link Access Procedure-SDH protocol, described packet is ethernet frame;
In described LAPS frame, insert identification character every setting-up time, and described LAPS frame and described identification character are preserved as valid data.
3. the method for claim 1, is characterized in that, described setting-up time is the set time that user arranges, and the length of described setting-up time is shorter, and the precision of playback simulation is higher; The length of described setting-up time is longer, and the precision of playback simulation is lower.
4. the method for claim 1, is characterized in that, described identification character is specially 0x7E.
5. a data readback analogue system, is characterized in that, described system comprises record end and downloading end, and wherein, described record end comprises:
The first conversion unit, for the LAPS frame that packet is converted to by Link Access Procedure-SDH protocol, described packet is ethernet frame;
Mark plug-in unit, for inserting identification character every setting-up time at described LAPS frame, and preserves described LAPS frame and described identification character as valid data;
Described downloading end comprises:
Data Analysis unit, the described valid data of preserving for downloading described record end, resolve described valid data and obtain the restoring data stream that comprises described LAPS frame and described identification character;
The second conversion unit, for according to Link Access Procedure-SDH protocol, is converted into described packet by LAPS frame described in described restoring data stream;
Data reduction unit, was consistent on the time for the described data flow after the delay of doing described setting-up time between the adjacent described identification character of described restoring data stream is reduced with guarantee and described record end record.
6. system as claimed in claim 5, is characterized in that, described setting-up time is the set time that user arranges, and the length of described setting-up time is shorter, and the precision of playback simulation is higher; The length of described setting-up time is longer, and the precision of playback simulation is lower.
7. system as claimed in claim 5, is characterized in that, described identification character is specially 0x7E.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410223926.7A CN103997385B (en) | 2014-05-23 | 2014-05-23 | Data playback simulating method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410223926.7A CN103997385B (en) | 2014-05-23 | 2014-05-23 | Data playback simulating method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103997385A true CN103997385A (en) | 2014-08-20 |
CN103997385B CN103997385B (en) | 2017-05-03 |
Family
ID=51311397
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410223926.7A Active CN103997385B (en) | 2014-05-23 | 2014-05-23 | Data playback simulating method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103997385B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110278219A (en) * | 2018-03-14 | 2019-09-24 | 吉旗(成都)科技有限公司 | The internet of things equipment simulation tool and analogy method of Process Character |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060294125A1 (en) * | 2005-06-25 | 2006-12-28 | General Electric Company | Adaptive video compression of graphical user interfaces using application metadata |
CN101282251A (en) * | 2008-05-08 | 2008-10-08 | 中国科学院计算技术研究所 | Method for digging recognition characteristic of application layer protocol |
CN101860738A (en) * | 2010-04-02 | 2010-10-13 | 武汉微创光电股份有限公司 | Ethernet-based transmitting and receiving method of uncompressed video |
CN101964798A (en) * | 2010-10-15 | 2011-02-02 | 德讯科技股份有限公司 | Multi-graphic protocol unified proxy system based on remote desktop protocol |
CN102722375A (en) * | 2012-06-08 | 2012-10-10 | 四川川大智胜软件股份有限公司 | Implementation method for recording and replaying images based on X protocol |
-
2014
- 2014-05-23 CN CN201410223926.7A patent/CN103997385B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060294125A1 (en) * | 2005-06-25 | 2006-12-28 | General Electric Company | Adaptive video compression of graphical user interfaces using application metadata |
CN101282251A (en) * | 2008-05-08 | 2008-10-08 | 中国科学院计算技术研究所 | Method for digging recognition characteristic of application layer protocol |
CN101860738A (en) * | 2010-04-02 | 2010-10-13 | 武汉微创光电股份有限公司 | Ethernet-based transmitting and receiving method of uncompressed video |
CN101964798A (en) * | 2010-10-15 | 2011-02-02 | 德讯科技股份有限公司 | Multi-graphic protocol unified proxy system based on remote desktop protocol |
CN102722375A (en) * | 2012-06-08 | 2012-10-10 | 四川川大智胜软件股份有限公司 | Implementation method for recording and replaying images based on X protocol |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110278219A (en) * | 2018-03-14 | 2019-09-24 | 吉旗(成都)科技有限公司 | The internet of things equipment simulation tool and analogy method of Process Character |
CN110278219B (en) * | 2018-03-14 | 2022-03-04 | 吉旗(成都)科技有限公司 | Procedural Internet of things equipment simulation tool and simulation method |
Also Published As
Publication number | Publication date |
---|---|
CN103997385B (en) | 2017-05-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8874736B2 (en) | Event extractor | |
CN102291272B (en) | Remote Dynamic method of testing and the device of equipment or network | |
CN107135256A (en) | Bluetooth communication method, communicator, communication system and electronic equipment | |
BRPI0519779A2 (en) | method, computer program product, apparatus, and system for communicating programming information between user equipment and the radio access network using spacing or padding, and application specific circuitry providing method execution functionality | |
CN103117900B (en) | Configurable industrial Ethernet data parsing system and parsing method | |
CN107580018A (en) | The tracking and device of a kind of distributed system | |
CN102802139A (en) | Gateway data adapting system and method of Internet of Things | |
CN103986788A (en) | Data fetching method and device of OTT (over the top) application | |
CN104602105A (en) | Video file playing method and user equipment | |
CN110337010A (en) | Video/audio processing method, law-enforcing recorder, management server and enforcement system | |
CN110740481A (en) | Data processing method, apparatus and computer storage medium based on quality of service | |
CN107579879A (en) | A kind of network simulation method of testing, emulation server and storage medium | |
CN103997385A (en) | Data playback simulating method and system | |
CN105553792A (en) | Home gateway access device type identifying system and method | |
CN104601583A (en) | Online real-time anonymization system and method for IP stream data | |
CN104768176B (en) | The method, apparatus that sFlow is sampled in wireless network | |
CN106254098A (en) | A kind of tune-up data acquisition method, system and embedded radio system | |
CN105577462B (en) | The flow statistical method and device of mobile device | |
CN110209344A (en) | The method, apparatus and computer readable storage medium of migrating objects storage | |
CN114339737B (en) | Wireless communication instruction encryption method and related equipment | |
CN113438503B (en) | Video file restoring method, device, computer equipment and storage medium | |
Elo | Exploring web protocols for use on cellular networks: QUIC on poor network links | |
CN110956349B (en) | Quality of service analysis method, system, device, server and electronic equipment | |
WO2007095593A3 (en) | Diagnostic functions in an in-line device | |
CN107659463A (en) | Traffic playback method, device and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20201030 Address after: Room 1103, No.8, Jingang Avenue, Nansha street, Nansha District, Guangzhou City, Guangdong Province Patentee after: Guangzhou Zhongguang Guoke measurement and Control Technology Co., Ltd Address before: 100000 Beijing Tongzhou District brocade 52 North Building Room 1308 Patentee before: BEIJING ZHONGHE ZHUOYUAN TECHNOLOGY Co.,Ltd. |
|
TR01 | Transfer of patent right |