Alarm pop-up generation method, device, equipment and storage medium

By combining pop-up management plugins and generation tools, and using a unified data format to automatically associate alarm types and resource data, the problems of high resource consumption and maintenance difficulty in existing vehicle alarm systems are solved, achieving efficient and flexible alarm pop-up generation and improving system performance.

CN118796183BActive Publication Date: 2026-03-20CHONGQING SELIS PHOENIX INTELLIGENT INNOVATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-18
Publication Date
2026-03-20

AI Technical Summary

Technical Problem

Existing vehicle alarm systems require separate coding and configuration of alarm nodes for each alarm type, resulting in high system resource consumption, high maintenance difficulty, poor flexibility, and impact on system performance and operating efficiency.

Method used

By combining pop-up management plugins and pop-up generation tools, alarm configuration data and resource data are configured using a unified data format. Alarm types, attribute data and resource data are automatically associated to generate alarm pop-ups, avoiding separate coding and repetitive configuration, and reducing memory usage.

Benefits of technology

It enables efficient generation of alarm pop-ups, reduces development and maintenance workload, improves system performance and flexibility, can quickly respond to frequently changing alarm types, and reduces memory usage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118796183B_ABST
    Figure CN118796183B_ABST
Patent Text Reader

Abstract

The application relates to a pop-up window generation method, device and equipment and a storage medium. The method comprises the following steps: a pop-up window management plug-in obtains alarm attribute data corresponding to an alarm type by analyzing alarm configuration data corresponding to the alarm type; the alarm attribute data corresponding to the alarm type is associated with an alarm variable of a preset pop-up window generation tool, and alarm resource data corresponding to the alarm type is associated with the alarm variable; a trigger is newly created in the pop-up window generation tool, the trigger is associated with the alarm type, and the trigger generates an alarm pop-up window corresponding to the alarm type according to the alarm attribute data and the alarm resource data corresponding to the alarm type. According to the application, it is not necessary to encode and configure alarm nodes for each alarm type, the alarm type, the alarm attribute data, the alarm resource data and the alarm variable are associated by the pop-up window management plug-in, the alarm resource data is obtained by the pop-up window generation tool as required, the required alarm pop-up window can be generated, the memory occupancy rate is reduced, and the system performance is effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of automobiles, and in particular to a method and device for generating a warning pop-up window, and a storage medium. BACKGROUND

[0002] With the rapid development of new energy automobile technology, driving safety is attracting more and more attention from users, and a vehicle warning system plays an important role in vehicle safety. However, the current vehicle warning system needs to code and configure a warning node for each warning type, which results in high system resource occupancy and poor performance of the vehicle warning system.

[0003] Specifically, the real-time performance of the vehicle warning system and the user experience are increasingly demanding, which requires the vehicle warning system to not only run efficiently, but also be flexible and easy to maintain. However, in the vehicle warning system, each time a warning is added, the developer needs to manually code a warning node and manually configure the text, icons, styles and other data corresponding to the warning node. Moreover, when maintaining the warning node, the developer needs to manually configure it separately. If multiple warning nodes need to be maintained at the same time, the developer needs to spend a lot of time on manual configuration, which is time-consuming and difficult to maintain. Moreover, the system is complex, the database system is large, and the system running efficiency is ultimately affected. In addition, each warning node corresponds to a separate program code, which exists as a separate data module in the vehicle warning system, and the warning flexibility is poor. Moreover, each warning node needs to occupy a certain amount of system resources, and for a resource-limited embedded system, if there are too many warning nodes, the running efficiency of the vehicle warning system will be affected, and even a performance bottleneck will occur. SUMMARY

[0004] The present application provides a method and device for generating a warning pop-up window and a storage medium to solve the problem that the current vehicle warning system needs to configure a warning node for each warning type, which makes it difficult for the vehicle warning system to meet the system quality requirements.

[0005] To solve the above technical problems, the technical solution of the present application is as follows:

[0006] The embodiment of the application provides a method for generating an alarm pop-up window, in the step of executing by a pop-up window management plug-in, comprising: obtaining alarm configuration data and alarm resource data corresponding to an alarm type which are configured in advance; obtaining alarm attribute data corresponding to the alarm type by analyzing the alarm configuration data corresponding to the alarm type; associating the alarm attribute data corresponding to the alarm type with alarm variables of a preset pop-up window generation tool, and associating the alarm attribute data corresponding to the alarm type with alarm resource data corresponding to the alarm type; creating a trigger in the pop-up window generation tool, and associating the trigger with the alarm type, so that after the trigger is triggered, the trigger generates an alarm pop-up window corresponding to the alarm type according to the alarm attribute data and the alarm resource data corresponding to the alarm type.

[0007] The alarm attribute data corresponding to the alarm type comprises: alarm type coding corresponding to the alarm type; the step of associating the trigger with the alarm type comprises: assigning the alarm type coding corresponding to the alarm type to the trigger; if the alarm type coding corresponding to the alarm type is a first preset value, the trigger is set to a hidden type; otherwise, the trigger is set to a display type.

[0008] The alarm attribute data corresponding to the alarm type comprises: alarm type coding corresponding to the alarm type; the step of associating the trigger with the alarm type comprises: assigning the alarm type coding corresponding to the alarm type to the trigger; if the alarm type coding corresponding to the alarm type is a first preset value, the trigger is set to a hidden type; otherwise, the trigger is set to a display type.

[0009] The method further comprises: after the trigger is created, opening a trigger configuration interface corresponding to the trigger, and controlling the trigger configuration interface corresponding to the trigger to be unobstructed in a display.

[0010] The embodiment of the application further provides a method for generating an alarm pop-up window, wherein the steps performed by a pop-up window generating tool include: determining an alarm type reported by a target vehicle after the target vehicle is powered on; triggering a trigger corresponding to the alarm type; wherein the trigger is that, after alarm attribute data corresponding to the alarm type is associated with alarm resource data corresponding to the alarm type and an alarm variable in the pop-up window generating tool by a preset pop-up window management plug-in, the alarm type is created and associated in the pop-up window generating tool; based on the association relationship between the alarm attribute data corresponding to the alarm type, the alarm resource data corresponding to the alarm type and the alarm variable in the pop-up window generating tool, the trigger acquires the alarm attribute data and the alarm resource data corresponding to the alarm type through the alarm variable, and generates an alarm pop-up window corresponding to the alarm type according to the alarm attribute data and the alarm resource data corresponding to the alarm type.

[0011] The alarm attribute data corresponding to the alarm type includes state machine encoding corresponding to the alarm type; the alarm resource data corresponding to the alarm type includes text resource data corresponding to the text encoding and icon resource data corresponding to the icon encoding; the text resource data includes text data corresponding to a plurality of languages respectively; the icon resource data includes icon data corresponding to a plurality of states respectively; the generation of the alarm pop-up window corresponding to the alarm type according to the alarm attribute data and the alarm resource data corresponding to the alarm type includes: acquiring a default language of the target vehicle and environment data of the target vehicle; acquiring text data corresponding to the default language from the text resource data; acquiring icon data corresponding to a state corresponding to the environment data from the icon resource data; calling a state machine corresponding to the state machine encoding and opening a preset human-computer interface, so that the state machine loads the text data and the icon data into the human-computer interface according to a display style corresponding to the state machine, to form the alarm pop-up window corresponding to the alarm type.

[0012] After the generation of the alarm pop-up window corresponding to the alarm type according to the alarm attribute data and the alarm resource data corresponding to the alarm type, the method further includes: if the trigger is of a hidden type, hiding the alarm pop-up window; if the trigger is of a display type, displaying the alarm pop-up window.

[0013] This application embodiment also provides an alarm pop-up generation device, comprising: when the alarm pop-up generation device is set in a pop-up management plugin, the device includes: an acquisition module, used to acquire alarm configuration data and alarm resource data pre-configured for alarm types; a parsing module, used to obtain alarm attribute data corresponding to the alarm type by parsing the alarm configuration data corresponding to the alarm type; an association module, used to associate the alarm attribute data corresponding to the alarm type with alarm variables of a preset pop-up generation tool, and associate the alarm attribute data corresponding to the alarm type with the alarm resource data corresponding to the alarm type; and a creation module, used to create a new trigger in the pop-up generation tool, and associate the trigger with the alarm type, so that after the trigger is triggered, the trigger generates an alarm pop-up corresponding to the alarm type according to the alarm attribute data and alarm resource data corresponding to the alarm type; the alarm pop-up generation device... The settings for the pop-up generation tool include: a determination module, used to determine the alarm type reported by the target vehicle after the target vehicle is powered on and started; a trigger module, used to trigger the trigger corresponding to the alarm type; wherein, the trigger is: a preset pop-up management plugin that associates the alarm attribute data corresponding to the alarm type with the alarm resource data corresponding to the alarm type and the alarm variables in the pop-up generation tool, and then creates and associates the alarm type in the pop-up generation tool; a generation module, used to, based on the association relationship between the alarm attribute data corresponding to the alarm type, the alarm resource data corresponding to the alarm type, and the alarm variables in the pop-up generation tool, cause the trigger to obtain the alarm attribute data and alarm resource data corresponding to the alarm type through the alarm variables, and generate the alarm pop-up corresponding to the alarm type according to the alarm attribute data and alarm resource data corresponding to the alarm type.

[0014] This application embodiment also provides an alarm pop-up generation device, including: at least one communication interface; at least one bus connected to the at least one communication interface; at least one processor connected to the at least one bus; and at least one memory connected to the at least one bus, wherein the processor is configured to: execute an alarm pop-up generation program stored in the memory to implement any of the above-mentioned alarm pop-up generation methods executed in a pop-up management plugin, or to implement any of the above-mentioned alarm pop-up generation methods executed in a pop-up generation tool.

[0015] This application also provides a computer-readable storage medium storing computer-executable instructions, which are executed to implement any of the above-mentioned methods for generating alarm pop-ups executed in a pop-up management plugin, or to implement any of the above-mentioned methods for generating alarm pop-ups executed in a pop-up generation tool.

[0016] The above technical solutions provided by the embodiments of the present application have the following advantages compared with the prior art:

[0017] The embodiments of the present application obtain, on the side of the pop-up window management plug-in, alarm configuration data and alarm resource data that are configured in advance for an alarm type; obtain alarm attribute data corresponding to the alarm type by analyzing the alarm configuration data corresponding to the alarm type; associate the alarm attribute data corresponding to the alarm type with an alarm variable of a preset pop-up window generation tool, and associate the alarm resource data corresponding to the alarm type with the alarm variable; newly create a trigger in the pop-up window generation tool and associate the trigger with the alarm type; on the side of the pop-up window generation tool, determine an alarm type reported by a target vehicle after the target vehicle is powered on; trigger the trigger corresponding to the alarm type; the trigger obtains the alarm attribute data and the alarm resource data corresponding to the alarm type through the alarm variable by using the association relationship established by the pop-up window management plug-in, and generates an alarm pop-up window corresponding to the alarm type according to the alarm attribute data and the alarm resource data corresponding to the alarm type.

[0018] The embodiments of the present application provide a standardized alarm pop-up window generation process by combining the pop-up window management plug-in and the pop-up window generation tool. In this process, it is not necessary to encode and configure alarm nodes for each alarm type. The pop-up window management plug-in uses a unified data format to centrally configure and dynamically analyze alarm attribute data corresponding to an alarm type, automatically associates the alarm type, the alarm attribute data, the alarm resource data, and an alarm variable in the pop-up window generation tool, and the pop-up window generation tool uses these association relationships as a bridge to obtain alarm resource data as needed to generate the required alarm pop-up window. Compared with a separate alarm node, the embodiments of the present application reduce the memory occupancy rate, can ensure efficient operation of the system, and effectively improve the system performance. BRIEF DESCRIPTION OF DRAWINGS

[0019] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the accompanying drawings needed to be used in the embodiments or the prior art description will be briefly introduced. Obviously, those skilled in the art can obtain other drawings from these drawings without any creative effort.

[0021] One or more embodiments are illustrated by way of example in the drawings and described herein in connection with the appended drawings, which are incorporated herein by reference. The drawings, which are not necessarily to scale, depict one or more embodiments and are not intended to limit the scope of the application. In the drawings, like reference numbers indicate similar elements or features throughout the several views, unless otherwise indicated.

[0022] Figure 1 A flow chart of a method for generating an alarm pop-up window performed by a pop-up window management plug-in according to an embodiment of the present application;

[0023] Figure 2 A flow chart of a method for generating an alarm pop-up window performed by a pop-up window generation tool according to an embodiment of the present application;

[0024] Figure 3 A schematic diagram of a state machine maintained by a Kanzi according to an embodiment of the present application;

[0025] Figure 4 A structural diagram of a device for generating an alarm pop-up window provided in a pop-up window management plug-in according to an embodiment of the present application;

[0026] Figure 5 A structural diagram of a device for generating an alarm pop-up window provided in a pop-up window generation tool according to an embodiment of the present application;

[0027] Figure 6 A structural diagram of a device for generating an alarm pop-up window according to an embodiment of the present application. DETAILED DESCRIPTION

[0028] In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by a person of ordinary skill in the art without creative work fall within the protection scope of the present application.

[0029] The following disclosure provides many different embodiments, or examples, for implementing different structures of the present application. For the purpose of simplification, the components and arrangements of the specific examples are described in the following. Of course, they are only examples and the purpose is not to limit the present application. In addition, the reference numbers and / or letters can be repeated in different examples. Such repetition is for the purpose of simplification and clarity, and does not indicate the relationship between the various embodiments and / or arrangements discussed.

[0030] The embodiments of the present application provide a system for generating an alarm pop-up window.

[0031] The alarm pop-up generation system includes a pop-up management plugin and a pop-up generation tool. In this embodiment, the pop-up generation tool can be Kanzi software or a self-developed software tool. In the development of in-vehicle human-machine interfaces (HMIs), Kanzi software is widely used in the dashboard design of new energy vehicles. Kanzi not only provides rich user interface elements and animation effects, but also allows developers to customize complex user interactions through its powerful editor and programming interface.

[0032] In this embodiment, the pop-up management plugin and the pop-up generation tool work together. The pop-up management plugin configures the alarm configuration data and alarm resource data corresponding to the alarm type in a formatted manner, and associates the alarm configuration data and alarm resource data with the pop-up generation tool in a standardized manner. Since the configuration process and association process conform to a unified standard, after an alarm of a certain alarm type occurs, the pop-up generation tool can generate an alarm pop-up based on the alarm configuration data and alarm resource data corresponding to that alarm type.

[0033] The following sections describe the pop-up management plugin and the pop-up generation tool respectively.

[0034] This application provides a method for generating alarm pop-ups in a pop-up management plugin. For example... Figure 1 The diagram shown is a flowchart of a method for generating an alarm pop-up in a pop-up management plugin according to an embodiment of this application.

[0035] Step S110: Obtain alarm configuration data and alarm resource data pre-configured for the alarm type.

[0036] Alarm configuration data refers to the alarm attribute data of each element recorded using a preset data format. Elements include, but are not limited to, alarm type, text, icon, and display style. Alarm attribute data can be the element's ID. The data format specifies the number of alarm attribute data items in the alarm configuration data and the field occupied by each type of alarm attribute data. All alarm configuration data in this application embodiment uses the same data format.

[0037] Alarm resource data refers to the resource data stored for all or some elements in the alarm configuration data. For example, if the element is text, the resource data is the stored text content; if the element is an icon, the resource data is the stored icon.

[0038] Specifically, the alarm configuration data can be configured in the pop-up generation tool, and the pop-up management plug-in obtains the alarm configuration data from the pop-up generation tool. When the alarm configuration data is configured in the pop-up generation tool, the number of alarm configuration data can be multiple, and each alarm configuration data corresponds to an alarm type. Of course, the number of alarm resource data can be multiple.

[0039] Further, a preset data format can be used to record each alarm configuration data and the alarm attribute data corresponding to each element in each alarm configuration data, forming an alarm configuration string. The data format of the embodiment of the application can be used to indicate the position of each alarm configuration data, the number of alarm attribute data in each alarm configuration data, and the field occupied by each alarm attribute data. The number of alarm attribute data in each alarm configuration data is the same, and for the alarm attribute data that the alarm configuration data does not have, a null value is set in the field corresponding to the type of the alarm attribute data.

[0040] Further, in the preset data format, a first separator can be used to separate each alarm configuration data, for example: each alarm configuration data is recorded between the positions of two adjacent first separators. A second separator can be used to separate the alarm attribute data, for example: in the alarm configuration data, each alarm attribute data is recorded in its corresponding field position, and adjacent alarm attribute data is separated by a second separator. The form of the first separator and the form of the second separator can be set according to requirements.

[0041] Step S120, obtaining the alarm attribute data corresponding to the alarm type by parsing the alarm configuration data corresponding to the alarm type.

[0042] The alarm attribute data corresponding to the alarm type is the alarm attribute data contained in the alarm configuration data corresponding to the alarm type. Since the alarm configuration data corresponding to the alarm type is pre-configured, the pop-up management plug-in needs to perform data analysis on the alarm configuration data according to the data format, so as to read out which alarm attribute data is contained in the alarm configuration data corresponding to the alarm type.

[0043] In the embodiment of the application, the alarm attribute data corresponding to the alarm type includes but is not limited to: the alarm type code corresponding to the alarm type, the text code, the icon code and the state machine code; wherein the alarm type code is data used to identify the alarm type. The field position of each alarm attribute data in the alarm configuration data is included in the data format. For example, in the order from first to last, they are: alarm type code, text code, icon code and state machine code.

[0044] Specifically, in the case of multiple alarm configuration data, a pre-configured alarm configuration string can be obtained; in the case that the alarm configuration string is not empty, alarm configuration data is extracted from the alarm configuration string by detecting a preset first delimiter; and alarm attribute data is extracted from the alarm configuration data by detecting a preset second delimiter. Among them, the alarm configuration data includes data for identifying the alarm type, such as an alarm type code corresponding one-to-one to the alarm type.

[0045] Further, after extracting the alarm attribute data, the alarm attribute data can be stored in a preset mapping dictionary; wherein the alarm type code is used as the key in the mapping dictionary; and the text code, the icon code and the state machine code corresponding to the alarm type code (the alarm type code corresponds one-to-one to the alarm type) are used as the structure object corresponding to the alarm type code.

[0046] In step S130, the alarm attribute data corresponding to the alarm type is associated with the alarm variable of the preset pop-up generation tool, and the alarm attribute data corresponding to the alarm type is associated with the alarm resource data corresponding to the alarm type.

[0047] The pop-up generation tool is used to generate an alarm pop-up window corresponding to an alarm type in a standardized manner according to each alarm attribute data in the alarm configuration data corresponding to the alarm type and the alarm resource data corresponding to the alarm type.

[0048] Specifically, according to the type of alarm attribute data, the alarm attribute data is associated with the alarm variable of the corresponding type, and the alarm attribute data is associated with the alarm resource data corresponding thereto.

[0049] The alarm attribute data in the alarm configuration data can be of multiple types. The alarm attribute data corresponding to the alarm type includes but is not limited to the alarm type code, the text code, the icon code and the state machine code corresponding to the alarm type. Among them, the state machine code corresponds to the state machine in the pop-up generation tool. In the pop-up generation tool, different state machines correspond to different display styles.

[0050] The alarm resource data corresponding to the alarm type is of multiple types. The alarm resource data corresponding to the alarm type includes but is not limited to the text resource data corresponding to the text code and the icon resource data corresponding to the icon code; wherein the text resource data includes text data corresponding to multiple languages respectively; and the icon resource data includes icon data corresponding to multiple states respectively.

[0051] The alarm variable corresponding to the pop-up generation tool includes but is not limited to the state machine variable, the text variable and the icon variable.

[0052] In the embodiment of the present application, the text code is associated with the corresponding text resource data and the text variable in the pop-up window generation tool; the icon code is associated with the corresponding icon resource data and the icon variable in the pop-up window generation tool; and the state machine code is associated with the state machine variable in the pop-up window generation tool. Further, since the alarm resource data can embody the corresponding relationship with the alarm attribute data, for example, the text code (alarm attribute data) is included in the text resource data, therefore, the corresponding relationship between the alarm attribute data and the alarm resource can be established. In this way, the state machine code has no corresponding resource data, and can only be associated with the state machine variable.

[0053] In the embodiment of the present application, the alarm attribute data extracted from the alarm configuration data is stored in a preset mapping dictionary, and when the association is performed, the mapping relationship between the uniform resource locator (URL) corresponding to the alarm attribute data and the URL of the corresponding alarm variable can be established.

[0054] In step S140, a trigger is newly created in the pop-up window generation tool, and the trigger is associated with the alarm type, so that after the trigger is triggered, the trigger generates the alarm pop-up window corresponding to the alarm type according to the alarm attribute data and the alarm resource data corresponding to the alarm type.

[0055] Since the alarm type and the alarm type code have a one-to-one corresponding relationship, the alarm type code corresponding to the alarm type can be assigned to the trigger; if the alarm type code corresponding to the alarm type is a first preset value, the trigger is set to a hidden type; otherwise, the trigger is set to a display type. Therefore, after the assignment is completed, the trigger can be used to generate the alarm pop-up window corresponding to the alarm type.

[0056] Further, the first preset value can be set as needed, for example, the first preset value can be set to 0.

[0057] Further, the embodiment of the present application can set an alarm type corresponding to the case that the vehicle has no fault or no abnormality. In the alarm configuration data corresponding to the alarm type, the alarm type code is the first preset value, and other alarm attribute data are all null values. The alarm resource data corresponding to the alarm type is also a null value.

[0058] Further, after the new trigger is created, the corresponding relationship between the trigger and the alarm type and the type (hidden type or display type) of the trigger can be set in the trigger configuration interface corresponding to the trigger. Therefore, in order to facilitate user operation, after the new trigger is created, the trigger configuration interface corresponding to the trigger can be opened, and the trigger configuration interface corresponding to the trigger is controlled to not be blocked in the display.

[0059] In the embodiment of the present application, the pop-up window management plug-in can set the pop-up delay and / or display duration of the alarm pop-up window corresponding to each alarm type in the trigger corresponding to the alarm type. The pop-up delay refers to that after the alarm pop-up window is generated, the alarm pop-up window is popped up in the display after the pop-up window delay. The display duration refers to that after the alarm pop-up window is popped up, the alarm pop-up window is displayed and closed after the display duration. The display can be a dashboard display of the vehicle.

[0060] In the embodiment of the present application, the pop-up window management plug-in obtains alarm configuration data and alarm resource data corresponding to the alarm type which are configured in advance; obtains alarm attribute data corresponding to the alarm type by analyzing the alarm configuration data corresponding to the alarm type; associates the alarm attribute data corresponding to the alarm type with an alarm variable of a preset pop-up window generation tool, and associates the alarm resource data corresponding to the alarm type with the alarm variable; creates a trigger in the pop-up window generation tool, and associates the trigger with the alarm type, so that after the trigger is triggered, the trigger generates the alarm pop-up window corresponding to the alarm type according to the alarm attribute data and the alarm resource data corresponding to the alarm type. In the embodiment of the present application, the pop-up window management plug-in and the pop-up window generation tool are combined to provide a standardized alarm pop-up window generation process. In this process, each alarm type does not need to be coded and configured with an alarm node, thereby avoiding repeated and tedious manual configuration of alarm nodes, greatly reducing the possibility of errors, effectively improving the development and maintenance efficiency, and in this process, the pop-up window management plug-in uses a unified data format to centrally configure and dynamically analyze the alarm attribute data corresponding to the alarm type, automatically associates the alarm type, the alarm attribute data, the alarm resource data and the alarm variable in the pop-up window generation tool, and the pop-up window generation tool uses these association relationships as a bridge to obtain alarm resource data as needed to generate the required alarm pop-up window, flexibly display alarm information, and compared with a separate alarm node, reduce the memory occupancy rate, ensure efficient system operation, and effectively improve the system performance. Further, when facing frequently changing alarm types, real-time performance is good, and when facing newly added alarm types, the alarm attribute data and the alarm resource data corresponding to the alarm type can be quickly configured through the preset unified data format, and the scalability is good.

[0061] The embodiment of the present application provides a generation method of an alarm pop-up window executed by a pop-up window generation tool. Figure 2 As shown in the figure, it is a flow chart of the generation method of the alarm pop-up window executed by the pop-up window generation tool according to an embodiment of the present application.

[0062] In step S210, after the target vehicle is powered on, the alarm type reported by the target vehicle is determined.

[0063] The target vehicle is a vehicle deployed by the pop-up window management tool and the pop-up window generation tool.

[0064] The preset component of the target vehicle reports vehicle state information every preset time period, and the alarm type can be determined according to the vehicle state information. The preset component can be a sensing device or a detection device pre-installed in the target vehicle.

[0065] For example, the preset component is a tire pressure detector, the tire pressure detector reports tire pressure every period of time, if the tire pressure is less than a preset tire pressure threshold, tire pressure alarm is needed, and the corresponding alarm type is a tire pressure alarm type.

[0066] In step S220, a trigger corresponding to the alarm type is triggered; wherein, after the preset pop-up window management plug-in respectively associates alarm attribute data corresponding to the alarm type with alarm resource data corresponding to the alarm type and an alarm variable in the pop-up window generation tool, the trigger is created and associated with the alarm type in the pop-up window generation tool.

[0067] Each alarm type can correspond to an alarm type code; after the alarm type reported by the target vehicle is determined, the trigger corresponding to the alarm type code is triggered according to the alarm type code corresponding to the alarm type.

[0068] In step S230, based on the association relationship among the alarm attribute data corresponding to the alarm type, the alarm resource data corresponding to the alarm type and the alarm variable in the pop-up window generation tool, the trigger acquires the alarm attribute data and the alarm resource data corresponding to the alarm type through the alarm variable, and generates the alarm pop-up window corresponding to the alarm type according to the alarm attribute data and the alarm resource data corresponding to the alarm type.

[0069] The trigger acquires the alarm attribute data associated with each alarm variable through various alarm variables according to the alarm type code corresponding to the alarm type, and acquires the alarm resource data associated with the alarm attribute data after acquiring the alarm attribute data.

[0070] The alarm attribute data corresponding to the alarm type includes, but is not limited to, alarm type code, text code, icon code and state machine code corresponding to the alarm type. The state machine code corresponds to a state machine in the pop-up generation tool. In the pop-up generation tool, different state machines correspond to different display styles.

[0071] The alarm resource data corresponding to the alarm type includes, but is not limited to, text resource data corresponding to the text code and icon resource data corresponding to the icon code; wherein the text resource data includes text data corresponding to multiple languages respectively; and the icon resource data includes icon data corresponding to multiple states respectively.

[0072] The alarm variable corresponding to the pop-up generation tool includes, but is not limited to, a state machine variable, a text variable and an icon variable.

[0073] Before generating the alarm pop-up window, the trigger acquires, according to the alarm type code corresponding to the alarm type, the text code associated with the alarm type code through the text variable, acquires the icon code associated with the alarm type code through the icon variable, and acquires the state machine code associated with the alarm type code through the state machine variable. The trigger acquires the text resource data associated with the text code through the text variable, and acquires the icon resource data associated with the icon code through the icon variable.

[0074] When generating the alarm pop-up window, the trigger acquires the default language of the target vehicle and the environment data of the target vehicle, acquires the text data corresponding to the default language from the text resource data, acquires the icon data corresponding to the state corresponding to the environment data from the icon resource data, calls the state machine corresponding to the state machine code and opens a preset human-computer interface, and causes the state machine to load the text data and the icon data into the human-computer interface according to the display style corresponding to the state machine, to form the alarm pop-up window corresponding to the alarm type.

[0075] Further, after generating the alarm pop-up window, the type of the trigger can be identified; if the trigger is of a hidden type, the alarm pop-up window is hidden; and if the trigger is of a display type, the alarm pop-up window is displayed. Further, if the type of the trigger is of a display type, the alarm pop-up window is popped up in the display according to a pop-up delay corresponding to the alarm pop-up window, and / or the alarm pop-up window is displayed in the display according to a display duration corresponding to the alarm pop-up window.

[0076] In the embodiment of the present application, the pop-up window generation tool determines the alarm type reported by the target vehicle after the target vehicle is powered on, triggers the trigger corresponding to the alarm type, and uses the association relationship established by the pop-up window management plug-in to obtain the alarm attribute data and alarm resource data corresponding to the alarm type through the alarm variable, and generates the alarm pop-up window corresponding to the alarm type according to the alarm attribute data and alarm resource data corresponding to the alarm type. The pop-up window generation tool of the present application does not need to encode and configure alarm nodes for each alarm type. When an alarm occurs, the resource data used to generate the alarm pop-up window can be accurately obtained according to the alarm type and various association relationships set in advance by the pop-up window management plug-in, and the alarm pop-up window corresponding to the alarm type can be generated by rendering the obtained resource data in the human-computer interface according to the display style.

[0077] In order to make the alarm pop-up window generation method of the embodiment of the present application easier to understand, a more specific example is provided below to describe each stage of the alarm pop-up window generation method of the embodiment of the present application. The processing steps of the pop-up window management plug-in are mainly described below.

[0078] Stage 1, data configuration stage.

[0079] In this example, the first separator can be set as “|” and the second separator can be set as “,”.

[0080] In the configuration, 9 alarm types can be configured in the Kanzi software, each alarm type corresponding to 4 alarm attribute data. The first separator can be used to separate the alarm configuration data corresponding to the 9 alarm types. For each alarm configuration data, the second separator can be used to concatenate the 4 alarm attribute data together, and the 4 alarm attribute data are placed in the corresponding fields. If a certain alarm attribute data is not available, a null value can be set in the field position of the alarm attribute data. Finally, the alarm configuration string is formed as follows:

[0081] “1,WARN_Text_1,pop_battery,0|2,WARN_Text_2,,2|3,WARN_Te xt_3,,2|4,WARN_Text_4,,2|5,WARN_Text_5,,2|6,WARN_Text_6,,2|7,WARN_Text_7,,2|8,WARN_Text_8,,2|9,WARN_Text_9,,2”.

[0082] In the configuration, the data format can indicate the fields occupied by the four alarm attribute data respectively. For example, the fields correspond to the alarm type code (WarmingID, alarm type code in the pop-up window management plug-in), text code, icon code and state machine code in the order from the first to the last.

[0083] In the configuration, text resource data corresponding to each text code (text ID) is set, and icon resource data corresponding to each icon code (icon ID) is set. The text resource data includes text data corresponding to a plurality of languages respectively. The plurality of languages are, for example, Chinese, English, German, Arabic, etc. The icon resource data includes icon data corresponding to a plurality of states respectively. The plurality of states can be set according to requirements, for example, night driving, daytime driving, etc.

[0084] Further, a text table can be set in advance, which can be set in the Kanzi. In the text table, text resource data corresponding to a plurality of text codes (text IDs) is maintained. The text table is shown in Table 1, for example, but those skilled in the art should know that the content in the text table is only used to illustrate the present application, and is not used to limit the present application.

[0085]

[0086] Table 1

[0087] According to Table 1, after obtaining the text ID, the text corresponding to the language can be obtained.

[0088] Further, a theme table can be set in advance, which can also be set in the Kanzi. In the theme table, storage addresses of icon data corresponding to a plurality of states are maintained. The theme table is shown in Table 2, for example, but those skilled in the art should know that the content in the theme table is only used to illustrate the present application, and is not used to limit the present application.

[0089]

[0090] Table 2

[0091] In Table 2, the addresses 1 to 4 are actual storage addresses of the icon data in actual application.

[0092] Further, a plurality of state machines are maintained in the Kanzi in advance, each state machine corresponding to a display style, so that the state machine can be loaded and rendered in the human-computer interface according to the display style corresponding to itself, forming an alarm pop-up window. The display style includes but is not limited to the display style of the text and the display style of the icon. The display style is used to indicate the interface layout mode corresponding to the alarm type, such as the position of the text in the human-computer interface and the position of the icon in the human-computer interface.

[0093] As Figure 3 shown, a schematic diagram of five state machines maintained in Kanzi. In Figure 3 , the 0th state machine "withIcon" is the state machine corresponding to the icon display style, the 1st state machine "onlyText" is the state machine corresponding to the text display style, the 2nd state machine "DoorsOpen" is the state machine corresponding to the display style with interactive window, the 3rd state machine "smallBackground" is the alert pop-up window corresponding to the display style with preset first background image, and the 4th state machine "middleBackground" is the state machine corresponding to the display style with preset second background image. Under each state machine, three objects are included: "EnText", "Image" and "Text". "EnText" is the display style of English text when the default language is English, "Text" is the display style of Chinese text when the default language is Chinese, and "Image" is the display style of icon data. From Figure 3 , it can also be seen that the selection of the state machine is controlled by AlertType (state machine code in Kanzi). When the current AlertType = 0, the 0th state machine is allowed to perform loading and rendering operations. The way how AlertType is selected will be described later.

[0094] Phase 2, data parsing phase.

[0095] After configuration, the alert configuration string needs to be converted into content that can be understood by the machine. Therefore, the pop-up window management plug-in in this example obtains the alert configuration string and parses the alert configuration string according to the preset data format. For example, for the following alert configuration string:

[0096] "1, WARN_Text_1, pop_battery, 0 | 2, WARN_Text_2,, 2 | 3, WARN_Text_3,, 2 | 4, WARN_Text_4,, 2 | 5, WARN_Text_5,, 2 | 6, WARN_Text_6,, 2 | 7, WARN_Text_7,, 2 | 8, WARN_Text_8,, 2 | 9, WARN_Text_9,, 2";

[0097] First, it is detected whether the alarm configuration string is empty. If it is empty, an error log is recorded and an error prompt that the alarm configuration string is empty is returned. If it is not empty, a first separator “|” is detected in the alarm configuration string, and nine alarm configuration data can be extracted. Taking the first alarm configuration data “1, WARN_Text_1, pop_battery, 0” extracted as an example, a second separator “,” is detected in the alarm configuration data, and four alarm attribute data can be extracted. According to the fields occupied by each kind of alarm attribute data specified in the preset data format, it can be determined that “1” in the first field represents the alarm type code, “WARN_Text_1” in the second field represents the text code, “pop_battery” in the third field represents the icon code, and “0” in the fourth field represents the state machine code.

[0098] The alarm attribute data extracted from each alarm configuration data is stored in the pre-set mapping dictionary m_mappingDict. In the mapping dictionary, the key is the alarm type code (WarmingID), and the value corresponding to the key is other alarm attribute data corresponding to the alarm type code, forming the structure body AlertMapping corresponding to the key.

[0099] The third stage is the data association stage.

[0100] The four kinds of alarm attribute data are respectively associated with the corresponding alarm variables in the pop-up window generation tool. When associating the alarm attribute data and the alarm variable, the URL of the alarm attribute data and the URL of the alarm variable can be associated to realize the association between the alarm attribute data and the alarm variable.

[0101] For example, the alarm attribute data and the alarm variable can be associated by the following code:

[0102] setProperty(IconUrl, it->second.iconUrl);

[0103] setProperty(TextUrl, it->second.textResourceId);

[0104] setProperty(AlertTypeProperty, it->second.typesetId);

[0105] Here, `IconUrl` corresponds to the icon variable in Kanzi; `second.iconUrl` corresponds to the icon encoding parsed by the pop-up management plugin; `TextUrl` corresponds to the text variable in Kanzi; `second.textResourceId` corresponds to the text encoding parsed by the pop-up management plugin; `AlertTypeProperty` corresponds to the state machine variable in Kanzi; and `second.typesetId` corresponds to the state machine encoding parsed by the pop-up management plugin. This associates the icon variable with the icon encoding, the text variable with the text encoding, and the state machine variable with the state machine encoding.

[0106] The pop-up management plugin creates a new trigger for each parsed alarm configuration data in the pop-up generation tool. Each trigger has an initial alarm type code, AlertID. To associate the trigger with the actual alarm type, the pop-up management plugin assigns the parsed alarm type code (WarmingID) to the corresponding trigger's AlertID for each alarm configuration data. This allows the trigger to be associated with the alarm type corresponding to the WarmingID. Furthermore, since a specific trigger can be set for vehicle status information where no fault or abnormality has occurred, for example, a trigger corresponding to WarmingID 0.

[0107] The trigger type can be set in each trigger.

[0108] For example, the pop-up management plugin sets the `show` method in the trigger to indicate that the trigger is a display type. This is because after creating a trigger, if a meaningful alarm pop-up is needed after the trigger is triggered, it still needs to be configured in the trigger. The `show` method can record the currently created trigger, ensuring that the trigger interface corresponding to the most recently created trigger is rendered last. In this way, the trigger interface corresponding to the most recently created trigger is displayed on top and not obscured by other interfaces. Thus, during the alarm pop-up generation stage, these triggers can be considered as display types.

[0109] For example, a pop-up management plugin sets the `Hide` method in the trigger to indicate that the trigger is a hidden type. This `Hide` method can be represented by the following code:

[0110] if(m_childNode){

[0111] m_childNode->setProperty(Node::VisibleProperty,false);

[0112] }

[0113] Thus, in the alert pop-up generation stage, because the trigger refers to the Hide code, after the alert pop-up is generated, the alert pop-up is not displayed, i.e., the alert pop-up is hidden.

[0114] After the trigger is associated with the alert type, the alert attribute data can be associated with the alert resource data. Of course, this step can also be performed at other time nodes, for example, after the alert attribute data is associated with the alert variable.

[0115] The preset acquire function can be used to establish an association between the alert attribute data and the alert resource data. After the alert attribute data is associated with the alert resource data, when the alert type is received by the pop-up generation tool, the trigger can acquire the alert attribute data according to the alert variable, and then acquire the alert resource data by using the acquire function.

[0116] Further, the acquire function can be an acquire function. The trigger of the alert type can use the acquire function to acquire specific resource data (text and icon data) from resource IDs (text IDs and icon IDs).

[0117] For example, when the trigger acquires icon resource data, the following code can be used for implementation:

[0118] {Image}=acquire{{.. / .. / AlertPlugin.IconUrl}};

[0119] For another example, when the trigger acquires text resource data, the following code can be used for implementation:

[0120] {Text}=acquire{{.. / .. / AlertPlugin.TextUrl}}.

[0121] After the specific resource data is acquired, the trigger calls the corresponding state machine by using the state machine variable, loads and renders the resource data in the human-computer interface, and forms the alert pop-up. When the trigger calls the corresponding state machine by using the state machine variable, the state machine code is assigned to the AlertType in the foregoing Figure 3 , i.e., the state machine code in Kanzi.

[0122] Further, if the trigger is of a display type, the alert pop-up is directly displayed. Of course, if the trigger is of a hidden type, the resource data does not need to be acquired and cannot be acquired, and the human-computer interface is directly used as the alert pop-up and the alert pop-up is hidden.

[0123] The embodiment of the present application provides a dynamic alarm pop-up window generation mode through a centralized expression configuration and a dynamic analysis mechanism, without separately coding and configuring an alarm node for each alarm type, so that the configuration and management process of the alarm pop-up window is greatly simplified, and the development efficiency and the maintainability of the system are improved.

[0124] Further, the mode of separately coding and configuring alarm nodes needs to maintain a large amount of alarm node data, the complexity of the system is extremely high, and each alarm node needs to be separately maintained, so that the maintenance cost is relatively high. The embodiment of the present application simplifies the configuration and management process of the alarm pop-up window through a centralized expression configuration and a dynamic analysis mechanism, so that the developer only needs to input the alarm configuration data once, avoids repeated and tedious manual node configuration, greatly reduces the possibility of human error, and improves the development and maintenance efficiency. On the basis of the embodiment of the present application, advanced functions such as multi-language support, advanced user interaction function, voice control and intelligent warning prediction can be integrated according to requirements, so as to meet the requirements of different markets and users, and have a wide application prospect.

[0125] Further, the alarm management plug-in of the embodiment of the present application supports dynamic resource loading and real-time update of alarm configuration, so that the alarm generation tool can flexibly display alarm information according to actual requirements, ensures that the system can quickly respond when facing frequently changing alarm information, and improves the flexibility and real-time performance of the system.

[0126] Further, the embodiment of the present application significantly reduces the system memory occupation and processing time through intelligent resource management strategies such as resource sharing and on-demand loading, ensures the system performance, and enables the system to efficiently run in a resource-limited environment.

[0127] Further, the embodiment of the present application controls different display styles through a state machine, so that the alarm pop-up window can provide clear and intuitive information display in different scenes, and enhances the user experience of the driver.

[0128] The embodiment of the present application also provides an alarm pop-up window generation device arranged in a pop-up window management plug-in. As shown in FIG. 1, it is a structural diagram of the alarm pop-up window generation device arranged in the pop-up window management plug-in according to an embodiment of the present application. Figure 4

[0129] When the alarm pop-up window generation device is arranged in the pop-up window management plug-in, the alarm pop-up window generation device comprises:

[0130] The obtaining module 410 is configured to obtain alarm configuration data and alarm resource data corresponding to an alarm type and configured in advance.

[0131] The analysis module 420 is configured to obtain alarm attribute data corresponding to the alarm type by analyzing the alarm configuration data corresponding to the alarm type. ​

[0132] The association module 430 is configured to associate the alarm attribute data corresponding to the alarm type with alarm variables of a preset pop-up window generation tool, and associate the alarm attribute data corresponding to the alarm type with alarm resource data corresponding to the alarm type.

[0133] The creation module 440 is configured to create a trigger in the pop-up window generation tool, and associate the trigger with the alarm type, so that after the trigger is triggered, the trigger generates an alarm pop-up window corresponding to the alarm type according to the alarm attribute data and the alarm resource data corresponding to the alarm type.

[0134] The functions of the device described in the embodiments of the present application have been described in the method embodiments described above, and therefore, the descriptions of the embodiments of the present application that are not fully described can be referred to the related descriptions in the foregoing embodiments, which will not be repeated here.

[0135] The embodiments of the present application also provide a device for generating an alarm pop-up window of a pop-up window generation tool. As shown in Figure 5 The device for generating an alarm pop-up window of a pop-up window generation tool according to an embodiment of the present application is shown in a structural diagram.

[0136] When the device for generating an alarm pop-up window of a pop-up window generation tool is set in the pop-up window generation tool, the device comprises:

[0137] The determination module 510 is configured to determine an alarm type reported by a target vehicle after the target vehicle is powered on.

[0138] The trigger module 520 is configured to trigger a trigger corresponding to the alarm type, wherein the trigger is that after a preset pop-up window management plug-in associates alarm attribute data corresponding to the alarm type with alarm resource data corresponding to the alarm type and alarm variables in a pop-up window generation tool, the trigger is created and associated with the alarm type in the pop-up window generation tool.

[0139] The generation module 530 is configured to, based on an association relationship among the alarm attribute data corresponding to the alarm type, the alarm resource data corresponding to the alarm type, and the alarm variables in the pop-up window generation tool, make the trigger acquire the alarm attribute data and the alarm resource data corresponding to the alarm type through the alarm variables, and generate an alarm pop-up window corresponding to the alarm type according to the alarm attribute data and the alarm resource data corresponding to the alarm type.

[0140] The functions of the device described in the embodiments of the present application have been described in the method embodiments described above, and therefore, the descriptions of the embodiments of the present application that are not fully described can be referred to the related descriptions in the foregoing embodiments, which will not be repeated here.

[0141] The embodiment of the present application further provides a generation device of an alarm pop-up window, as shown in the figure. Figure 6 The figure is a structural diagram of the generation device of the alarm pop-up window according to the embodiment of the present application.

[0142] The generation device of the alarm pop-up window comprises a processor 610, a communication interface 620, a memory 630 and a communication bus 640. The processor 610, the communication interface 620 and the memory 630 complete mutual communication through the communication bus 640.

[0143] The memory 630 is used for storing a computer program.

[0144] In the embodiment of the present application, the processor 610 is used for executing the program stored in the memory 630, and realizes the generation method of the alarm pop-up window executed by the pop-up window management plug-in provided by any one of the preceding method embodiments, which comprises the following steps: obtaining alarm configuration data and alarm resource data configured in advance for an alarm type; obtaining alarm attribute data corresponding to the alarm type by analyzing the alarm configuration data corresponding to the alarm type; associating the alarm attribute data corresponding to the alarm type with an alarm variable of a preset pop-up window generation tool, and associating the alarm attribute data corresponding to the alarm type with alarm resource data corresponding to the alarm type; newly creating a trigger in the pop-up window generation tool, and associating the trigger with the alarm type, so that the trigger generates an alarm pop-up window corresponding to the alarm type according to the alarm attribute data and the alarm resource data corresponding to the alarm type after being triggered.

[0145] The step of obtaining the alarm attribute data corresponding to the alarm type by analyzing the alarm configuration data corresponding to the alarm type comprises the following steps: obtaining an alarm configuration string configured in advance; in the case that the alarm configuration string is not empty, extracting alarm configuration data in the alarm configuration string by detecting a preset first delimiter; and extracting alarm attribute data in the alarm configuration data by detecting a preset second delimiter; wherein the alarm configuration data comprises data used for identifying the alarm type.

[0146] The alarm attribute data corresponding to the alarm type comprises an alarm type code corresponding to the alarm type; the step of associating the trigger with the alarm type comprises the following steps: assigning the alarm type code corresponding to the alarm type to the trigger; if the alarm type code corresponding to the alarm type is a first preset value, setting the trigger as a hidden type; otherwise, setting the trigger as a display type.

[0147] After the step of newly creating the trigger, the method further comprises the following steps: opening a trigger configuration interface corresponding to the trigger, and controlling the trigger configuration interface corresponding to the trigger to be unobstructed in a display.

[0148] In an embodiment of the present application, the processor 610, when executing the program stored in the memory 630, implements the method for generating an alarm pop-up window executed by the pop-up window generation tool according to any one of the preceding method embodiments, including: determining an alarm type reported by a target vehicle after the target vehicle is powered on; triggering a trigger corresponding to the alarm type; wherein the trigger is: after the alarm attribute data corresponding to the alarm type is associated with the alarm resource data corresponding to the alarm type and the alarm variable in the pop-up window generation tool by a preset pop-up window management plug-in, the alarm type is created and associated in the pop-up window generation tool; based on the association relationship between the alarm attribute data corresponding to the alarm type, the alarm resource data corresponding to the alarm type and the alarm variable in the pop-up window generation tool, the trigger acquires the alarm attribute data and the alarm resource data corresponding to the alarm type through the alarm variable, and generates an alarm pop-up window corresponding to the alarm type according to the alarm attribute data and the alarm resource data corresponding to the alarm type.

[0149] The alarm attribute data corresponding to the alarm type includes: state machine code corresponding to the alarm type; the alarm resource data corresponding to the alarm type includes: text resource data corresponding to the text code and icon resource data corresponding to the icon code; wherein the text resource data includes: text data corresponding to a plurality of languages respectively; the icon resource data includes: icon data corresponding to a plurality of states respectively; the alarm pop-up window corresponding to the alarm type is generated according to the alarm attribute data and the alarm resource data corresponding to the alarm type, including: obtaining a default language of the target vehicle and environment data of the target vehicle; obtaining text data corresponding to the default language from the text resource data; obtaining icon data corresponding to a state corresponding to the environment data from the icon resource data; calling a state machine corresponding to the state machine code and opening a preset human-computer interface, so that the state machine loads the text data and the icon data into the human-computer interface according to a display style corresponding to the state machine, to form an alarm pop-up window corresponding to the alarm type.

[0150] After the alarm pop-up window corresponding to the alarm type is generated according to the alarm attribute data and the alarm resource data corresponding to the alarm type, it further includes: if the trigger is a hidden type, the alarm pop-up window is hidden; if the trigger is a display type, the alarm pop-up window is displayed.

[0151] The embodiment of the present application further provides a computer readable storage medium, which stores a computer program, and the computer program is executed by a processor to implement the steps of the alarm pop-up window generation method performed by the pop-up window management plug-in or the alarm pop-up window generation method performed by the pop-up window generation tool according to any one of the foregoing method embodiments. Since the alarm pop-up window generation method has been described in detail above, the description of the present embodiment will not be elaborated on the unexplained parts, and the related descriptions in the foregoing embodiments can be referred to.

[0152] The apparatus embodiments described above are merely illustrative, wherein the units described as separate components can or can not be physically separate, and the components displayed as units can or can not be physical units, i.e., can be located in one place, or can be distributed on multiple network units. Part or all of the modules can be selected according to actual needs to achieve the purpose of the present embodiment.

[0153] Through the description of the foregoing embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a general hardware platform, or by hardware. Based on such understanding, the above technical solutions or the part that contributes to the related art can be embodied in the form of a software product, which can be stored in a computer readable storage medium, such as a ROM / RAM, a magnetic disk, or an optical disk, and includes a plurality of instructions to make a computer device (which can be a personal computer, a server, or a network device, etc.) execute the methods described in each embodiment or some parts of the embodiments.

[0154] It should be understood that the terms used herein are for the purpose of describing particular example embodiments only and are not intended to be limiting. As used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. The terms "comprises", "comprising", "includes", "including" and "has" are inclusive and therefore specify the presence of stated features, steps, operations, elements, and / or components, but do not preclude the presence or addition of one or more other features, steps, operations, elements, components, and / or groups thereof. The method steps, processes, and operations described herein are not to be construed as necessarily requiring their performance in the particular order in which they are described, unless otherwise specifically identified as an order dependent step. It is also understood that additional or alternative steps can be employed.

[0155] The foregoing detailed description of the application has been presented for purposes of illustration and description. Various modifications and changes can be made to these embodiments without departing from the spirit and scope of the application. It is intended that the scope of the application should not be limited by the particular representative embodiments described above.

Claims

1. A method for generating an alarm pop-up window, characterized in that, The steps performed by the pop-up management plugin include: Retrieve alarm configuration data and alarm resource data that have been pre-configured for the corresponding alarm type; By parsing the alarm configuration data corresponding to the alarm type, the alarm attribute data corresponding to the alarm type is obtained. The alarm attribute data includes alarm type encoding, text encoding, icon encoding, and state machine encoding. Associating the alarm attribute data corresponding to the alarm type with the alarm variables of the preset pop-up generation tool, wherein the alarm variables include state machine variables, text variables and icon variables, including: associating the state machine code with the state machine variable, associating the text code with the text variable, associating the icon code with the icon variable, and associating the alarm attribute data corresponding to the alarm type with the alarm resource data corresponding to the alarm type; In the pop-up generation tool, a new trigger is created, and the trigger is associated with the alarm type. When the trigger is activated, it generates an alarm pop-up corresponding to the alarm type based on the alarm attribute data and alarm resource data. This includes: the trigger obtains the icon code associated with the icon variable, the text code associated with the text variable, and the state machine code associated with the state machine variable based on the alarm type code corresponding to the alarm type; it calls the state machine corresponding to the state machine code, obtains the text resource data associated with the text code, obtains the icon resource data associated with the icon code, loads and renders the text resource data and the icon resource data in the human-machine interface, forming an alarm pop-up. Each state machine corresponds to a display style.

2. The method according to claim 1, characterized in that, The step of obtaining alarm attribute data corresponding to the alarm type by parsing the alarm configuration data corresponding to the alarm type includes: Retrieve the pre-configured alarm configuration string; If the alarm configuration string is not empty, alarm configuration data is extracted from the alarm configuration string by detecting a preset first delimiter; alarm attribute data is extracted from the alarm configuration data by detecting a preset second delimiter; wherein, the alarm configuration data includes data for identifying the alarm type.

3. The method according to claim 1, characterized in that, The alarm attribute data corresponding to the alarm type includes: the alarm type code corresponding to the alarm type; Associating the trigger with the alarm type includes: Assign the alarm type code corresponding to the alarm type to the trigger; If the alarm type code corresponding to the alarm type is a first preset value, then the trigger is set to a hidden type; otherwise, the trigger is set to a visible type.

4. The method according to claim 1, characterized in that, Following the creation of the new trigger, the following is also included: Open the trigger configuration interface corresponding to the trigger, and ensure that the trigger configuration interface corresponding to the trigger is not obscured on the display.

5. A method for generating an alarm pop-up window, characterized in that, The steps performed by the pop-up generation tool include: After the target vehicle is powered on and started, determine the type of alarm reported by the target vehicle; The trigger corresponding to the alarm type is activated; wherein the trigger is: a preset pop-up management plugin obtains alarm configuration data and alarm resource data pre-configured for the alarm type; by parsing the alarm configuration data corresponding to the alarm type, it obtains alarm attribute data corresponding to the alarm type, the alarm attribute data including alarm type code, text code, icon code, and state machine code; the alarm attribute data corresponding to the alarm type is associated with alarm variables of a preset pop-up generation tool, wherein the alarm variables include state machine variables, text variables, and icon variables, including: associating the state machine code with the state machine variable, associating the text code with the text variable, associating the icon code with the icon variable, and after associating the alarm attribute data corresponding to the alarm type with the alarm resource data corresponding to the alarm type, the pop-up generation tool creates and associates the alarm type; Based on the correlation between the alarm attribute data corresponding to the alarm type, the alarm resource data corresponding to the alarm type, and the alarm variables in the pop-up generation tool, the trigger obtains the alarm attribute data and alarm resource data corresponding to the alarm type through the alarm variables. Furthermore, it generates an alarm pop-up corresponding to the alarm type based on the alarm attribute data and alarm resource data. This includes: the trigger obtains the icon code associated with the icon variable, the text code associated with the text variable, and the state machine code associated with the state machine variable based on the alarm type code corresponding to the alarm type; it calls the state machine corresponding to the state machine code, obtains the text resource data associated with the text code, obtains the icon resource data associated with the icon code, loads and renders the text resource data and the icon resource data in the human-machine interface, forming an alarm pop-up. Each state machine corresponds to a display style.

6. The method according to claim 5, characterized in that, The alarm attribute data corresponding to the alarm type includes: the state machine code corresponding to the alarm type; The alarm resource data corresponding to the alarm type includes: text resource data corresponding to the text encoding and icon resource data corresponding to the icon encoding; wherein, the text resource data includes: text data corresponding to multiple languages; the icon resource data includes: icon data corresponding to multiple states; The step of generating an alarm pop-up window corresponding to the alarm type based on the alarm attribute data and alarm resource data corresponding to the alarm type includes: Obtain the default language of the target vehicle and the environmental data of the target vehicle; Obtain the text data corresponding to the default language from the text resource data; Obtain the icon data corresponding to the state of the environment data from the icon resource data; The state machine corresponding to the state machine code is invoked and the preset human-machine interface is opened. The state machine loads the text data and the icon data into the human-machine interface according to the display style corresponding to the state machine, forming an alarm pop-up window corresponding to the alarm type.

7. The method according to claim 5 or 6, characterized in that, After generating the alarm pop-up window corresponding to the alarm type based on the alarm attribute data and alarm resource data corresponding to the alarm type, the method further includes: If the trigger is of the hidden type, then the alarm pop-up is hidden; If the trigger is of display type, then the alarm pop-up window is displayed.

8. A device for generating an alarm pop-up window, characterized in that, include: When the alarm pop-up generation device is set in the pop-up management plugin, it includes: The acquisition module is used to acquire alarm configuration data and alarm resource data that are pre-configured for the alarm type. The parsing module is used to obtain alarm attribute data corresponding to the alarm type by parsing the alarm configuration data corresponding to the alarm type. The alarm attribute data includes alarm type encoding, text encoding, icon encoding and state machine encoding. The association module is used to associate the alarm attribute data corresponding to the alarm type with the alarm variables of the preset pop-up generation tool. The alarm variables include state machine variables, text variables, and icon variables. The association module includes: associating the state machine code with the state machine variable, associating the text code with the text variable, associating the icon code with the icon variable, and associating the alarm attribute data corresponding to the alarm type with the alarm resource data corresponding to the alarm type. A creation module is used to create a new trigger in the pop-up generation tool and associate the trigger with the alarm type. When the trigger is activated, it generates an alarm pop-up corresponding to the alarm type based on the alarm attribute data and alarm resource data. This includes: the trigger obtaining the icon code associated with the icon variable, the text code associated with the text variable, and the state machine code associated with the state machine variable based on the alarm type code; calling the state machine corresponding to the state machine code; obtaining the text resource data associated with the text code; obtaining the icon resource data associated with the icon code; loading and rendering the text resource data and the icon resource data in the human-machine interface to form an alarm pop-up. Each state machine corresponds to a display style. The device for generating the alarm pop-up is set in the pop-up generation tool and includes: The determination module is used to determine the type of alarm reported by the target vehicle after the target vehicle is powered on and started. A triggering module is used to trigger the trigger corresponding to the alarm type; wherein, the trigger is: after the preset pop-up management plugin associates the alarm attribute data corresponding to the alarm type with the alarm resource data corresponding to the alarm type and the alarm variable in the pop-up generation tool, it creates and associates the alarm type in the pop-up generation tool; The generation module is used to, based on the correlation between the alarm attribute data corresponding to the alarm type, the alarm resource data corresponding to the alarm type, and the alarm variables in the pop-up generation tool, enable the trigger to obtain the alarm attribute data and alarm resource data corresponding to the alarm type through the alarm variables, and generate the alarm pop-up corresponding to the alarm type based on the alarm attribute data and alarm resource data corresponding to the alarm type.

9. A device for generating alarm pop-ups, characterized in that, include: At least one communication interface; At least one bus connected to the at least one communication interface; At least one processor connected to the at least one bus; At least one memory connected to the at least one bus, wherein the processor is configured to: execute a pop-up generation program stored in the memory to implement the pop-up generation method of any one of claims 1-4 executed in a pop-up management plugin, or to implement the pop-up generation method of any one of claims 5-7 executed in a pop-up generation tool.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which are executed to implement the alarm pop-up generation method of any one of claims 1-4 executed in the pop-up management plugin, or to implement the alarm pop-up generation method of any one of claims 5-7 executed in the pop-up generation tool.

Citation Information

Patent Citations

  • Reminding sound setting method and device for electric automobile

    CN106218498A

  • Vehicle and alarm method thereof

    CN113665358A