CN113467977B - SOE data uploading method and system based on circular queue and board card - Google Patents

SOE data uploading method and system based on circular queue and board card Download PDF

Info

Publication number
CN113467977B
CN113467977B CN202111037430.7A CN202111037430A CN113467977B CN 113467977 B CN113467977 B CN 113467977B CN 202111037430 A CN202111037430 A CN 202111037430A CN 113467977 B CN113467977 B CN 113467977B
Authority
CN
China
Prior art keywords
soe
data
channel
uploading
circular queue
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.)
Active
Application number
CN202111037430.7A
Other languages
Chinese (zh)
Other versions
CN113467977A (en
Inventor
王鑫
王长清
于在松
赵亮
卢海松
王宾
李卓
杨小宇
房康
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NR Electric Co Ltd
Xian Thermal Power Research Institute Co Ltd
Original Assignee
NR Electric Co Ltd
Xian Thermal Power Research Institute Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by NR Electric Co Ltd, Xian Thermal Power Research Institute Co Ltd filed Critical NR Electric Co Ltd
Priority to CN202111037430.7A priority Critical patent/CN113467977B/en
Publication of CN113467977A publication Critical patent/CN113467977A/en
Application granted granted Critical
Publication of CN113467977B publication Critical patent/CN113467977B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/548Queue

Abstract

The invention belongs to the field of data processing, and discloses a SOE data uploading method, a system and a board card based on a circular queue, which comprise the following steps: the method comprises the steps of obtaining SOE data of all channels which are turned in a board card, sequencing the SOE data of all the channels which are turned according to the turning time sequence of all the channels, and sequentially inserting the SOE data into a preset circular queue; acquiring the state of a circular queue, and adding an SOE mark into a periodic data message sent to a controller when the state of the circular queue is not empty; receiving and responding to an SOE inquiry message sent by a controller, and carrying out an uploading step; receiving and analyzing a periodic data query message sent by a controller to obtain an analysis result; when the SOE confirmation mark exists in the analysis result, the uploading is completed; otherwise, backing back the SOE data which is uploaded in the circular queue, and performing the uploading step again. The method can realize the uploading of SOE data sequence and high reliability.

Description

SOE data uploading method and system based on circular queue and board card
Technical Field
The invention belongs to the field of data processing, and relates to a SOE data uploading method, system and board card based on a circular queue.
Background
For a digital quantity input and output card of a DCS of a thermal power plant, it is very important to record the overturn of each channel, namely the time sequence that the channel value is changed from 0 to 1 or from 1 to 0, so that the occurrence sequence of events can be fed back to an operator in time, and a strong evidence is provided for retrospective tracing afterwards.
For a conventional 16-channel digital input or output card, each channel generates Sequence of Event (SOE) data, and the SOE data needs to be sent to its controller through a communication message, if a plurality of SOE data are generated by different digital channels in a communication cycle, the card needs to ensure that the SOE data are sent to the controller according to the Sequence of the turning time.
However, when the board sends the SOE data to the controller, on one hand, the data volume is large, which easily causes the data not to be sent to the controller according to the sequence of the turning time. On the other hand, the problem of packet loss may occur in the communication process between the board card and the controller, which may result in loss of the SOE data in the transmission process.
Disclosure of Invention
The invention aims to overcome the defect that SOE data are not uploaded according to a reversed time sequence in the prior art, and provides a SOE data uploading method, a SOE data uploading system and a board card based on a circular queue.
In order to achieve the purpose, the invention adopts the following technical scheme to realize the purpose:
in a first aspect of the present invention, a circular queue based SOE data uploading method includes the following steps: the method comprises the steps of obtaining SOE data of all channels which are turned in a board card, sequencing the SOE data of all the channels which are turned according to the turning time sequence of all the channels, and sequentially inserting the SOE data into a preset circular queue; acquiring the state of a circular queue, and adding an SOE mark into a periodic data message sent to a controller when the state of the circular queue is not empty; receiving and responding to an SOE inquiry message sent by a controller, and carrying out an uploading step; receiving and analyzing a periodic data query message sent by a controller to obtain an analysis result; when the SOE confirmation mark exists in the analysis result, the uploading is completed; otherwise, backing back the SOE data which is uploaded in the circular queue, and carrying out the uploading step again; wherein, the uploading step: and sequentially encoding SOE data in the circular queue into an SOE uploading message according to the insertion sequence, and transmitting the SOE uploading message to the controller.
The SOE data uploading method based on the circular queue is further improved as follows:
the specific method for acquiring the SOE data of each channel which is overturned in the board card comprises the following steps: acquiring a channel value of a current channel in a current sampling period and a channel value of a previous sampling period, and turning over the current channel when the channel value of the current channel in the current sampling period is inconsistent with the channel value in the previous sampling period; and recording the channel value of the current channel and the time of the turning according to a preset structure body to obtain the SOE data of the current channel.
The preset structure body comprises five parameters which are sequentially set, and the five parameters are sequentially set as follows: ID. value, utc _ s, fraction _ s, and utc _10 us; wherein, the ID represents the channel number of the current channel; value represents the channel value of the current channel; utc _ s represents the seconds value of the time when the current channel flips; frac _ s represents the millisecond value of the time that the current channel flips; utc — 10us represents a 0.01 millisecond value of the time at which the current lane rollover occurred.
The specific method for sequencing the SOE data of the channels which are overturned according to the time sequence of the overturning of the channels comprises the following steps: inserting SOE data of each channel with the current sampling period being reversed into a preset array corresponding to the current sampling period; traversing each array, obtaining utc _10us values of SOE data in the current array, and arranging the SOE data in the current array according to the descending order of the utc _10us values; and sequencing the arrays corresponding to the sampling periods according to the time sequence of the sampling periods.
The number of SOE data which can be contained in the array is consistent with the number of channels of the board card.
The step of uploading further comprises: acquiring an updated queue head pointer and an initial queue head pointer; moving an updated queue head pointer by one bit along the direction from the head of the circular queue to the tail of the circular queue until all SOE data in the circular queue are encoded into the SOE upload message; the specific method for backing back the SOE data uploaded in the circular queue comprises the following steps: the current updated queue head pointer is replaced with the initial queue head pointer.
The circular queue adopts covering type storage.
The number of SOE data which can be contained in the circular queue is K times of the number of channels of the board card; and K is the execution times of the sampling period of the board card in one uploading period.
In a second aspect of the present invention, a circular queue based SOE data uploading system includes:
the data acquisition module is used for acquiring SOE data of each channel which is turned in the board card, sequencing the SOE data of each channel which is turned according to the turning time sequence of each channel, and sequentially inserting the SOE data into a preset circular queue;
the state determining module is used for acquiring the state of the circular queue, and adding an SOE mark into a periodic data message sent to the controller when the state of the circular queue is not empty;
the uploading module is used for receiving and responding to the SOE inquiry message sent by the controller and carrying out the uploading step;
the uploading confirmation module is used for receiving and analyzing the periodic data query message sent by the controller to obtain an analysis result; when the SOE confirmation mark exists in the analysis result, the uploading is completed; otherwise, backing back the SOE data which is uploaded in the circular queue, and carrying out the uploading step again;
wherein, the uploading step: and sequentially encoding SOE data in the circular queue into an SOE uploading message according to the insertion sequence, and transmitting the SOE uploading message to the controller.
In a third aspect of the present invention, a board card is provided, where the above SOE data uploading system based on a circular queue is disposed in the board card.
Compared with the prior art, the invention has the following beneficial effects:
the SOE data uploading method based on the circular queue, disclosed by the invention, sequences the SOE data of each channel which is overturned according to overturning time, and inserts the SOE data into the circular queue according to the sequence after the sequencing is finished, so that the SOE data are ensured to be sequenced in the circular queue according to the time sequence. Meanwhile, receiving and analyzing a periodic data query message sent by the controller to obtain an analysis result; when the SOE confirmation mark exists in the analysis result, the uploading is completed; otherwise, backing back the SOE data which is uploaded in the circular queue, and performing the uploading step again until the controller completely receives the SOE data, so as to ensure the high-reliability uploading of the SOE data.
Drawings
FIG. 1 is a flow chart of a SOE data uploading method based on a circular queue according to the present invention;
FIG. 2 is a schematic structural diagram of a predetermined structure according to the present invention;
FIG. 3 is a diagram illustrating SOE data insertion into a circular queue according to the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The invention is described in further detail below with reference to the accompanying drawings:
referring to fig. 1, in an embodiment of the present invention, a circular queue-based SOE data uploading method is provided to implement reliable SOE data uploading, and specifically, the circular queue-based SOE data uploading method includes the following steps.
S1: and obtaining SOE data of each channel which is turned in the board card, sequencing the SOE data of each channel which is turned according to the turning time sequence of each channel, and sequentially inserting the SOE data into a preset circular queue. The board card is a digital output card or a digital input card. The method for acquiring SOE data of each channel which is overturned in the board card comprises the following steps: acquiring a channel value of a current channel in a current sampling period and a channel value of a previous sampling period, and turning over the current channel when the channel value of the current channel in the current sampling period is inconsistent with the channel value in the previous sampling period; and recording the channel value of the current channel and the time of the turning according to a preset structure body to obtain the SOE data of the current channel.
Referring to fig. 2, the name of the preset structure is SOE _ VALUE, and the preset structure includes five parameters that are sequentially set, which are sequentially: ID. value, utc _ s, fraction _ s, and utc _10 us; wherein, the ID represents the channel number of the current channel; value represents the channel value of the current channel; utc _ s represents the seconds value of the time when the current channel flips; frac _ s represents the millisecond value of the time that the current channel flips; utc — 10us represents a 0.01 millisecond value of the time at which the current lane rollover occurred.
Because the traversal order is not necessarily the order of the events of the upset events of the channels which are overturned, in order to ensure that the upset events of different channels can also be sent to the controller according to the time order, the obtained array soe _ array is sorted from first to last according to the time of each element, because one sampling period is usually less than 1ms, the overturning time of each channel in the same sampling period is only utc _10us inconsistent, and the sorting only needs to be carried out according to the size of utc _10 us.
Specifically, the specific method for sorting the reversed SOE data of each channel according to the reversed time sequence of each channel includes: inserting SOE data of each channel with the current sampling period being reversed into a preset array corresponding to the current sampling period; traversing each array, obtaining utc _10us values of SOE data in the current array, and arranging the SOE data in the current array according to the descending order of the utc _10us values; and sequencing the arrays corresponding to the sampling periods according to the time sequence of the sampling periods.
Preferably, during initialization, a null array SOE _ array consistent with the number of channels of the board digital quantity is pre-constructed and used for storing the SOE data of each channel which is inverted in the same sampling period, the number of the SOE data which can be contained in the array is consistent with the number of channels of the board, and the corresponding relation is that one SOE _ VALUE object corresponds to one array element.
Preferably, during initialization, a circular queue SOE _ queue with a number greater than that of channels is constructed, the circular queue is used for storing channel SOE data with numerical VALUE inversion in different sampling periods, an SOE _ VALUE object corresponds to a queue element, the number of SOE data that can be accommodated in the circular queue is usually K times of the number of channels of the board, and the number of SOE data that can be accommodated in the circular queue can be adjusted according to actual conditions, generally the number of execution times of a sampling period in an uploading period.
Referring to FIG. 3, SOE data in the sorted array is inserted into the circular queue SOE _ queue in order.
S2: and acquiring the state of the circular queue, and adding an SOE mark into a periodic data message sent to the controller when the state of the circular queue is not empty.
And acquiring the state of the circular queue, and when the circular queue is not empty, adding an SOE mark in a periodic data message replied to the controller by the board card to inform the controller that an aperiodic SOE inquiry message can be sent to the board card. And after the controller receives the periodic data message replied by the board card, unpacking to find the SOE mark, and indicating that the board card has SOE data to wait for uploading.
S3: receiving and responding to an SOE inquiry message sent by a controller, and carrying out an uploading step; wherein, the uploading step: and sequentially encoding SOE data in the circular queue into an SOE uploading message according to the insertion sequence, and transmitting the SOE uploading message to the controller.
The board card receives an SOE inquiry message sent to the board card by the controller, responds to the SOE inquiry message, and performs the uploading step: and sequentially encoding SOE data in the circular queue into an SOE uploading message according to the insertion sequence, and transmitting the SOE uploading message to the controller. Specifically, the SOE data in the circular queue SOE _ queue are sequentially dequeued, and the dequeued SOE data are sequentially encoded in an SOE report and then transmitted to the controller.
S4: receiving and analyzing a periodic data query message sent by a controller to obtain an analysis result; when the SOE confirmation mark exists in the analysis result, the uploading is completed; otherwise, backing back the SOE data which is uploaded in the circular queue, and performing the uploading step again.
Specifically, after the controller receives the SOE data sent by the board card, an SOE confirmation flag is inserted into the periodic data query message. And the board card analyzes the received periodic data query message to obtain an analysis result, and if an SOE confirmation mark is found in the analysis result, the board card confirms that a round of SOE data uploading process is completed. If the analysis result does not find the SOE confirmation mark, the SOE data loss occurs, the rollback operation is carried out on the circular queue, the SOE data uploaded in the circular queue is rolled back, and the uploading step is carried out again.
Preferably, the step of sending up further comprises: acquiring an updated queue head pointer and an initial queue head pointer; moving an updated queue head pointer by one bit along the direction from the head of the circular queue to the tail of the circular queue until all SOE data in the circular queue are encoded into the SOE upload message; the specific method for backing back the SOE data uploaded in the circular queue comprises the following steps: the current updated queue head pointer is replaced with the initial queue head pointer.
Specifically, the head pointer is defined during initialization, and the SOE data in the circular queue SOE _ queue are dequeued in sequence, and the head pointer moves to the tail of the queue once every SOE data is dequeued. Meanwhile, in order to realize dequeue operation rollback, dequeue operation does not directly delete elements in the circular queue, only the head pointer is moved, in addition, a global variable old _ head is also defined during initialization and is used for recording the position to which the head pointer initially points, SOE data rollback operation on the board card needs to be realized through the old _ head pointer of the circular buffer, and when rollback is needed, the head pointer of the circular queue is redirected to the position to which the old _ head points.
The SOE data uploading method based on circular queue includes that the step S1 can be performed in a sampling period, and the steps S2 to S4 can be performed in a communication period.
In summary, the SOE data uploading method based on circular queues of the present invention can achieve sequentiality and high reliability.
Wherein, the sequence: SOE data of each channel which is inverted in a single sampling period are sequenced according to inversion time in the sampling period, and the SOE data are inserted into a circular queue in sequence after sequencing is completed. Because different sampling periods are in sequence, the minimum inversion time of the SOE data in the next sampling period is certainly longer than the maximum inversion time of the SOE data in the previous sampling period. Therefore, when SOE data in a plurality of sampling periods are present in the circular queue, the SOE data must be sorted in time order. Because the circular queue has the characteristic of first-in first-out, SOE data with small turnover time can be received and processed by the controller earlier when the SOE is sent to the controller.
High reliability: the high reliability means that the controller can not receive the SOE data recorded by the board, and if the SOE data exist and are not received by the controller, the board can repeatedly upload the SOE data to the controller. After receiving the SOE data uploaded by the board card, the controller in the communication period sends an SOE confirmation mark to the board card, and the board card knows that the controller has received the uploaded SOE data after receiving the SOE confirmation mark. If the controller does not send the SOE confirmation mark to the board card, the board card can carry out SOE data rollback operation and informs the controller that the SOE data exists in the board card and the controller needs to send an SOE inquiry message, so that the SOE data can be sent to the controller again until the controller completely receives the SOE data.
The following are embodiments of the apparatus of the present invention that may be used to perform embodiments of the method of the present invention. For details of non-careless mistakes in the embodiment of the apparatus, please refer to the embodiment of the method of the present invention.
In another embodiment of the present invention, a circular queue-based SOE data uploading system is provided, which can be used to implement the above circular queue-based SOE data uploading method, and the circular queue-based SOE data uploading system includes a data obtaining module, a state determining module, an uploading module, and an uploading confirmation module.
The data acquisition module is used for acquiring SOE data of each channel which is turned in the board card, sequencing the SOE data of each channel which is turned according to the turning time sequence of each channel, and sequentially inserting the SOE data into a preset circular queue; the state determining module is used for acquiring the state of the circular queue, and adding an SOE mark into a periodic data message sent to the controller when the state of the circular queue is not empty; the uploading module is used for receiving and responding to the SOE inquiry message sent by the controller and carrying out the uploading step; the uploading confirmation module is used for receiving and analyzing the periodic data query message sent by the controller to obtain an analysis result; when the SOE confirmation mark exists in the analysis result, the uploading is completed; otherwise, backing back the SOE data which is uploaded in the circular queue, and carrying out the uploading step again; wherein, the uploading step: and sequentially encoding SOE data in the circular queue into an SOE uploading message according to the insertion sequence, and transmitting the SOE uploading message to the controller.
In another embodiment of the present invention, a board card is provided, where the above mentioned SOE data uploading system based on a circular queue is arranged in the board card, and the board card can be obtained by arranging the above mentioned SOE data uploading system based on a circular queue on a digital input card or a digital output card of an existing thermal power plant.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting the same, and although the present invention is described in detail with reference to the above embodiments, those of ordinary skill in the art should understand that: modifications and equivalents may be made to the embodiments of the invention without departing from the spirit and scope of the invention, which is to be covered by the claims.

Claims (7)

1. A SOE data uploading method based on a circular queue is characterized by comprising the following steps:
the method comprises the steps of obtaining SOE data of all channels which are turned in a board card, sequencing the SOE data of all the channels which are turned according to the turning time sequence of all the channels, and sequentially inserting the SOE data into a preset circular queue;
acquiring the state of a circular queue, and adding an SOE mark into a periodic data message sent to a controller when the state of the circular queue is not empty;
receiving and responding to an SOE inquiry message sent by a controller, and carrying out an uploading step;
receiving and analyzing a periodic data query message sent by a controller to obtain an analysis result; when the SOE confirmation mark exists in the analysis result, the uploading is completed; otherwise, backing back the SOE data which is uploaded in the circular queue, and carrying out the uploading step again;
wherein, the uploading step: sequentially encoding SOE data in the circular queue into an SOE uploading message according to the insertion sequence, and sending the SOE uploading message to a controller;
the specific method for acquiring the SOE data of each channel which is overturned in the board card comprises the following steps:
acquiring a channel value of a current channel in a current sampling period and a channel value of a previous sampling period, and turning over the current channel when the channel value of the current channel in the current sampling period is inconsistent with the channel value in the previous sampling period; recording the channel value of the current channel and the time of turning according to a preset structure body to obtain SOE data of the current channel;
the preset structure body comprises five parameters which are sequentially set, and the five parameters are sequentially set as follows: ID. value, utc _ s, fraction _ s, and utc _10 us; wherein, the ID represents the channel number of the current channel; value represents the channel value of the current channel; utc _ s represents the seconds value of the time when the current channel flips; frac _ s represents the millisecond value of the time that the current channel flips; utc — 10us represents a 0.01 millisecond value of the time at which the current lane rollover occurred;
the specific method for sequencing the SOE data of the channels which are overturned according to the time sequence of the overturning of the channels comprises the following steps:
inserting SOE data of each channel with the current sampling period being reversed into a preset array corresponding to the current sampling period;
traversing each array, obtaining utc _10us values of SOE data in the current array, and arranging the SOE data in the current array according to the descending order of the utc _10us values;
and sequencing the arrays corresponding to the sampling periods according to the time sequence of the sampling periods.
2. The method for uploading SOE data based on the circular queue as claimed in claim 1, wherein the number of SOE data that can be accommodated in the array is consistent with the number of channels of the board.
3. The circular queue based SOE data uploading method according to claim 1, wherein the uploading step further comprises:
acquiring an updated queue head pointer and an initial queue head pointer;
moving an updated queue head pointer by one bit along the direction from the head of the circular queue to the tail of the circular queue until all SOE data in the circular queue are encoded into the SOE upload message;
the specific method for backing back the SOE data uploaded in the circular queue comprises the following steps:
the current updated queue head pointer is replaced with the initial queue head pointer.
4. The SOE data uploading method based on circular queue as claimed in claim 1, wherein the circular queue adopts overlay storage.
5. The SOE data uploading method based on the circular queue as claimed in claim 1, wherein the number of SOE data that can be accommodated in the circular queue is K times of the number of channels of the board card; and K is the execution times of the sampling period of the board card in one uploading period.
6. A circular queue based SOE data uploading system, comprising:
the data acquisition module is used for acquiring SOE data of each channel which is turned in the board card, sequencing the SOE data of each channel which is turned according to the turning time sequence of each channel, and sequentially inserting the SOE data into a preset circular queue;
the specific method for acquiring SOE data of each channel which is overturned in the board card comprises the following steps: acquiring a channel value of a current channel in a current sampling period and a channel value of a previous sampling period, and turning over the current channel when the channel value of the current channel in the current sampling period is inconsistent with the channel value in the previous sampling period; recording the channel value of the current channel and the time of turning according to a preset structure body to obtain SOE data of the current channel; wherein, the predetermined structure includes five parameters that set gradually, does in proper order: ID. value, utc _ s, fraction _ s, and utc _10 us; wherein, the ID represents the channel number of the current channel; value represents the channel value of the current channel; utc _ s represents the seconds value of the time when the current channel flips; frac _ s represents the millisecond value of the time that the current channel flips; utc — 10us represents a 0.01 millisecond value of the time at which the current lane rollover occurred;
the specific method for sequencing the SOE data of the channels which are overturned according to the time sequence of the overturning of the channels comprises the following steps: inserting SOE data of each channel with the current sampling period being reversed into a preset array corresponding to the current sampling period; traversing each array, obtaining utc _10us values of SOE data in the current array, and arranging the SOE data in the current array according to the descending order of the utc _10us values;
sequencing the arrays corresponding to the sampling periods according to the time sequence of the sampling periods;
the state determining module is used for acquiring the state of the circular queue, and adding an SOE mark into a periodic data message sent to the controller when the state of the circular queue is not empty;
the uploading module is used for receiving and responding to the SOE inquiry message sent by the controller and carrying out the uploading step;
the uploading confirmation module is used for receiving and analyzing the periodic data query message sent by the controller to obtain an analysis result; when the SOE confirmation mark exists in the analysis result, the uploading is completed; otherwise, backing back the SOE data which is uploaded in the circular queue, and carrying out the uploading step again;
wherein, the uploading step: and sequentially encoding SOE data in the circular queue into an SOE uploading message according to the insertion sequence, and transmitting the SOE uploading message to the controller.
7. A board, characterized in that the SOE data uploading system based on circular queue in claim 6 is arranged in the board.
CN202111037430.7A 2021-09-06 2021-09-06 SOE data uploading method and system based on circular queue and board card Active CN113467977B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111037430.7A CN113467977B (en) 2021-09-06 2021-09-06 SOE data uploading method and system based on circular queue and board card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111037430.7A CN113467977B (en) 2021-09-06 2021-09-06 SOE data uploading method and system based on circular queue and board card

Publications (2)

Publication Number Publication Date
CN113467977A CN113467977A (en) 2021-10-01
CN113467977B true CN113467977B (en) 2021-11-30

Family

ID=77864647

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111037430.7A Active CN113467977B (en) 2021-09-06 2021-09-06 SOE data uploading method and system based on circular queue and board card

Country Status (1)

Country Link
CN (1) CN113467977B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101430561A (en) * 2008-12-15 2009-05-13 北京国电智深控制技术有限公司 Event sequential recording test signal generator and test method thereof
CN101820422A (en) * 2010-03-30 2010-09-01 南京恩瑞特实业有限公司 Safe computer message buffer implementation method
CN104793576A (en) * 2014-01-21 2015-07-22 宝山钢铁股份有限公司 Solution method for concurrency conflicts of transmission LINK network communication
CN107562443A (en) * 2017-07-17 2018-01-09 上海卫星工程研究所 Satellite program control command maintaining method based on round-robin queue

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101308478B1 (en) * 2010-12-24 2013-09-16 엘지디스플레이 주식회사 Liquid crystal display device and method for driving the same
CN103793342B (en) * 2012-11-02 2017-02-08 中兴通讯股份有限公司 Multichannel direct memory access (DMA) controller
WO2014113378A1 (en) * 2013-01-15 2014-07-24 Boston Scientific Scimed, Inc. Subintimal re-entry catheter with actuatable orientation mechanism
CN111061650B (en) * 2019-11-15 2022-06-14 珠海许继电气有限公司 SOE information management method and storage device thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101430561A (en) * 2008-12-15 2009-05-13 北京国电智深控制技术有限公司 Event sequential recording test signal generator and test method thereof
CN101820422A (en) * 2010-03-30 2010-09-01 南京恩瑞特实业有限公司 Safe computer message buffer implementation method
CN104793576A (en) * 2014-01-21 2015-07-22 宝山钢铁股份有限公司 Solution method for concurrency conflicts of transmission LINK network communication
CN107562443A (en) * 2017-07-17 2018-01-09 上海卫星工程研究所 Satellite program control command maintaining method based on round-robin queue

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
Delay-Limitied Throughput of space-Time Codes with Channel Estimation Errors;Ravi Narasimhan;《2007 IEEE Internatinal Conference on Acoustics,Speech and Signal》;20071231;全文 *
一种配网馈线监控终端遥信遥控功能测试装置;梁佳昌等;《电工电气》;20190430(第2期);第53-58页 *
电厂DCS系统SOE异常分析及处理;白鑫;《计算机产品与流通》;20180731(第7期);第62页,第122页 *

Also Published As

Publication number Publication date
CN113467977A (en) 2021-10-01

Similar Documents

Publication Publication Date Title
CN106648461A (en) Memory management device and method
CN102222071B (en) Method, device and system for data synchronous processing
CN108509652B (en) Data processing system and method
CN110795428A (en) Time sequence data storage method and time sequence database applied to industrial Internet of things
CN102970104B (en) A kind of method and server obtaining data
CN101714391A (en) Data storage method and device
CN115114307A (en) Multi-sensor state estimation method and device and terminal equipment
CN106227736A (en) A kind of logic flow implementation method based on list structure and device
CN107704604A (en) A kind of information persistence method, server and computer-readable recording medium
CN113467977B (en) SOE data uploading method and system based on circular queue and board card
CN110134646B (en) Knowledge platform service data storage and integration method and system
CN102129619A (en) Service data processing method and system based on cloud storage
CN109117295B (en) Transaction timeout monitoring method and device
CN112988039B (en) Data uploading method and device, cloud storage gateway and system and storage medium
CN109558270B (en) Data backup method and device and data restoration method and device
CN108491483B (en) Method and device for remotely monitoring running state of program
CN107480182A (en) A kind of spacecraft telemetry source tracing method and system
CN111158594A (en) Metadata disk-dropping method, device, equipment and storage medium
CN110083086A (en) Process control equipment operation data storage method and device
CN111061684B (en) Data packet file time sequence recovery system
CN109542903B (en) Data processing method and device
CN113505076A (en) File coverage detection method and device
CN113159602A (en) Task distribution method, device, equipment and readable storage medium
WO2006017305A1 (en) Systems and methods for compression of frame-based data
KR101135786B1 (en) Method for test flight data processing on Web based

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant