Alarm signal parsing method, control apparatus, and storage medium
By building a data set and sending alarm instructions to the on-board system module, the problems of low efficiency and high error rate when processing a large number of alarm signals in the prior art are solved, and more efficient and accurate alarm signal processing is achieved.
Patent Information
- Application Number
- PCT/CN2024/137666
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-12-22
- Filing Date
- 2024-12-09
- Publication Date
- 2025-06-26
AI Technical Summary
When existing vehicle-mounted alarm systems handle large amounts of alarm signals, they are inefficient and prone to errors, making it difficult to ensure the accuracy and consistency of analysis.
By constructing a data set, receiving an alarm unit signal, and based on the signal and the data set used to judge the alarm signal triggering condition, an alarm command is sent to the corresponding vehicle-mounted system module. This dataset generates a dataset for parsing and processing alarm signals by obtaining alarm signal configuration files and signal definition files, performing validity verification, logic processing and serialization operations.
It improves the response speed and accuracy of the alarm system of new energy vehicles, reduces the risk of errors caused by manual encoding, and ensures the rapid transmission and precise execution of handling a large number of alarm signals.
Smart Images

Figure CN2024137666_26062025_PF_FP_ABST
Abstract
Description
Alarm signal analysis method, control device and storage medium
[0001] This application claims priority to Chinese patent application No. 202311786380.1 filed on December 22, 2023, with the invention name “Alarm signal analysis method, control device and storage medium”. The entire contents of the above Chinese patent application are incorporated into this application by reference. Technical Field
[0002] The present application relates to the field of in-vehicle alarm signal processing, and specifically provides an alarm signal analysis method, a control device, and a storage medium. Background Art
[0003] With the increasing popularity of new energy vehicles, the number of electronic components has increased significantly compared to older gasoline vehicles, leading to a rapid increase in the number of alarm types. Original gasoline vehicles, due to their limited electronic equipment, have fewer alarm types. However, with the increasing prevalence of various electronic devices in new energy vehicles, the number of alarm types has increased. More alarm types means an increase in alarm signals, and how to process these numerous alarm signals and ensure their accuracy has become an urgent problem.
[0004] In existing vehicle alarm system designs, alarm unit signals are typically processed through manual coding and parsing. This approach faces numerous challenges and limitations, including low parsing efficiency, the tendency for errors to occur due to human intervention, and difficulty ensuring consistent and accurate parsing.
[0005] Accordingly, the art needs a new alarm signal analysis method to solve the above problems. Summary of the Invention
[0006] In order to overcome the above-mentioned defects, the present application is proposed to provide a solution or at least partially solve the problem in the prior art that the accuracy of processing a large number of alarm signals cannot be guaranteed.
[0007] In a first aspect, the present application provides an alarm signal parsing method, the method comprising: receiving an alarm unit signal; sending an alarm instruction to a module of a corresponding vehicle system based on the alarm unit signal and a data set for judging the alarm signal triggering conditions and storing an alarm message corresponding to the alarm signal, wherein the module operates based on the alarm instruction.
[0008] In a technical solution of the above-mentioned alarm signal parsing method, the method for constructing the data set includes: obtaining an alarm signal configuration file and a corresponding signal definition file, wherein the alarm signal configuration file includes a first custom alarm signal set; performing validity verification on the first custom alarm signal in the alarm signal configuration file based on the alarm signal configuration file, the signal definition file and preset verification rules to obtain a second custom alarm signal set that meets the verification requirements; performing logical processing on the second custom alarm signal in the second custom alarm signal set to obtain a third custom alarm signal set; and performing serialization operations on the third custom alarm signal set to obtain a data set.
[0009] In a technical solution of the above-mentioned alarm signal analysis method, the second custom alarm signal includes at least one alarm trigger logic, wherein the alarm trigger logic includes at least one unit signal, and the unit signals within the alarm trigger logic are connected through and; "logically processing the second custom alarm signal in the second custom alarm signal set to obtain a third custom alarm signal set" includes: when the second custom alarm signal includes at least two alarm trigger logics; connecting different alarm trigger logics in the second custom alarm signal through or to obtain a third custom alarm signal.
[0010] In one technical solution of the above-mentioned alarm signal parsing method, "logically processing the second custom alarm signal in the second custom alarm signal set to obtain a third custom alarm signal set" includes: converting the logical symbols in the first alarm signal judgment information in the second custom alarm signal into unified logical characters to obtain the second alarm signal judgment information; judging whether there is an OR symbol in the second alarm signal judgment information; if there is an OR symbol in the second alarm signal judgment information, parsing the second alarm signal judgment information to obtain an AND / OR formula of the second alarm signal judgment information, wherein an AND part in the AND / OR formula is an alarm trigger logic.
[0011] In one technical solution of the above-mentioned alarm signal analysis method, it is determined whether there is an or symbol in the second alarm signal judgment information; if there is no or symbol in the second alarm signal judgment information, the second custom alarm signal corresponding to the second alarm signal judgment information is used as the third custom alarm signal.
[0012] In one technical solution of the above-mentioned alarm signal parsing method, the display area in the first custom alarm signal and the preset display area set are obtained; if the display area is not in the preset display area set, the first custom alarm signal corresponding to the display area fails to pass the validity verification; and / or, it is determined whether the pop-up window content in the display area in the first custom alarm signal is empty; if the pop-up window content is empty, the first custom alarm signal corresponding to the empty pop-up window content fails to pass the validity verification.
[0013] In one technical solution of the above-mentioned alarm signal parsing method, "serializing the third custom alarm signal set to obtain a data set" includes: obtaining a data layout file, wherein the data layout file specifies the offset of the field of the custom alarm signal; based on the data layout file, obtaining a data layout container; inputting the third custom alarm signal set into the data layout container according to the preset field offset rule to obtain a data set.
[0014] In one technical solution of the above alarm signal parsing method, before “serializing the third custom alarm signal set to obtain a data set”, the method further includes:
[0015] A communication protocol for obtaining a third custom alarm signal to alarm a module of the vehicle system is provided; and an alarm instruction corresponding to the third custom alarm signal is encapsulated based on the communication protocol, wherein the encapsulated alarm instruction meets the requirements of the communication protocol.
[0016] In a second aspect, a control device is provided, which includes a processor and a storage device, wherein the storage device is suitable for storing multiple computer programs, and the computer programs are suitable for being loaded and run by the processor to execute the alarm signal analysis method described in any one of the technical solutions of the above-mentioned alarm signal analysis method.
[0017] In a third aspect, a computer-readable storage medium is provided, which stores a plurality of computer programs, wherein the computer programs are suitable for being loaded and run by a processor to execute the alarm signal analysis method described in any one of the technical solutions of the above-mentioned alarm signal analysis method.
[0018] The above one or more technical solutions of this application have at least one or more of the following beneficial effects:
[0019] In implementing the technical solution of this application, the response speed and accuracy of the new energy vehicle alarm system are greatly improved through the use of data sets. Leveraging advanced data sets and automated processing strategies, this ensures the rapid delivery and precise execution of large numbers of alarm signals, while also reducing the risk of errors caused by manual coding. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The disclosure of this application will be more easily understood with reference to the accompanying drawings. Those skilled in the art will readily appreciate that these drawings are for illustrative purposes only and are not intended to limit the scope of protection of this application. Furthermore, similar numbers in the figures represent similar components, where:
[0021] FIG1 is a flow chart showing the main steps of a method for analyzing an alarm signal according to an embodiment of the present application;
[0022] FIG2 is a flowchart illustrating the secondary steps of an alarm signal analysis method according to an embodiment of the present application;
[0023] FIG3 is a schematic diagram of a process of processing an alarm unit signal of a vehicle according to an alarm signal parsing method of an embodiment of the present application;
[0024] FIG4 is a flowchart illustrating the secondary steps of an alarm signal analysis method according to an embodiment of the present application;
[0025] FIG5 is a flow chart of a method for constructing a data set in an alarm signal analysis method according to an embodiment of the present application;
[0026] FIG6 is a flowchart illustrating serialization and deserialization of an alarm signal parsing method according to an embodiment of the present application. DETAILED DESCRIPTION
[0027] Some embodiments of the present application are described below with reference to the accompanying drawings. Those skilled in the art should understand that these embodiments are only used to explain the technical principles of the present application and are not intended to limit the scope of protection of the present application.
[0028] In the description of this application, "module" and "processor" may include hardware, software or a combination of the two. A module may include hardware circuits, various suitable sensors, communication ports, memories, and may also include software parts, such as computer programs, or a combination of software and hardware. The processor may be a central processing unit, a microprocessor, an image processor, a digital signal processor or any other suitable processor. The processor has data and / or signal processing functions. The processor can be implemented in software, hardware or a combination of the two. Non-transitory computer-readable storage media include any suitable media that can store computer programs, such as magnetic disks, hard disks, optical disks, flash memory, read-only memory, random access memory, etc.
[0029] Referring to FIG1 , FIG1 is a flow chart showing the main steps of an alarm signal analysis method according to an embodiment of the present application. As shown in FIG1 and FIG5 , the alarm signal analysis method in the embodiment of the present application mainly includes the following steps A to B.
[0030] Step A: Receive an alarm unit signal.
[0031] In this embodiment, the alarm unit signal is based on data collected and transmitted by various sensors inside and outside the vehicle. This data is then combined with the alarm signal's judgment criteria and other alarm unit signals to determine whether an alarm should be triggered. In this embodiment, an alarm refers to a timely warning to the driver or triggering an automatic safety response from the system. The alarm unit signal serves as primary feedback on the vehicle's health and environmental awareness, ensuring safe vehicle operation.
[0032] In one embodiment, as shown in Figure 3, which is a schematic diagram describing the process flow after a vehicle receives a signal from an alarm unit, the vehicle is equipped with various sensors, such as accelerometers, temperature sensors, pressure sensors, and a battery central control unit, to monitor the vehicle status and external environment in real time. These sensors collect data, including vehicle speed, battery status, tire pressure, and surrounding traffic conditions. The vehicle system then uses this collected data to detect potential faults or abnormal conditions, such as battery charging failure or brake system failure.
[0033] If a part of the equipment is detected to be in a possible abnormal state, an alarm unit signal will be sent, which will then be received by the vehicle system control center.
[0034] It should be noted that the alarm unit signal only indicates a possible problem in a specific part of the vehicle, but is not directly equivalent to the final alarm signal. The triggering of the alarm signal requires comprehensive consideration of its preset judgment conditions, which sometimes involve only one alarm unit signal and sometimes involve multiple alarm unit signals. The final alarm signal will only be triggered when specific combination conditions are met. In this embodiment, the alarm unit signal represents an abnormal signal sent by a device in the vehicle. However, these alarm unit signals need to be further combined with the judgment conditions of the alarm signal and other alarm unit signals to determine whether an alarm is needed at this time.
[0035] To better understand the difference between an alarm unit signal and an alarm signal in this technology, let's use an example: Suppose a vehicle sensor detects an abnormal battery temperature and transmits an alarm unit signal, denoted as signal C. When this alarm unit signal is received by the vehicle system, the system checks the conditions corresponding to signal C to determine if an alarm signal is generated. For example, the system finds that signal C only meets the conditions for alarm signal E. The conditions for alarm signal E are as follows: When both signal C and signal D are present, alarm signal E is triggered. This corresponds to the "alarm signal conditions" mentioned above. The vehicle system then checks its memory to see if signal D is present. If so, alarm signal E is triggered and alarm unit signal C is written to the memory. If not, alarm unit signal C is written to the memory. In this example, the vehicle system's memory stores all alarm unit signals generated since the vehicle computer started operating.
[0036] In this embodiment, different alarm signals may have different signal types, with each alarm signal corresponding to one signal type. These signal types may include a warning light on the instrument panel or a pop-up warning message, an alarm sound or voice prompt, or vibrations transmitted through the steering wheel or seat. Of course, the signal type can be a single type, such as waking up the warning light on the instrument panel, or multiple types, such as waking up the warning light on the instrument panel and a pop-up warning message. In this embodiment, when the alarm unit signal is confirmed, the corresponding signal type is also confirmed.
[0037] In this embodiment, the alarm unit signal needs to be processed quickly to enable a faster response. Therefore, a method is provided for processing the alarm unit signal using a data set to enable a faster response. The response here refers to determining whether the alarm signal has been triggered and providing an alarm prompt after the alarm signal is triggered. The alarm prompt can be, for example, a faster voice announcement, a display on the instrument panel, or a central control display.
[0038] Step B: Based on the alarm unit signal and the data set for determining the alarm signal triggering condition and storing the alarm message corresponding to the alarm signal, the alarm instruction is sent to the module of the corresponding vehicle system, wherein the module operates based on the alarm instruction.
[0039] In this embodiment, the data set responds to the alarm unit signal and determines whether to perform alarm processing based on other alarm unit signals and the data set in the memory. The role of the data set is to determine the triggering conditions of the alarm signal and store the alarm message corresponding to the alarm signal.
[0040] In one embodiment, the method for constructing the data set is completed through steps S10-S40, as shown in FIG2 .
[0041] Step S10: Obtain an alarm signal configuration file and a corresponding signal definition file.
[0042] In this embodiment, the alarm signal configuration file includes signal content corresponding to the first custom alarm signal in the first custom alarm signal set, wherein the signal definition file includes signal data for verifying whether at least part of the configuration in the alarm signal configuration file is correct.
[0043] In one embodiment, the design and application of warning signal profiles is a key aspect of electric vehicle intelligent cockpit systems, allowing the system to handle a variety of complex vehicle conditions with flexibility and precision. By carefully defining and organizing the first custom warning signal and its component signals, the system can generate targeted responses when necessary, thereby improving vehicle safety and driver awareness.
[0044] The alarm signal configuration file includes all the signal contents of the first custom alarm signal. In this embodiment, the alarm signal configuration file includes all the first custom alarm signals, and the alarm signal configuration file defines the alarm signals that should be generated in various situations that the vehicle may encounter. Each of the first custom alarm signals includes at least one unit signal. That is, different first custom alarm signals are different. Some first custom alarm signals may have only one unit signal, and some first custom alarm signals have multiple unit signals. When the first custom alarm signal contains multiple unit signals, these unit signals do not exist in isolation. Instead, they interact with each other through preset logical relationships to determine when to trigger the overall alarm. For example, a first custom alarm signal may require that the conditions of "battery temperature is too high" (one unit signal) and "vehicle speed exceeds the safety limit" (another unit signal) are met at the same time before it will be triggered.
[0045] In this embodiment, the unit signals in the first custom alarm signal serve as the basis for determining the alarm signal. When the first custom alarm signal includes multiple unit signals, the unit signals are combined based on a preset logical relationship. In other words, the alarm is only triggered when the first custom alarm signal not only includes multiple unit signals but also requires that the unit signals satisfy the preset logical relationship.
[0046] In this embodiment, these unit signals can be CAN signals, PPS signals, SOMEIP signals, TCP Socket signals, etc. Unit signals include signal content. In this embodiment, the first customized alarm signal, whether corresponding to a single unit signal or multiple unit signals, only has one signal content. In this embodiment, the signal content of the first customized alarm signal includes signal ID, signal source, signal type, display text, audio information, and priority information. This information collectively forms the basis of the first customized alarm signal, ensuring that the vehicle can accurately issue an alarm when encountering specific situations.
[0047] In this embodiment, in addition to the first customized alarm signal, there is also the alarm signal mentioned in step A, but these two are different. The first customized alarm signal is the content of the signal configuration file. Because the first customized alarm signal may contain errors and cannot be executed, the first customized alarm signal at this time is not complete and is not yet a real alarm signal in use. However, from another perspective, the first customized alarm signal is the "predecessor" of the alarm signal.
[0048] The signal definition file is used to check whether the configuration in the alarm signal configuration file is correct. Since the alarm signal configuration file is a manually defined configuration file, that is, at least part of the first customized alarm signal is customized, errors may occur.
[0049] Step S20: Based on the alarm signal configuration file, the signal definition file and the preset verification rules, the validity of the first custom alarm signal in the alarm signal configuration file is verified to obtain a second custom alarm signal set that meets the verification requirements.
[0050] In this embodiment, validity verification is an important way to determine whether the custom alarm signal set in the alarm signal configuration file is incorrect.
[0051] In one embodiment, the validity of the first custom alarm signal is verified through steps S201-S202 to obtain a second custom alarm signal set, as follows:
[0052] Step S201: verifying the validity of a first user-defined alarm signal in the alarm signal configuration file based on the alarm signal configuration file and preset verification rules.
[0053] In this embodiment, the validity verification is divided into two parts: verification using preset verification rules and verification using a signal definition file.
[0054] In one embodiment, the validity verification is completed through steps S201 - 1 to S201 - 6 .
[0055] Step S201 - 1 : Acquire the display area in the first custom alarm signal and a preset display area set.
[0056] In this embodiment, the display area refers to the portion where an alarm is displayed if the first customized alarm signal is satisfied. This portion is a specific portion of the vehicle's internal user interface, such as an instrument screen.
[0057] In one embodiment, each customizable warning signal is designed to provide visual feedback to the driver in a specific display area. For example, if a warning signal relates to excessive speed, it may be designed to be displayed on the instrument panel. However, since the warning signal profile is manually configured, these components may be erroneous.
[0058] The preset display area set is a key parameter set defined in the vehicle system. It specifies all possible vehicle user interface areas that may be used to display warning signals. This includes, but is not limited to, the instrument panel, center console, and head-up display (HUD). If the display area corresponding to the first custom warning signal is not included in the preset display area set, it indicates that the display area defined in the warning signal configuration file is incorrect.
[0059] Step S201 - 2 : If the display area is not in the preset display area set, the first customized alarm signal corresponding to the display area fails the validity verification.
[0060] In one embodiment, the system determines whether the display area specified in the first custom alarm signal is included in the preset display area set. The system compares the display area specified in the first custom alarm signal with the display area set to verify whether it conforms to the predefined display area.
[0061] If the display area in the first customized alarm signal is not included in the preset display area set, the system will determine that the first customized alarm signal has failed the validity verification, which means that the corresponding settings in the alarm signal configuration file need to be modified or updated.
[0062] For example, if a first customized alarm signal is configured to be displayed on the central control screen, but the preset display area does not include the central control screen as a valid display area, the alarm signal will be deemed to have failed the validity verification. In this case, the first customized alarm signal will be discarded and no further processing will be performed.
[0063] Through this method, the verification of the first customized alarm signal is automatically completed, reducing the possibility of errors in use.
[0064] Step S201 - 3 : Determine whether the pop-up window content in the display area of the first custom alarm signal is empty.
[0065] In this embodiment, the pop-up window in the instrument is the most important, so this situation is described in detail.
[0066] Determine whether the display area in the first custom alarm signal is a pop-up window subcategory of the instrument category. If the display area in the first custom alarm signal is a pop-up window subcategory of the instrument category, determine whether the pop-up window content is empty.
[0067] In this embodiment, the major category refers to the main display area of the vehicle's internal user interface corresponding to the first customized alarm signal, such as the instrument panel, while the minor category refers to a specific type of display method, such as a pop-up window.
[0068] Step S201 - 4 : If the pop-up window content is empty, the first customized alarm signal corresponding to the empty pop-up window content fails the validity verification.
[0069] In one embodiment, the pop-up window content is empty, meaning that although the warning signal is configured to display as a pop-up window on the instrument panel, no specific information is actually configured. In this case, the system will determine that the first customized warning signal has failed the validity verification. Empty pop-up window content may prevent the driver from receiving critical safety information, thereby reducing the effectiveness of the warning system.
[0070] For example, consider a pop-up window designed to display a fuel-level warning on the instrument cluster screen. If the pop-up window is triggered but doesn't display any specific information about the low fuel level, the driver may not understand the significance of the warning and may be unable to take appropriate action. Therefore, the system needs to ensure that all pop-up warning signals contain complete and clear information.
[0071] Through these steps, the system can effectively and automatically filter out custom alarm signals that are improperly configured or have incomplete information, thereby improving the accuracy and reliability of the entire vehicle alarm system.
[0072] Step S201 - 5 : Determine whether the display area in the first custom alarm signal satisfies the requirement of including the instrument panel but not the central control panel, and the instrument panel only includes the warning light.
[0073] Step S201 - 6 : If the conditions are met, the corresponding first customized alarm signal fails the validity verification.
[0074] Step S202: Based on the alarm signal configuration file and the signal definition file, the validity of the first custom alarm signal in the alarm signal configuration file is verified.
[0075] In this embodiment, the signal definition file is provided by other departments and contains detailed information about the vehicle communication protocol and messages, such as message structure, unit signal type, message length, etc.
[0076] In one embodiment, the first custom alarm signal in the alarm signal configuration file is compared with the signal definition file to verify whether the parameters of each alarm signal (such as ID, length, unit signal, etc.) are consistent with the requirements in the definition file.
[0077] Check whether the first customized alarm signal in the alarm signal configuration file complies with the standard communication protocol and data structure of the vehicle system. If a mismatch is found, the first customized alarm signal is deemed invalid.
[0078] Finally, the first custom alarm signals that do not meet the validity requirements of the alarm signal configuration file are filtered out, and the remaining first custom alarm signals are combined into a set. In order to distinguish it from the first custom alarm signal set, it is named the second custom alarm signal set. In order to distinguish the custom alarm signals in the second custom alarm signal set from the first custom alarm signals, the custom alarm signals in the second custom alarm signal set are defined here as second custom alarm signals.
[0079] Preferably, in one embodiment of the present invention, the first custom alarm signal set in the alarm signal configuration file is converted into a class object array, wherein each class object corresponds to a first custom alarm signal, as follows:
[0080] The original data of the first customized alarm signal set in the alarm signal configuration file is converted into a specific programming language structure, such as a Java class or a C++ object.
[0081] Each first customized alarm signal is created as a class object. The class object contains all the signal contents related to the alarm signal. Similarly, the signal contents include signal ID, signal type, priority, display area, etc.
[0082] In this embodiment, when generating a class object, when encapsulating data, the original data will be converted into a data type that is more convenient for program processing. For example, a signal ID may be converted into an integer (int), while a signal type may be designed as an enumeration type (enum).
[0083] Preferably, in one embodiment of the present invention, first, the alarm signal configuration file and the signal definition file are integrated to generate a unified data structure, and then the data structure is converted into a class object array.
[0084] Step S30: performing logical processing on the second custom alarm signal in the second custom alarm signal set to obtain a third custom alarm signal set.
[0085] In this embodiment, the third custom alarm signals in the third custom alarm signal set are all
[0086] In one embodiment, the second custom alarm signal specifies an alarm triggering mechanism, specifically as follows:
[0087] The second custom alarm signal includes at least one unit signal. When the second custom alarm signal includes at least two unit signals, the unit signals interact with each other through a preset logical relationship to determine whether the second custom alarm signal is triggered. Specifically, due to the different logical relationships, there may be multiple triggering results. For example, a second custom alarm signal contains three unit signals, unit signal A, unit signal B, and unit signal C. The logical relationship between the unit signals in the second custom alarm signal is A and (B or C). It can be seen that the second custom alarm signal can be triggered when both the unit signals A and B or the unit signals A and C are present at the same time.
[0088] However, for triggering an alarm signal, a logical relationship such as A and (B or C) is not easy to judge. In other words, such judgment logic will cause the judgment time to be extended. Specifically, when the vehicle-mounted system receives unit signal B, it will look for the judgment logic. When it finds that the judgment logic such as A and (B or C) is met, the second custom alarm signal is triggered. However, at this time, the vehicle-mounted system needs to further analyze and think. If only unit signal A is found from the memory to meet the judgment condition, if only unit signal C is found from the memory to meet the judgment condition, or if both unit signals A and C are found in the memory signal to meet the judgment condition. Therefore, such a logical relationship is not easy to directly determine whether the alarm signal is triggered, but requires further analysis and thinking, which prolongs the judgment time.
[0089] Therefore, in this embodiment, by further modifying the alarm logic in the second custom alarm signal, that is, the logical relationship between the unit signals, a third custom alarm signal that can be directly judged is obtained.
[0090] In this embodiment, the second custom alarm signal includes at least one alarm trigger logic. When the second custom alarm signal includes two alarm trigger logics, the different alarm trigger logics in the second custom alarm signal are connected by OR, and the unit signals within each alarm trigger logic are connected by AND. The OR and AND here both use the meaning of mathematical logic.
[0091] If the second custom alarm signal uses a unified logical character during the logic processing, then the different alarm trigger logics in the second custom alarm signal are connected by OR, and the unit signals within each alarm trigger logic are connected by AND. This can be modified to connecting the different alarm trigger logics in the second custom alarm signal by OR.
[0092] In this embodiment, the concept of alarm trigger logic is described in detail. Taking A and (B or C) as an example, there are two alarm trigger logics in this second custom alarm signal, one of which satisfies A and B, and the other satisfies A and C. It can be seen that the alarm trigger logic includes at least one unit signal. Meeting these two conditions will trigger an alarm. Each of these conditions is a type of alarm trigger logic. However, the unit signals within the alarm trigger logic cannot be contained or connected, otherwise it is not an alarm trigger logic. That is to say, in this embodiment, the alarm trigger logic refers to the smallest unit with only a single trigger condition in the custom alarm signal. That is, the unit signals within each alarm trigger logic are connected through and.
[0093] It should be noted that in this embodiment, when the second custom alarm signal includes two alarm trigger logics, further logical processing is performed, but the second custom alarm signal here is equivalent to the first custom alarm signal. In other words, in another embodiment, the first custom alarm signal in the first custom alarm signal set can be directly logically processed to obtain the third custom alarm signal set.
[0094] In this embodiment, the third customized alarm signal set is obtained through steps S301-S304, as shown in FIG4 , specifically as follows:
[0095] Step S301: converting the logical symbols in the first alarm signal judgment information in the second custom alarm signal into unified logical characters to obtain second alarm signal judgment information.
[0096] In one embodiment, the signal content of the second customized alarm signal includes a signal ID. Preferably, in one embodiment, the signal ID not only represents a unique identifier of the signal but also includes the basic logical rules for alarm triggering. To ensure the consistency of the alarm logic and the accuracy of the system analysis, the logical symbols in these signal IDs need to be uniformly converted. In this embodiment, these signal IDs are referred to as the first alarm signal judgment information.
[0097] In this embodiment, the first alarm signal determination information needs to be converted into the second alarm signal determination information. Specifically, the conversion process involves converting all logical symbols into unified logical characters preset by the system, such as "AND," "OR," and "NOT." This conversion aims to eliminate potential confusion caused by differences in logical symbols, thereby enabling the system to quickly identify and execute logical operations.
[0098] For example, if a signal ID in the original second custom alarm signal specifies the logic rule "1AND(2OR3)", the system converts these symbols to a unified format, using "&" to represent "AND" and "|" to represent "OR". The converted rule becomes "1&(2|3)". Although the symbols are converted here, for clarity in the subsequent description, the example "1AND(2OR3)" is still used.
[0099] Step S302: Determine whether there is an OR symbol in the second alarm signal determination information.
[0100] In one embodiment, if the second alarm signal determination information contains an OR symbol, it indicates that there are at least two alarm triggering logics; if it does not contain an OR symbol, it indicates that there is only one alarm triggering logic.
[0101] Step S303: If the second alarm signal judgment information contains an OR symbol, the second alarm signal judgment information is parsed to obtain an AND / OR expression of the second alarm signal judgment information, wherein an AND part in the AND / OR expression is an alarm trigger logic.
[0102] In this embodiment, the logical structure in the expression is carefully analyzed and reconstructed to improve the efficiency and response speed of the vehicle-mounted system in processing the alarm signal.
[0103] In one embodiment, for example, the logical expression of the second alarm signal judgment information is "A and (B or C)," which means that if "A" is true and at least one of "B" or "C" is true, the alarm is triggered. Although this expression is logically correct, in actual implementation, such nested conditions may cause processing delays because the system must wait for the status of "B" or "C" to be confirmed before completing the evaluation of the entire logical expression.
[0104] To optimize processing speed, step S303 converts the complex logical expression "A and (B or C)" into an AND / OR expression consisting of multiple independent AND logical relationships, "(A and B) or (A and C)." This converted logical form reduces the level of logical nesting that the system must handle at runtime because it breaks the condition down into a series of simple logical relationships that can be evaluated in parallel. The system can evaluate "A and B" and "A and C" independently without waiting for each condition to be determined, thereby speeding up logical judgment.
[0105] Furthermore, this conversion conforms to the distributive law of digital logic, ensuring that the conversion of logical expressions maintains the integrity of the original logic while also meeting the vehicle system's need for rapid logical judgment. This allows the system to quickly update the alarm status based on changes in the "A" state, even when the states of the "B" and "C" signals are not yet fully determined, ensuring a timely response.
[0106] In this embodiment, an AND-OR form is described in detail. This is a compound logical expression in which several inputs are first combined using an AND operation (AND), and then the results are combined using an OR operation (OR). For example, the expression (A and B) or (C and D) is an AND-OR form because it first performs an AND operation on the inputs and then an OR operation on the results.
[0107] The AND / OR expression can be divided into two main parts:
[0108] First, the AND part: This is the first part of an AND / OR expression, consisting of one or more AND operations. In this part, two or more inputs are combined using an AND operation. In circuit design, this corresponds to one or more AND gates, each processing its own input. For example, in the expression (A and B) or (C and D), (A and B) and (C and D) are the AND parts.
[0109] The other part is the OR part: This is the second part of the AND / OR expression, and it involves an OR operation. In this part, the outputs of the AND parts are combined. This is usually done using an OR gate, whose inputs are the outputs of the previous AND parts. Continuing with the previous example, the OR in (A and B) or (C and D) is the OR part, which combines the results of the two AND operations.
[0110] In this embodiment, the resulting third custom alarm signal includes an AND / OR expression, where an AND portion in the AND / OR expression represents a piece of alarm trigger logic. For example, assuming the alarm signal determination information in one of the third custom alarm signals is (A and B) or (C and D) or E, it can be seen that this third custom alarm signal contains three pieces of alarm trigger logic, which are combined using an OR operator.
[0111] Step S304: If there is no "or" symbol in the second alarm signal determination information, the second customized alarm signal corresponding to the second alarm signal determination information is used as the third customized alarm signal.
[0112] In this embodiment, if there is no "or" symbol in the second alarm signal determination information, it means there is only one alarm triggering logic, so it can be directly processed at this time.
[0113] Step S40: performing a serialization operation on the third user-defined alarm signal set to obtain a data set.
[0114] In one embodiment, as shown in FIG6 , the serialized signal set can complete the initialization operation more quickly when the vehicle system is started.
[0115] In this embodiment, steps S401-S403 are further included to obtain a data set, as follows:
[0116] Step S401: Obtain a data layout file.
[0117] In this embodiment, the offset of the field of the custom alarm signal is specified in the data layout file.
[0118] In one implementation, a data layout file is a component that defines the specific organization of a custom alarm signal's data structure. This file specifies the offset of each field, i.e., the exact location of the field within the data structure. Obtaining the data layout file is the first step in the serialization process.
[0119] In this embodiment, the field offset information in the data layout file is crucial to ensure that the data is correctly organized and processed during serialization. These offsets define how to map the various components of the alarm signal to specific locations in the binary data stream.
[0120] For example, a third customized alarm signal includes:
[0121] Signal ID: 101
[0122] Priority: 2
[0123] Description: "Forward Collision Warning"
[0124] Status: true
[0125] Also assume that the data layout file specifies:
[0126] The offset of the signal ID is 0 to 4 bytes.
[0127] The priority offset is 5 to 6 bytes.
[0128] The offsets described are from 7 to 30 bytes.
[0129] The state is at offset 31 bytes.
[0130] It can be seen that the data layout file establishes rules and conditions for the serialization of the third custom alarm signal.
[0131] In this embodiment, the system first needs to access and read this file. This may involve loading the file from the file system or database, or retrieving the latest layout definition from a remote server.
[0132] By obtaining and correctly parsing the data layout file, the system can prepare for the serialization process and ensure the integrity and accuracy of the data.
[0133] Preferably, in one embodiment, the data layout file is further compiled. The main purpose of compiling the data layout file is to convert the file into a code in a specific programming language so that the code becomes a part of the computer program that can be actually operated and executed.
[0134] Specifically, data layout files can be processed using appropriate command-line tools or programming libraries. These tools or libraries are specifically designed to read layout files and convert their contents into executable code. The code generated by the compilation process includes auxiliary functions and classes for serialization and deserialization. These code snippets instruct the program on how to convert alarm signal data into binary format and how to restore it back to the original data, based on the offsets and data types defined in the layout file.
[0135] Step S402: Obtain a data layout container based on the data layout file.
[0136] In this embodiment, the data layout container is a serialization object. This container is a structure defined according to the data layout file and is used to carry and organize data to be serialized.
[0137] In one embodiment, the serialized object is created based on the provisions in the data layout file using an interface provided by the programming language, which means that each field of the third custom alarm signal will be arranged in the serialized object according to its offset and type specified in the data layout file.
[0138] Taking the example in step S401 as an example, assuming that the compiled data layout file specifies the specific location and type of each field, such as the signal ID in bytes 0 to 4, the priority in bytes 5 to 6, etc., then the program will use this information to create a serialized object.
[0139] For the signal ID field, the program will reserve space between bytes 0 and 4 in the serialized object to store the binary representation of the signal ID. Similarly, the program will allocate appropriate locations and space for fields such as priority, description, and status in the serialized object.
[0140] Step S403: input the third user-defined alarm signal set into the data layout container according to the preset field offset rule to obtain a data set.
[0141] In one embodiment, the data in the third custom alarm signal set is input into a data layout container (i.e., a serialized object) according to predefined field offset rules. Using the interface provided by the programming language, the program sets specific values for each field in the serialized object. These values are determined based on the actual alarm signal data.
[0142] Once the serialized object is correctly populated, it is converted to binary format. This process is done using the serialization function provided by the programming language. During serialization, the data is flattened according to the instructions of the layout file, which means that the data is converted from its original structure to a one-dimensional binary sequence.
[0143] Taking the example in step S401 as an example, when the program executes step S403, it operates as follows:
[0144] Place signal ID 101 into byte positions 0 through 4 of the serialized object.
[0145] Put priority 2 in byte positions 5 to 6.
[0146] Place the description "Forward Collision Warning" in bytes 7 to 30.
[0147] Put the status true into byte position 31.
[0148] The program then calls the serialization function to convert the populated serialized object into a string of binary data. This set of data represents the complete information of the alarm signal, ready to be used or transmitted by other parts of the system.
[0149] Through this step, the alarm signal data is effectively converted into a binary format that is easy to process and transmit. This part serializes the third custom alarm signal set, which improves the initialization speed of the data set when the vehicle system starts the data set.
[0150] Each module in the vehicle system deserializes the serialized binary alarm signal dataset. This deserialization process first receives the binary alarm signal dataset and processes it as input. Next, using the deserialization functions provided in the vehicle system programming language, the binary alarm signal dataset is parsed into data objects that can be recognized and processed by the vehicle system module. This parsing process follows the rules defined in the data layout file to ensure that each data field is correctly decoded and restored to its original state.
[0151] For example, suppose the vehicle system receives a binary alarm signal dataset containing a series of alarm signal information. The system first obtains the pointer and length information of this data and then uses the deserialization function to parse it. During the parsing process, the system correctly recovers each alarm signal's ID, priority, description, and status fields based on a predefined data layout file.
[0152] The deserialized data objects are then verified for integrity and validity to ensure data accuracy and reliability. This verification may involve checking the data's consistency, completeness, and logical correctness. Once verified, the alarm signal data can be used by relevant modules in the vehicle system, such as triggering appropriate alarms or displaying information.
[0153] This deserialization process enables the vehicle system to efficiently process alarm signals from different modules, ensuring real-time and accuracy, while also reducing the resources required for data transmission and storage, improving the overall efficiency and performance of the system.
[0154] Preferably, in this embodiment, the third custom alarm signal set is first converted into text data, and then the third custom alarm signal set converted into text data is serialized to obtain a data set.
[0155] Specifically, in this embodiment, data in text format is easier for humans to read and understand, and is also convenient for subsequent analysis and processing. At the same time, text data formats generally have high compatibility and can be read by a variety of software and systems.
[0156] The system converts data in the third custom alarm signal set, such as signal ID, priority, description, status, etc., from its raw or binary format to text format. The conversion process involves formatting the value of the data field into a readable string, for example, numbers and Boolean values are converted to their string representations.
[0157] The third customized alarm signal set, converted into text format, can be exported to the cloud or stored on disk. This storage not only facilitates data backup but also historical data analysis and remote access. The storage of text data makes this information easily accessible and shareable when needed, supporting data-driven decision-making.
[0158] By converting and storing the third customized alarm signal set into text data, this technology enables efficient data management and application, providing robust data support for vehicle safety systems. The accessibility and readability of this data are crucial for maintaining and optimizing vehicle systems, especially when rapid problem diagnosis and resolution are required. Furthermore, text data stored in the cloud or on disk can be used for long-term data analysis and system performance evaluation.
[0159] In this embodiment, preferably, steps S501 - S502 are further included, wherein steps S501 - S502 are executed before step S40 and before the third customized alarm signal set is converted into text data.
[0160] Step S501: obtaining a third custom alarm signal and sending an alarm to a module of the vehicle system via a communication protocol.
[0161] In this embodiment, the communication method for alarming the module corresponding to the third custom alarm signal is based on the actual triggering of the third custom alarm signal during use. After the third custom alarm signal is triggered, an alarm instruction will be sent to the module in the car to alarm.
[0162] In one embodiment, different third customized alarm signals will alert different in-vehicle modules, each with its own unique alarm command. In this embodiment, different modules within the vehicle may utilize different communication protocols, such as CAN, LIN, and FlexRay. Correctly matching alarm signals with the communication protocols of each module is key to ensuring accurate and effective information transmission. Correctly identifying and applying these protocols ensures effective transmission of alarm signals between different modules within the vehicle.
[0163] First, the system determines which modules within the vehicle the third customized warning signal should be transmitted to. For example, some warning signals may need to be transmitted to the driver's display interface, while others may need to be transmitted to the engine management system. For each target module, the system identifies and matches the corresponding communication protocol. For example, the driver's display interface may use the LIN protocol, while the engine management system may use the CAN protocol. The system then configures the warning signal transmission method based on the specific protocol requirements of these modules.
[0164] In this embodiment, a specific example is given, where the modules for the third customized alarm signal alarm include: an instrument panel (using the LIN protocol) and a central control unit (using the CAN protocol).
[0165] In this case, the system sends the warning command in a format suitable for LIN and CAN protocols respectively. This ensures that the instrument cluster can receive and display the warning, and the central control unit can take the necessary response accordingly.
[0166] In this embodiment, by combining alarm signals with communication protocols within the vehicle's modules, the system ensures that each module receives critical alarm instructions promptly and accurately. This not only improves the overall efficiency and responsiveness of the vehicle system, but also enhances vehicle safety in the face of potential dangers.
[0167] Step S502: Encapsulating the alarm instruction corresponding to the third custom alarm signal based on the communication protocol, so that the encapsulated alarm instruction meets the requirements of the communication protocol.
[0168] In one embodiment, the alarm signal content is encapsulated according to a determined communication protocol to ensure that its format and structure meet the requirements of the specific protocol, thereby ensuring that the signal can be correctly received and parsed by the target module.
[0169] For example, in this embodiment, the content to be encapsulated may be the entire signal content, or only a part thereof, such as only encapsulating the display area, display text, and audio information.
[0170] In this embodiment, these contents are encapsulated in order to send alarm instructions to corresponding modules more quickly during use.
[0171] It should be pointed out that although the various steps in the above embodiments are described in a specific order, those skilled in the art will understand that in order to achieve the effect of the present application, different steps do not have to be performed in such an order. They can be performed simultaneously (in parallel) or in other orders. These changes are within the scope of protection of the present application.
[0172] It will be understood by those skilled in the art that all or part of the processes in the method for implementing the above embodiment of the present application can also be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, it can implement the steps of the above-mentioned various method embodiments. Among them, the computer program includes a computer program, and the computer program can be in source code form, object code form, executable file or some intermediate form. The computer-readable storage medium may include: any entity or device, medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory, random access memory, electric carrier signal, telecommunication signal and software distribution medium, etc. that can carry a computer program. It should be noted that the content contained in the computer-readable storage medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable storage media do not include electric carrier signals and telecommunication signals.
[0173] Furthermore, the present application also provides a control device. In a control device embodiment according to the present application, the control device includes a processor and a storage device. The storage device can be configured to store a program for executing the alarm signal parsing method of the above-mentioned method embodiment, and the processor can be configured to execute the program in the storage device, which includes but is not limited to a program for executing the alarm signal parsing method of the above-mentioned method embodiment. For ease of explanation, only the parts related to the embodiment of the present application are shown. For specific technical details not disclosed, please refer to the method part of the embodiment of the present application. The control device can be a control device device formed by various electronic devices.
[0174] Furthermore, it should be understood that since the configuration of each module is merely for the purpose of illustrating the functional units of the apparatus of the present application, the physical devices corresponding to these modules may be the processor itself, or a portion of the software in the processor, a portion of the hardware, or a combination of software and hardware. Therefore, the number of modules in the figure is merely illustrative.
[0175] Those skilled in the art will appreciate that the various modules in the device can be adaptively split or merged. Such splitting or merging of specific modules will not cause the technical solution to deviate from the principles of this application. Therefore, the technical solutions after splitting or merging will fall within the scope of protection of this application.
[0176] The relevant user personal information that may be involved in the various embodiments of this application is strictly in accordance with the requirements of laws and regulations, following the principles of legality, legitimacy and necessity, and based on the reasonable purposes of business scenarios, to process the personal information that users actively provide during the use of products / services or generated due to the use of products / services, as well as the personal information obtained with the user's authorization.
[0177] The personal information processed by the Applicant will vary depending on the specific product / service scenario and will be based on the specific scenario in which the user uses the product / service. This may involve the user's account information, device information, driving information, vehicle information, or other related information. The Applicant will treat the user's personal information and its processing with a high degree of diligence.
[0178] The Applicant attaches great importance to the security of user personal information and has taken reasonable and feasible security measures that comply with industry standards to protect user information and prevent personal information from being accessed, disclosed, used, modified, damaged or lost without authorization.
[0179] Thus far, the technical solutions of the present application have been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it is readily understood by those skilled in the art that the scope of protection of the present application is obviously not limited to these specific embodiments. Without departing from the principles of the present application, those skilled in the art may make equivalent changes or substitutions to the relevant technical features, and the technical solutions after such changes or substitutions will fall within the scope of protection of the present application.
Claims
1. A method for analyzing an alarm signal, characterized in that: include: receiving an alarm unit signal; Based on the alarm unit signal and a data set for determining the alarm signal triggering condition and storing the alarm message corresponding to the alarm signal, an alarm instruction is sent to a module of the corresponding vehicle system, wherein the module operates based on the alarm instruction.
2. The alarm signal analysis method according to claim 1, characterized in that: The method for constructing the dataset includes: Acquire an alarm signal configuration file and a corresponding signal definition file, wherein the alarm signal configuration file includes a first custom alarm signal set; Based on the alarm signal configuration file, the signal definition file and a preset verification rule, the validity of the first custom alarm signal in the alarm signal configuration file is verified to obtain a second custom alarm signal set that satisfies the verification; Performing logic processing on the second custom alarm signal in the second custom alarm signal set to obtain a third custom alarm signal set; The third user-defined alarm signal set is subjected to a serialization operation to obtain the data set.
3. The alarm signal analysis method according to claim 2, characterized in that: The second custom alarm signal includes at least one alarm triggering logic, wherein the alarm triggering logic includes at least one unit signal, and the unit signals within the alarm triggering logic are connected through AND; “Performing logical processing on the second custom alarm signal in the second custom alarm signal set to obtain a third custom alarm signal set” includes: When the second custom alarm signal includes at least two alarm triggering logics, different alarm triggering logics in the second custom alarm signal are connected through OR to obtain the third custom alarm signal.
4. The alarm signal analysis method according to claim 2 or 3, characterized in that: “Performing logical processing on the second custom alarm signal in the second custom alarm signal set to obtain a third custom alarm signal set” includes: Converting the logical symbols in the first alarm signal judgment information in the second custom alarm signal into unified logical characters to obtain the second alarm signal judgment information; Determine whether the second alarm signal determination information contains an or symbol; If the second alarm signal determination information contains an OR symbol, the second alarm signal determination information is parsed to obtain an AND-OR formula of the second alarm signal determination information, wherein an AND part in the AND-OR formula is an alarm trigger logic.
5. The alarm signal analysis method according to claim 4, characterized in that: Determine whether there is an or symbol in the second alarm signal determination information; If there is no or symbol in the second alarm signal determination information, the second custom alarm signal corresponding to the second alarm signal determination information is used as the third custom alarm signal.
6. The alarm signal analysis method according to claim 2 or 3, characterized in that: "Verifying the validity of the first custom alarm signal in the alarm signal configuration file based on the alarm signal configuration file, the signal definition file and the preset verification rules" includes: Obtaining a display area in a first custom alarm signal and a preset display area set; If the display area is not in the preset display area set, the first custom alarm signal corresponding to the display area fails to pass the validity verification; and / or, Determine whether the pop-up window content in the display area of the first custom alarm signal is empty; If the pop-up window content is empty, the first custom alarm signal corresponding to the empty pop-up window content fails the validity verification.
7. The alarm signal analysis method according to claim 2, characterized in that: “Performing a serialization operation on the third custom alarm signal set to obtain the data set” includes: Obtain a data layout file, wherein the data layout file specifies the offset of the field of the custom alarm signal; Based on the data layout file, a data layout container is obtained; The third customized alarm signal set is input into the data layout container according to a preset field offset rule to obtain a data set.
8. The alarm signal analysis method according to claim 2, characterized in that: Before "performing a serialization operation on the third custom alarm signal set to obtain the data set", the method further includes: A communication protocol for obtaining a third custom alarm signal to send an alarm to a module of the vehicle system; The alarm instruction corresponding to the third custom alarm signal is encapsulated based on the communication protocol, and the encapsulated alarm instruction meets the requirements of the communication protocol.
9. A control device, comprising a processor and a storage device, wherein the storage device is suitable for storing a plurality of computer programs, characterized in that: The computer program is suitable for being loaded and run by the processor to execute the alarm signal analysis method according to any one of claims 1 to 8.
10. A computer-readable storage medium storing a plurality of computer programs, characterized in that: The computer program is suitable for being loaded and run by a processor to execute the alarm signal analysis method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Linkage alarm configuration method, device and equipment and readable storage medium
CN114419838A
Alarm method and system, storage medium and electronic equipment
CN115941848A
Method and device for customizing system alarm and related product
CN117452867A
Alarm signal analysis method, control device and storage medium
CN117809432A
Vehicle condition monitoring and reporting
US20130176148A1
Cited By
Data tamper-proof transmission method of network information security system
CN121664569A