Analyzer of fire extinguishing and explosion suppression system based on FPGA (Field Programmable Gate Array)

Through the analysis device combined with FPGA and random access memory, a general analysis of different types of fire extinguishing and explosion suppression systems is realized, solving the problem of poor universality of existing devices, and improving analysis speed and maintenance efficiency.

CN120420633APending Publication Date: 2025-08-05CHINA SOUTH IND GRP SHANGHAI ELECTRIC CONTROL RES INST
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510532298.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-25
Publication Date
2025-08-05

AI Technical Summary

Technical Problem

The analysis device of the existing fire extinguishing and explosion suppression system can only be applied to specific systems, and has poor versatility, resulting in difficulty in maintenance.

Method used

Using FPGA, the first random access memory and the second random access memory, the CAN frame data of the new fire extinguishing and explosion suppression system is collected through the CAN bus, and matched with the CAN frame data of multiple known systems. The data analysis module of the matching known system is used for data analysis, and the differential signal detection and analog-to-digital converter monitoring and communication are combined to realize the general analysis of multiple models of systems.

Benefits of technology

It realizes general analysis of different types of fire extinguishing and explosion suppression systems, improves analysis speed and maintenance convenience, and can quickly determine matching analysis modules and prioritize emergency responses.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120420633A_ABST
    Figure CN120420633A_ABST
Patent Text Reader

Abstract

The invention relates to an FPGA-based analysis device of a fire extinguishing and explosion suppression system, belongs to the technical field of fire extinguishing and explosion suppression system analysis, and solves the problems that an existing analysis device of a fire extinguishing and explosion suppression system can only be suitable for a specific system and is poor in universality. The analysis device comprises an FPGA used for collecting CAN frame data generated by a new fire extinguishing and explosion suppression system in all preset events and storing the CAN frame data to a first random access memory; the FPGA obtains CAN frame data generated by a plurality of known systems in all preset events from the second random access memory, and judges whether a known system matched with the new fire extinguishing and explosion suppression system exists or not according to the CAN frame data generated by the new fire extinguishing and explosion suppression system in all preset events and the CAN frame data generated by corresponding events in the plurality of known systems; and if so, analyzing the CAN frame data generated by the new fire extinguishing and explosion suppression system by using an analysis module of the matched known system. Joint analysis of various types of fire extinguishing and explosion suppression systems is realized, and the maintenance is convenient.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of fire extinguishing and explosion suppression system detection, and in particular to an FPGA-based analysis device for a fire extinguishing and explosion suppression system. Background Art

[0002] Fire extinguishing and explosion suppression systems are widely used in various fields to prevent fire and explosion accidents. Fire extinguishing and explosion suppression systems communicate via the CAN bus to ensure real-time and reliable data transmission.

[0003] However, different types of fire extinguishing and explosion suppression systems have different CAN bus protocols based on differences. For example, system A is a fire extinguishing system that can extinguish fires in the power compartment and bottom cabin; system B is a fire extinguishing and explosion suppression system that can extinguish fires in the power compartment and bottom cabin and suppress explosions in the passenger compartment. The CAN protocols of systems A and B will have different working status, sensor status, fire extinguisher bottle status, and alarm information of each cabin. In the existing technology, it is usually necessary to separately configure an analysis device to analyze each fire extinguishing and explosion suppression system, and it is complicated to use and difficult to maintain in the later stage.

[0004] Therefore, there is an urgent need for a device that can analyze different types of fire extinguishing and explosion suppression systems. Summary of the Invention

[0005] In view of the above analysis, an embodiment of the present invention aims to provide an FPGA-based analysis device for a fire extinguishing and explosion suppression system, so as to solve the problem that existing analysis devices for fire extinguishing and explosion suppression systems are only applicable to specific systems and have poor versatility.

[0006] An embodiment of the present invention provides an FPGA-based analysis device for a fire extinguishing and explosion suppression system, the analysis device comprising an FPGA, a first random access memory, and a second random access memory;

[0007] The FPGA is connected to the new fire extinguishing and explosion suppression system via the CAN bus, and is used to collect the CAN frame data generated by the new fire extinguishing and explosion suppression system in all preset events and store it in the first random access memory;

[0008] The second random access memory is used to store CAN frame data generated by multiple known systems in all preset events;

[0009] The FPGA obtains the CAN frame data generated by multiple known systems in all preset events from the second random access memory, and determines whether there is a known system that matches the new fire extinguishing and explosion suppression system based on the CAN frame data generated by the new fire extinguishing and explosion suppression system in all preset events and the CAN frame data generated by the corresponding events in multiple known systems; if so, the CAN frame data generated by the new fire extinguishing and explosion suppression system is parsed using the parsing module of the matching known system.

[0010] Based on the further improvement of the above data analysis device, the use of the analysis module of the matched known system to parse the CAN frame data generated by the new fire extinguishing and explosion suppression system includes:

[0011] Obtain multiple CAN frames to be parsed generated by the new fire extinguishing and explosion suppression system and an identifier corresponding to each CAN frame to be parsed;

[0012] According to the identifier corresponding to each CAN frame to be parsed, the corresponding priority is searched from the parsing module, and the plurality of CAN frames to be parsed are sorted by the priority to obtain the sorted plurality of CAN frames to be parsed;

[0013] The parsing module of the matching known system is used to parse the sorted multiple CAN frames to be parsed in sequence.

[0014] Based on the further improvement of the above data analysis device, the analysis device further includes a differential signal detection module and an analog-to-digital converter;

[0015] The input port of the analog-to-digital converter is connected to the CAN_H interface and the CAN_L interface of the CAN bus, and is used to convert the analog voltage signals output by the CAN_H interface and the CAN_L interface of the CAN bus into digital voltage signals, and send the two digital voltage signals to the differential signal detection module. The differential signal detection module is used to obtain the voltage difference between the two digital voltage signals and send it to the FPGA;

[0016] The FPGA is used to monitor whether the CAN communication is normal based on the voltage difference between the received CAN_H interface and the CAN_L interface combined with the standard voltage.

[0017] Based on the further improvement of the above data analysis device, the analysis device also includes a visual display screen:

[0018] The FPGA is connected to a visual display screen to display a known system that matches the new fire extinguishing and explosion suppression system, and at the same time, the analysis results of the CAN frame data generated by the new fire extinguishing and explosion suppression system are displayed on the visual display screen.

[0019] Based on the further improvement of the above data analysis device, the FPGA adopts any one of the following:

[0020] Artix series;

[0021] Kintex series;

[0022] Cyclone series;

[0023] Arria series;

[0024] Logos series.

[0025] Based on the further improvement of the above data analysis device, the method of judging whether there is a known system that matches the new fire extinguishing and explosion suppression system based on the CAN frame data generated by the new fire extinguishing and explosion suppression system in all preset events and the CAN frame data generated by corresponding events in multiple known systems includes:

[0026] Match the CAN frame data generated by all preset events of the new fire extinguishing and explosion suppression system with the CAN frame data generated by corresponding events in multiple known systems, obtain the matching values corresponding to the multiple known systems, and select the maximum matching value from them;

[0027] Determine whether the maximum matching value is greater than a preset threshold; if so, determine whether there is a known system that matches the new fire extinguishing and explosion suppression system, and use the known system corresponding to the maximum matching value as the known system that matches the new fire extinguishing and explosion suppression system.

[0028] Based on the further improvement of the above data analysis device, the CAN frame data generated by all preset events of the new fire extinguishing and explosion suppression system are matched with the CAN frame data generated by corresponding events in multiple known systems, including:

[0029] Determine the identifier and data domain corresponding to each preset event in the new fire extinguishing and explosion suppression system based on the CAN frame data generated by each preset event in the new fire extinguishing and explosion suppression system; determine the identifier and data domain corresponding to each preset event in each known system based on the CAN frame data generated by each preset event in each known system;

[0030] Using a string comparison method, the identifier and data field corresponding to each preset event in the new fire extinguishing and explosion suppression system are compared with the identifier and data field corresponding to each preset event in each known system in the preset event order, and the comparison results of the new fire extinguishing and explosion suppression system and each known system in each preset event are obtained;

[0031] The matching value corresponding to each known system is determined based on the comparison result between the new fire extinguishing and explosion suppression system and each known system in each preset event.

[0032] Based on the further improvement of the above data parsing device, the string comparison method is any one of the following:

[0033] Fuzzy matching comparison method;

[0034] Hash matching comparison method;

[0035] String conversion to numeric comparison method.

[0036] Based on the further improvement of the above data analysis device, the matching value corresponding to each known system is determined by the following formula:

[0037]

[0038] Among them, MatchScore represents the matching value corresponding to each known system, N represents the number of preset events, and ID new (i) represents the identifier of the new fire extinguishing and explosion suppression system corresponding to the i-th preset event, ID known (i) represents the identifier corresponding to the i-th preset event of the known system, D new (i) represents the data domain corresponding to the i-th preset event of the new fire extinguishing and explosion suppression system, D known (i) represents the data domain corresponding to the i-th preset event of the known system, δ() represents the indicator function, and ^ represents the logical AND.

[0039] Based on the further improvement of the above data analysis device, the method of judging whether there is a known system that matches the new fire extinguishing and explosion suppression system based on the CAN frame data generated by the new fire extinguishing and explosion suppression system in all preset events and the CAN frame data generated by corresponding events in multiple known systems includes:

[0040] Determine the frequency of use of each known system based on historical analysis records;

[0041] Sort the usage frequency of each known system in order of size to obtain all sorted known systems;

[0042] Match the CAN frame data generated by all preset events of the new fire extinguishing and explosion suppression system with the CAN frame data generated by the corresponding events of all known systems after sorting;

[0043] After each known system is matched, it is determined whether the matching value corresponding to the known system is a complete match; if so, it is determined that there is a known system that matches the new fire extinguishing and explosion suppression system, and the known system is used as the known system that matches the new fire extinguishing and explosion suppression system.

[0044] Compared with the prior art, the present invention can achieve at least one of the following beneficial effects:

[0045] 1. The first random access memory stores the CAN frame data generated by the new fire extinguishing and explosion suppression system in all preset events, and the second random access memory stores the CAN frame data generated by multiple known systems in all preset events. Combined with the FPGA, it is determined whether there is a known system that matches the new fire extinguishing and explosion suppression system. This allows different types of fire extinguishing and explosion suppression systems to be analyzed and tested using the same analysis device, achieving universality of the analysis device.

[0046] 2. Use the CAN frame data generated by different preset events to match the new fire extinguishing and explosion suppression system with the known system. Based on the matching value, quickly determine the corresponding analysis module of the new fire extinguishing and explosion suppression system to achieve data analysis of the new fire extinguishing and explosion suppression system.

[0047] 3. When parsing multiple CAN frames generated by the new fire extinguishing and explosion suppression system, parse them in sequence according to the priority of the identifiers, giving priority to emergency events;

[0048] 4. Determine the order of known systems that match the new fire extinguishing and explosion suppression system based on historical analysis records. Matching them in this order can improve the matching speed, quickly determine the known systems that match the new fire extinguishing and explosion suppression system, and thus improve the analysis speed.

[0049] In the present invention, the above-mentioned technical solutions can be combined with each other to achieve more preferred combinations. Other features and advantages of the present invention will be described in the following description, and some advantages will become apparent from the description or be learned through practice of the present invention. The objectives and other advantages of the present invention can be realized and obtained through the contents particularly pointed out in the description and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] The accompanying drawings are only for the purpose of illustrating particular embodiments and are not to be considered limiting of the present invention. Like reference symbols denote like parts throughout the drawings.

[0051] Figure 1 A schematic structural diagram of an FPGA-based analysis device for a fire extinguishing and explosion suppression system provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0052] The preferred embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings, wherein the accompanying drawings constitute a part of this application and are used together with the embodiments of the present invention to illustrate the principles of the present invention, and are not used to limit the scope of the present invention.

[0053] A specific embodiment of the present invention discloses an analytical device for a fire extinguishing and explosion suppression system based on FPGA, such as Figure 1 As shown, the parsing device includes an FPGA, a first random access memory and a second random access memory;

[0054] The FPGA is connected to the new fire extinguishing and explosion suppression system via the CAN bus, and is used to collect the CAN frame data generated by the new fire extinguishing and explosion suppression system in all preset events and store it in the first random access memory;

[0055] The second random access memory is used to store CAN frame data generated by multiple known systems in all preset events;

[0056] The FPGA obtains the CAN frame data generated by multiple known systems in all preset events from the second random access memory, and determines whether there is a known system that matches the new fire extinguishing and explosion suppression system based on the CAN frame data generated by the new fire extinguishing and explosion suppression system in all preset events and the CAN frame data generated by the corresponding events in multiple known systems; if so, the CAN frame data generated by the new fire extinguishing and explosion suppression system is parsed using the parsing module of the matching known system.

[0057] Specifically, such as Figure 1 As shown, the new fire extinguishing and explosion suppression system represents an unknown fire extinguishing and explosion suppression system. The FPGA is connected to the new fire extinguishing and explosion suppression system via the CAN bus to collect various CAN frame data generated by the new fire extinguishing and explosion suppression system. Since the new fire extinguishing and explosion suppression system is an unknown system, the CAN frame data generated by the new fire extinguishing and explosion suppression system cannot be directly parsed. Instead, the CAN frame data generated by the new fire extinguishing and explosion suppression system can be collected and stored in the first random access memory.

[0058] Specifically, the FPGA adopts Artix series, Kintex series, Cyclone series, Arria series or Logos series.

[0059] Specifically, such as Figure 1 As shown, the preset event represents the event that can occur in the existing fire extinguishing and explosion suppression system. If the new fire extinguishing and explosion suppression system can trigger the preset event, the CAN frame data generated under the preset event is collected; if the new fire extinguishing and explosion suppression system cannot trigger the event, the CAN frame data generated under the preset event is defaulted to be empty, and the CAN frame data generated by the new fire extinguishing and explosion suppression system under all preset events is stored in the first random access memory.

[0060] Specifically, the new fire extinguishing and explosion suppression system can be controlled to trigger preset events in a preset event sequence, and each triggered preset event is stored until the new fire extinguishing and explosion suppression system triggers all preset events, thereby obtaining the CAN frame data generated by the new fire extinguishing and explosion suppression system under all preset events.

[0061] Preferably, the preset events include one or more of the following:

[0062] Crew compartment fire incidents;

[0063] Engine compartment fire incident;

[0064] Fire incidents in the lower holds;

[0065] Linear flame sensor resistance and capacitance change events;

[0066] Emergency button change event.

[0067] Specifically, the preset event may be a crew compartment fire alarm event, a power compartment fire alarm event, a bottom compartment fire alarm event, a linear flame sensor resistance and capacitance change event, or an emergency button change event.

[0068] Specifically, the crew compartment fire alarm event includes an explosion suppression bottle electric squib disconnection sub-event, an explosion suppression bottle pressure switch disconnection sub-event, and an explosion suppression fire alarm sub-event.

[0069] Specifically, the power compartment fire alarm event includes a fire extinguisher power compartment squib disconnection sub-event, a fire extinguisher pressure switch disconnection sub-event, and a power compartment fire alarm sub-event.

[0070] Specifically, the bottom hold fire alarm event includes the fire extinguisher bottom hold squib disconnection sub-event, the fire extinguisher pressure switch disconnection sub-event and the bottom hold fire alarm sub-event.

[0071] Specifically, the linear flame sensor resistance and capacitance change event includes a power compartment warning sub-event and a power compartment fire alarm sub-event.

[0072] Specifically, the emergency button change event includes an explosion suppression bottle electric squib disconnection sub-event, an explosion suppression bottle pressure switch disconnection sub-event, and an explosion suppression fire alarm sub-event.

[0073] Specifically, such as Figure 1 As shown, the new fire extinguishing and explosion suppression system stores the CAN frame data generated by all preset events in the first random access memory; the CAN frame data generated by all preset events in multiple known systems need to be collected in advance and stored in the second random access memory for backup.

[0074] It is worth noting that each known system has a corresponding parsing module, through which the CAN frame data generated by the known system can be parsed to determine the events triggered by the known system, thereby obtaining parsing results.

[0075] Specifically, when the parsing device is used to parse the CAN frame data generated by the new fire extinguishing and explosion suppression system, the CAN frame data generated by the new fire extinguishing and explosion suppression system in all preset events is collected through the FPGA and stored in the first random access memory. The FPGA uses the CAN frame data generated by the new fire extinguishing and explosion suppression system in all preset events and the CAN frame data generated by multiple known systems in all preset events to determine whether there is a known system that matches the new fire extinguishing and explosion suppression system.

[0076] Specifically, if there is a known system among the multiple known systems that matches the new fire extinguishing and explosion suppression system, the parsing module of the matching known system is used to parse the CAN frame data generated by the new fire extinguishing and explosion suppression system to obtain a parsing result.

[0077] Preferably, the determining whether there is a known system that matches the new fire extinguishing and explosion suppression system based on the CAN frame data generated by the new fire extinguishing and explosion suppression system in all preset events and the CAN frame data generated by corresponding events in multiple known systems includes:

[0078] Match the CAN frame data generated by all preset events of the new fire extinguishing and explosion suppression system with the CAN frame data generated by corresponding events in multiple known systems, obtain the matching values corresponding to the multiple known systems, and select the maximum matching value from them;

[0079] Determine whether the maximum matching value is greater than a preset threshold; if so, determine whether there is a known system that matches the new fire extinguishing and explosion suppression system, and use the known system corresponding to the maximum matching value as the known system that matches the new fire extinguishing and explosion suppression system.

[0080] Specifically, and illustratively, the pre-set events include Event A, Event B, and Event C. The FPGA is used to obtain the CAN frame data generated by the new fire extinguishing and explosion suppression system for Events A, B, and C. Simultaneously, the CAN frame data generated by pre-stored known systems for Events A, B, and C are obtained. The new fire extinguishing and explosion suppression system is matched against the CAN frame data generated by multiple known systems for Events A, B, and C, respectively, to obtain matching values corresponding to the new fire extinguishing and explosion suppression system and the multiple known systems. For example, the known systems include System 1, System 2, and System 3.

[0081] Preferably, the matching of the CAN frame data generated by all preset events of the new fire extinguishing and explosion suppression system with the CAN frame data generated by corresponding events in a plurality of known systems includes:

[0082] Determine the identifier and data domain corresponding to each preset event in the new fire extinguishing and explosion suppression system based on the CAN frame data generated by each preset event in the new fire extinguishing and explosion suppression system; determine the identifier and data domain corresponding to each preset event in each known system based on the CAN frame data generated by each preset event in each known system;

[0083] Using a string comparison method, the identifier and data field corresponding to each preset event in the new fire extinguishing and explosion suppression system are compared with the identifier and data field corresponding to each preset event in each known system in the preset event order, and the comparison results of the new fire extinguishing and explosion suppression system and each known system in each preset event are obtained;

[0084] The matching value corresponding to each known system is determined based on the comparison result between the new fire extinguishing and explosion suppression system and each known system in each preset event.

[0085] Specifically, the new fire extinguishing and explosion suppression system generates CAN frame data for each preset event. This data is split according to the CAN frame format, and the identifier and data field included in the CAN frame data are obtained. This gives the identifier and data field corresponding to each preset event for the new fire extinguishing and explosion suppression system. For example, the identifier and data field corresponding to events A, B, and C are obtained. Similarly, the identifier and data field corresponding to system 1, system 2, and system 3 are obtained for events A, B, and C, respectively.

[0086] Specifically, the identifiers and data fields corresponding to the new fire extinguishing and explosion suppression system under events A, B, and C are compared with the identifiers and data fields corresponding to system 1 under events A, B, and C, and the comparison results between the new fire extinguishing and explosion suppression system and system 1 under events A, B, and C are obtained; similarly, the comparison results between the new fire extinguishing and explosion suppression system and system 2 under events A, B, and C are obtained; and, the comparison results between the new fire extinguishing and explosion suppression system and system 3 under events A, B, and C are obtained.

[0087] Preferably, the string comparison method is any one of the following:

[0088] Fuzzy matching comparison method;

[0089] Hash matching comparison method;

[0090] String conversion to numeric comparison method.

[0091] Specifically, the distance or similarity between the identifiers and data domains corresponding to the new fire extinguishing and explosion suppression system and system 1, system 2, and system 3 under event A, event B, and event C is calculated through the fuzzy matching comparison method as the comparison result.

[0092] Specifically, the hash matching comparison method converts the identifiers and data fields corresponding to the new fire extinguishing and explosion suppression system and system 1, system 2, and system 3 under event A, event B, and event C into hash values through a hash function, and finally compares the hash values to obtain the comparison results.

[0093] Specifically, the string conversion numerical comparison method converts the identifiers and data fields corresponding to the new fire extinguishing and explosion suppression system and system 1, system 2, and system 3 under event A, event B, and event C into decimal or binary values for comparison to obtain a comparison result.

[0094] Specifically, the matching value corresponding to each known system is determined based on the comparison results between the new fire extinguishing and explosion suppression system and each known system in each preset event, that is, the matching value corresponding to the new fire extinguishing and explosion suppression system and system 1, the matching value corresponding to the new fire extinguishing and explosion suppression system and system 2, and the matching value corresponding to the new fire extinguishing and explosion suppression system and system 3 are obtained.

[0095] Preferably, the matching value corresponding to each known system is determined by the following formula:

[0096]

[0097] Among them, MatchScore represents the matching value corresponding to each known system, N represents the number of preset events, and ID new (i) represents the identifier of the new fire extinguishing and explosion suppression system corresponding to the i-th preset event, ID known (i) represents the identifier corresponding to the i-th preset event of the known system, D new (i) represents the data domain corresponding to the i-th preset event of the new fire extinguishing and explosion suppression system, D known (i) represents the data domain corresponding to the i-th preset event of the known system, δ() represents the indicator function, and ^ represents logical AND.

[0098] Specifically, the matching values corresponding to the new fire extinguishing and explosion suppression system and system 1, system 2 and system 3, that is, the matching values corresponding to system 1, system 2 and system 3, are determined respectively by the above formula.

[0099] Specifically, [ID new (i) = ID known (i) represents the comparison result of the new fire extinguishing and explosion suppression system with the identifier corresponding to the i-th one of each known system, [D new (i) = D known (i)] represents the comparison result of the new fire extinguishing and explosion suppression system with each known system in the data domain corresponding to the i-th one. new (i) = ID known (i) and [D new (i) = D known (i)] are all true,

[0100] [ID new (i) = ID known (i)]^[D new (i) = D kown The result of (i) is also true. Finally, the true and false results are converted into numbers 1 and 0 through the indicator function, and the matching value corresponding to each known system is finally calculated.

[0101] For example, assume there are three different preset events, two known systems (A and B) and one new system (X), and compare the CAN frame IDs and DATA of these systems under different events.

[0102] event Known system A (ID, DATA) Known system B (ID, DATA) New system X(ID,DATA) 1 (0x123,0x456789) (0x123,0x456789) (0x123,0x456789) 2 (0x456,0xABCD00) (0x456,0xABCD00) (0x456,0xABCD00) 3 (0x789,0x0FEDCBA) (0x789,0x0FEDCB0) (0x789,0x0FEDCB0)

[0103] In events 1 and 2, the CAN frame ID and data fields are consistent across all systems.

[0104] In event 3, the data domain of the new system X is consistent with that of the known system B, but inconsistent with that of the known system A.

[0105] For a known system A:

[0106] Event 1: (0x123, 0x456789) matches (0x123, 0x456789), indicating that the function returned 1.

[0107] Event 2: (0x456, 0xABCD00) matches (0x456, 0xABCD00), indicating that the function returned 1.

[0108] Event 3: (0x789, 0x0FEDCBA) does not match (0x789, 0x0FEDCB0), indicating that the function returned 0.

[0109] Therefore, the number of matches is 2 and the total number of events is 3.

[0110] The matching ratio of the known system A is about 0.67, indicating that the new system X is not completely consistent with the known system A in some events.

[0111] For a known system B:

[0112] Event 1: (0x123, 0x456789) matches (0x123, 0x456789), indicating that the function returned 1.

[0113] Event 2: (0x456, 0xABCD00) matches (0x456, 0xABCD00), indicating that the function returned 1.

[0114] Event 3: (0x789, 0x0FEDCB0) matches (0x789, 0x0FEDCB0), indicating that the function returned 1.

[0115] Therefore, the number of matches is 3 and the total number of events is 3.

[0116] The matching ratio of the known system B is 1.0, which means that the new system X is a perfect match with the known system B under all events.

[0117] Specifically, it is determined whether the maximum matching value is greater than a preset threshold; if so, the known system corresponding to the maximum matching value is used as the known system matching the new fire extinguishing and explosion suppression system.

[0118] Specifically, such as Figure 1 As shown, the FPGA uses the parsing module of the matched known system to parse the CAN frame data generated by the new fire extinguishing and explosion suppression system to obtain the parsing result of the new fire extinguishing and explosion suppression system.

[0119] Preferably, the determining whether there is a known system that matches the new fire extinguishing and explosion suppression system based on the CAN frame data generated by all preset events of the new fire extinguishing and explosion suppression system and the CAN frame data generated by corresponding events in multiple known systems includes:

[0120] Determine the frequency of use of each known system based on historical analysis records;

[0121] Sort the usage frequency of each known system in order of size to obtain all sorted known systems;

[0122] Match the CAN frame data generated by all preset events of the new fire extinguishing and explosion suppression system with the CAN frame data generated by the corresponding events of all known systems after sorting;

[0123] After each known system is matched, it is determined whether the matching value corresponding to the known system is a complete match; if so, it is determined that there is a known system that matches the new fire extinguishing and explosion suppression system, and the known system is used as the known system that matches the new fire extinguishing and explosion suppression system.

[0124] Specifically, the historical analysis record will record the usage time of each known system, and by counting the usage frequency of each known system in the historical analysis record, the multiple known systems are sorted according to the usage frequency.

[0125] It is worth noting that by giving priority to matching known systems with high usage frequency and predicting the systems used in this analysis, the analysis module corresponding to the systems used in this analysis can be quickly determined.

[0126] Specifically, when matching a new fire extinguishing and explosion suppression system with a known system, if the CAN frame data generated by the new fire extinguishing and explosion suppression system in all preset events are the same as the CAN frame data generated by the corresponding events of the known system, then the matching value corresponding to the known system is considered to be a complete match, and the known system is regarded as a known system that matches the new fire extinguishing and explosion suppression system.

[0127] Preferably, determining the usage frequency of each known system based on historical analysis records includes:

[0128] Determine the number of times each known system has been used and the number of times all known systems have been used based on historical parsing records;

[0129] The usage frequency of each known system is calculated based on the usage count of each known system and the usage count of all known systems.

[0130] Specifically, the number of times each known system is used in the historical parsing records and the total number of times it is used are determined, and the usage frequency of each known system is calculated. The more frequently used a known system is, the more likely it is to become a matching known system in a new parsing.

[0131] Specifically, preferably, if there is no known system that matches the new fire extinguishing and explosion suppression system, the CAN frame data generated by the new fire extinguishing and explosion suppression system is parsed through the following steps:

[0132] Determine one or more sub-events corresponding to all preset events and obtain all sub-events;

[0133] Control the new fire extinguishing and explosion suppression system to trigger all sub-events in sequence, and collect and store the CAN frame data corresponding to each sub-event;

[0134] The CAN frame data generated by the new fire extinguishing and explosion suppression system is parsed using the CAN frame data corresponding to all sub-events.

[0135] Specifically, if there is no known system that matches the new fire extinguishing and explosion suppression system, a new parsing module needs to be regenerated to parse the new fire extinguishing and explosion suppression system and obtain the parsing results. In this case, one or more specific events corresponding to all preset events need to be triggered in sequence, thereby recording the CAN frame data corresponding to each specific event. In other words, each CAN frame data corresponds to a specific event.

[0136] Specifically, after obtaining the CAN frame data corresponding to all specific events of the new fire extinguishing and explosion suppression system, the CAN frame data generated by the new fire extinguishing and explosion suppression system is parsed using the data to obtain corresponding parsing results.

[0137] Preferably, the parsing of the CAN frame data generated by the new fire extinguishing and explosion suppression system using the CAN frame data corresponding to all sub-events includes:

[0138] Match the CAN frame data corresponding to all sub-events with the CAN frame data generated by the new fire extinguishing and explosion suppression system to determine the matching results of all sub-events;

[0139] The sub-event with a successful matching result is used as the parsing result of the CAN frame data generated by the new fire extinguishing and explosion suppression system.

[0140] Specifically, the CAN frame data generated by the new fire extinguishing and explosion suppression system for all specific events is obtained, and a mapping relationship between the CAN frame data and the specific events is established so that each CAN frame data corresponds to a specific event. During parsing, the CAN frame data generated by the new fire extinguishing and explosion suppression system is matched with the CAN frame data in the obtained mapping relationship, thereby splitting the CAN frame data generated by the new fire extinguishing and explosion suppression system to obtain one or more specific events, thereby obtaining the parsing results.

[0141] Preferably, the parsing of the CAN frame data generated by the new fire extinguishing and explosion suppression system by using the parsing module of the matched known system includes:

[0142] Obtain multiple CAN frames to be parsed generated by the new fire extinguishing and explosion suppression system and an identifier corresponding to each CAN frame to be parsed;

[0143] According to the identifier corresponding to each CAN frame to be parsed, the corresponding priority is searched from the parsing module, and the plurality of CAN frames to be parsed are sorted by the priority to obtain the sorted plurality of CAN frames to be parsed;

[0144] The parsing module of the matching known system is used to parse the sorted multiple CAN frames to be parsed in sequence.

[0145] Specifically, when parsing the CAN frame data generated by the new fire extinguishing and explosion suppression system, when the number of CAN frames included in the generated CAN frame data is too large, all of them cannot be parsed in a short time. The present invention sets priorities for the identifiers involved in the CAN frames. The CAN frames corresponding to the identifiers with high priorities need to be parsed first, and the CAN frames corresponding to the identifiers with low priorities can be parsed slightly later, thereby orderly parsing multiple CAN frames to be parsed to obtain parsing results, so that the parsing device can process multiple CAN frames to be parsed according to the severity of the events, thereby improving the parsing efficiency and providing convenience for subsequent processing based on the parsing results.

[0146] Preferably, if Figure 1 As shown, the analysis device also includes a differential signal detection module and an analog-to-digital converter;

[0147] The input port of the analog-to-digital converter is connected to the CAN_H interface and the CAN_L interface of the CAN bus, and is used to convert the analog voltage signals output by the CAN_H interface and the CAN_L interface of the CAN bus into digital voltage signals, and send the two digital voltage signals to the differential signal detection module. The differential signal detection module is used to obtain the voltage difference between the two digital voltage signals and send it to the FPGA;

[0148] The FPGA is used to monitor whether the CAN communication is normal based on the voltage difference between the received CAN_H interface and the CAN_L interface combined with the standard voltage.

[0149] Specifically, such as Figure 1 As shown in the figure, there are CAN_H interface and CAN_L interface in the CAN bus. The FPGA obtains the voltage difference through the differential signal detection module and the analog-to-digital converter, and compares it with the preset standard voltage to determine whether the CAN communication is normal, thereby realizing the monitoring of CAN communication and facilitating subsequent maintenance.

[0150] Preferably, the analysis device further comprises a visual display screen:

[0151] The FPGA is connected to a visual display screen to display a known system that matches the new fire extinguishing and explosion suppression system, and at the same time, the analysis results of the CAN frame data generated by the new fire extinguishing and explosion suppression system are displayed on the visual display screen.

[0152] Specifically, such as Figure 1 As shown, the FPGA is connected to a visual display screen, which is convenient for users to view and perform subsequent maintenance, thereby improving the convenience of human-computer interaction and the maintenance of the analytical device.

[0153] Compared with the prior art, the FPGA-based fire extinguishing and explosion suppression system parsing device provided in the embodiment of the present invention uses a first random access memory to store CAN frame data generated by a new fire extinguishing and explosion suppression system in all preset events and a second random access memory to store CAN frame data generated by multiple known systems in all preset events. Combined with the FPGA, it is determined whether there is a known system that matches the new fire extinguishing and explosion suppression system. This allows different models of fire extinguishing and explosion suppression systems to be parsed and detected using the same parsing device, thereby achieving the versatility of the parsing device. Furthermore, the new fire extinguishing and explosion suppression system is matched with the known systems using the CAN frame data generated by different preset events. The parsing module corresponding to the new fire extinguishing and explosion suppression system is quickly determined based on the matching value, thereby achieving data parsing of the new fire extinguishing and explosion suppression system. At the same time, when parsing the multiple CAN frames generated by the new fire extinguishing and explosion suppression system, the parsing is performed in sequence according to the priority of the identifier, with emergency events being parsed first. Finally, the order of the known systems that match the new fire extinguishing and explosion suppression system is determined based on historical parsing records. Matching is performed in this order, which can improve the matching speed, quickly determine the known system that matches the new fire extinguishing and explosion suppression system, and thus improve the parsing speed.

[0154] Those skilled in the art will appreciate that all or part of the process steps of the above-described embodiments can be implemented by instructing related hardware through a computer program, and the program can be stored in a computer-readable storage medium, such as a magnetic disk, an optical disk, a read-only memory, or a random access memory.

[0155] The above description is only a preferred specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by any technician familiar with this technical field within the technical scope disclosed by the present invention should be covered by the scope of protection of the present invention.

Claims

1. An analytical device for a fire extinguishing and explosion suppression system based on FPGA, characterized in that: The parsing device includes an FPGA, a first random access memory and a second random access memory; The FPGA is connected to the new fire extinguishing and explosion suppression system via the CAN bus, and is used to collect the CAN frame data generated by the new fire extinguishing and explosion suppression system in all preset events and store it in the first random access memory; The second random access memory is used to store CAN frame data generated by multiple known systems in all preset events; The FPGA obtains the CAN frame data generated by multiple known systems in all preset events from the second random access memory, and determines whether there is a known system that matches the new fire extinguishing and explosion suppression system based on the CAN frame data generated by the new fire extinguishing and explosion suppression system in all preset events and the CAN frame data generated by the corresponding events in multiple known systems; if so, the CAN frame data generated by the new fire extinguishing and explosion suppression system is parsed using the parsing module of the matching known system.

2. The analysis device according to claim 1, wherein The method of parsing the CAN frame data generated by the new fire extinguishing and explosion suppression system using the parsing module of the matched known system includes: Obtain multiple CAN frames to be parsed generated by the new fire extinguishing and explosion suppression system and an identifier corresponding to each CAN frame to be parsed; According to the identifier corresponding to each CAN frame to be parsed, the corresponding priority is searched from the parsing module, and the plurality of CAN frames to be parsed are sorted by the priority to obtain the sorted plurality of CAN frames to be parsed; The parsing module of the matching known system is used to parse the sorted multiple CAN frames to be parsed in sequence.

3. The analysis device according to claim 1, wherein The analytical device also includes a differential signal detection module and an analog-to-digital converter; The input port of the analog-to-digital converter is connected to the CAN_H interface and the CAN_L interface of the CAN bus, and is used to convert the analog voltage signals output by the CAN_H interface and the CAN_L interface of the CAN bus into digital voltage signals, and send the two digital voltage signals to the differential signal detection module. The differential signal detection module is used to obtain the voltage difference between the two digital voltage signals and send it to the FPGA; The FPGA is used to monitor whether the CAN communication is normal based on the voltage difference between the received CAN_H interface and the CAN_L interface combined with the standard voltage.

4. The analysis device according to claim 1, wherein The analysis device also includes a visual display screen: The FPGA is connected to a visual display screen to display a known system that matches the new fire extinguishing and explosion suppression system, and at the same time, the analysis results of the CAN frame data generated by the new fire extinguishing and explosion suppression system are displayed on the visual display screen.

5. The analysis device according to claim 4, characterized in that The FPGA adopts any of the following: Artix series; Kintex series; Cyclone series; Arria series; Logos series.

6. The analysis device according to claim 1, wherein The determining whether there is a known system that matches the new fire extinguishing and explosion suppression system based on the CAN frame data generated by the new fire extinguishing and explosion suppression system in all preset events and the CAN frame data generated by corresponding events in multiple known systems includes: Match the CAN frame data generated by all preset events of the new fire extinguishing and explosion suppression system with the CAN frame data generated by corresponding events in multiple known systems, obtain the matching values corresponding to the multiple known systems, and select the maximum matching value from them; Determine whether the maximum matching value is greater than a preset threshold; if so, determine whether there is a known system that matches the new fire extinguishing and explosion suppression system, and use the known system corresponding to the maximum matching value as the known system that matches the new fire extinguishing and explosion suppression system.

7. The analysis device according to claim 6, characterized in that The matching of the CAN frame data generated by all preset events of the new fire extinguishing and explosion suppression system with the CAN frame data generated by corresponding events in multiple known systems includes: Determine the identifier and data domain corresponding to each preset event in the new fire extinguishing and explosion suppression system based on the CAN frame data generated by each preset event in the new fire extinguishing and explosion suppression system; determine the identifier and data domain corresponding to each preset event in each known system based on the CAN frame data generated by each preset event in each known system; Using a string comparison method, the identifier and data field corresponding to each preset event in the new fire extinguishing and explosion suppression system are compared with the identifier and data field corresponding to each preset event in each known system in the preset event order, and the comparison results of the new fire extinguishing and explosion suppression system and each known system in each preset event are obtained; The matching value corresponding to each known system is determined based on the comparison result between the new fire extinguishing and explosion suppression system and each known system in each preset event.

8. The analysis device according to claim 7, wherein: The string comparison method is any of the following: Fuzzy matching comparison method; Hash matching comparison method; String conversion to numeric comparison method.

9. The analysis device according to claim 7, wherein: The matching value for each known system is determined using the following formula: Among them, MatchScore represents the matching value corresponding to each known system, N represents the number of preset events, and ID new (i) represents the identifier of the new fire extinguishing and explosion suppression system corresponding to the i-th preset event, ID known (i) represents the identifier corresponding to the i-th preset event of the known system, D new (i) represents the data domain corresponding to the i-th preset event of the new fire extinguishing and explosion suppression system, D known (i) represents the data domain corresponding to the i-th preset event of the known system, δ() represents the indicator function, and ∧ represents logical AND.

10. The analysis device according to claim 1, wherein The determining whether there is a known system that matches the new fire extinguishing and explosion suppression system based on the CAN frame data generated by the new fire extinguishing and explosion suppression system in all preset events and the CAN frame data generated by corresponding events in multiple known systems includes: Determine the frequency of use of each known system based on historical analysis records; Sort the usage frequency of each known system in order of size to obtain all sorted known systems; Match the CAN frame data generated by all preset events of the new fire extinguishing and explosion suppression system with the CAN frame data generated by the corresponding events of all known systems after sorting; After each known system is matched, it is determined whether the matching value corresponding to the known system is a complete match; if so, it is determined that there is a known system that matches the new fire extinguishing and explosion suppression system, and the known system is used as the known system that matches the new fire extinguishing and explosion suppression system.