Serial data real-time acquisition and time calibration method
A serial data, real-time acquisition technology, applied in electrical digital data processing, instruments, etc., can solve the problems of inconsistent interface type, baud rate, and difficult to determine the corresponding relationship between input information and output information.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Publication Date
- 2013-07-17
- Estimated Expiration
- Not applicable · inactive patent
Smart Images
Figure 1 Figure 2 Figure 3
Abstract
Description
technical field
[0001] The invention belongs to the field of data acquisition, and is a method for realizing real-time acquisition and time marking of serial data by using signal processing technology, computer technology, DSP technology, GPS timing technology and the like. This method can meet the parallel real-time acquisition of four-channel serial data at the same time, and can mark the instantaneous time of acquisition for each byte of data received. The collected data and the data acquisition time information are packaged and temporarily stored in the device cache, and can be real-time Upload to PC for saving, and the time stamping accuracy can reach ±0.2ms. Background technique
[0002] The task of the data acquisition system is to collect the analog signals of different occasions. There are two steps in this task: First, through the A / D converter, the collected analog signal is converted into a digital signal that can be recognized by the computer and then input int...
Examples
Embodiment Construction
[0020] In the implementation of the present invention, it is necessary to connect the device under test, data acquisition equipment (including power supply, GPS antenna, USB data line, etc.) To the PC for subsequent comparison and analysis of data.
[0021] For specific implementation, see figure 1 , first connect the optical fiber connector (or RS485 / 422 / RS232 serial cable) to the device under test, and then connect the other connector to channels "Ch1", "Ch2", "Ch3" and "Ch4" in sequence (see figure 2 ); second, connect the GPS antenna to the GPS interface; then connect the power adapter to the power interface, and turn on the power switch; finally, connect one end of the USB data cable to the acquisition device, and the other end to the PC (upper computer), and turn on the PC Run the interface, select the appropriate channel, interface type, baud rate, etc. to start collecting data.
[0022] The system backplane mainly completes the serial signal acquisition task. The m...