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.

CN103207851AInactive Publication Date: 2013-07-17BEIJING UNIV OF TECH
2 Cites 28 Cited by

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 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The invention belongs to the field of data acquisition and provides a serial data real-time acquisition and time calibration method. An acquisition device comprises a base plate composed of serial data acquisition circuits and a core plate composed of digital signal processing (DSP) chips, wherein a global position system (GPS) module is added in the circuits of the base plate. The system base plate finishes a serial signal acquisition task and transmits acquired signal to the core plate. The core plate finishes data acquisition, data storage and time calibration processing tasks and adopts an dominant type software design concept and sets the priority level of universal asynchronous receiver and transmitter (UART) data acquisition to be highest, and other tasks are interrupted and an UART data acquisition task is carried out when data arrives. An internal real-time clock adopted by the method provides accurate time for a system and is composed of universal time coordinated (UTC) time and a timer. Acquired data and data acquisition time information are packed together, are temporarily stored in a device cache and can be uploaded to a personal computer (PC) to be stored in real time, and the time calibration accuracy can reach to + / -0.2ms.
Need to check novelty before this filing date? Find Prior Art

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...