Vehicle-mounted lattice screen updating method and device, equipment and storage medium
By generating target data packets and selecting the appropriate transmission method, and updating the on-board dot matrix screen using the CANFD protocol, the problems of complex operation and low transmission efficiency are solved, efficient and flexible custom updates of lighting effects are achieved, and user experience and system performance are improved.
Patent Information
- Application Number
- CN202510436653.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-08
- Publication Date
- 2025-07-25
AI Technical Summary
The existing automotive dot matrix screen has complex lighting effects custom update operations and low transmission efficiency, which affects the system response speed and stability, and cannot meet the user's personalized customization needs.
By generating target data packets, selecting incremental transmission or compression transmission methods based on target grayscale values, using CANFD communication protocol to send data packets to the dot matrix screen for updates, optimizing the user interaction interface and performing chunking processing and data compression.
Improves data transmission rate and reliability, enhances user experience and system performance, maintains compatibility with traditional CAN networks, and achieves flexible and personalized customization.
Smart Images

Figure CN120363716A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of vehicle control technology, and in particular, to a method, device, equipment and storage medium for updating an in-vehicle dot matrix screen. Background Art
[0002] With the rapid development of the automotive industry and the continuous improvement of consumers' personalized needs, as an important part of automotive interiors, the light effect customization function of in-vehicle dot matrix screens has received increasing attention. The in-vehicle dot matrix screen can not only provide a rich visual experience, but also be customized according to the driver's preferences and vehicle status, enhancing the fun and interactivity of driving. However, how to achieve efficient and convenient light effect customization and update has always been an important issue in the development of in-vehicle dot matrix screen technology.
[0003] Currently, the light effect customization and update technology of in-vehicle dot matrix screens mainly has problems such as complex operations and low transmission efficiency. Traditional customization methods often require setting through complex menus or external devices, with cumbersome operations and lack of intuitiveness. At the same time, in terms of data transmission, since the dot matrix screen contains a large number of LED lights, a large amount of data needs to be transmitted each time, resulting in low transmission efficiency and affecting the system's response speed and stability.
[0004] In summary, how to solve the problems of complex operations and low transmission efficiency in the prior art and provide a more efficient and flexible solution for the personalized customization of in-vehicle dot matrix screens is a technical problem that urgently needs to be solved in this field. Summary of the Invention
[0005] Embodiments of this application provide a method, device, equipment and storage medium for updating an in-vehicle dot matrix screen, aiming to solve the problems of complex operations and low transmission efficiency in the prior art and provide a more efficient and flexible solution for the personalized customization of in-vehicle dot matrix screens.
[0006] In a first aspect, embodiments of this application provide a method for updating an in-vehicle dot matrix screen, which is applied to a multimedia host. The method includes:
[0007] In response to a first operation of a user, generate a target data packet, where the target data packet includes an identifier of a target background image, an identifier of a target area block of the target dot matrix screen, a target row, a target column, and a target gray value;
[0008] Based on the target gray value, determine a target transmission method, where the target transmission method includes incremental transmission or compressed transmission;
[0009] Based on the target transmission method, send the target data packet to the target dot matrix screen through the CANFD communication protocol, so that the target dot matrix screen updates the dot matrix light effect based on the target data packet.
[0010] In a possible implementation, the method further includes:
[0011] If the operation of the user indicates that the target tool selected by the user is a tool for increasing the grayscale value, when the grayscale value set by the user is greater than the initial grayscale value, the grayscale value set by the user is determined as the target grayscale value;
[0012] If the operation of the user indicates that the target tool selected by the user is a tool for decreasing the grayscale value, the set grayscale value of the target tool is determined as the target grayscale value.
[0013] In a possible implementation, determining a target transmission method based on the target grayscale value includes:
[0014] If the target grayscale values corresponding to any target row or any target column in the target data packet are all different, incremental transmission is determined as the target transmission method;
[0015] If the target grayscale values corresponding to any target row or any target column in the target data packet are all the same, compressed transmission is determined as the target transmission method.
[0016] In a possible implementation, the method further includes:
[0017] Divide each dot matrix screen in the vehicle into regional blocks and set an identifier for each regional block.
[0018] In a possible implementation, the method further includes:
[0019] After detecting the startup of the multimedia host, load multiple background images and multiple tools and display them to the user through the in-vehicle terminal;
[0020] Based on the second operation of the user, determine the target background image, the target dot matrix screen, and the target tool.
[0021] In a possible implementation, the method further includes:
[0022] Logically supplement the irregular regional blocks in each dot matrix screen.
[0023] In a possible implementation, the method further includes:
[0024] Based on the target transmission method, dynamically adjust the target data packet to obtain an adjusted target data packet;
[0025] Correspondingly, the step of sending the target data packet to the target dot matrix screen through the CANFD communication protocol based on the target transmission method includes:
[0026] Based on the target transmission mode, the adjusted target data packet is sent to the target dot matrix screen through the CANFD communication protocol.
[0027] In a second aspect, an embodiment of the present application provides a vehicle-mounted dot matrix screen updating device, including:
[0028] A generation module, configured to generate a target data packet in response to a first operation of a user, where the target data packet includes an identifier of a target background image, an identifier of a target area block of the target dot matrix screen, a target row, a target column, and a target gray value;
[0029] A first determination module, configured to determine a target transmission mode based on the target gray value, where the target transmission mode includes incremental transmission or compressed transmission;
[0030] A transmission module, configured to send the target data packet to the target dot matrix screen through the CANFD communication protocol based on the target transmission mode, so that the target dot matrix screen updates the dot matrix light effect based on the target data packet.
[0031] In a possible implementation manner, the device further includes:
[0032] A first setting module, configured to, if the operation of the user indicates that the target tool selected by the user is a gray value increasing type tool, when the gray value set by the user is greater than the initial gray value, determine the gray value set by the user as the target gray value;
[0033] A second setting module, configured to, if the operation of the user indicates that the target tool selected by the user is a gray value decreasing type tool, determine the set gray value of the target tool as the target gray value.
[0034] In a possible implementation manner, the first determination module is specifically configured to:
[0035] If the target gray values corresponding to any target row or any target column in the target data packet are all different, determine incremental transmission as the target transmission mode;
[0036] If the target gray values corresponding to any target row or any target column in the target data packet are all the same, determine compressed transmission as the target transmission mode.
[0037] In a possible implementation manner, the device further includes:
[0038] A division module, configured to divide each dot matrix screen in the vehicle into area blocks and set an identifier for each area block.
[0039] In a possible implementation manner, the device further includes:
[0040] A loading module, configured to load a plurality of background images and a plurality of tools after detecting the startup of the multimedia host, and display them to the user through the vehicle-mounted terminal;
[0041] A second determination module, configured to determine the target background image, the target dot matrix screen, and the target tool based on the second operation of the user.
[0042] In a possible implementation manner, the device further includes:
[0043] A supplement module, configured to perform logical supplementation on the irregular area blocks in each dot matrix screen.
[0044] In a possible implementation manner, the device further includes:
[0045] An adjustment module, configured to dynamically adjust the target data packet based on the target transmission mode to obtain an adjusted target data packet;
[0046] Correspondingly, the transmission module is specifically configured to:
[0047] Based on the target transmission mode, send the adjusted target data packet to the target dot matrix screen through the CANFD communication protocol.
[0048] In a third aspect, an embodiment of the present application provides a multimedia host, including: a storage unit and a processing unit;
[0049] The storage unit stores computer execution instructions;
[0050] The processing unit executes the computer execution instructions stored in the storage unit, so that the processing unit executes the above first aspect and / or various possible implementation manners of the first aspect.
[0051] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which computer execution instructions are stored, and when the computer execution instructions are executed by a processing unit, they are used to implement the above first aspect and / or various possible implementation manners of the first aspect.
[0052] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, and when the computer program is executed by a processing unit, it implements the above first aspect and / or various possible implementation manners of the first aspect.
[0053] The vehicle-mounted dot matrix screen update method, device, equipment and storage medium provided by the embodiments of the present application generate a target data packet in response to a first operation of a user, determine a target transmission mode based on a target gray value, and send the target data packet to a target dot matrix screen through a CANFD communication protocol based on the target transmission mode, so that the target dot matrix screen updates the dot matrix light effect based on the target data packet. Through the above method, the data transmission rate is significantly improved, the data load capacity is increased, the data reliability and flexibility are enhanced, the compatibility with the traditional CAN network is maintained, and the user experience and system performance are improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] The drawings herein are incorporated into the specification and constitute a part of this specification, showing embodiments consistent with the present application and used together with the specification to explain the principles of the present application.
[0055] Figure 1 It is a system architecture diagram of the vehicle-mounted dot matrix screen provided by the present application;
[0056] Figure 2 It is a flowchart of the vehicle-mounted dot matrix screen update method provided by the present application Figure 1 ;
[0057] Figure 3 It is a flowchart of the vehicle-mounted dot matrix screen update method provided by the present application Figure 2 ;
[0058] Figure 4 It is a flowchart of the vehicle-mounted dot matrix screen update method provided by the present application Figure 3 ;
[0059] Figure 5 It is a schematic diagram of a data structure;
[0060] Figure 6 It is a flowchart of the vehicle-mounted dot matrix screen update method provided by the present application Figure 4 ;
[0061] Figure 7 It is a schematic diagram of regional block logic supplement;
[0062] Figure 8 It is a schematic diagram of LED numbers;
[0063] Figure 9 It is a schematic diagram of the structure of the vehicle-mounted dot matrix screen update device provided by the present application;
[0064] Figure 10 It is a schematic diagram of the structure of the multimedia host provided by the present application.
[0065] Through the above-mentioned accompanying drawings, specific embodiments of the present application have been shown, and more detailed descriptions will be provided hereinafter. These drawings and written descriptions are not intended to limit the scope of the concept of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. Detailed Description of Specific Embodiments
[0066] Here, exemplary embodiments will be described in detail, and examples are shown in the accompanying drawings. When the following description refers to the accompanying drawings, unless otherwise indicated, the same numerals in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0067] With the continuous development of in-vehicle display technology, dot matrix screens, as a high-resolution and highly flexible display device, have gradually been widely used in vehicles. The display content of traditional dot matrix screens is usually preset by the system, and users cannot customize it according to their personal preferences. Although some existing in-vehicle dot matrix screen systems support certain customization functions, there are many limitations in terms of data transmission efficiency, grayscale value processing, user interaction experience, and cost, and cannot meet the user's demand for personalized lighting effects.
[0068] Currently, in order to achieve user-defined lighting effects on in-vehicle dot matrix screens, it is often necessary to transmit the state data of all the LEDs on the dot matrix screen. Due to the large amount of data, this requires a faster network system (such as in-vehicle Ethernet), increasing the development difficulty and unit cost; and currently, the interaction interface is not intuitive, and it is difficult for users to accurately predict the final display effect when customizing the lighting effect, affecting the user experience. Therefore, there is an urgent need for an in-vehicle dot matrix screen lighting effect custom update system and method that can balance cost and difficulty and support user-friendly interaction.
[0069] In view of the above problems, the present application provides a method, device, equipment and storage medium for updating an in-vehicle dot matrix screen, which solves the problems of complex operation and low transmission efficiency in the prior art, and provides a more efficient and flexible solution for the personalized customization of in-vehicle dot matrix screens. Specifically, traditional customization methods often require complex menus or external devices for setting, which is cumbersome and not intuitive enough. At the same time, in terms of data transmission, since the dot matrix screen contains a large number of LED lights, a large amount of data needs to be transmitted each time, resulting in low transmission efficiency and affecting the response speed and stability of the system. Considering these problems, the inventors studied whether it is possible to optimize the user interface, simplify the operation process, and improve the user experience; at the same time, adopt a block processing and data compression transmission method to reduce the amount of data and improve the transmission efficiency. Solve the problems of complex operation and low transmission efficiency in the prior art, and provide a more efficient and flexible solution for the personalized customization of in-vehicle dot matrix screens. Based on this, the technical solution of the present application is proposed.
[0070] The execution subject of the in-vehicle dot matrix screen updating method provided by the present application is the multimedia host of the in-vehicle dot matrix screen system. Figure 1 This is the architecture diagram of the in-vehicle dot matrix screen system provided by the present application, as Figure 1 shown, the in-vehicle dot matrix screen system mainly consists of a multimedia host, a front dot matrix screen and a rear dot matrix screen.
[0071] The multimedia host has a touch screen, and users can perform custom design of the lighting effects on the touch screen, and transmit the data to the target dot matrix screen through the CANFD communication line for parsing and display.
[0072] The following will specifically describe the technical solution of the present application and how the technical solution of the present application solves the above technical problems with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below with reference to the drawings.
[0073] Figure 2 This is the flowchart of the in-vehicle dot matrix screen updating method provided by the present application Figure 1 as Figure 2 shown, the method includes:
[0074] S201: Generate a target data packet in response to a first operation of the user.
[0075] In this step, in order to enhance the user experience and improve the efficiency of customizing the dot matrix screen lighting effects, the user can freely design on the touch screen of the multimedia host. Then, the multimedia host responds to a series of operations of the user and generates a target data packet. Among them, the target data packet includes the identifier of the target background image, the identifier of the target area block of the target dot matrix screen, the target row, the target column, and the target gray value. This target data packet is used for subsequent transmission and updating of the dot matrix screen lighting effects, ensuring that the dot matrix screen can accurately adjust the lighting effects according to the user's custom settings.
[0076] Specifically, the user customizes the lighting effects of the in-vehicle dot matrix screen through the touch screen of the multimedia host. This includes selecting or drawing the target background image, specifying a specific area block on the target dot matrix screen, and selecting specific rows and columns within this area block and setting the corresponding gray values.
[0077] S202: Determine the target transmission method based on the target gray value.
[0078] In this step, in order to improve the data transmission efficiency and the system's response speed, after determining the target data packet in the above step, according to the target gray value modified by the user, select a suitable transmission method as the target transmission method. Among them, the target transmission method includes incremental transmission or compressed transmission.
[0079] Specifically, if the target gray values corresponding to any target row or any target column in the target data packet are all different, then determine incremental transmission as the target transmission method; if the target gray values corresponding to any target row or any target column in the target data packet are all the same, then determine compressed transmission as the target transmission method.
[0080] S203: Based on the target transmission method, send the target data packet to the target dot matrix screen through the CANFD communication protocol, so that the target dot matrix screen updates the dot matrix lighting effects based on the target data packet.
[0081] In this step, after determining the target transmission method, the target data packet is sent to the target dot matrix screen through the CANFD communication protocol according to the target transmission method. Among them, CANFD is a high-speed and reliable in-vehicle communication protocol, suitable for occasions that require large amounts of data transmission. It can support higher data transmission rates and longer data frame lengths, and can meet the requirements of the in-vehicle dot matrix screen lighting effect update for data transmission speed and stability.
[0082] Specifically, after receiving the data packet, the dot matrix screen will parse the information in the data packet, load or display the background image according to the target background image identifier, locate to a specific area block according to the target area block identifier, and set the gray value of the specified LED lights according to the target row, target column, and target gray value to achieve the update of the lighting effects.
[0083] Optionally, before step S201, after detecting the startup of the multimedia host, load multiple background images and multiple tools, display them to the user through the in-vehicle terminal, and determine the target background image, target dot matrix screen, and target tool based on the user's second operation.
[0084] After the multimedia host starts up, load the background images and prop elements in the theme library. For example, load multiple background images from a storage device or a network server. These background images may be preset or dynamically selected according to user preferences or system policies.
[0085] At the same time, the system loads multiple tools, which are any preset tools that can assist the user in lamp effect design.
[0086] A user interface can be designed to display the loaded background images and tools on the in-vehicle terminal. The interface may include a background image selection area, a tool list or menu, and other interactive elements such as buttons, sliders, etc. The system displays the loaded background images in the background image selection area, and the user can select their favorite background images by browsing or searching. At the same time, the system presents the tool list or menu to the user, and the user can select the tools they need for operation.
[0087] The user performs a second operation through the interface of the in-vehicle terminal, which may include clicking, swiping, entering text, etc. The user's operation is intended to select the background image, dot matrix screen, and tool they want. The system determines the target background image, target dot matrix screen, and target tool selected by the user according to the user's operation.
[0088] For example, the user may click on a background image thumbnail to select it as the target background image; select a specific dot matrix screen through a drop-down menu or slider; and select a tool from the tool list as the target tool.
[0089] The in-vehicle dot matrix screen update method provided by the embodiments of the present application generates a target data packet in response to the user's first operation, determines the target transmission method based on the target gray value, and sends the target data packet to the target dot matrix screen through the CANFD communication protocol based on the target transmission method, so that the target dot matrix screen updates the dot matrix lamp effect based on the target data packet. Through the above method, the data transmission rate is significantly improved, the data load capacity is increased, the data reliability and flexibility are enhanced, the compatibility with the traditional CAN network is maintained, and the user experience and system performance are improved.
[0090] Figure 3 It is a schematic flow of the in-vehicle dot matrix screen update method provided by the present application Figure 2 , as Figure 3 shown, on the basis of the above embodiments, the method further includes:
[0091] S301: If the target tool selected by the user's operation is a tool for increasing the grayscale value, when the grayscale value set by the user is greater than the initial grayscale value, the grayscale value set by the user is determined as the target grayscale value.
[0092] S302: If the target tool selected by the user's operation is a tool for decreasing the grayscale value, the set grayscale value of the target tool is determined as the target grayscale value.
[0093] There are various tools on the touch screen of the multimedia host, and the user can select tools for free design. The tools include a pen, an eraser, a standard model, etc. The user can write, delete, or place the standard model on the touch screen by selecting tools. The multimedia host records the numbers and grayscale values of the modified LEDs in real time. The tools are divided into two categories: those for increasing the LED grayscale value and those for decreasing the grayscale value; among them, the pen and the standard model are for increasing the LED grayscale value. When the user swipes across the touch screen, the multimedia host compares the pre-stored grayscale value of the selected LED (determined by the background image, and different background images will pre-store a corresponding grayscale value on the logical level of each LED) with the grayscale value to be assigned. If the grayscale value to be assigned is greater than the pre-stored grayscale value, the grayscale value set by the user is determined as the target grayscale value; otherwise, it remains unchanged. For the tools for decreasing the LED grayscale value, the set grayscale value of the grayscale value decreasing tool is directly determined as the target grayscale value.
[0094] For the vehicle-mounted dot matrix screen update method provided in the embodiments of the present application, if the target tool selected by the user's operation is a tool for increasing the grayscale value, when the grayscale value set by the user is greater than the initial grayscale value, the grayscale value set by the user is determined as the target grayscale value. If the target tool selected by the user's operation is a tool for decreasing the grayscale value, the set grayscale value of the target tool is determined as the target grayscale value. Through the above method, the flexibility of the user is enhanced, the grayscale value is accurately controlled, the system responsiveness is improved, the user experience is enhanced, and the system stability and reliability are improved, providing a more convenient, efficient, and reliable dot matrix screen light effect adjustment solution for the user.
[0095] Figure 4 It is a schematic flowchart of the vehicle-mounted dot matrix screen update method provided by the present application Figure 3 , as Figure 4 shown, based on the above various embodiments, step S202 specifically includes:
[0096] S401: If the target grayscale values corresponding to any target row or any target column in the target data packet are all different, then incremental transmission is determined as the target transmission method.
[0097] S402: If the target grayscale values corresponding to any target row or any target column in the target data packet are all the same, then compressed transmission is determined as the target transmission method.
[0098] In addition to the normal one-by-one data transmission method, in order to further improve the data transmission efficiency, encoding methods of incremental transmission and compressed transmission are introduced. The multimedia host automatically selects incremental transmission and compressed transmission according to the uniformity of the LED gray values of the blocks, and transmits the LED gray values inside the blocks.
[0099] Specifically, first check each target row or target column in the target data packet. For each row or column, compare whether all the target gray values it contains are different. If the target gray values of any row or any column in the target data packet are all different, this means that the data packet contains rich gray value change information. In this case, select incremental transmission as the target transmission method. Incremental transmission is a data transmission method that only transmits the difference between the source data and the target data, and is suitable for situations where there are many data changes. By incremental transmission, unnecessary data transmission volume can be reduced, and the transmission efficiency can be improved. For LEDs with rich gray value changes, incremental transmission can more accurately reflect the data changes and avoid transmitting redundant information.
[0100] Check each target row or target column in the target data packet. For each row or column, compare whether all the target gray values it contains are the same. If the target gray values of any row or any column in the target data packet are the same, this means that the data packet contains a large amount of repeated gray value information. In this case, select compressed transmission as the target transmission method. Compressed transmission is a method of reducing the amount of transmitted data by compressing the data, and is suitable for situations where there are a large amount of repeated or redundant information in the data. Through compressed transmission, the system can significantly reduce the amount of transmitted data and improve the transmission efficiency. For LEDs with the same or similar gray values, compressed transmission can make more effective use of the transmission bandwidth and reduce the transmission cost.
[0101] Optionally, in order to transmit data efficiently, an optimized data packet structure is adopted. Figure 5 For the schematic diagram of the data structure, as Figure 5 shown, the specific format of the data packet is as follows:
[0102] 1. Background map number (4 digits):
[0103] Used to transfer the background map selected by the user.
[0104] Encoding method:
[0105] 0000: Blank page
[0106] 0001~1111: Different background map numbers (range 0001~1111, that is, 1~15 kinds of background maps are supported)
[0107] 2. Transmission Method (4 bits):
[0108] Defines the data transmission method, such as compressed transmission, normal transmission, etc.
[0109] Coding Method:
[0110] 0001: Normal Transmission (transmit one by one for each LED)
[0111] 0010: Incremental Transmission (only transmit the modified LEDs)
[0112] 0011: Compressed Transmission (for the case of LEDs with the same gray level in a block, only transmit one gray level value)
[0113] Other encodings are reserved for future expansion.
[0114] 3. Block Number (1 byte):
[0115] Defines the block number of the current transmission.
[0116] Each block has a unique number, ranging from 0x00 to 0xFF (i.e., 0 to 255), supporting up to 256 blocks.
[0117] 4. Row Selection (1 byte):
[0118] Defines which rows have modified LEDs.
[0119] Each bit represents a row. 1 indicates that there are modified LEDs in that row, and 0 indicates that there are no modified LEDs in that row. For example, 00001111 means that there are modified LEDs in rows 1 to 4.
[0120] 5. Column Selection (multiple bytes, determined according to row selection)
[0121] Defines, in sequence, which column LEDs are modified on the selected rows.
[0122] Each bit represents a determined bit that is modified on the selected rows. For example, if row 00000001 is selected in row selection and 00000011 is selected in column selection, it means that the 1st and 2nd LEDs on row 1 are modified.
[0123] 6. LED Gray Level Value (subsequent bytes):
[0124] Defines the gray level value of the modified LEDs.
[0125] The gray level value of each LED is represented by 1 byte (0 - 255), indicating different brightness levels. The order of the gray level values should be consistent with the row order in the row selection byte.
[0126] Optionally, based on the target transmission mode, dynamically adjust the target data packet to obtain the adjusted target data packet. Correspondingly, based on the target transmission mode, send the target data packet to the target dot matrix screen through the CANFD communication protocol, including:
[0127] Based on the target transmission mode, send the adjusted target data packet to the target dot matrix screen through the CANFD communication protocol.
[0128] For the implementation method of incremental transmission: Only the modified LEDs in the block are transmitted. Determine the block to be transmitted through the block number, further narrow the range of the modified LEDs through row selection, and finally determine the specific LED numbers modified in each row through column selection.
[0129] Exemplarily, the user, on the touch screen, with the background Figure 1 , modified the gray values of the 1st, 2nd, and 3rd LEDs in the 3rd row of the 2nd block.
[0130] The data packet generated by the system is as follows:
[0131] Background image number / transmission mode byte: 0x12
[0132] -- Background image number: 0001 (number: 1)
[0133] -- Transmission mode: 0010 (incremental transmission)
[0134] Block number: 0x02 (the 2nd block)
[0135] Row selection: 0x04 (the 3rd row, binary representation: 00000100)
[0136] Column selection: 0x07 (the 1st, 2nd, and 3rd LEDs, binary representation: 00000111)
[0137] Gray values: 0x80, 0x90, 0xA0 (corresponding to the gray values of the 1st, 2nd, and 3rd LEDs respectively)
[0138] After the target dot matrix screen receives the data, on the premise of the background Figure 1 , update the gray values of the 1st, 2nd, and 3rd LEDs in the 3rd row of the 2nd block.
[0139] For the implementation method of compressed transmission: If the number of modified LEDs on the dot matrix screen is very large, for example, in the case of large-area scribbling by the user, it will cause a large amount of data, so that the transmission efficiency is reduced and the system response speed is affected. To better solve this problem, a compressed transmission method is proposed, which further reduces the data transmission volume by identifying the similarity of the LED gray values in the block and improves the system response speed.
[0140] The core idea of compressed transmission is to compress and transmit the grayscale values. Especially when the LED grayscale values within a block are the same, only one grayscale value needs to be transmitted to replace the grayscale value data of the entire block. The specific implementation method is as follows:
[0141] When the system generates a data packet, it first detects whether the LED grayscale values within the current block are the same.
[0142] If the grayscale values of all LEDs within the block are the same, only one grayscale value needs to be transmitted to replace the grayscale value data of the entire block.
[0143] If the LED grayscale values within the block are not completely the same, the grayscale value of each LED is transmitted in an incremental transmission manner.
[0144] Exemplarily, the user selects the background on the touch screen Figure 1 and modifies the grayscale values of the 1st to 8th LEDs in the 1st row of the 1st block, and the grayscale values are the same.
[0145] The data packet generated by the system is as follows:
[0146] Background image number / transmission method: 0x13
[0147] -- Background image: 0001 (background image number 1)
[0148] -- Transmission method: 0011 (compressed transmission)
[0149] Block number: 0x01 (the 1st block)
[0150] Row selection: 0x01 (the 1st row, binary representation is 00000001)
[0151] Column selection: 0xFF (binary representation is 11111111)
[0152] Grayscale value: 0xFF
[0153] After the target dot matrix screen receives the data, on the premise of the background Figure 1 it updates all the LEDs in the 1st row of block 1, and the grayscale value is 255.
[0154] In the vehicle dot matrix screen update method provided by the embodiments of the present application, if the target gray values corresponding to any target row or any target column in the target data packet are all different, the incremental transmission is determined as the target transmission method; if the target gray values corresponding to any target row or any target column in the target data packet are all the same, the compressed transmission is determined as the target transmission method. By flexibly selecting incremental transmission or compressed transmission as the target transmission method according to the change situation of the gray values in the target data packet, the above method can significantly optimize the data transmission efficiency, ensure data integrity and security, adapt to different application scenarios, and improve system performance and user experience.
[0155] Figure 6 Schematic flow of the vehicle dot matrix screen update method provided by the embodiments of the present application Figure 4 , such as Figure 6 shown. On the basis of the above embodiments, the method further includes:
[0156] S601: Divide each dot matrix screen in the vehicle into regional blocks and set an identifier for each regional block.
[0157] S602: Logically supplement the irregular regional blocks in each dot matrix screen.
[0158] In a vehicle, dot matrix screens are usually used to display various information, such as vehicle speed, fuel level, navigation instructions, etc. To improve the display efficiency and flexibility of dot matrix screens, it is necessary to divide them into multiple regional blocks. The dot matrix screen is logically defined by blocks, and different blocks have unique block ID definitions. Transmissions are performed for the used blocks, while the unused blocks are not transmitted. The division of regional blocks can be based on factors such as the physical size of the dot matrix screen, display requirements, and control logic. For example, the dot matrix screen can be divided into three horizontal regional blocks: upper, middle, and lower, or three vertical regional blocks: left, middle, and right. It can also be divided into regional blocks with more complex shapes and sizes according to specific application scenarios. Setting an identifier for each regional block is for the convenience of subsequent control and management. Through the identifier, a specific regional block can be quickly located, and the display content can be updated and controlled. The identifier can be a number, letter, symbol, etc., depending on the actual application requirements. For example, numbers "1", "2", "3", etc. can be used to represent different regional blocks. At the software level, these identifiers can be stored and managed through variables, arrays, or data structures.
[0159] During the process of dividing the area blocks of the dot matrix screen, there may be some area blocks with irregular shapes. These area blocks may be generated due to factors such as the physical shape of the dot matrix screen, display requirements, or control logic. In order to effectively control and manage these irregular area blocks, identification needs to be carried out first. The position and shape of the irregular area blocks can be identified by analyzing the driving circuit and control logic of the dot matrix screen and combining with the actual display requirements. At the software level, corresponding programs can be written to automatically identify and mark these irregular area blocks. Logic supplementation is to ensure that the irregular area blocks can correctly display content and maintain good coordination and unity with other area blocks. Through logic supplementation, flexible control and management of the irregular area blocks can be achieved, thereby improving the display efficiency and flexibility of the dot matrix screen. The specific method of logic supplementation depends on the shape and display requirements of the irregular area blocks. For example, for area blocks with irregular shapes but small areas, the content can be displayed by adjusting the surrounding pixel points. For area blocks with complex shapes and large areas, more complex control logic and algorithms are required to correctly display the content. At the software level, corresponding programs can be written to implement logic supplementation, including operations such as adjusting pixel points, splicing, and fusing display content.
[0160] Exemplarily, Figure 7 is a schematic diagram of area block logic supplementation, Figure 8 is a schematic diagram of LED numbering. The area of the dot matrix screen is divided into area blocks according to the specification of 8×8 (for parts that do not meet or are irregular, the logic is supplemented completely, as Figure 7 shown), and different block labels are defined at the logic level. Then the blocks are numbered by rows and columns, as Figure 8 shown. Each user-defined LED will be accurately described according to the block, row, column, and gray value. According to this block division method, it not only avoids excessive data caused by full transmission of dot matrix screen LED data, but also makes full use of the characteristics of CAN signals to reduce the data volume (1Byte = 8Bit).
[0161] The vehicle-mounted dot matrix screen update method provided by the embodiments of this application divides each dot matrix screen in the vehicle into area blocks, sets an identifier for each area block, and performs logic supplementation on the irregular area blocks in each dot matrix screen. Dividing each dot matrix screen in the vehicle into area blocks, setting identifiers, and performing logic supplementation on irregular area blocks can not only improve display efficiency and flexibility, optimize control and management, but also enhance user experience and system scalability.
[0162] Figure 9 is a schematic structural diagram of the vehicle-mounted dot matrix screen update device provided by this application, as Figure 9 shown. The vehicle-mounted dot matrix screen update device 900 specifically includes:
[0163] A generation module 901, configured to generate a target data packet in response to a first operation of a user, where the target data packet includes an identifier of a target background image, an identifier of a target area block of a target dot matrix screen, a target row, a target column, and a target gray value.
[0164] A first determination module 902, configured to determine a target transmission mode based on the target gray value, where the target transmission mode includes incremental transmission or compressed transmission.
[0165] A transmission module 903, configured to send the target data packet to the target dot matrix screen through a CANFD communication protocol based on the target transmission mode, so that the target dot matrix screen updates the dot matrix light effect based on the target data packet.
[0166] In a possible implementation, the in-vehicle dot matrix screen updating device 900 further includes:
[0167] A first setting module 904, configured to, if the operation of the user indicates that the selected target tool is a gray value increasing type tool, determine the gray value set by the user as the target gray value when the gray value set by the user is greater than the initial gray value.
[0168] A second setting module 905, configured to, if the operation of the user indicates that the selected target tool is a gray value decreasing type tool, determine the set gray value of the target tool as the target gray value.
[0169] In a possible implementation, the first determination module 902 is specifically configured to:
[0170] If the target gray values corresponding to any target row or any target column in the target data packet are all different, determine incremental transmission as the target transmission mode;
[0171] If the target gray values corresponding to any target row or any target column in the target data packet are all the same, determine compressed transmission as the target transmission mode.
[0172] In a possible implementation, the in-vehicle dot matrix screen updating device 900 further includes:
[0173] A partitioning module 906, configured to partition each dot matrix screen in the vehicle into area blocks and set an identifier for each area block.
[0174] In a possible implementation, the in-vehicle dot matrix screen updating device 900 further includes:
[0175] A loading module 907, configured to load a plurality of background images and a plurality of tools after detecting that the multimedia host is started, and display them to the user through the in-vehicle terminal.
[0176] A second determination module 908, configured to determine a target background image, a target dot matrix screen, and a target tool based on a second operation of the user.
[0177] In a possible implementation, the vehicle-mounted dot matrix screen updating device 900 further includes:
[0178] A supplement module 909, configured to perform logical supplementation on irregular region blocks in each dot matrix screen.
[0179] In a possible implementation, the vehicle-mounted dot matrix screen updating device 900 further includes:
[0180] An adjustment module 910, configured to dynamically adjust a target data packet based on a target transmission method to obtain an adjusted target data packet;
[0181] Correspondingly, the transmission module 903 is specifically configured to:
[0182] Based on the target transmission method, send the adjusted target data packet to the target dot matrix screen through the CANFD communication protocol.
[0183] The vehicle-mounted dot matrix screen updating device provided in this embodiment can execute the solutions of the vehicle-mounted dot matrix screen updating method provided in the above method embodiments. The implementation principles and technical effects are similar, and details are not described herein.
[0184] Figure 10 It is a schematic structural diagram of the multimedia host provided in this application. As Figure 10 shown, the multimedia host 1000 provided in this embodiment includes: at least one processing unit 1001 and a storage unit 1002. Optionally, the multimedia host 1000 further includes a communication component 1003. Among them, the processing unit 1001, the storage unit 1002, and the communication component 1003 are connected through a bus 1004.
[0185] In a specific implementation process, at least one processing unit 1001 executes computer execution instructions stored in the storage unit 1002, so that at least one processing unit 1001 executes the above method.
[0186] The specific implementation process of the processing unit 1001 can be referred to in the above method embodiments. The implementation principles and technical effects are similar, and details are not described herein again.
[0187] In the above embodiments, it should be understood that the processing unit may be a central processing unit (CPU for short), or may also be other general-purpose processing units, digital signal processors (DSP for short), application specific integrated circuits (ASIC for short), etc. The general-purpose processing unit may be a microprocessing unit or any conventional processing unit, etc. The steps of the method disclosed in combination with the invention can be directly implemented by the execution of the hardware processing unit, or implemented by the combination of the hardware and software modules in the processing unit.
[0188] The storage unit may include a high-speed storage unit (Random Access Memory, RAM), and may also include a non-volatile storage unit (Non-volatile Memory, NVM), such as at least one disk storage unit.
[0189] The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For the convenience of representation, the buses in the drawings of this application are not limited to only one bus or one type of bus.
[0190] This application also provides a computer program product, including a computer program, which implements the above method when executed by the processing unit.
[0191] This application also provides a computer-readable storage medium, in which computer-executable instructions are stored, and when the processing unit executes the computer-executable instructions, the above method is implemented.
[0192] The above-readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as a static random access storage unit (SRAM), an electrically erasable programmable read-only storage unit (EEPROM), an erasable programmable read-only storage unit (EPROM), a programmable read-only storage unit (PROM), a read-only storage unit (ROM), a magnetic storage unit, a flash storage unit, a disk, or an optical disc. The readable storage medium can be any available medium that can be accessed by a general-purpose or special-purpose computer.
[0193] An exemplary readable storage medium is coupled to a processing unit, enabling the processing unit to read information from and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processing unit. The processing unit and the readable storage medium can be located in an Application Specific Integrated Circuit (ASIC). Of course, the processing unit and the readable storage medium can also exist as discrete components in a device.
[0194] The division of units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Additionally, the couplings or direct couplings or communication connections shown or discussed between each other can be indirect couplings or communication connections through some interfaces, devices or units, and can be in electrical, mechanical or other forms.
[0195] The units described as separate components may or may not be physically separated. The components shown as units may or may not be physical units, that is, they can be located in one place or distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0196] Furthermore, in each embodiment of the present invention, the functional units can be integrated in a processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit.
[0197] If the function 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 invention, in essence, or the part that contributes to the prior art, or a part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods in each embodiment of the present invention. The aforementioned storage medium includes: USB flash drives, mobile hard disks, read-only memory units (ROM, Read-Only Memory), random access memory units (RAM, Random Access Memory), magnetic disks or optical discs, etc., all kinds of media that can store program codes.
[0198] Those of ordinary skill in the art will understand that all or part of the steps of implementing the above method embodiments can be completed by hardware related to program instructions. The foregoing program can be stored in a computer-readable storage medium. When the program is executed, it performs the steps of the above method embodiments; and the foregoing storage medium includes: various media such as ROM, RAM, magnetic disks, or optical discs that can store program codes.
[0199] Finally, it should be noted that those skilled in the art will readily conceive of other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. The present invention is intended to cover any variations, uses, or adaptations of the present invention, which follow the general principles of the present invention and include known common knowledge or conventional technical means in the technical field not disclosed by the present invention. It is not limited to the exact structures described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present invention is only limited by the appended claims.
Claims
1. A method for updating an in-vehicle dot matrix screen, characterized in that, Applied to a multimedia host, the method includes: In response to a first operation of the user, generating a target data packet, where the target data packet includes an identifier of a target background image, an identifier of a target region block of a target dot matrix screen, a target row, a target column, and a target gray value; Based on the target gray value, determining a target transmission method, where the target transmission method includes incremental transmission or compressed transmission; Based on the target transmission method, sending the target data packet to the target dot matrix screen through the CANFD communication protocol, so that the target dot matrix screen updates the dot matrix light effect based on the target data packet.
2. The method according to claim 1, wherein The method further includes: If the operation of the user indicates that the selected target tool is a gray value increase type tool, when the gray value set by the user is greater than the initial gray value, determining the gray value set by the user as the target gray value; If the operation of the user indicates that the selected target tool is a gray value decrease type tool, determining the set gray value of the target tool as the target gray value.
3. The method according to claim 1, wherein Based on the target gray value, determining a target transmission method includes: If the target gray values corresponding to any target row or any target column in the target data packet are all different, determining incremental transmission as the target transmission method; If the target gray values corresponding to any target row or any target column in the target data packet are all the same, determining compressed transmission as the target transmission method.
4. The method according to claim 3, characterized in that, The method further includes: Dividing each dot matrix screen in the vehicle into region blocks and setting an identifier for each region block.
5. The method according to claim 4, characterized in that, The method further includes: After detecting the startup of the multimedia host, loading a plurality of background images and a plurality of tools and displaying them to the user through an in-vehicle terminal; Based on a second operation of the user, determining the target background image, the target dot matrix screen, and the target tool.
6. The method according to claim 4, wherein The method further includes: Logically supplementing irregular region blocks in each dot matrix screen.
7. The method according to claim 1, wherein The method further includes: Based on the target transmission method, dynamically adjusting the target data packet to obtain an adjusted target data packet; Correspondingly, the step of sending the target data packet to the target dot matrix screen through the CANFD communication protocol based on the target transmission method includes: Based on the target transmission method, sending the adjusted target data packet to the target dot matrix screen through the CANFD communication protocol.
8. An in-vehicle dot matrix screen update device, characterized in that, Includes: A generation module for generating a target data packet in response to a first operation of the user, where the target data packet includes an identifier of a target background image, an identifier of a target region block of a target dot matrix screen, a target row, a target column, and a target gray value; A first determination module for determining a target transmission method based on the target gray value, where the target transmission method includes incremental transmission or compressed transmission; A transmission module for sending the target data packet to the target dot matrix screen through the CANFD communication protocol based on the target transmission method, so that the target dot matrix screen updates the dot matrix light effect based on the target data packet.
9. A multimedia host, characterized in that, Includes: A storage unit, a processing unit; The storage unit stores computer execution instructions; The processing unit executes the computer-executable instructions stored in the storage unit, so that the processing unit executes the vehicle-mounted dot matrix screen update method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, Computer-executable instructions are stored in the computer-readable storage medium, and when the computer-executable instructions are executed by the processing unit, they are used to implement the vehicle-mounted dot matrix screen update method according to any one of claims 1-7.