Theme synchronization switching methods, devices, electronic equipment and storage media
By registering callback functions and processing functions in the car's smart cockpit, the problem of inconsistent display panel theme switching was solved, enabling synchronous switching of display themes on different screens and improving the user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- CHINA FAW CO LTD
- Filing Date
- 2026-03-24
- Publication Date
- 2026-06-30
AI Technical Summary
In automotive smart cockpits, the display themes on the display panel can easily become inconsistent under certain circumstances (such as vehicle sleep/wake-up or pre-ignition waiting state), resulting in a poor user experience.
By registering callback functions to obtain trigger conditions and updating processing functions, the theme can be switched synchronously on different screens. This includes the coordination of semaphore value checks and power module callbacks to ensure that the theme switches consistently on all display panels.
Improved the consistency of the display theme when switching between day and night, thus enhancing the user experience.
Smart Images

Figure CN122309007A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of smart cockpit technology, and in particular to a method, apparatus, electronic device, and storage medium for theme synchronization switching. Background Technology
[0002] In automotive smart cockpits, the display panel, as a crucial component of human-machine interaction, needs to offer sufficient personalized content. The fully digital instrument cluster can integrate with the central control panel to achieve combined interactive functions, such as full-screen navigation and synchronized display themes. These functions require synchronization between the instrument cluster and the infotainment controller to ensure consistency. Currently, inconsistencies in their interaction occur under specific circumstances, such as during vehicle sleep / wake-up or pre-ignition waiting states. Summary of the Invention
[0003] The purpose of this invention is to provide a method, apparatus, electronic device, and storage medium for theme synchronization switching, which can improve the success rate of theme consistency and eliminate the unnecessary action of manually switching themes.
[0004] This invention provides the following solution:
[0005] According to one aspect of the present invention, a topic synchronization switching method is provided, the topic synchronization switching method comprising:
[0006] Register a corresponding callback function for any changes to topic information;
[0007] By executing the callback function, the triggering conditions corresponding to the topic information change operation are obtained;
[0008] Based on the obtained triggering conditions, update and execute the topic synchronization switching processing function;
[0009] When the triggering condition is met, the processing function is executed to complete the synchronous switching of themes on different screens.
[0010] Optional, also includes:
[0011] Set the semaphore value in the trigger condition;
[0012] Check if the set semaphore value is within the allowed range.
[0013] Optional, also includes:
[0014] Received a callback from the power module regarding TT mode;
[0015] Update the relevant information about the semaphore value based on the received callback.
[0016] Optional, also includes:
[0017] Received a callback from the power module regarding the operating mode.
[0018] Optionally, based on the obtained triggering conditions, update the execution topic synchronization switching handler function, including:
[0019] The configuration file of the processing function is updated according to the trigger adjustment.
[0020] Optionally, when the triggering condition is met, the processing function is executed to complete the synchronous switching of themes on different screens, including:
[0021] The processing function is executed according to the updated configuration file.
[0022] Optional themes include: dark theme or light theme.
[0023] According to a second aspect of the present invention, a topic synchronization switching device is provided, the topic synchronization switching device comprising:
[0024] The registration module is used to register corresponding callback functions for topic information change operations;
[0025] The acquisition module is used to obtain the triggering conditions corresponding to the topic information change operation by executing the callback function;
[0026] The update module is used to update the processing function for synchronous switching of execution topics based on the obtained trigger conditions;
[0027] The switching module is used to execute the processing function when the triggering condition is met, so as to complete the synchronous switching of themes on different screens.
[0028] According to three aspects of the present invention, an electronic device is provided, the electronic device comprising:
[0029] Processor, communication interface, memory, and communication bus.
[0030] The processor, communication interface, and memory communicate with each other through a communication bus.
[0031] The memory stores a computer program that, when executed by the processor, causes the processor to perform the steps of the topic synchronization switching method described above.
[0032] According to four aspects of the present invention, a computer-readable storage medium is provided, on which a computer program is stored, which, when executed by a processor, implements the topic synchronization switching method described above.
[0033] The above solution achieves the following beneficial technical effects:
[0034] The theme synchronization switching method, device, electronic device, and storage medium provided in this invention can improve the consistency of the instrument control theme changes during each day-night switch. Attached Figure Description
[0035] Figure 1 This is a flowchart of a topic synchronization switching method provided in one or more embodiments of the present invention;
[0036] Figure 2 This is a flowchart of a topic synchronization switching method provided in one or more embodiments of the present invention;
[0037] Figure 3 This is a flowchart of a topic synchronization switching method provided in one or more embodiments of the present invention;
[0038] Figure 4 This is a flowchart of a topic synchronization switching method provided in one or more embodiments of the present invention;
[0039] Figure 5 This is a flowchart of a topic synchronization switching method provided in one or more embodiments of the present invention;
[0040] Figure 6 This is a structural diagram of a topic synchronization switching device provided in one or more embodiments of the present invention;
[0041] Figure 7 This is a structural diagram of an electronic device provided in one or more embodiments of the present invention. Detailed Implementation
[0042] The technical solution of the present invention will now be clearly and completely described with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0043] Figure 1 This is a flowchart of a topic synchronization switching method provided in one or more embodiments of the present invention. See also... Figure 1 The theme synchronization switching method includes the following steps:
[0044] S11, for topic information change operations, register the corresponding callback function.
[0045] S12, by executing the callback function, obtain the triggering condition corresponding to the topic information change operation.
[0046] S13, based on the obtained triggering conditions, update the processing function for synchronous switching of execution topics.
[0047] S14, when the triggering condition is met, the processing function is executed to complete the synchronous switching of themes on different screens.
[0048] In smart cockpit applications, in addition to the central control screen, the cockpit is also equipped with multiple different instrument display panels. The purpose of these instrument display panels is to allow the driver to easily understand various vehicle operating parameters in real time.
[0049] However, a problem arises: the synchronization between the instrument cluster's display theme and the central control screen's display theme. Often, the central control screen's display theme has changed to a new theme, but the themes on the other instrument cluster panels haven't been updated accordingly. Alternatively, the instrument cluster panels' themes may have been updated, but the central control screen's update is lagging behind.
[0050] This creates an awkward situation where the central control screen displays a light-colored theme that should be shown during the day, while the instrument panel displays a dark theme that should be shown at night. This inconsistency in display themes leads to a poor user experience.
[0051] In order to enable the display theme to be switched synchronously on all display panels in the cockpit, the following technical solution is adopted in this embodiment.
[0052] First, for each theme change operation, register a corresponding callback function.
[0053] It should be understood that multiple theme change operations may be performed simultaneously within the system. The reason for multiple theme change operations is primarily because the system can display multiple applicable themes at any given time.
[0054] The most typical example is that a display system may use a dark display theme or a light display theme.
[0055] In this example, the system may have theme change operations, such as changing from a dark theme to a light theme, and also changing from a light theme to a dark theme.
[0056] To give another example, the system may contain three different display themes: Lilac Purple, Seagull Gray, and Obsidian Black.
[0057] Correspondingly, there may be six different theme change operations within the system: from lilac purple to seagull gray, from lilac purple to obsidian black, from seagull gray to lilac purple, from seagull gray to obsidian black, and from obsidian black to lilac purple, obsidian black to seagull gray.
[0058] Here's another example. If the system simultaneously offers eight different display themes: off-white, crimson, rosy red, olive green, misty blue, rock white, pine green, and azure blue, then the system should have 56 different theme-changing operations.
[0059] The registration process involves clarifying which callback function corresponds to the system's theme change operation.
[0060] In various embodiments of the present invention, each topic change operation should have a corresponding, unique callback function. By executing the callback function corresponding to each topic change operation, the triggering conditions of that topic change operation can be clearly defined.
[0061] If a theme change operation does not have a corresponding callback function, it means that the triggering condition for the theme change operation cannot be clearly defined, and the subsequent steps in this embodiment cannot be executed.
[0062] After the callback function registration is completed, the registered callback function will then be responsible for retrieving the corresponding trigger conditions.
[0063] It should be understood that every topic change operation within the system has its corresponding triggering conditions.
[0064] In the previous examples of dark and light display themes in this embodiment, if the dark display theme corresponds to nighttime and the light display theme corresponds to daytime, then the trigger condition for switching from a dark display theme to a light display theme should be sunrise. Conversely, the trigger condition for switching from a light display theme to a dark display theme should be sunset.
[0065] Since detecting sunrise and sunset is a relatively complex process, in this example, the corresponding trigger conditions are set by detecting the system time. For example, when the system time reaches 6:30 AM, sunrise has already occurred by default, and the system display theme switches from a dark theme to a light theme. When the system time reaches 6:30 PM, sunset has already occurred by default, and the system display theme switches from a light theme to a dark theme.
[0066] Once the callback function has obtained the trigger conditions for the corresponding theme change operation, the corresponding theme synchronization switching operation can be completed based on the obtained trigger conditions.
[0067] In this embodiment, the theme synchronization switching operation is completed by executing a processing function. That is, when the triggering condition for a theme change operation is met, the system will automatically call the processing function corresponding to this theme change operation to complete the synchronous switching of the theme between different display screens.
[0068] It should be understood that during the synchronous switching of themes, that is, during the execution of the processing function, the processing function needs to call the triggering condition of the corresponding theme change operation.
[0069] Specifically, the processing function should first monitor the variables corresponding to the triggering conditions. When the values of the variables meet the settings in the triggering conditions, then the synchronous switching of the display theme between different screens should be executed.
[0070] The processing function can use the variables involved in the triggering condition as parameters to synchronously switch the display theme. Alternatively, the processing function can pre-set the values of each variable to a fixed position, and then use access to that fixed position to synchronously switch the display theme.
[0071] Once the triggering conditions corresponding to the current theme change operation, which are obtained in advance by the callback function, are met, the processing function begins execution, completing the synchronous switching of the display theme between different screens.
[0072] Figure 2 This is a flowchart of a topic synchronization switching method provided in one or more embodiments of the present invention. See also... Figure 2 The theme synchronization switching method includes the following steps:
[0073] S21, set the semaphore value in the trigger condition.
[0074] S22, check if the set signal value is within the allowed range.
[0075] S23, Register the corresponding callback function for the topic information change operation.
[0076] S24, by executing the callback function, obtain the triggering condition corresponding to the topic information change operation.
[0077] S25, based on the obtained triggering conditions, update the processing function for synchronous switching of execution topics.
[0078] S26, when the triggering condition is met, the processing function is executed to complete the synchronous switching of themes on different screens.
[0079] It should be understood that some topic change operations are triggered by changes in certain signal values within the system.
[0080] For example, a typical example is that when the cabin temperature is below 15°C, the system's display theme is switched to a cool color theme. This is a typical trigger condition set based on the range of semaphore values.
[0081] It should be understood that, similar to the example above, there are many other triggering conditions that use the range of signal values as the basis for judgment.
[0082] For thematic synchronization switching based on semaphores to complete the aforementioned thematic synchronization switching operation, a necessary condition is that the system must synchronously collect the semaphores upon which the thematic synchronization switching is based in real time. Only when the instrument display panel in the cockpit can obtain the current values of the semaphores related to the triggering conditions in real time, can the instrument display panel determine whether the current triggering conditions have been met based on the real-time collected semaphores, and thus determine whether the thematic synchronization switching operation should be executed.
[0083] In addition, before executing the judgment of the trigger condition, it is necessary to complete the setting of the values of each semaphore in the trigger condition.
[0084] The semaphore values set in the trigger conditions should be conditional. First, the values of each semaphore set in the trigger conditions should be reasonable. Those semaphore values that are obviously unreasonable should be deleted.
[0085] For example, setting the cabin temperature to be higher than 2300°C in the trigger conditions is clearly unreasonable.
[0086] Therefore, in this embodiment, settings where the semaphore values are clearly outside the reasonable range should be checked. Upon inspection, if the semaphore settings are indeed found to be outside the reasonable range, such settings will be deleted.
[0087] Figure 3 This is a flowchart of a topic synchronization switching method provided in one or more embodiments of the present invention. See also... Figure 3 The theme synchronization switching method includes the following steps:
[0088] S31, received a callback from the power module regarding TT mode.
[0089] S32 updates the relevant information about the semaphore value based on the received callback.
[0090] S33, for topic information change operations, register the corresponding callback function.
[0091] S34, by executing the callback function, obtain the triggering condition corresponding to the topic information change operation.
[0092] S35, based on the obtained triggering conditions, update the processing function for synchronous switching of execution topics.
[0093] S36, when the triggering condition is met, the processing function is executed to complete the synchronous switching of themes on different screens.
[0094] In this embodiment, TT mode, which is between standby mode and welcome mode, allows the system to receive or send relevant network messages. At this time, it can report relevant alarms or prompts that are required to be displayed in the IG OFF state.
[0095] More specifically, in TT mode, the semaphore value can be updated by sending relevant network messages.
[0096] When encountering scenarios where semaphore values need to be updated, the update operation can be completed through a callback in TT mode. However, it should be noted that the semaphore value update operation should be completed before the callback function is executed. Furthermore, the callback should be initiated by the power module.
[0097] Figure 4 This is a flowchart of a topic synchronization switching method provided in one or more embodiments of the present invention. See also... Figure 4 The theme synchronization switching method includes the following steps:
[0098] S41, received a callback from the power module regarding TT mode.
[0099] S42 updates the relevant information about the semaphore value based on the received callback.
[0100] S43, received a callback from the power module regarding the operating mode.
[0101] S44: Register the corresponding callback function for the operation of changing topic information.
[0102] S45, by executing the callback function, obtain the triggering condition corresponding to the topic information change operation.
[0103] S46, based on the obtained triggering conditions, update the processing function for synchronous switching of execution topics.
[0104] S47, when the triggering condition is met, the processing function is executed to complete the synchronous switching of themes on different screens.
[0105] In this embodiment, before the registration operation of the callback function, a callback operation of the power module regarding the working mode is further added.
[0106] It should be understood that the synchronous switching of topics needs to be completed in certain operating modes in some cases. The synchronous switching process, from the registration of the aforementioned callback function to the execution of the processing function, will only be triggered when the system is in a specific operating mode.
[0107] This embodiment allows the power module to set the operating mode before the process is executed, by registering the callback function before the callback function is registered. This facilitates the execution of the entire process.
[0108] Figure 5 This is a flowchart of a topic synchronization switching method provided in one or more embodiments of the present invention. See also... Figure 5 The theme synchronization switching method includes the following steps:
[0109] S51, for topic information change operations, register the corresponding callback function.
[0110] S52, by executing the callback function, obtain the triggering condition corresponding to the topic information change operation.
[0111] S53, Update the configuration file of the processing function according to the triggering condition.
[0112] S54, Execute the processing function according to the updated configuration file.
[0113] In this embodiment, the processing function completes the synchronous switching operation of themes on different instrument display panels by setting and calling its own configuration file.
[0114] In this embodiment, the processing function corresponding to the topic synchronization switching operation is equipped with its own configuration file. The configuration file contains the configuration parameters for each condition entry in the trigger conditions.
[0115] In this embodiment, the processing function is updated by writing various trigger conditions into its configuration file. Then, the synchronous switching of the theme across different instrument display screens is achieved by calling these trigger conditions.
[0116] Typically, the configuration file mentioned above can be an XML file.
[0117] Figure 6 This is a structural diagram of a topic synchronization switching device provided in one or more embodiments of the present invention. See also... Figure 6 The theme synchronization switching device includes:
[0118] The registration module 61 is used to register corresponding callback functions for topic information change operations.
[0119] The acquisition module 62 is used to acquire the triggering conditions corresponding to the topic information change operation by executing the callback function.
[0120] The update module 63 is used to update the processing function for synchronous switching of execution topics based on the obtained trigger conditions.
[0121] The switching module 64 is used to execute the processing function when the triggering condition is met, so as to complete the synchronous switching of themes on different screens.
[0122] It is worth noting that although only some basic functional modules are disclosed in the embodiments of this invention, it does not mean that the composition of this system is limited to the above-mentioned basic functional modules. On the contrary, what this embodiment intends to express is that, based on the above-mentioned basic functional modules, those skilled in the art can arbitrarily add one or more functional modules in combination with existing technology to form an infinite number of embodiments or technical solutions. That is to say, this system is open rather than closed. The fact that this embodiment only discloses a few basic functional modules should not be considered as the scope of protection of the claims of this invention being limited to the disclosed basic functional modules. At the same time, for the convenience of description, the above device is described separately according to its functions as various units and modules. Of course, in implementing this invention, the functions of each unit and module can be implemented in one or more software and / or hardware.
[0123] like Figure 7 As shown, the present invention also provides an electronic device, including: a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus; the memory stores a computer program, and when the computer program is executed by the processor, the processor performs the steps of a topic synchronization switching method.
[0124] Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. For example... Figure 7 The structure shown in this embodiment of the invention includes an electronic device comprising one or more processors 710 and a memory 720; the processors 710 in this electronic device may be one or more. Figure 7 Taking a processor 710 as an example; a memory 720 is used to store one or more programs; the one or more programs are executed by the one or more processors 710, so that the one or more processors 710 implement the topic synchronization switching method as described in any one embodiment of the present invention.
[0125] The electronic device may also include an input device 730 and an output device 740.
[0126] The processor 710, memory 720, input device 730, and output device 740 in this electronic device can be connected via a bus or other means. Figure 7 Taking the example of a connection between China and Israel via a bus.
[0127] The memory 720 in this electronic device serves as a computer-readable storage medium, capable of storing one or more programs. These programs can be software programs, computer-executable programs, or modules, such as the program instructions / modules corresponding to the topic synchronization switching method provided in this embodiment. The processor 710 executes various functional applications and data processing of the electronic device by running the software programs, instructions, and modules stored in the memory 720, thereby implementing the topic synchronization switching method described in the above embodiment.
[0128] The memory 720 may include a program storage area and a data storage area. The program storage area may store the operating system and applications required for at least one function; the data storage area may store data created based on the use of the electronic device. Furthermore, the memory 720 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other non-volatile solid-state storage device. In some instances, the memory 720 may further include memory remotely located relative to the processor 710, which can be connected to the device via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
[0129] Input device 730 can be used to receive input digital or character information, and to generate key signal inputs related to user settings and function control of the electronic device. Output device 740 may include display devices such as a display screen.
[0130] The present invention also provides a computer-readable storage medium, comprising: storing a computer program executable by a vehicle, wherein when the computer program is run on the vehicle, the vehicle performs the steps of the topic synchronization switching method.
[0131] Specifically, the computer storage medium in this embodiment of the invention can be any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. For example, a computer-readable storage medium can be—but is not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this embodiment, the computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
[0132] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features therein. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for synchronous theme switching, characterized in that, The topic synchronization switching method includes: Register a corresponding callback function for any changes to topic information; By executing the callback function, the triggering conditions corresponding to the topic information change operation are obtained; Based on the obtained triggering conditions, update and execute the topic synchronization switching processing function; When the triggering condition is met, the processing function is executed to complete the synchronous switching of themes on different screens.
2. The method according to claim 1, characterized in that, Also includes: Set the semaphore value in the trigger condition; Check if the set semaphore value is within the allowed range.
3. The method according to claim 1, characterized in that, Also includes: Received a callback from the power module regarding TT mode; Update the relevant information about the semaphore value based on the received callback.
4. The method according to claim 1, characterized in that, Also includes: Received a callback from the power module regarding the operating mode.
5. The method according to claim 1, characterized in that, Based on the obtained triggering conditions, update and execute the topic synchronization switching processing function, including: The configuration file of the processing function is updated according to the trigger adjustment.
6. The method according to claim 5, characterized in that, When the triggering condition is met, the processing function is executed to complete the synchronous switching of themes on different screens, including: The processing function is executed according to the updated configuration file.
7. The method according to claim 1, characterized in that, Topics include: Dark theme, or light theme.
8. A theme synchronization switching device, characterized in that, The topic synchronization switching device includes: The registration module is used to register corresponding callback functions for topic information change operations; The acquisition module is used to obtain the triggering conditions corresponding to the topic information change operation by executing the callback function; The update module is used to update the processing function for synchronous switching of execution topics based on the obtained trigger conditions; The switching module is used to execute the processing function when the triggering condition is met, so as to complete the synchronous switching of themes on different screens.
9. An electronic device, characterized in that, The electronic device includes: Processor, communication interface, memory, and communication bus. The processor, communication interface, and memory communicate with each other through a communication bus. The memory stores a computer program that, when executed by the processor, causes the processor to perform the steps of the topic synchronization switching method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, A computer program is stored on the computer-readable storage medium, which, when executed by a processor, implements the topic synchronization switching method according to any one of claims 1 to 7.