A method and device for data processing

By presetting the lighting effect dictionary data in the automotive lighting effect repository and generating the automotive lighting control script, the complexity of vehicle lighting effect design and control logic is solved, and efficient, simplified operation and fast data replication of lighting effect editing are achieved.

CN112306483BActive Publication Date: 2025-01-07GUANGZHOU XIAOPENG MOTORS TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202011190034.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-10-30
Publication Date
2025-01-07
Estimated Expiration
2040-10-30

AI Technical Summary

Technical Problem

Vehicle lighting design and control logic are controlled by suppliers, editing is complex and dependent on manual operation by professionals, lacking flexibility and efficiency.

Method used

Preset multiple lighting dictionary data in the automotive lighting effect repository, and create or turn on the automotive lighting control script when a trigger event is detected, store target lighting dictionary data to control lighting components, simplify the editing process, reduce manual recognition and Data copy operation.

Benefits of technology

It realizes the quick data replication during visual editing, improves the efficiency of lighting effects editing, simplifies the operation process, and avoids the complexity of manual entry and data replication between tables.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112306483B_ABST
    Figure CN112306483B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention provides a method and device for data processing, the method comprising: presetting a plurality of lighting effect dictionary data in a car lighting effect storage library; creating or starting a car lighting control script when a trigger event is detected, and storing part of the data copied from the target lighting effect dictionary data in the car lighting control script to control the car lighting components to display lighting effects. Through the embodiment of the present invention, quick data copying is achieved during visual lighting effect editing, by storing part of the data copied from the target lighting effect dictionary data in the car lighting control script, without manual identification and manual file entry, and without data copying between tables, which simplifies the operation of lighting effect editing and improves the efficiency of lighting effect editing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing, and in particular to a method and device for data processing. Background Art

[0002] At present, the programming of vehicle lighting effects depends on suppliers, and car manufacturers lack control over vehicle lighting design, control logic of lighting scenes, and lighting effect upgrades and iterations.

[0003] Moreover, the lighting effect design adopted by the supplier only stays at the editing of each lamp bead, and this editing method relies on manual operation by professionals, which is relatively complicated. Summary of the invention

[0004] In view of the above problems, a method and device for data processing is proposed to overcome the above problems or at least partially solve the above problems, including:

[0005] A method for data processing, the method comprising:

[0006] In the automobile lighting effect repository, multiple lighting effect dictionary data are pre-set;

[0007] When a trigger event is detected, a car light control script is created or started, and in the car light control script, part of the data copied from the target light effect dictionary data is stored to control the car light components to display light effects.

[0008] Optionally, each lighting effect dictionary data includes a correspondence between a lighting effect graphic and attribute information.

[0009] Optionally, the lighting effect graphic is a scalable vector graphic.

[0010] Optionally, in the automobile light control script, part of the data copied from the target light effect dictionary data is stored to control the automobile light components to display light effects, including:

[0011] Determining target lighting effect dictionary data from the plurality of lighting effect dictionary data, and visualizing the target lighting effect dictionary data in the dictionary search interface;

[0012] In response to an operation on a lighting effect graphic displayed in the dictionary search interface, determining a portion of data in the target lighting effect dictionary data;

[0013] In response to an operation on the editing operation area in the lighting effect editing interface, the portion of data is copied to the car lighting control script to control the car lighting components to display lighting effects.

[0014] Optionally, it also includes:

[0015] In the lighting effect editing interface, the partial data is visualized.

[0016] Optionally, it also includes:

[0017] In response to the operation on the file management area in the lighting effect editing interface, an executable file corresponding to the automobile lighting control script is generated.

[0018] Optionally, the plurality of lighting effect dictionary data are stored locally, further comprising:

[0019] The car light control script is stored in the cloud.

[0020] A data processing device, comprising:

[0021] A lighting effect dictionary data presetting module is used to pre-set multiple lighting effect dictionary data in the automobile lighting effect storage library;

[0022] The automobile light control script storage module is used to create or start an automobile light control script when a trigger event is detected, and store part of the data copied from the target light effect dictionary data in the automobile light control script to control the automobile light components to display light effects.

[0023] An electronic device comprises a processor, a memory and a computer program stored in the memory and capable of running on the processor, wherein the computer program implements the data processing method as described above when executed by the processor.

[0024] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the data processing method described above is implemented.

[0025] The embodiments of the present invention have the following advantages:

[0026] In an embodiment of the present invention, multiple lighting effect dictionary data are pre-set in a car lighting effect storage library, and then when a trigger event is detected, a car lighting control script is created or started, and in the car lighting control script, part of the data copied from the target lighting effect dictionary data is stored to control the car lighting components to display lighting effects, thereby achieving quick data copying during visual lighting effect editing. By storing part of the data copied from the target lighting effect dictionary data in the car lighting control script, there is no need for manual identification and manual file entry, and there is no need to copy data between tables, which simplifies the operation of lighting effect editing and improves the efficiency of lighting effect editing. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] In order to more clearly illustrate the technical solution of the present invention, the accompanying drawings required for use in the description of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.

[0028] Figure 1 is a schematic diagram of lighting effect dictionary data provided by an embodiment of the present invention;

[0029] Figure 2 is a flowchart of a data processing method provided by an embodiment of the present invention;

[0030] Figure 3a is a schematic diagram of an interactive interface provided by an embodiment of the present invention;

[0031] Figure 3b is a schematic diagram of a lighting effect editing interface provided by an embodiment of the present invention;

[0032] Figure 3c is a schematic diagram of a lighting effect editing process provided by an embodiment of the present invention;

[0033] Figure 4 is a flowchart of another data processing method provided by an embodiment of the present invention;

[0034] Figure 5a is a schematic diagram of a dictionary search interface provided by an embodiment of the present invention;

[0035] Figure 5b is a schematic diagram of another dictionary search interface provided by an embodiment of the present invention;

[0036] Figure 6 is a flowchart of another data processing method provided by an embodiment of the present invention;

[0037] Figure 7 It is a structural diagram of a data processing device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0038] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0039] In order to edit the vehicle lighting effects, you can set up multiple files:

[0040] File 1 may be lighting effect dictionary data, which may be a constant, that is, readable only and not modifiable, and may include the correspondence between time frame information (Tick) and the lighting effect content of the headlights. The lighting effect dictionary data may be used to control the lighting effects of each headlight in the vehicle in a certain time period.

[0041] In order to visually perceive the lighting effects during the lighting effect editing process, the lighting effect content of the car lights can be in the form of lighting effect graphics. For example, if a table is used to display the lighting effect graphics, file 1 can include multiple tables, and each table can correspond to a lighting effect dictionary data.

[0042] The vertical axis in the table represents the time frame information, each grid represents a time period, such as each grid is 20ms, and the horizontal axis in the table represents the lighting effect content of the car light, which constitutes a lighting effect graph, such as Figure 1 AR1-AR19, BM1-BM48, and AL1-AL19 are all headlight logos. Each grid corresponding to the headlight logo represents its lighting effect content, such as the on and off status and color of the headlight.

[0043] File 2 can be a visual car lighting control script. The car lighting control script can be a variable, which is readable and modifiable. It can store lighting effect graphics and attribute information corresponding to the lighting effect graphics. The lighting effect graphics can facilitate visual perception of the lighting effect, and the attribute information can be used to locate specific lighting effect content in the lighting effect dictionary data.

[0044] As an example, the attribute information may include a dictionary identifier corresponding to the lighting effect dictionary data to which the lighting effect graphic belongs, such as each table in file 1 corresponds to a lighting effect dictionary data, and the dictionary identifier is the table number, which may also include the time frame information corresponding to the lighting effect graphic, the high beam control value (which can be used to control whether the high beam is turned on), the low beam control value (which can be used to control whether the low beam is turned on), reserved bits, etc.

[0045] In actual applications, the required lighting effect dictionary data can be filtered out according to user expectations, and then the desired part of the lighting effect graphics can be copied from the lighting effect dictionary data to the car lighting control script, and the attribute information corresponding to the part of the lighting effect graphics can be manually entered in the car lighting control script.

[0046] After the attribute information is entered, the lighting effect identification data corresponding to the attribute information can be generated according to preset rules and stored in the car lighting control script.

[0047] For example, if the attribute information includes the dictionary identifier as 01, the time frame information as 1, and the C light control value as 0, the lighting effect identifier data can be generated in the following manner:

[0048] 1*256+1+0*65536=257

[0049] Furthermore, the car light control script may also have the following configuration parameters:

[0050] 1. Lighting effect name (effect_name): It is the lighting effect name that can be recognized by the in-vehicle application;

[0051] 2. Lighting effect type (effect_type): characterizes the purpose of the lighting effect;

[0052] 3. Lighting effect ID (effect_id): It is used to identify the lighting effect identification data transmitted when the in-vehicle application interacts with some MCUs;

[0053] 4. Headlight unit time frame length: such as 20ms, which can be a multiple of 10;

[0054] 5. Tail light unit time frame length: such as 30ms, which can be a multiple of 10;

[0055] 6. Number of headlight cycles: It can be a natural number greater than 1;

[0056] 7. Tail light cycle times: it can be a natural number greater than 1;

[0057] 8. Headlight stay information: indicates whether the last frame of lighting effect is maintained after the headlight executes the car light control script. It can be a Boolean type, where a value of 1 indicates maintenance and a value of 0 indicates non-maintenance.

[0058] 9. Taillight stay information: indicates whether the last frame of lighting effect is maintained after the taillight executes the car light control script. It can be a Boolean type, where a value of 1 indicates maintenance and a value of 0 indicates non-maintenance.

[0059] File 3 may be an executable file of the car light control script in document 2, that is, the file may be directly recognized by the vehicle system and run in the vehicle system, for example, the executable file may be a JSON file.

[0060] Specifically, an executable file may be generated according to the lighting effect identification data and configuration parameters in the automobile lighting control script, and after an integrity check of the executable file, a file name is input and saved for use by the vehicle system.

[0061] However, the above method of using multiple files has the following problems:

[0062] 1. After searching for the required part of the lighting effect graphics in the lighting effect dictionary data (file 1), it is necessary to manually identify the correspondence between the required part of the lighting effect graphics and the dictionary identifier, time frame information and other attribute information, and then enter it into the car lighting control script (file 2). The operation is complicated and prone to errors.

[0063] 2. It is necessary to copy between the tabular lighting effect dictionary data (file 1) and the car lighting control script (file 2), but the efficiency of copying massive data between tables is low and it is easy to crash.

[0064] 3. It is necessary to calculate the lighting effect identification data through attribute information in the car lighting control script (file 2), and then use tools to generate an executable file (file 3) that can be recognized by the vehicle system, which has low operation efficiency.

[0065] Based on this, the operation of lighting effect editing can be simplified through visual lighting effect editing. There is no need to manually identify the correspondence between the required partial lighting effect graphics and dictionary identifiers, time frame information and other attribute information, and then manually enter the file. There is also no need to copy data between tables. It can automatically generate executable files for lighting effects, which is convenient for connection with subsequent research and development, thereby improving the efficiency of lighting effect editing.

[0066] The following is a detailed description:

[0067] Reference Figure 2 , shows a flowchart of a data processing method provided by an embodiment of the present invention, which may specifically include the following steps:

[0068] Step 201, pre-setting a plurality of lighting effect dictionary data in a car lighting effect storage library;

[0069] Among them, the lighting effect dictionary data can be a constant, that is, it can only be read and cannot be modified. It can include the correspondence between the time frame information (Tick) and the lighting effect content of the car lights. The lighting effect dictionary data can be used to control the lighting effects of each headlight in the vehicle in a certain time period.

[0070] As an example, each lighting effect dictionary data may include a correspondence between a lighting effect graphic and attribute information. The lighting effect graphic may be displayed in a table. The attribute information may include a dictionary identifier corresponding to the lighting effect dictionary data to which the lighting effect graphic belongs. For example, each table in file 1 corresponds to a lighting effect dictionary data, and the dictionary identifier is a table number, which may also include the time frame information corresponding to the lighting effect graphic, the high beam control value (which may be used to control whether the high beam is turned on), the low beam control value (which may be used to control whether the low beam is turned on), a reserved position, etc.

[0071] In practical applications, multiple lighting effect dictionary data may be pre-set in the automobile lighting effect storage library, and then the lighting effect dictionary data may be searched according to user expectations to obtain the lighting effect expected by the user from the multiple lighting effect dictionary data.

[0072] In one embodiment of the present invention, the lighting effect graphics may be scalable vector graphics, for example, a viewing mode of SVG vector graphics may be adopted, which may be a method for processing planar graphic data with good performance and high efficiency in computer graphics processing.

[0073] In one example, multiple lighting effect dictionary table files (i.e., lighting effect dictionary data) can be pre-set in the automobile lighting effect repository, which can be Excel files. Multiple lighting effect dictionary data can be built into a visual lighting effect editing tool, and the specific data of the lighting effect dictionary data can be stored in a cloud database; when visually browsing the dictionary data, the data format can be Excel format, or SVG vector graphics view can be used. The dictionary data format can be customized, such as *.LDIC (Lamp Dictionary), and each lighting effect dictionary table can be an independent vector dictionary data file, such as 01.LDIC~99.LDIC.

[0074] In another example, the lighting effect dictionary table may include lighting effect contents of the headlights and taillights. In each vector dictionary data file, the view format and the correspondence between graphics and data in Excel can be restored in a 1:1 ratio.

[0075] Step 202, when a trigger event is detected, a car light control script is created or started, and in the car light control script, part of the data copied from the target light effect dictionary data is stored to control the car light components to display light effects.

[0076] Among them, the car light control script can be a visual car light control script, and the car light control script can be a variable, that is, readable and modifiable, which can be used to store lighting effect graphics and attribute information corresponding to the lighting effect graphics. The lighting effect graphics can facilitate visual perception of the lighting effect, and the attribute information can be used to locate specific lighting effect content in the lighting effect dictionary data.

[0077] As an example, the partial data may be a portion of the lighting effect graphics in the target lighting effect dictionary data and the attribute information corresponding to the portion of the lighting effect graphics, and the partial data may be stored in a RAM (Random Access Memory).

[0078] After opening the client for visual lighting effect editing, an interactive interface can be displayed. When a trigger event for the interactive interface is detected, a new car light control script can be created, or a previously created car light control script can be opened. In the car light control script, part of the data copied from the target lighting effect dictionary data can be stored to control the car light components to display lighting effects.

[0079] For example, customized data editing can be performed on the car light control script. The car light control script can be a file different from Excel and JSON. When visually editing the lighting effect, a car light control script can be generated, and its file format can be customized, such as *.LLUD (Lamp Language Unit Design). The car light control script can be invisible to the user and can be run in a visual lighting effect editing tool. The visual lighting effect editing tool can provide Runtime for the car light control script.

[0080] Specifically, on the one hand, a creation control for creating a new car light control script can be displayed in the interactive interface, such as Figure 3a In the "Create New Car Light Control Script" control, a new car light control script can be created in response to an operation on the create control.

[0081] On the other hand, since the previously created car light control script can be bound to the user account and stored in the cloud, after the user account is successfully logged in, the previously created car light control script can be searched through the user account, and then the opening control for the previously created car light control script can be displayed in the interactive interface, such as Figure 3a In the control of "previously created car light control script 1-3", in response to the operation of opening the control, the previously created car light control script can be opened.

[0082] In one example, the script name corresponding to the previously created car light control script may be displayed in the control for the car light control script for distinction.

[0083] In another example, after creating or opening a car light control script, you can enter the lighting effect editing interface, such as Figure 3b The lighting effect editing interface may include an editing operation area, a file management area, and a parameter configuration area, and then, by operating in the editing operation area in the lighting effect editing interface, part of the data stored in the RAM may be copied to the car lighting control script.

[0084] In an embodiment of the present invention, a plurality of lighting effect dictionary data may be stored locally, and the following steps may also be included:

[0085] The car light control script is stored in the cloud.

[0086] In the specific implementation, modifications to the newly created car lighting control script and the previously created lighting effect control script can be synchronized to the cloud and bound to the user account, realizing cross-terminal shared creation.

[0087] In one example, if Figure 3c As shown, in the process of creating a car light control script, the car light control script can be continuously read and written for the design content added or removed by the user, and the data can be saved in real time; the lighting effect dictionary data can be downloaded through the cloud database for read-only, online browsing, copy and use, etc., and the car light control script can be downloaded through the cloud database, and the car light control script edited online can be saved to the cloud in real time; data segments (i.e., part of the data) can be copied from the lighting effect dictionary data, and the copied data segments can be pasted into the car light control script.

[0088] In an embodiment of the present invention, multiple lighting effect dictionary data are pre-set in a car lighting effect storage library, and then when a trigger event is detected, a car lighting control script is created or started, and in the car lighting control script, part of the data copied from the target lighting effect dictionary data is stored to control the car lighting components to display lighting effects, thereby achieving quick data copying during visual lighting effect editing. By storing part of the data copied from the target lighting effect dictionary data in the car lighting control script, there is no need for manual identification and manual file entry, and there is no need to copy data between tables, which simplifies the operation of lighting effect editing and improves the efficiency of lighting effect editing.

[0089] Reference Figure 4 , shows a flowchart of another data processing method provided by an embodiment of the present invention, which may specifically include the following steps:

[0090] Step 401, pre-setting a plurality of lighting effect dictionary data in a car lighting effect storage library;

[0091] In practical applications, multiple lighting effect dictionary data may be pre-set in the automobile lighting effect storage library, and then the lighting effect dictionary data may be searched according to user expectations to obtain the lighting effect expected by the user from the multiple lighting effect dictionary data.

[0092] Step 402, when a trigger event is detected, create or start a car light control script;

[0093] After the client for visual lighting effect editing is opened, an interactive interface may be displayed. When a trigger event for the interactive interface is detected, a new car light control script may be created, or a previously created car light control script may be opened.

[0094] Step 403, determining target lighting effect dictionary data from the plurality of lighting effect dictionary data, and visualizing the target lighting effect dictionary data in the dictionary search interface;

[0095] In actual applications, since multiple lighting effect dictionary data are pre-set, the user can enter the dictionary search interface according to the user's expectations, and obtain target lighting effect dictionary data from multiple lighting effect dictionary data through the search operation on the lighting effect dictionary data. The target lighting effect dictionary data can be visualized in the dictionary search interface to facilitate finding the lighting effect expected by the user.

[0096] For example, after entering the dictionary search interface, Figure 3b The dictionary search interface may have an identification input area, and the lighting effect dictionary identification may be determined by inputting in the identification input area in the dictionary search interface, and then the corresponding target lighting effect dictionary data may be obtained.

[0097] In order to visually perceive the lighting effects during the lighting effect editing process, the lighting effect content of the headlights can be in the form of lighting effect graphics. For example, if a table is used to display the lighting effect graphics, multiple tables can be set, and each table can correspond to a lighting effect dictionary data.

[0098] The vertical axis in the table represents the time frame information, each grid represents a time period, such as each grid is 20ms, and the horizontal axis in the table represents the lighting effect content of the car light, which constitutes a lighting effect graph, such as Figure 1 AR1-AR19, BM1-BM48, and AL1-AL19 are all headlight logos. Each grid corresponding to the headlight logo represents its lighting effect content, such as the on and off status and color of the headlight.

[0099] In one example, after the target lighting effect dictionary data is obtained, the lighting effect graphics corresponding to the target lighting effect dictionary data may be displayed in the dictionary search interface, such as by using a table to display the lighting effect graphics.

[0100] Specifically, Figure 5a The dictionary search interface may have a first lighting effect preview area and a second lighting effect preview area. In the first lighting effect preview area, a detailed picture of the lighting effect graphic corresponding to the target lighting effect dictionary data may be displayed. Since some lighting effect graphics are large, in order to facilitate quick browsing, a thumbnail of the lighting effect graphic corresponding to the target lighting effect dictionary data may be displayed in the second lighting effect preview area.

[0101] In another example, when an operation on a thumbnail displayed in the second lighting effect preview area is detected, Figure 5b The left side of the middle is a detailed image and the right side is a thumbnail. By placing the cursor on the thumbnail, a visual sliding block can be displayed. By using the visual sliding block to scroll up and down on the thumbnail, the detailed image displayed in the first lighting effect preview area can be adjusted accordingly, thereby enabling quick preview and positioning.

[0102] Step 404, in response to an operation on the lighting effect graphic displayed in the dictionary search interface, determining part of the data in the target lighting effect dictionary data;

[0103] Since the lighting effect graphics of the target lighting effect dictionary data are displayed in the dictionary search interface, part of the lighting effect graphics can be selected by checking the box, and then part of the data in the target lighting effect dictionary data can be determined, and this part of the data can be stored in RAM (Random Access Memory).

[0104] Step 405, in response to the operation on the editing operation area in the lighting effect editing interface, the part of the data is copied to the automobile lighting control script to control the automobile lighting components to display the lighting effects.

[0105] After confirming some data, you can close the dictionary search interface and enter the lighting effect editing interface. Then, by editing the operation area in the lighting effect editing interface, you can copy some data stored in RAM to the car lighting control script to control the car lighting components to display lighting effects.

[0106] In one example, for the view form in the automobile lighting control script, it can include the correspondence between lighting effect graphics and attribute information, and can correspond to each row of lighting effect data in the lighting effect dictionary data, and then the lighting effect data of some rows in the lighting effect dictionary data can be copied to the automobile lighting control script.

[0107] In an embodiment of the present invention, multiple lighting effect dictionary data are pre-set in a car lighting effect storage library, and when a trigger event is detected, a car lighting control script is created or started, and then target lighting effect dictionary data is determined from multiple lighting effect dictionary data, and the target lighting effect dictionary data is visualized in the dictionary search interface, and in response to the operation of the lighting effect graphics displayed in the dictionary search interface, part of the data in the target lighting effect dictionary data is determined, and then in response to the operation of the editing operation area in the lighting effect editing interface, part of the data is copied to the car lighting control script to control the car lighting components to display lighting effects, thereby realizing rapid search for the lighting effects desired by the user during visual lighting effect editing, and quick data copying, without the need for manual identification of the required correspondence between the partial lighting effect graphics and the attribute information such as the dictionary identifier and the time frame information, and then manual entry of the file, and no need to copy data between tables, which simplifies the operation of lighting effect editing and improves the efficiency of lighting effect editing.

[0108] Reference Figure 6 , shows a flowchart of another data processing method provided by an embodiment of the present invention, which may specifically include the following steps:

[0109] Step 601, pre-setting a plurality of lighting effect dictionary data in a car lighting effect storage library;

[0110] In practical applications, multiple lighting effect dictionary data may be pre-set in the automobile lighting effect storage library, and then the lighting effect dictionary data may be searched according to user expectations to obtain the lighting effect expected by the user from the multiple lighting effect dictionary data.

[0111] Step 602, determining target lighting effect dictionary data from the plurality of lighting effect dictionary data, and visualizing the target lighting effect dictionary data in the dictionary search interface;

[0112] In actual applications, since multiple lighting effect dictionary data are pre-set, the user can enter the dictionary search interface according to the user's expectations, and obtain target lighting effect dictionary data from multiple lighting effect dictionary data through the search operation on the lighting effect dictionary data. The target lighting effect dictionary data can be visualized in the dictionary search interface to facilitate finding the lighting effect expected by the user.

[0113] Step 603, in response to the operation on the lighting effect graphic displayed in the dictionary search interface, determining part of the data in the target lighting effect dictionary data;

[0114] Since the lighting effect graphics of the target lighting effect dictionary data are displayed in the dictionary search interface, part of the lighting effect graphics can be selected by checking the box, and then part of the data in the target lighting effect dictionary data can be determined, and this part of the data can be stored in RAM (Random Access Memory).

[0115] Step 604, in response to the operation on the editing operation area in the lighting effect editing interface, copy the part of the data to the automobile lighting control script to control the automobile lighting components to display the lighting effects;

[0116] After confirming some data, you can close the dictionary search interface and enter the lighting effect editing interface. Then, by editing the operation area in the lighting effect editing interface, you can copy some data stored in RAM to the car lighting control script to control the car lighting components to display lighting effects.

[0117] When a trigger event is detected, a car light control script is created or started, and part of the data copied from the target light effect dictionary data is stored in the car light control script to control the car light components to display light effects;

[0118] After opening the client for visual lighting effect editing, an interactive interface can be displayed. When a trigger event for the interactive interface is detected, a new car light control script can be created, or a previously created car light control script can be opened. In the car light control script, part of the data copied from the target lighting effect dictionary data can be stored to control the car light components to display lighting effects.

[0119] Step 605, visualizing the partial data in the lighting effect editing interface;

[0120] After storing part of the data in the car lighting control script, the part of the data can be visualized in the editing operation area in the lighting effect editing interface, such as displaying the lighting effect graphics and attribute information corresponding to the part of the data.

[0121] In actual applications, since the target lighting effect dictionary data can be visualized in the dictionary search interface, the desired part of the data can be selected from the target lighting effect dictionary data, and then the part of the data can be copied to the car lighting control script, and the part of the data can be visualized in the lighting effect editing interface, such as displaying the lighting effect graphics and attribute information corresponding to the part of the data.

[0122] In one example, the lighting effect graphics and attribute information displayed in the lighting effect editing area of ​​the lighting effect editing interface can be operated, such as dragging, moving, copying and pasting, and the car lighting control script can be adjusted accordingly without repeatedly copying from the lighting effect dictionary data.

[0123] Step 606: In response to the operation on the file management area in the lighting effect editing interface, an executable file corresponding to the automobile lighting control script is generated.

[0124] Among them, the executable file can be directly recognized by the vehicle system and run in the vehicle system, for example, the executable file can be a JSON file.

[0125] Since the car lighting control script is a visual script, it cannot be run directly in the car system. In order to be able to run directly in the car system, the car lighting control script can be converted into an executable file with one click in response to the user's operation in the file management area in the lighting effect editing interface.

[0126] Specifically, for part of the data stored in the car light control script, the attribute information corresponding to the part of the data can be determined, and lighting effect identification data corresponding to the attribute information can be generated according to preset rules and stored in the car light control script.

[0127] For example, if the attribute information includes the dictionary identifier as 01, the time frame information as 1, and the C light control value as 0, the lighting effect identifier data can be generated in the following manner:

[0128] 1*256+1+0*65536=257

[0129] In one example, the configuration parameters of the car lighting control script can be adjusted by operating the parameter configuration area in the lighting effect editing interface. For example, the configuration parameters may include the following:

[0130] 1. Lighting effect name (effect_name): It is the lighting effect name that can be recognized by the in-vehicle application;

[0131] 2. Lighting effect type (effect_type): characterizes the purpose of the lighting effect;

[0132] 3. Lighting effect ID (effect_id): It is used to identify the lighting effect identification data transmitted when the in-vehicle application interacts with some MCUs;

[0133] 4. Headlight unit time frame length: such as 20ms, which can be a multiple of 10;

[0134] 5. Tail light unit time frame length: such as 30ms, which can be a multiple of 10;

[0135] 6. Number of headlight cycles: It can be a natural number greater than 1;

[0136] 7. Tail light cycle times: it can be a natural number greater than 1;

[0137] 8. Headlight stay information: indicates whether the last frame of lighting effect is maintained after the headlight executes the car light control script. It can be a Boolean type, where a value of 1 indicates maintenance and a value of 0 indicates non-maintenance.

[0138] 9. Taillight stay information: indicates whether the last frame of lighting effect is maintained after the taillight executes the car light control script. It can be a Boolean type, where a value of 1 indicates maintenance and a value of 0 indicates non-maintenance.

[0139] In actual applications, when operations on the file management area in the lighting effect editing interface are detected, an executable file corresponding to the car lighting control script can be generated according to the lighting effect identification data and configuration parameters. After the integrity of the executable file is checked, the file name is entered to save it for use by the vehicle system.

[0140] In another example, the car lighting control script may also be directly exported to facilitate comparison during testing.

[0141] In an embodiment of the present invention, multiple lighting effect dictionary data are pre-set in a car lighting effect storage library, and then target lighting effect dictionary data is determined from the multiple lighting effect dictionary data, and the target lighting effect dictionary data is visualized in the dictionary search interface. In response to the operation of the lighting effect graphic displayed in the dictionary search interface, part of the data in the target lighting effect dictionary data is determined. In response to the operation of the editing operation area in the lighting effect editing interface, part of the data is copied to the car lighting control script to control the car lighting components to display the lighting effects. In the lighting effect editing interface, part of the data is visualized, and then in response to the operation of the file management area in the lighting effect editing interface, an executable file corresponding to the car lighting control script is generated. This realizes automatic generation of executable files for lighting effects during visual lighting effect editing, facilitates connection with subsequent research and development, avoids the conversion of executable files with the help of tools, greatly improves the efficiency from creation to actual vehicle execution, and can quickly copy data without manual identification and manual file entry, and does not require data copying between tables, which simplifies the operation of lighting effect editing and improves the efficiency of lighting effect editing.

[0142] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

[0143] Reference Figure 7, shows a schematic diagram of the structure of a data processing device provided by an embodiment of the present invention, which may specifically include the following modules:

[0144] The lighting effect dictionary data presetting module 701 is used to pre-set a plurality of lighting effect dictionary data in the automobile lighting effect storage library;

[0145] The car light control script storage module 702 is used to create or start a car light control script when a trigger event is detected, and store part of the data copied from the target light effect dictionary data in the car light control script to control the car light components to display light effects.

[0146] In an embodiment of the present invention, each lighting effect dictionary data includes a correspondence between a lighting effect graphic and attribute information.

[0147] In an embodiment of the present invention, the lighting effect graphic is a scalable vector graphic.

[0148] In one embodiment of the present invention, the automobile lighting control script storage module 702 includes:

[0149] a target lighting effect dictionary data determination submodule, configured to determine target lighting effect dictionary data from the plurality of lighting effect dictionary data, and to visualize the target lighting effect dictionary data in the dictionary search interface;

[0150] a partial data determination submodule, for determining partial data in the target lighting effect dictionary data in response to an operation on the lighting effect graphic displayed in the dictionary search interface;

[0151] The partial data copying submodule is used to copy the partial data to the automobile lighting control script in response to the operation of the editing operation area in the lighting effect editing interface, so as to control the automobile lighting components to display the lighting effects.

[0152] In one embodiment of the present invention, it also includes:

[0153] A partial data visualization module is used to visualize the partial data in the lighting effect editing interface.

[0154] In one embodiment of the present invention, it also includes:

[0155] The executable file generation module is used to generate an executable file corresponding to the automobile lighting control script in response to an operation on the file management area in the lighting effect editing interface.

[0156] In one embodiment of the present invention, the plurality of lighting effect dictionary data are stored locally, and further includes:

[0157] The cloud storage module is used to store the car light control script in the cloud.

[0158] In an embodiment of the present invention, multiple lighting effect dictionary data are pre-set in a car lighting effect storage library, and then when a trigger event is detected, a car lighting control script is created or started, and in the car lighting control script, part of the data copied from the target lighting effect dictionary data is stored to control the car lighting components to display lighting effects, thereby achieving quick data copying during visual lighting effect editing. By storing part of the data copied from the target lighting effect dictionary data in the car lighting control script, there is no need for manual identification and manual file entry, and there is no need to copy data between tables, which simplifies the operation of lighting effect editing and improves the efficiency of lighting effect editing.

[0159] An embodiment of the present invention further provides an electronic device, which may include a processor, a memory, and a computer program stored in the memory and capable of running on the processor, and the computer program implements the above data processing method when executed by the processor.

[0160] An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the above data processing method is implemented.

[0161] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0162] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0163] Those skilled in the art will appreciate that the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0164] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0165] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0166] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0167] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.

[0168] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.

[0169] The above is a detailed introduction to a data processing method and device provided. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A method for data processing, characterized in that: The method comprises: In the automobile lighting effect storage library, a plurality of lighting effect dictionary data are pre-set; the lighting effect dictionary data is an Excel file; the Excel file includes a correspondence between lighting effect graphics and attribute information; When a trigger event is detected, a car light control script is created or started, and part of the data copied from the target light effect dictionary data is stored in the car light control script to control the car light components to display light effects; Wherein, in the automobile light control script, part of the data copied from the target light effect dictionary data is stored to control the automobile light components to display light effects, including: Determine target lighting effect dictionary data from the plurality of lighting effect dictionary data, and visualize the target lighting effect dictionary data in the dictionary search interface so that a lighting effect graphic corresponding to the target lighting effect dictionary data is displayed in the dictionary search interface; In response to a selection operation of a part of the lighting effect graphics displayed in the dictionary search interface, determining a part of the data in the target lighting effect dictionary data corresponding to the part of the lighting effect graphics; In response to an operation on the editing operation area in the lighting effect editing interface, the portion of data is copied to the car lighting control script to control the car lighting components to display lighting effects; the view format in the car lighting control script includes the correspondence between the lighting effect graphics and the attribute information, and the view format corresponds to each row of lighting effect data in the Excel file.

2. The method according to claim 1, characterized in that The lighting effect graphics are scalable vector graphics.

3. The method according to claim 1, characterized in that: Also includes: In the lighting effect editing interface, the partial data is visualized.

4. The method according to claim 1, characterized in that: Also includes: In response to the operation on the file management area in the lighting effect editing interface, an executable file corresponding to the automobile lighting control script is generated.

5. The method according to claim 1, characterized in that The plurality of lighting effect dictionary data are stored locally, and further include: The car light control script is stored in the cloud.

6. A data processing device, characterized in that: The device comprises: A lighting effect dictionary data presetting module, used to pre-set a plurality of lighting effect dictionary data in a car lighting effect storage library; the lighting effect dictionary data is an Excel file; the Excel file includes a correspondence between lighting effect graphics and attribute information; An automobile light control script storage module is used to create or start an automobile light control script when a trigger event is detected, and store part of the data copied from the target light effect dictionary data in the automobile light control script to control the automobile light components to display light effects; Wherein, the automobile lighting control script storage module includes: a target lighting effect dictionary data determination submodule, configured to determine target lighting effect dictionary data from the plurality of lighting effect dictionary data, and to visualize the target lighting effect dictionary data in the dictionary search interface, so that a lighting effect graphic corresponding to the target lighting effect dictionary data is displayed in the dictionary search interface; a partial data determination submodule, configured to determine partial data corresponding to the partial lighting effect graphic in the target lighting effect dictionary data in response to a selection operation on a partial lighting effect graphic in the lighting effect graphic displayed in the dictionary search interface; A partial data copying submodule is used to copy the partial data to the car lighting control script in response to an operation on the editing operation area in the lighting effect editing interface, so as to control the car lighting components to display lighting effects; the view form in the car lighting control script includes the correspondence between the lighting effect graphics and the attribute information, and the view form corresponds to each row of lighting effect data in the Excel file.

7. An electronic device, characterized in that: The method comprises a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the computer program implements the data processing method according to any one of claims 1 to 5 when executed by the processor.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method for data processing according to any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Custom method and system of vehicle lighting effects, and vehicle

    CN110001505A

  • Script execution method and device based on light control system

    CN110719665A

  • Data processing method and device

    CN112306482A

  • Data processing method and device

    CN112312631A