A digital event sequence recording and double CAN bus reporting circuit based on 1oo2 architecture
By employing a dual CAN bus reporting circuit under the 1oo2 architecture, accurate acquisition, filtering, and reporting of multi-channel digital events were achieved, solving the reliability problem of SOE data storage and reporting, and ensuring the accuracy and efficiency of production analysis.
Patent Information
- Application Number
- CN202510870740.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-26
- Publication Date
- 2026-01-09
- Estimated Expiration
- 2045-06-26
AI Technical Summary
Under the 1oo2 architecture, existing technologies cannot effectively solve the SOE data storage and reporting mechanism for digital events under multi-channel conditions, resulting in large signal differences, inaccurate data, increased processor and bus load, and affecting production analysis and maintenance judgment.
A dual CAN bus reporting circuit is adopted, which collects signals through A-series and B-series circuits respectively. The MCU performs filtering and screening to ensure signal accuracy, and then reports to the main control module through CANA and CANB networks to realize reliable storage and reporting of SOE data.
It solves the problems of SOE false triggering and data deviation caused by channel interference signals, improves the accuracy and reliability of SOE data, and reduces the processor and bus load.
Smart Images

Figure CN120704214B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The application relates to the technical field of industrial automation, and more particularly to a digital event sequence recording and double CAN bus reporting circuit based on a 1oo2 architecture. BACKGROUND
[0002] In an industrial automation control system, the recording and reporting of SOE (Sequence Of Event) is a key technology of a collection module. Accurate SOE time recording, SOE data sorting according to time sequence, and SOE data reporting according to the sorting are of great significance to production process and fault confirmation. An unreasonable SOE diagnosis mechanism can cause false reporting of dithering signals, resulting in disordered SOE events, which not only occupies the data storage area and increases the load of the processor and the bus, but also causes false judgments of production personnel on post-production events and maintenance personnel on parking faults. In a 1oo2 architecture, the same signal is collected by multiple channels, and the same signal on different collection channels will form SOE data records with differences. The event resolution requirement of the on-off event is 1 millisecond, and correct SOE data reporting has become an urgent need of the system. Therefore, an efficient, accurate and reliable SOE recording and reporting mechanism has become a technical problem to be solved.
[0003] PRIOR ART
[0004] Patent application number: CN202111037430.7, this invention only involves single-channel SOE event queue storage and data uploading, and cannot solve the SOE storage and reporting mechanism under multiple channels.
[0005] Patent application number: CN202011625468.1, this patent invention collects single-channel field SOE signals and SOE network reporting mechanism.
[0006] Patent application number: CN202510499828.4, this invention stores single-channel SOE data in off-chip FLASH, performs 3 data redundancy, and uses 2oo3 voting to report SOE.
[0007] Defects of prior art
[0008] The current 1oo2 architecture system uses two MCUs to collect the same digital signal independently, two MCUs independently diagnose and record SOE of the signal, and independently report. The upper position independently stores and displays the SOE of the two channels. For a 1oo2 architecture with only one MCU, the SOE data of the two channels collecting the same signal need to be screened and processed to report the correct SOE data, and provide the most accurate SOE data for production personnel and maintenance personnel.
[0009] Therefore, how to provide a digital event sequence recording and dual CAN bus reporting circuit based on 1oo2 architecture becomes a technical problem to be solved in the field. SUMMARY
[0010] The purpose of the present application is to provide a digital event sequence recording and dual CAN bus reporting circuit based on 1oo2 architecture.
[0011] According to the present application, a digital event sequence recording and dual CAN bus reporting circuit based on 1oo2 architecture is provided, comprising an input resistor, a DI channel, an MCU, a CANA network, a CANB network and a master control module.
[0012] The DI channel comprises an A system circuit and a B system circuit.
[0013] The input signal is input to the channel A of the A system circuit and the channel B of the B system circuit through the input resistor to obtain an A system signal and a B system signal; the channel A transmits the A system signal to the MCU for collection through A isolation of the A system circuit; the channel B transmits the B system signal to the MCU for collection through B isolation of the B system circuit; when the A system signal and the B system signal have signal jumps, an SOE event record is generated at the jump edge; the MCU saves the SOE event record in an SOE record library; the SOE event record in the SOE record library needs to be filtered and voted, and the filtered SOE event record is stored in an SOE reporting queue; the SOE reporting queue reports the SOE event record stored in the SOE reporting queue to the master control module through dual CAN buses, i.e., the CANA network and the CANB network.
[0014] Optionally, before the MCU saves the respective SOE event records in the respective SOE record libraries, the MCU further comprises:
[0015] The MCU filters the signal jumps through a filtering algorithm, filters out dithering signals and invalid jump signals, and retains valid signal jump SOE event records, i.e., valid SOE records.
[0016] Optionally, the MCU saves the SOE event records in the SOE record library, comprising:
[0017] For determining valid A system SOE records, an A system SOE record library is created in the MCU, and the A system SOE record library stores the SOE records generated by the A system; for determining valid B system SOE records, a B system SOE record library is created in the MCU, and the B system SOE record library stores the SOE records generated by the B system.
[0018] Optionally, the A-side SOE record library comprises:
[0019] A-side UTC time seconds, A-side UTC time milliseconds, A-side channel status, A-side validity identifier, and A-side queue-in identifier.
[0020] Optionally, the B-side SOE record library comprises:
[0021] B-side UTC time seconds, B-side UTC time milliseconds, B-side channel status, B-side validity identifier, and B-side queue-in identifier.
[0022] Optionally, the SOE event records in the SOE record library need to be screened, and the screened SOE event records are stored in an SOE reporting queue, comprising:
[0023] The A-side SOE record library has a newly written SOE record, and it is determined whether the B-side record library has a newly written SOE record, if the B-side SOE record library has a newly written SOE record, two-side SOE record screening is entered, if the B-side SOE record library has no newly written SOE record, it is determined again whether the B-side record library has a newly written SOE record after a pre-defined time, if the B-side SOE library still has no newly written SOE record, the SOE records in the A-side record library are written into the SOE reporting queue, and if the B-side SOE record library has a new record, two-side SOE record screening is entered.
[0024] Optionally, the two-side SOE record screening comprises:
[0025] When both the two-side record libraries have a newly written SOE record, it is determined whether the A-side channel has a fault flag, if the A-side channel has a fault, the SOE records in the B-side record library are written into the SOE reporting queue and the two-side record flags are cleared, if the A-side channel has no fault, it is further determined whether the B-side channel has a fault flag, if the B-side channel has a fault, the SOE records in the A-side record library are written into the SOE reporting queue and the two-side record flags are cleared, if both the two-side channels have no fault flag, it is determined whether the UTC time in the SOE record data content, if the A-side SOE record time is earlier than the B-side SOE record time, the SOE records in the A-side record library are written into the SOE reporting queue and the two-side record flags are cleared, if the B-side SOE record time is earlier than the A-side SOE record time, the SOE records in the B-side record library are written into the SOE reporting queue and the two-side record flags are cleared.
[0026] Optionally, the pre-defined time is 1 ms.
[0027] Optionally, the SOE reporting queue reports the SOE event records stored in the SOE reporting queue to the master module through dual CAN buses, CAN A network and CAN B network, comprising:
[0028] If there is a SOE record to be reported in the A series SOE reporting queue, A series SOE reporting queue dequeuing operation is performed. It is confirmed whether the CAN A network has a fault, if the CAN A network has a fault, the reporting is directly ended, if there is no fault, SOE data reporting is actively performed through CAN A, if the CAN A has received the SOE response of the master module, the SOE reporting is successful, the SOE queue head pointer is moved to the next address, if the CAN A has not received the SOE response of the master module, the reporting is repeated, if the pre-defined times of reporting have not received valid response, the SOE record to be reported is abandoned, and the A series SOE queue pointer is moved to the next address.
[0029] If there is a SOE record to be reported in the B series SOE reporting queue, B series SOE reporting queue dequeuing operation is performed. It is confirmed whether the CAN B network has a fault, if the CAN B network has a fault, the reporting is directly ended, if there is no fault, SOE data reporting is actively performed through CAN B, if the CAN B has received the SOE response of the master module, the SOE reporting is successful, the SOE queue head pointer is moved to the next address, if the CAN B has not received the SOE response of the master module, the reporting is repeated, if the pre-defined times of reporting have not received valid response, the SOE record to be reported is abandoned, and the B series SOE queue pointer is moved to the next address.
[0030] Optionally, the pre-defined times are 3 times.
[0031] According to the technical content disclosed in the present application, the following beneficial effects are achieved: the SOE mis-triggering problem caused by interference signals on the channel is solved, the SOE data deviation problem caused by different signal delays of two acquisition channels is solved, and the SOE data storage and reporting mechanism ensures the reliability of SOE reporting.
[0032] Other features and advantages of the present application will become apparent from the following detailed description of exemplary embodiments thereof, taken in conjunction with the accompanying drawings. BRIEF DESCRIPTION OF DRAWINGS
[0033] The accompanying drawings incorporated in and forming a part of the specification, illustrate embodiments of the present application and, together with the description, serve to explain the principles of the application.
[0034] Figure 1 A digital quantity event sequence recording and dual CAN bus reporting circuit schematic diagram under the 1oo2 architecture is provided according to the embodiments;
[0035] Figure 2 A SOE signal schematic diagram is provided according to the embodiments. DETAILED DESCRIPTION
[0036] Various exemplary embodiments of the present application will now be described in detail with reference to the figures. Note that the relative arrangements, numerical expressions, and numerical values of components and steps set forth in these embodiments are not limiting to the scope of the present application unless specifically stated otherwise.
[0037] The following description of at least one exemplary embodiment is merely exemplary in nature and is in no way intended to limit the scope of the application its application or uses.
[0038] Techniques, methods, and apparatus known to those of ordinary skill in the relevant art can not be discussed in detail herein, but should be considered as part of the specification, where appropriate.
[0039] In all of the examples shown and discussed herein, any specific values should be interpreted as merely exemplary, and not as a limitation. Thus, other examples of exemplary embodiments can have different values.
[0040] Note that like reference numerals and letters in the various figures indicate similar items, and thus, once any term is defined in one figure, it is not necessary to discuss it further in subsequent figures.
[0041] According to the present application, as shown in Figure 1 a digital quantity event sequence recording and dual CAN bus reporting circuit based on 1oo2 architecture is provided, comprising an input resistor, a DI channel, an MCU, a CANA network, a CANB network, and a master control module;
[0042] The DI channel comprises an A system circuit and a B system circuit.
[0043] An input signal is input to a channel A of the A system circuit and a channel B of the B system circuit through the input resistor, to obtain an A system signal and a B system signal; the channel A transmits the A system signal to the MCU for collection through A isolation of the A system circuit; the channel B transmits the B system signal to the MCU for collection through B isolation of the B system circuit; when the A system signal and the B system signal have a signal jump (signal jump "1" -> "0" or "0" -> "1"), an SOE event record is generated at a jump edge; the MCU saves the SOE event record in an SOE record library; the SOE event record in the SOE record library needs to be filtered and voted, and the filtered SOE event record is stored in an SOE reporting queue; the SOE reporting queue reports the SOE event record stored in the SOE reporting queue to the master control module through dual CAN buses, i.e., the CANA network and the CANB network.
[0044] In some embodiments, before the MCU saves the respective SOE event records in the respective SOE record libraries, the MCU further comprises:
[0045] The MCU filters the signal jump through a filtering algorithm, filters out the jitter signal and invalid jump signal, and retains the SOE event record corresponding to the valid signal jump, i.e., the valid SOE record.
[0046] Specifically, the signal entering the MCU through A isolation or B isolation needs to be further confirmed by the MCU through a filtering algorithm whether the current jump is a valid signal jump, to prevent the jitter interference signal from being reported as a valid signal. Figure 2 The signal jump at a1 appears again at a2 within the filtering time (10 ms), the MCU will clear the SOE event record generated at the jump edge of a1, and generate a new SOE event record at the jump edge of a2. Since the voltage after the signal jump at a2 is the same as the initial valid voltage, the SOE event record generated at a2 will be cleared in any case. The signal jump at a2 appears again at a3 within the filtering time (10 ms), the MCU will clear the SOE event record generated at the jump edge of a2, and generate a new SOE event record at the jump edge of a3. The signal jump at a3 does not appear within the filtering time (10 ms), and the MCU internal filtering algorithm determines that the jump at a3 is a valid signal jump.
[0047] In some embodiments, if the current signal jump is confirmed to be a valid jump after filtering, the current SOE record is saved in the SOE record library corresponding to the channel system, and cannot be directly written into the SOE reporting queue.
[0048] The MCU saves the SOE event record in the SOE record library, including:
[0049] For the A system SOE record determined to be valid, an A system SOE record library is created in the MCU, and the A system SOE record library stores the SOE record generated by the A system. For the B system SOE record determined to be valid, a B system SOE record library is created in the MCU, and the B system SOE record library stores the SOE record generated by the B system. The SOE time recorded by this method is the earliest signal jump edge time, and the recording result is not affected by the filtering time of the filtering algorithm.
[0050] In some embodiments, the A system SOE record library includes:
[0051] A system UTC time seconds, A system UTC time milliseconds, A system channel state, A system validity identifier, and A system queue entry identifier.
[0052] The B system SOE record library includes:
[0053] B system UTC time seconds, B system UTC time milliseconds, B system channel state, B system validity identifier, and B system queue entry identifier.
[0054] The same input signal will generate a record in the A system SOE record library and also generate a record in the B system SOE record library.
[0055] In some embodiments, the SOE event records in the SOE record library need to be screened, and the screened SOE event records are stored in the SOE reporting queue, including:
[0056] The A system SOE record library has a newly written SOE record, and it is determined whether the B system record library has a newly written SOE record, if the B system SOE record library has a newly written SOE record, the two system SOE record screening is entered, if the B system SOE record library does not have a newly written SOE record, it is waited for 1 ms, and then it is determined whether the B system record library has a newly written SOE record, if the B system SOE library still does not have a newly written SOE record, the SOE record in the A system record library is written into the SOE reporting queue, if the B system SOE record library has a new record, the two system SOE record screening is entered.
[0057] The two system SOE record screening includes:
[0058] When the two system record libraries have newly written SOE records, it is first determined whether the A system channel has a fault flag, if the A system channel has a fault, the SOE record in the B system record library is written into the SOE reporting queue and the two system record flags are cleared, if the A system channel does not have a fault, it is further determined whether the B system channel has a fault flag, if the B system channel has a fault, the SOE record in the A system record library is written into the SOE reporting queue and the two system record flags are cleared, if the two system channels do not have fault flags, it is determined whether the UTC time in the SOE record data content, if the A system SOE record time is earlier than the B system SOE record time, the SOE record in the A system record library is written into the SOE reporting queue and the two system record flags are cleared, if the B system SOE record time is earlier than the A system SOE record time, the SOE record in the B system record library is written into the SOE reporting queue and the two system record flags are cleared.
[0059] In some embodiments, the SOE reporting queue is reported to the host module through dual CAN buses, namely CANA network and CANB network, and the SOE event records stored in the SOE reporting queue include:
[0060] If there is SOE record to be reported in the A system SOE reporting queue, A system SOE reporting queue dequeuing operation is performed. It is confirmed whether CAN A network has a fault, if CAN A network has a fault, the reporting is directly ended, if CAN A network has no fault, SOE data reporting is actively performed by CAN A, if CAN A has received SOE response of the master module, SOE reporting is successful, the SOE queue head pointer is moved to the next address, if CAN A has not received SOE response of the master module, the reporting is repeated, if 3 times of reporting have not received valid response, the current SOE record is abandoned, and the A system SOE queue pointer is moved to the next address.
[0061] If there is SOE record to be reported in the B system SOE reporting queue, B system SOE reporting queue dequeuing operation is performed. It is confirmed whether CAN B network has a fault, if CAN B network has a fault, the reporting is directly ended, if CAN B network has no fault, SOE data reporting is actively performed by CAN B, if CAN B has received SOE response of the master module, SOE reporting is successful, the SOE queue head pointer is moved to the next address, if CAN B has not received SOE response of the master module, the reporting is repeated, if 3 times of reporting have not received valid response, the current SOE record is abandoned, and the B system SOE queue pointer is moved to the next address.
[0062] In summary, the scheme provided by the application solves the SOE mis-triggering problem caused by interference signals on the channel, the SOE data deviation problem caused by different signal delays of two acquisition channels, and the SOE data storage and reporting mechanism guarantees the reliability of SOE reporting.
[0063] Although some specific embodiments of the application have been described in detail above, those skilled in the art should understand that the above examples are only for illustration, and are not intended to limit the scope of the application. Those skilled in the art should understand that the above embodiments can be modified without departing from the scope and spirit of the application. The scope of the application is defined by the appended claims.
Claims
1. A digital event sequence recording and dual CAN bus reporting circuit based on a 1oo2 architecture, characterized in that, The application relates to a SOE event record filtering and reporting system. The system comprises an input resistor, a DI channel, an MCU, a CANA network, a CANB network and a master control module. The DI channel comprises an A system circuit and a B system circuit. An input signal is input to a channel A of the A system circuit and a channel B of the B system circuit through the input resistor to obtain an A system signal and a B system signal; the channel A transmits the A system signal to the MCU for collection through A isolation of the A system circuit; the channel B transmits the B system signal to the MCU for collection through B isolation of the B system circuit; when the A system signal and the B system signal have signal jump, an SOE event record is generated in a jump delay; the MCU saves the SOE event record in an SOE record library; the SOE event record in the SOE record library needs to be screened and voted, and the screened SOE event record is stored in an SOE reporting queue; the SOE reporting queue reports the SOE event record stored in the SOE reporting queue to the master control module through a dual CAN bus, namely the CANA network and the CANB network. Before the MCU saves the respective SOE event records in respective SOE record libraries, the system further comprises the following steps: The MCU filters the signal jump through a filtering algorithm, filters out a dithering signal and an invalid jump signal, and retains a valid signal jump corresponding SOE event record, namely a valid SOE record. The MCU saves the SOE event record in the SOE record library, and the method comprises the following steps: For judging the valid A system SOE record, an A system SOE record library is created in the MCU, and the A system SOE record library stores the SOE record generated by the A system; for judging the valid B system SOE record, a B system SOE record library is created in the MCU, and the B system SOE record library stores the SOE record generated by the B system.
2. The digital event sequence recording and dual CAN bus reporting circuit based on the 1oo2 architecture of claim 1, wherein, The A system SOE record library comprises the following: An A system UTC time second, an A system UTC time millisecond, an A system channel state, an A system validity identifier and an A system queue entry identifier.
3. The 1oo2 architecture-based digital event sequence recording and dual CAN bus reporting circuit according to claim 2, characterized in that, The B system SOE record library comprises the following: A B system UTC time second, a B system UTC time millisecond, a B system channel state, a B system validity identifier and a B system queue entry identifier.
4. The 1oo2 architecture-based digital event sequence recording and dual CAN bus reporting circuit according to claim 3, characterized in that, The SOE event record in the SOE record library needs to be screened and voted, and the screened SOE event record is stored in the SOE reporting queue, and the method comprises the following steps: If the B system SOE record library has new SOE record, two-system SOE record screening is entered; if the B system SOE record library has no new SOE record, the B system record library is judged again after a pre-defined time; if the B system SOE record library still has no new SOE record, the SOE record in the A system record library is written into the SOE reporting queue; if the B system SOE record library has new record, two-system SOE record screening is entered.
5. The 1oo2 architecture-based digital event sequence recording and dual CAN bus reporting circuit according to claim 4, characterized in that, The two-system SOE record screening comprises the following steps: When both the two-system record libraries have new SOE records written, first determine whether the A-channel has a fault flag, if the A-channel has a fault, write the SOE record in the B-record library to the SOE reporting queue and clear the two-system record flag; if the A-channel does not have a fault, further determine whether the B-channel has a fault flag, if the B-channel has a fault, write the SOE record in the A-record library to the SOE reporting queue and clear the two-system record flag; if neither of the two channels has a fault flag, determine the UTC time in the SOE record data content, if the A SOE record time is earlier than the B SOE record time, write the SOE record in the A-record library to the SOE reporting queue and clear the two-system record flag, if the B SOE record time is earlier than the A SOE record time, write the SOE record in the B-record library to the SOE reporting queue and clear the two-system record flag.
6. The 1oo2 architecture-based digital event sequence recording and dual CAN bus reporting circuit according to claim 4, characterized in that, The predefined time is 1ms.
7. The 1oo2 architecture-based digital event sequence recording and dual CAN bus reporting circuit according to claim 1, characterized in that, The SOE reporting queue reports the SOE event record stored in the SOE reporting queue to the master module through dual CAN buses, namely CANA network and CANB network, including: If there is SOE record to be reported in the A SOE reporting queue, perform A SOE reporting queue dequeue operation; confirm whether the CANA network has a fault, if the CAN A network has a fault, directly end the reporting, if not, actively perform SOE data reporting through CAN A, if CAN A has received SOE response from the master module, SOE reporting is successful, move the SOE queue head pointer to the next address, if CAN A has not received SOE response from the master module, repeatedly perform reporting, if the predefined times of reporting have not received valid response, abandon the SOE record to be reported, and move the A SOE queue pointer to the next address; If there is SOE record to be reported in the B SOE reporting queue, perform B SOE reporting queue dequeue operation; confirm whether the CANB network has a fault, if the CAN B network has a fault, directly end the reporting, if not, actively perform SOE data reporting through CAN B, if CAN B has received SOE response from the master module, SOE reporting is successful, move the SOE queue head pointer to the next address, if CAN B has not received SOE response from the master module, repeatedly perform reporting, if the predefined times of reporting have not received valid response, abandon the SOE record to be reported, and move the B SOE queue pointer to the next address.
8. The 1oo2 architecture-based digital event sequence recording and dual CAN bus reporting circuit according to claim 7, characterized in that, The predefined times are 3 times.
Citation Information
Patent Citations
SOE data uploading method and system based on circular queue, and board card
CN113467977A
SOE signal acquisition design method for field control station
CN114690717A
SOE event writing and querying method based on off-chip nonvolatile memory
CN120045384A
System and method for generating test signal for sequence of event
CN104021059A
Quick load-shedding multi-point control time testing method for protection of power grid system
CN107703926A