Method and apparatus for transmitting data between substation plates
A technology for transmitting data and between boards, which is applied in the direction of selection devices, electrical components, radio/inductive link selection arrangements, etc., and can solve the problems of low efficiency of receiving data, time for reading data by message reading tasks, and writing data to storage media Problems such as extended time and low data transmission efficiency on the single board side, to ensure correctness and integrity, improve transmission efficiency, and avoid data confusion
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
no. 1 example
[0053] First embodiment: figure 2 It is a work flow diagram of the first embodiment of the present invention. In this embodiment, first a section of buffer area is set, and the buffer area is divided into a plurality of sub-buffer areas; then the message reading task writes the data into the sub-buffer areas in sequence according to the address of the sub-buffer areas, and the message When the write task reads the data in the buffer area, it reads the data in the order in which they were originally written into the buffer area to avoid data confusion. The advantage of this method is: when the message reading task writes the data of the main control board into the buffer area, it writes in sequence according to the address of the sub-buffer area, and when the message writing task reads the data of the buffer area, it also follows the sub-buffer area address Easy to read. The following is the detailed process.
[0054] The message reading task writes data according to the ad...
no. 2 example
[0058] The second embodiment: in this embodiment, firstly, a buffer area is also set, and the buffer area is divided into a plurality of sub-buffer areas; different from the first embodiment, in this embodiment, the message reading task reads When the main control board data is read, the data to be read is numbered. For example, the main control board data can be numbered according to the chapters, and then the sub-buffer area without data can be found, and the sub-buffer area is randomly written. The message writing task is read When fetching the data in the buffer area, it is read in the order in which the data was originally written into the buffer area, that is, the number of the data is read out to avoid data confusion. The following is the detailed process.
[0059] The message reading task writes data into the buffer area according to the data number of the main control board, firstly obtains the semaphore of the sub-buffer area, and waits if the sub-buffer area is full...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 