A data buffering method and system

A data buffering and buffering technology, applied in the field of data communication, to achieve the effect of reducing the number of packed bytes, saving communication time, and high real-time performance

CN102789434BActive Publication Date: 2016-05-25ANHUI CHAOHU HAIXING CABLE GROUP CO LTD
4 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Publication Date
2016-05-25

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The invention discloses a data buffering method and system. The data buffering method includes that: a master control device issues configuration information to a communication expansion board which determines the number of lower-level modules according to the configuration information and initializes a buffering area; the communication expansion board checks lower-level module data at intervals of preset time and refreshes the lower-level module data to the buffering area; and the master control device checks the lower-level module data, and the communication expansion board feeds buffered module data back to the master control device. According to the data buffering method and system, internal memory can be reduced, timeliness is high, data checking of the master control device for the communication expansion board and data checking of the communication expansion board for the modules are independent mutually, and communication duration is saved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical field

[0001] The present invention relates to the technical field of data communication, in particular to a data buffering method and system. Background technique

[0002] Buffer technology is to coordinate the work of data transfer between devices with very different data traffic speeds. Where the speed of data arrival and departure does not match, buffer technology should be used. Existing buffer technologies include:

[0003] Double buffering, the solution to the problem of parallel operation between two peripherals, printers and terminals is to set double buffering. With two buffers, the CPU can put the data output to the printer into one of the buffers (zones) and let the printer print slowly; then, it can use the other buffers (zones) set up for the terminal Read the required input data.

[0004] Multi-buffer is a buffer structure that connects multiple buffers to form two parts, one part is dedicated to input, and the other part is dedicated to output.

[0005] Th...

Examples

Embodiment Construction

[0033] In the embodiment of the present invention, the main control device of the monitoring unit and the communication expansion board in the railway signal power system of the new architecture communicate through the CAN bus. The communication expansion board temporarily stores the collected data of the lower-level modules, and waits for the query data command of the main control device , Then upload the data. According to this requirement, it is proposed to implement the single-buffer communication buffer technology in the embodiment of the present invention in the communication expansion board of the monitoring unit of the new architecture.

[0034] Single buffer, a buffer is set between the main control device and the communication expansion board, that is, a buffer is opened in the communication expansion board to store updated data. When the main control device exchanges data to the communication expansion board, it first writes the exchanged data into the buffer, and then...