HMI software system and update method, electronic device, and medium
By introducing the mapping MAP layer and timer automatic update mechanism in the HMI software system, the problems of low code reuse and cumbersome programming in the HMI software system are solved, independent programming and efficient data management of the application layer and the underlying layer are realized, and the System convenience and programming efficiency.
Patent Information
- Application Number
- CN202111462416.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-02
- Publication Date
- 2024-11-22
- Estimated Expiration
- 2041-12-02
AI Technical Summary
The current HMI software system has low code reuse rate, cumbersome programming process and complex search, especially when different trains are used, which leads to too long programming and debugging time.
The architecture of the HMI software system is adopted, including the application layer, the mapping MAP layer, the hardware driver layer, the functional module layer and the business logic layer. The logic functions are realized by the mapping MAP layer. The top-level MAP and the bottom-level MAP are used to store the application layer and the hardware driver layer respectively. The data of the data is automatically updated by using the timer to detect the update signal, so as to avoid repeated programming.
It realizes the independence of application layer and underlying programming, simplifies data search methods, improves code reuse rate and system convenience, and reduces programming and debugging time.
Smart Images

Figure CN114064089B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of program development, and in particular to an HMI software system and update method, electronic equipment, and medium. Background Art
[0002] In recent years, with the rise of software technology and the popularization of rail transit vehicles such as trains and high-speed railways, on-board HMI software has become a hot emerging technology, which controls the interior of the train by using programmable processors and memories.
[0003] The current HMI software system architecture is mainly divided into four parts: hardware driver layer, functional module layer, business logic layer and application layer. The programming process mainly relies on manual input by programmers. Both variables and statements are basically written repeatedly by programmers, and the writing process takes a lot of time. When the program volume increases, the program logic may be chaotic, and the search is more complicated. When the HMI software is used in different trains, it must be reprogrammed. The low code reuse rate takes up a lot of programming and debugging time.
[0004] In view of the above technologies, finding an HMI software system that can be easily used is an urgent problem to be solved by those skilled in the art. Summary of the invention
[0005] The purpose of this application is to provide an HMI software system to solve the problems of low code reuse rate and complex search in current HMI software systems.
[0006] In order to solve the above technical problems, the present application provides an HMI software system, including: an application layer, a mapping MAP layer, a hardware driver layer, a function module layer and a business logic layer:
[0007] The application layer is used to complete the logic function according to the mapping MAP layer data and interruption;
[0008] The mapping MAP layer includes a top-level MAP and a bottom-level MAP, the top-level MAP includes a display MAP and a MAP to be displayed, the bottom-level MAP includes a status MAP and a MAP to be executed, the top-level MAP is used to store data of the application layer, and the bottom-level MAP is used to store data of the hardware driver layer, the function module layer and the business logic layer;
[0009] The display MAP is the data used by the current application layer, the to-be-displayed MAP is the data to be used by the application layer, the status MAP is the data of the currently running hardware driver layer, the function module layer and the business logic layer, and the to-be-executed MAP is the data of the hardware driver layer, the function module layer and the business logic layer to be run;
[0010] The hardware driver layer is used to store the data of the hardware layer API of each hardware module;
[0011] The functional module layer is used to store the data of the API functions of the hardware layer of each of the hardware modules;
[0012] The business logic layer is used to store data of each of the hardware modules.
[0013] Preferably, the device further comprises: a first timer, wherein the first timer is used to detect whether a first update signal is received every first preset time so as to update the top-level MAP data.
[0014] Preferably, the device further comprises: a second timer, wherein the second timer is used to detect whether a second update signal is received every second preset time so as to update the bottom layer MAP data.
[0015] Preferably, the display MAP and the MAP to be displayed, the state MAP and the MAP to be executed all include a global MAP, a compartment MAP, an interruption MAP and an alarm MAP.
[0016] To solve the above problems, the present application also provides an HMI software system update method, which is applied to the above HMI software system, and the method includes:
[0017] Circularly detecting whether the displayed MAP is the same as the MAP to be displayed;
[0018] If not, detecting whether the state MAP is the same as the to-be-executed MAP;
[0019] If not, calling the state MAP corresponding to the MAP to be executed, updating the state MAP, and returning to the step of detecting whether the state MAP is the same as the MAP to be executed;
[0020] If so, the display MAP is updated to correspond to the status MAP.
[0021] Preferably, the HMI software system further includes a first timer, and the method further includes:
[0022] At every first preset time, detecting whether a first update signal is received, wherein the first update signal is used to indicate whether the top-level MAP data is updated;
[0023] If so, the top-level MAP data is updated.
[0024] Preferably, the HMI software system further includes a second timer, and the method further includes:
[0025] every second preset time, detecting whether a second update signal is received, wherein the second update signal is used to indicate whether the bottom layer MAP data is updated;
[0026] If so, the underlying MAP data is updated.
[0027] To solve the above problems, the present application also provides an electronic device, including a memory for storing a computer program;
[0028] The processor is used to implement the steps of the HMI software system updating method as described above when executing the computer program.
[0029] To solve the above problem, the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above HMI software system update method are implemented.
[0030] The HMI software system provided by the present application includes: an application layer, a mapping MAP layer, a driver layer, a function module layer, and a business logic layer. The application layer is used to complete the logic function according to the mapping MAP layer data and interrupts. The mapping MAP layer includes a top-level MAP and a bottom-level MAP. The top-level MAP includes a display MAP and a to-be-displayed MAP. The bottom-level MAP includes a status MAP and a to-be-executed MAP. The display MAP is the data used by the current application layer. The to-be-displayed MAP is the data to be used by the application layer. The status MAP is the data of the currently running hardware driver layer, the function module layer, and the business logic layer. The to-be-executed MAP is the data of the to-be-run hardware driver layer, the function module layer, and the business logic layer. When the display MAP and the MAP to be executed are different from the current display MAP and execution MAP, that is, when they need to be updated, the corresponding data in the top-level and bottom-level MAPs are directly called for update. Compared with the current HMI software system, a mapping MAP layer is added to the application layer and other bottom layers. The corresponding data that needs to be updated in each layer can be directly called through the mapping MAP layer, and all data only needs to be initially written and stored in the mapping MAP layer. There is no need to reprogram when updating, which realizes the independence and program reuse of application layer programming and bottom-level programming, and the program and corresponding data of the corresponding layer can be directly queried through the address of the mapping MAP layer, which simplifies the search method and makes it more convenient for users to use.
[0031] The HMI software update method provided in the present application is applied to the above-mentioned HMI software system, and achieves the same result as the above-mentioned HMI software system by mapping the structure in the MAP layer, so the beneficial effects are the same.
[0032] The electronic device and readable storage medium provided in this application correspond to the above method and have the same beneficial effects. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0034] Figure 1 A schematic diagram of the HMI software system structure provided in an embodiment of the present application;
[0035] Figure 2 A schematic diagram of the structure of the top-level MAP and the bottom-level MAP provided in the embodiment of the present application;
[0036] Figure 3 A flow chart of an HMI software system update method provided in an embodiment of the present application;
[0037] Figure 4 A structural diagram of an electronic device provided in another embodiment of the present application. DETAILED DESCRIPTION
[0038] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0039] The core of this application is to provide an HMI software system to solve the problems of low code reuse rate and complex search of current HMI software systems.
[0040] In order to enable those skilled in the art to better understand the present application, the present application is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0041] Figure 1 A schematic diagram of the HMI software system structure provided in the embodiment of the present application is shown in FIG. Figure 1 The system includes: application layer 1, mapping MAP layer 2, hardware driver layer 5, function module layer 4 and business logic layer 3:
[0042] Application layer 1 is used to complete logical functions based on mapped MAP layer 2 data and interrupts;
[0043] The mapping MAP layer 2 includes a top-level MAP and a bottom-level MAP. The top-level MAP includes a display MAP and a MAP to be displayed. The bottom-level MAP includes a status MAP and a MAP to be executed. The top-level MAP is used to store data of the application layer 1, and the bottom-level MAP is used to store data of the hardware driver layer 5, the function module layer 4 and the business logic layer 3.
[0044] Display MAP is the data used by the current application layer 1, to-be-displayed MAP is the data to be used by the application layer 1, status MAP is the data of the currently running hardware driver layer 5, function module layer 4 and business logic layer 3, and to-be-executed MAP is the data of the hardware driver layer 5, function module layer 4 and business logic layer 3 to be run;
[0045] The hardware driver layer 5 is used to store the data of the hardware layer API of each hardware module;
[0046] Functional module layer 4 is used to store data of API functions of the hardware layer of each hardware module;
[0047] The business logic layer 3 is used to store data of each hardware module.
[0048] It should be noted that the "human machine interface" (HMI) is also called the human-machine interface. The human-machine interface (also known as the user interface or user interface) is the medium for interaction and information exchange between the system and the user. It realizes the conversion between the internal form of information and the form acceptable to humans. The human-machine interface exists in all fields involved in human-machine information exchange.
[0049] In actual applications, application layer 1 is the part of the human-computer interaction HMI software system that directly interfaces with the user. In this application, it is the interactive part of the HMI software system. For example, a touch screen is used for interaction in a train, and the hardware and software device part of the touch screen is the application layer 1 in the system. Similarly, application layer 1 also includes buttons, mice and other devices for human-computer interaction and their subordinate data and applications, etc. In this application, the specific forms of the software and hardware of application layer 1 are not limited.
[0050] It can be understood that the mapping MAP layer 2 is an intermediate layer connecting the application layer 1 and other bottom layers. The application layer 1 programmer corresponds the variables, controls, interrupt addresses and other data to the corresponding top-level MAP during the programming process. The programmers of other layers correspond the variables, controls, interrupt addresses and other data to the corresponding bottom-level MAP during the programming process. By matching the top-level MAP with the bottom-level MAP, the bottom-level architecture and the upper-level application can be matched. After different vehicle models and changes in requirements, the programming can be completed by simply updating the top-level MAP and the bottom-level MAP and re-mapping.
[0051] In actual applications, the display MAP is the data currently used by the application layer 1, and the MAP to be displayed is the data to be used by the application layer 1. Similarly, the status MAP and the MAP to be executed are the data used and to be used by other underlying layers. The status MAP and the display MAP correspond to each other, that is, when the system needs to be updated, the updated application layer 1 data and the data of other underlying layers are respectively corresponded to the MAP to be displayed and the MAP to be executed. When it is detected that the MAP to be displayed and the display MAP are different, the update starts, and the status MAP is updated to the same MAP as the MAP to be executed, thereby updating the display MAP corresponding to the status MAP. It should be noted that since the data of the application layer 1 needs to correspond to other underlying codes before it can be updated, it is impossible to directly update the corresponding display MAP according to the MAP to be displayed. In this embodiment, the specific forms of all MAPs are not limited. It can be understood that the MAP can include all data on the train, such as monitoring, carriages, global data, etc.
[0052] In this embodiment, there is no limitation on the hardware modules included in the business logic layer 3, for example, it may include system, control, alarm and other hardware modules. Correspondingly, there is no limitation on the hardware modules included in the function module layer 4 and the hardware driver layer 5. It should be noted that the Application Programming Interface (API) is an interface or channel responsible for the communication between a program and other software. It provides applications and developers with the ability to access a set of routines based on certain software or hardware through pre-defined functions.
[0053] The HMI software system provided in this embodiment includes: an application layer 1, a mapping MAP layer 2, a hardware driver layer 5, a function module layer 4, and a business logic layer 3. The application layer 1 is used to complete the logic function according to the mapping MAP layer 2 data and interrupts. The mapping MAP layer 2 includes a top-level MAP and a bottom-level MAP. The top-level MAP includes a display MAP and a MAP to be displayed. The bottom-level MAP includes a status MAP and a MAP to be executed. The display MAP is the data used by the current application layer 1, the MAP to be displayed is the data to be used by the application layer 1, the status MAP is the data of the currently running hardware driver layer 5, the function module layer 4, and the business logic layer 3, and the MAP to be executed is the data of the hardware driver layer 5, the function module layer 4, and the business logic layer 3 to be run. When the MAP to be displayed and the MAP to be executed are different from the current display MAP and the execution MAP, that is, when they need to be updated, the top-level MAP is directly called. The corresponding data in the layer and bottom layer MAP are updated. Compared with the current HMI software system, a mapping MAP layer 2 is added to the application layer 1 and other bottom layers. The corresponding data that needs to be updated in each layer can be directly called through the mapping MAP layer 2, and all data only needs to be initially written and stored in the mapping MAP layer 2. There is no need to program again when updating, which realizes the independence and program reuse of application layer 1 programming and bottom layer programming, and the program and corresponding data of the corresponding layer can be directly queried through the address of the mapping MAP layer 2, which simplifies the search method and makes it more convenient for users to use. Taking into account the update of the application layer 1 of the HMI software system due to the update of vehicle models, software and equipment, a preferred solution is proposed here. The device also includes: a first timer, the first timer is used to detect whether a first update signal is received at every first preset time to facilitate the update of the top-level MAP data.
[0054] It should be noted that, in this embodiment, there is no limitation on the first preset time, and the update mentioned in this embodiment is to update the top-level MAP data, that is, the data content stored in the top-level MAP. If there is new content written by the user and stored in the top-level MAP, in the above embodiment, the corresponding data content in the top-level MAP is called, and the display MAP data content is updated according to the data content of the MAP to be displayed. The data in the MAP to be displayed and the display MAP are derived from the data content currently stored in the top-level MAP. Therefore, no new content is added and no user writing is required. There is an essential difference between the two and it is necessary to distinguish them.
[0055] The first timer mentioned in this embodiment can cyclically detect whether the top-level MAP data needs to be updated, thereby avoiding the problem that the data of the new application layer 1 cannot be updated due to failure to update the top-level MAP data, and improving the convenience of the system.
[0056] Taking into account the update of the hardware driver layer 5, business logic layer 3, and functional module layer 4 of the HMI software system due to the update of the vehicle model, code, hardware, etc., a preferred solution is proposed here. The device also includes: a second timer, and the second timer is used to detect whether a second update signal is received every second preset time to facilitate the update of the underlying MAP data.
[0057] It should be noted that, in this embodiment, there is no limit on the second preset time, and the update mentioned in this embodiment is to update the underlying MAP data, that is, the data content stored in the underlying MAP. If there is new content written by the user and stored in the top-level MAP, the corresponding data content in the underlying MAP is called in the above embodiment, and the status MAP data content is updated according to the content of the MAP to be executed. The data in the status MAP is derived from the data content currently stored in the underlying MAP, so no new content is added and no user needs to write it. The two are essentially different and need to be distinguished.
[0058] The second timer mentioned in this embodiment can cyclically detect whether the underlying MAP data needs to be updated, thereby avoiding the problem of being unable to find the corresponding MAP content to be executed due to failure to update the underlying MAP data, thereby improving the convenience of the system.
[0059] The above embodiment does not limit the specific content of MAP, and a preferred solution is proposed here. Figure 2 A schematic diagram of the structure of the top-level MAP and the bottom-level MAP provided in the embodiment of the present application is shown in FIG. Figure 2 The displayed MAP and the MAP to be displayed, the state MAP and the MAP to be executed all include a global MAP, a compartment MAP, an interruption MAP and an alarm MAP.
[0060] like Figure 2As shown, the global MAP refers to the address of the overall basic data on the entire train, such as the underlying code corresponding to the train model, basic data such as train operation, etc. The car MAP refers to the different data corresponding to different cars on the train, for example, the difference between the dining car car data and the passenger car car data, etc., which can include the video and audio information of different cars. The interrupt MAP represents different interrupt data, such as programs, codes, etc. The alarm MAP corresponds to the alarm device of the train, which generally records the thresholds of some data, such as the temperature of the train, the power supply of the car, etc. 00-xx refers to the data address, and each address of 00-xx corresponds to a different type of data. For example, the data address of vehicle A is 00-01, and the data address of vehicle B is 00-02. When the entire HMI software system is applied from vehicle A to vehicle B, the MAP to be displayed and the MAP to be executed of the top-level MAP and the bottom-level MAP are input as 00-02. When it is detected that the current display MAP and status MAP are different from the MAP to be displayed and the MAP to be executed, the update method mentioned in the above embodiment is executed, thereby converting the operation plan of the entire system from the overall HMI software system architecture of vehicle A to the HMI software system architecture of vehicle B.
[0061] It should be noted that the specific form of MAP is limited in this embodiment, and the main data content in the train is included with a smaller data address, which reduces the complexity of the data and thus improves the operation and query efficiency of the HMI software system.
[0062] Figure 3 A flow chart of an HMI software system update method provided in an embodiment of the present application is applied to the above-mentioned HMI software system, such as Figure 3 As shown, the method includes:
[0063] S10: Check whether the displayed MAP is the same as the MAP to be displayed. If so, go to S10 again. If not, go to S11.
[0064] It can be understood that this embodiment performs a cyclic detection on whether the displayed MAP is the same as the MAP to be displayed. The cycle time is not specifically limited here. The cyclic detection can be performed by a timer, by an interrupt, or by a user sending an instruction, which is not limited here.
[0065] S11: Check whether the status MAP is the same as the MAP to be executed, if not, go to S12, if yes, go to S13;
[0066] S12: call the state MAP corresponding to the MAP to be executed, update the state MAP, and return to S11;
[0067] S13: Update the display MAP to correspond to the status MAP.
[0068] In actual applications, the display MAP is the data currently used by the application layer, and the MAP to be displayed is the data to be used by the application layer. Similarly, the status MAP and the MAP to be executed are the data used and to be used by other underlying layers. The status MAP and the display MAP correspond to each other, that is, when the system needs to be updated, the updated application layer data and other underlying data are respectively corresponded to the MAP to be displayed and the MAP to be executed. When it is detected that the MAP to be displayed and the display MAP are different, the update starts, and the status MAP is updated to the same MAP as the MAP to be executed, thereby updating the display MAP corresponding to the status MAP. It should be noted that since the data of the application layer needs to correspond to other underlying codes before it can be updated, it is impossible to directly update the corresponding display MAP according to the MAP to be displayed. In this embodiment, the specific forms of all MAPs are not limited. It can be understood that the MAP can include all data on the train, such as monitoring, carriages, global data, etc.
[0069] The HMI software system update method provided by the present application is applied to the above-mentioned HMI software system, and the HMI software system includes: an application layer, a mapping MAP layer, a driver layer, a functional module layer, and a business logic layer. The application layer is used to complete the logical function according to the mapping MAP layer data and interrupts. The mapping MAP layer includes a top-level MAP and a bottom-level MAP. The top-level MAP includes a display MAP and a MAP to be displayed. The bottom-level MAP includes a status MAP and a MAP to be executed. The display MAP is the data used by the current application layer, the MAP to be displayed is the data to be used by the application layer, the status MAP is the data of the currently running hardware driver layer, the functional module layer, and the business logic layer, and the MAP to be executed is the data of the hardware driver layer, the functional module layer, and the business logic layer to be executed. and data of the business logic layer. When the MAP to be displayed and the MAP to be executed are different from the current display MAP and execution MAP, that is, when they need to be updated, the corresponding data in the top-level and bottom-level MAPs are directly called for update. Compared with the current HMI software system, a mapping MAP layer is added to the application layer and other bottom layers. The corresponding data that needs to be updated in each layer can be directly called through the mapping MAP layer, and all data only needs to be initially written and stored in the mapping MAP layer. There is no need to reprogram when updating, which realizes the independence and program reuse of application layer programming and bottom-level programming, and the program and corresponding data of the corresponding layer can be directly queried through the address of the mapping MAP layer, which simplifies the search method and makes it more convenient for users to use.
[0070] Preferably, the HMI software system further includes a first timer, and the method further includes:
[0071] At every first preset time, detecting whether a first update signal is received, the first update signal being used to indicate whether the top-level MAP data is updated;
[0072] If so, update the top-level MAP data.
[0073] In this embodiment, the first timer can cyclically detect whether the top-level MAP data needs to be updated, thereby avoiding the problem of being unable to find the corresponding content of the MAP to be executed due to failure to update the top-level MAP data and thus causing the data to fail to update, thereby improving the convenience of the system.
[0074] Preferably, the HMI software system further includes a second timer, and the method further includes:
[0075] At every second preset time, detecting whether a second update signal is received, the second update signal is used to indicate whether the bottom layer MAP data is updated;
[0076] If so, update the underlying MAP data.
[0077] In this embodiment, the second timer can be used to cyclically detect whether the underlying MAP data needs to be updated, thereby avoiding the problem of being unable to find the corresponding MAP content to be executed due to failure to update the underlying MAP data, thereby improving the convenience of the system.
[0078] Figure 4 A structural diagram of an electronic device provided in another embodiment of the present application, such as Figure 4 As shown, the electronic device includes: a memory 20 for storing a computer program;
[0079] The processor 21 is used to implement the steps of the HMI software system updating method mentioned in the above embodiment when executing the computer program.
[0080] The electronic device provided in this embodiment may include but is not limited to a smart phone, a tablet computer, a laptop computer or a desktop computer.
[0081] Among them, the processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 21 can be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 21 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 21 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 21 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
[0082] The memory 20 may include one or more computer-readable storage media, which may be non-transitory. The memory 20 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In this embodiment, the memory 20 is at least used to store the following computer program 201, wherein, after the computer program is loaded and executed by the processor 21, it can implement the relevant steps of the HMI software system update method disclosed in any of the aforementioned embodiments. In addition, the resources stored in the memory 20 may also include an operating system 202 and data 203, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system 202 may include Windows, Unix, Linux, etc. The data 203 may include, but is not limited to, data involved in the HMI software system update method, etc.
[0083] In some embodiments, the electronic device may further include a display screen 22 , an input / output interface 23 , a communication interface 24 , a power source 25 , and a communication bus 26 .
[0084] Those skilled in the art will understand that Figure 4 The structure shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than shown in the figure.
[0085] The electronic device provided in the embodiment of the present application includes a memory and a processor. When the processor executes the program stored in the memory, it can implement the following method: the HMI system update method mentioned in the above embodiment.
[0086] The electronic device provided in this application corresponds to the above method. The embodiments are shown in the method section, and the beneficial effects are also the same as those in the method section, which will not be repeated here.
[0087] Finally, the present application also provides an embodiment corresponding to a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps recorded in the above method embodiment are implemented.
[0088] It is understandable that if the method in the above embodiment is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.
[0089] The storage medium provided in this application corresponds to the above method. The embodiments are shown in the method section, and the beneficial effects are also the same as those in the method section, which will not be repeated here.
[0090] The above is a detailed introduction to an HMI software system and update method, electronic device, and medium provided by the present application. The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the various embodiments can be referenced to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the claims of the present application.
[0091] It should also be noted that, in this specification, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.
Claims
1. An HMI software system, characterized in that: include: Application layer, mapping layer, hardware driver layer, functional module layer and business logic layer: The application layer is used to complete the logic function according to the mapping MAP layer data and interruption; The mapping MAP layer includes a top-level MAP and a bottom-level MAP, the top-level MAP includes a display MAP and a MAP to be displayed, the bottom-level MAP includes a status MAP and a MAP to be executed, the top-level MAP is used to store data of the application layer, and the bottom-level MAP is used to store data of the hardware driver layer, the function module layer and the business logic layer; The display MAP is the data used by the current application layer, the to-be-displayed MAP is the data to be used by the application layer, the status MAP is the data of the currently running hardware driver layer, the function module layer and the business logic layer, and the to-be-executed MAP is the data of the hardware driver layer, the function module layer and the business logic layer to be run; The hardware driver layer is used to store the data of the hardware layer API of each hardware module; The functional module layer is used to store the data of the API functions of the hardware layer of each of the hardware modules; The business logic layer is used to store data of each of the hardware modules.
2. The HMI software system according to claim 1, characterized in that: Also includes: A first timer, wherein the first timer is used to detect whether a first update signal is received every first preset time so as to update the top-level MAP data.
3. The HMI software system according to claim 1, characterized in that: Also includes: A second timer, wherein the second timer is used to detect whether a second update signal is received every second preset time so as to update the bottom layer MAP data.
4. The HMI software system according to claim 3, characterized in that: The display MAP and the MAP to be displayed, the state MAP and the MAP to be executed all include a global MAP, a compartment MAP, an interruption MAP and an alarm MAP.
5. A method for updating an HMI software system, characterized in that: Using the HMI software system of claim 1, the method comprises: Circularly detecting whether the displayed MAP is the same as the MAP to be displayed; If not, detecting whether the state MAP is the same as the to-be-executed MAP; If not, calling the state MAP corresponding to the MAP to be executed, updating the state MAP, and returning to the step of detecting whether the state MAP is the same as the MAP to be executed; If so, the display MAP is updated to correspond to the status MAP.
6. The HMI software system update method according to claim 5, characterized in that: The HMI software system further includes a first timer, and the method further includes: At every first preset time, detecting whether a first update signal is received, wherein the first update signal is used to indicate whether the top-level MAP data is updated; If so, the top-level MAP data is updated.
7. The HMI software system update method according to claim 5, characterized in that: The HMI software system further includes a second timer, and the method further includes: every second preset time, detecting whether a second update signal is received, wherein the second update signal is used to indicate whether the bottom layer MAP data is updated; If so, the underlying MAP data is updated.
8. An electronic device, characterized in that: comprising a memory for storing a computer program; A processor, configured to implement the steps of the HMI software system updating method according to any one of claims 5 to 7 when executing the computer program.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the HMI software system updating method according to any one of claims 5 to 7 are implemented.
