A method and device for data processing
Create light control scripts by detecting trigger events in the vehicle, obtaining and copying lighting effect data, and generating executable files, solving the complex problem of vehicle lighting effect design dependence suppliers and manual editing, and achieving efficient lighting effect editing and automatic generation .
Patent Information
- Application Number
- CN202011185789.4
- 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
Vehicle lighting design and control logic are controlled by suppliers, lack of independent control by the manufacturer, and the existing editing methods rely on manual operation by professionals, which are complex and inefficient.
Create a car light control script by detecting trigger events, obtain target light effect dictionary data, copy and generate executable files, realize visual editing, simplify operations and automatically generate light effect files.
It realizes visual editing of vehicle lighting effects, simplifies operational processes, improves editing efficiency, reduces the complexity of manual identification and data replication, and automatically generates executable files for easy R&D connection.
Smart Images

Figure CN112306482B_ABST
Abstract
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] When a trigger event is detected, creating or starting a car light control script;
[0007] In response to the first operation, obtaining target lighting effect dictionary data in a preset automobile lighting effect storage library;
[0008] In response to the second operation, copying part of the data in the target lighting effect dictionary data to the automobile lighting control script;
[0009] In response to the third operation, an executable file corresponding to the automobile light control script is generated.
[0010] Optionally, before copying part of the data in the target lighting effect dictionary data to the automobile lighting control script in response to the second operation, the method further includes:
[0011] In the dictionary search interface, the target lighting effect dictionary data is visualized;
[0012] Before generating the executable file corresponding to the automobile light control script in response to the third operation, the method further includes:
[0013] In the lighting effect editing interface, some of the data are visualized.
[0014] Optionally, in response to the first operation, obtaining target lighting effect dictionary data in a preset automobile lighting effect repository includes:
[0015] In response to an operation on an identification input area in the dictionary search interface, determining a lighting effect dictionary identification;
[0016] According to the lighting effect dictionary identifier, target lighting effect dictionary data is obtained in a preset automobile lighting effect storage library.
[0017] Optionally, in the dictionary search interface, visualizing the target lighting effect dictionary data includes:
[0018] In the dictionary search interface, the lighting effect graphics corresponding to the target lighting effect dictionary data are displayed.
[0019] Optionally, in the dictionary search interface, displaying a lighting effect graphic corresponding to the target lighting effect dictionary data includes:
[0020] In the first lighting effect preview area of the dictionary search interface, a detailed image of the lighting effect graphic corresponding to the target lighting effect dictionary data is displayed;
[0021] In the second lighting effect preview area of the dictionary search interface, a thumbnail of the lighting effect graphic corresponding to the target lighting effect dictionary data is displayed.
[0022] Optionally, it also includes:
[0023] In response to an operation on the thumbnail image displayed in the second lighting effect preview area, the detailed image displayed in the first lighting effect preview area is adjusted.
[0024] Optionally, before acquiring target lighting effect dictionary data from a preset automobile lighting effect repository in response to the first operation, the method further includes:
[0025] In response to an operation on a first virtual control in the lighting effect editing interface, the dictionary search interface is displayed via a floating layer.
[0026] Optionally, in response to the second operation, copying part of the data in the target lighting effect dictionary data to the automobile lighting control script includes:
[0027] 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;
[0028] In response to an operation on the editing operation area in the lighting effect editing interface, the portion of data is copied to the automobile lighting control script.
[0029] Optionally, in the lighting effect editing interface, visualizing the part of the data includes:
[0030] In the lighting effect editing interface, the lighting effect graphics and attribute information corresponding to the partial data are displayed.
[0031] Optionally, it also includes:
[0032] In response to the operation on the lighting effect graphics and attribute information displayed in the lighting effect editing interface, the automobile lighting control script is adjusted.
[0033] Optionally, before generating the executable file corresponding to the automobile light control script in response to the third operation, the method further includes:
[0034] Generating lighting effect identification data corresponding to the partial data, and storing the lighting effect identification data in the automobile lighting control script.
[0035] Optionally, before generating the executable file corresponding to the automobile light control script in response to the third operation, the method further includes:
[0036] In response to an operation on a parameter configuration area in the lighting effect editing interface, the configuration parameters of the automobile lighting control script are adjusted.
[0037] Optionally, in response to the third operation, generating an executable file corresponding to the automobile light control script includes:
[0038] 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 according to the lighting effect identification data and the configuration parameters.
[0039] A data processing device, comprising:
[0040] A car light control script creation or activation module, used to create or activate a car light control script when a trigger event is detected;
[0041] A first operation response module, configured to obtain target lighting effect dictionary data from a preset automobile lighting effect storage library in response to a first operation;
[0042] A second operation response module, configured to copy part of the data in the target lighting effect dictionary data to the automobile lighting control script in response to a second operation;
[0043] The third operation response module is used to generate an executable file corresponding to the automobile light control script in response to a third operation.
[0044] 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.
[0045] 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.
[0046] The embodiments of the present invention have the following advantages:
[0047] In an embodiment of the present invention, when a trigger event is detected, a car light control script is created or started, in response to a first operation, target light effect dictionary data is obtained from a preset car light effect repository, in response to a second operation, part of the light data in the target light effect dictionary data is copied to the car light control script, and in response to a third operation, an executable file corresponding to the car light control script is generated, thereby realizing visual light effect editing, simplifying the operation of light effect editing, and being able to automatically generate an executable file for the light effect, thereby improving the efficiency of light effect editing. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] 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.
[0049] Figure 1 is a schematic diagram of lighting effect dictionary data provided by an embodiment of the present invention;
[0050] Figure 2 is a flowchart of a data processing method provided by an embodiment of the present invention;
[0051] Figure 3a is a schematic diagram of an interactive interface provided by an embodiment of the present invention;
[0052] Figure 3b is a schematic diagram of a lighting effect editing interface provided by an embodiment of the present invention;
[0053] Figure 3c is a schematic diagram of an editing operation area provided by an embodiment of the present invention;
[0054] Figure 4 is a flowchart of another data processing method provided by an embodiment of the present invention;
[0055] Figure 5a is a schematic diagram of a dictionary search interface provided by an embodiment of the present invention;
[0056] Figure 5b is a schematic diagram of another dictionary search interface provided by an embodiment of the present invention;
[0057] Figure 6 is a flowchart of another data processing method provided by an embodiment of the present invention;
[0058] Figure 7 is a flowchart of another data processing method provided by an embodiment of the present invention;
[0059] Figure 8 It is a structural diagram of a data processing device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0060] 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.
[0061] In order to edit the vehicle lighting effects, you can set up multiple files:
[0062] 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.
[0063] 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.
[0064] 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.
[0065] 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.
[0066] 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.
[0067] 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.
[0068] 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.
[0069] 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:
[0070] 1*256+1+0*65536=257
[0071] Furthermore, the car light control script may also have the following configuration parameters:
[0072] 1. Lighting effect name (effect_name): It is the lighting effect name that can be recognized by the in-vehicle application;
[0073] 2. Lighting effect type (effect_type): characterizes the purpose of the lighting effect;
[0074] 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;
[0075] 4. Headlight unit time frame length: such as 20ms, which can be a multiple of 10;
[0076] 5. Tail light unit time frame length: such as 30ms, which can be a multiple of 10;
[0077] 6. Number of headlight cycles: It can be a natural number greater than 1;
[0078] 7. Tail light cycle times: it can be a natural number greater than 1;
[0079] 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;
[0080] 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.
[0081] 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.
[0082] 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.
[0083] However, the above method of using multiple files has the following problems:
[0084] 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.
[0085] 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.
[0086] 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.
[0087] 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.
[0088] The following is a detailed description:
[0089] 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:
[0090] Step 201, when a trigger event is detected, create or start a car light control script;
[0091] 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.
[0092] 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.
[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] 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.
[0095] 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.
[0096] 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.
[0097] In one embodiment of the present invention, the following steps may also be included:
[0098] The car light control script is stored in the cloud.
[0099] 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.
[0100] Step 202, in response to the first operation, obtaining target lighting effect dictionary data in a preset automobile lighting effect storage library;
[0101] 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.
[0102] 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.
[0103] 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.
[0104] In one example, 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.
[0105] In actual applications, since multiple lighting effect dictionary data are stored in a preset automobile lighting effect repository, 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.
[0106] In one embodiment of the present invention, before this week 203, the following steps may also be included:
[0107] In the dictionary search interface, the target lighting effect dictionary data is visualized.
[0108] After obtaining the target lighting effect dictionary data, the target lighting effect dictionary data can be visualized in the dictionary search interface to facilitate searching for the lighting effect expected by the user.
[0109] In an embodiment of the present invention, before step 202, the following steps may also be included:
[0110] In response to an operation on a first virtual control in the lighting effect editing interface, the dictionary search interface is displayed via a floating layer.
[0111] After creating or opening a car lighting 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. Figure 3c The editing operation area may have a first virtual control for searching lighting effect dictionary data.
[0112] After detecting an operation on the first virtual control, the dictionary search interface can be entered from the lighting effect editing interface, and the dictionary search interface can be displayed on the upper layer of the lighting effect editing interface in a floating layer manner.
[0113] Step 203, in response to the second operation, copying part of the data in the target lighting effect dictionary data to the automobile lighting control script;
[0114] Among them, part of the data may be part of the lighting effect graphics in the target lighting effect dictionary data and the attribute information corresponding to the part of the lighting effect graphics. The attribute information may include the dictionary identifier corresponding to the lighting effect dictionary data to which the lighting effect graphics belongs. For example, 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 graphics, 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.
[0115] Since the target lighting effect dictionary data is visualized in the dictionary search interface, a desired portion of data can be selected from the target lighting effect dictionary data through a second operation, and then the portion of data can be copied to the car lighting control script.
[0116] In the embodiment of the present invention, before step 204, the following steps may also be included:
[0117] In the lighting effect editing interface, some of the data are visualized.
[0118] After obtaining part of the data, the part of the data may 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.
[0119] Step 204: In response to the third operation, generate an executable file corresponding to the automobile light control script.
[0120] 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.
[0121] Since the car lighting control script is a visual script and cannot be directly run 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 lighting effect editing interface.
[0122] In an embodiment of the present invention, when a trigger event is detected, a car light control script is created or started, in response to a first operation, target light effect dictionary data is obtained from a preset car light effect repository, in response to a second operation, part of the light data in the target light effect dictionary data is copied to the car light control script, and in response to a third operation, an executable file corresponding to the car light control script is generated, thereby realizing visual light effect editing, simplifying the operation of light effect editing, and being able to automatically generate an executable file for the light effect, thereby improving the efficiency of light effect editing.
[0123] 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:
[0124] Step 401, when a trigger event is detected, create or start a car light control script;
[0125] Step 402, in response to an operation on an identifier input area in a dictionary search interface, determining a lighting effect dictionary identifier;
[0126] After entering the dictionary search interface, such as Figure 5a 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.
[0127] Step 403, obtaining target lighting effect dictionary data in a preset automobile lighting effect storage library according to the lighting effect dictionary identifier;
[0128] Since a plurality of lighting effect dictionary data are stored in the preset automobile lighting effect storage library, after the lighting effect dictionary identifier is determined, the target lighting effect dictionary data corresponding to the lighting effect dictionary identifier can be obtained in the automobile lighting effect storage library.
[0129] Step 404, displaying the lighting effect graphics corresponding to the target lighting effect dictionary data in the dictionary search interface;
[0130] 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.
[0131] In one embodiment of the present invention, step 404 may include the following sub-steps:
[0132] In the first lighting effect preview area of the dictionary search interface, a detailed image of the lighting effect graphic corresponding to the target lighting effect dictionary data is displayed; in the second lighting effect preview area of the dictionary search interface, a thumbnail of the lighting effect graphic corresponding to the target lighting effect dictionary data is displayed.
[0133] In practical applications, such as 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.
[0134] In one embodiment of the present invention, the following steps may also be included:
[0135] In response to an operation on the thumbnail image displayed in the second lighting effect preview area, the detailed image displayed in the first lighting effect preview area is adjusted.
[0136] When an operation on the 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 achieving quick preview and positioning.
[0137] Step 405, in response to the second operation, copying part of the data in the target lighting effect dictionary data to the automobile lighting control script, and visualizing the part of the data in the lighting effect editing interface;
[0138] Step 406: In response to the third operation, generate an executable file corresponding to the automobile light control script.
[0139] In an embodiment of the present invention, when a trigger event is detected, a car light control script is created or started, a lighting effect dictionary identifier is determined in response to an operation on an identification input area in a dictionary search interface, target lighting effect dictionary data is obtained in a preset car light effect repository according to the lighting effect dictionary identifier, a lighting effect graphic corresponding to the target lighting effect dictionary data is displayed in the dictionary search interface, in response to a second operation, part of the data in the target lighting effect dictionary data is copied to the car light control script, and part of the data is visualized in the lighting effect editing interface, and in response to a third operation, an executable file corresponding to the car light control script is generated, thereby achieving rapid search for the lighting effect desired by the user during visual lighting effect editing, thereby improving the efficiency of lighting effect search.
[0140] 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:
[0141] Step 601, when a trigger event is detected, create or start a car light control script;
[0142] Step 602, in response to the first operation, obtaining target lighting effect dictionary data in a preset automobile lighting effect storage library, and visualizing the target lighting effect dictionary data in a dictionary search interface;
[0143] 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;
[0144] 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).
[0145] Step 604, in response to an operation on the editing operation area in the lighting effect editing interface, copying the portion of data to the automobile lighting control script;
[0146] After confirming some data, you can close the dictionary search interface and enter the lighting effect editing interface. Then, you can copy some data stored in RAM to the car lighting control script by editing the operation area in the lighting effect editing interface.
[0147] Step 605, displaying the lighting effect graphics and attribute information corresponding to the partial data in the lighting effect editing interface;
[0148] After copying part of the data to the car lighting control script, you can display the lighting effect graphics and attribute information corresponding to the part of the data in the editing operation area of the lighting effect editing interface.
[0149] As an example, the attribute information may include a dictionary identifier corresponding to the lighting effect dictionary data to which the part of the data belongs, such as each table corresponds to a lighting effect dictionary data, and the dictionary identifier is the table number. It may also include the time frame information corresponding to the part of 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.
[0150] In one embodiment of the present invention, the following steps may also be included:
[0151] In response to the operation on the lighting effect graphics and attribute information displayed in the lighting effect editing interface, the automobile lighting control script is adjusted.
[0152] In a specific implementation, 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.
[0153] Step 606: In response to the third operation, generate an executable file corresponding to the automobile light control script.
[0154] In an embodiment of the present invention, when a trigger event is detected, a car light control script is created or started, and in response to a first operation, target light effect dictionary data is obtained in a preset car light effect repository, and the target light effect dictionary data is visualized in a dictionary search interface, and in response to an operation on a light effect graphic displayed in the dictionary search interface, part of the data in the target light effect dictionary data is determined, and in response to an operation on an editing operation area in a light effect editing interface, part of the data is copied to the car light control script, and in the light effect editing interface, a light effect graphic corresponding to part of the data is displayed, and in response to a third operation, an executable file corresponding to the car light control script is generated, thereby realizing quick data copying during visual light effect editing, without the need for manual identification of the correspondence between the required part of the light effect graphic and attribute information such as dictionary identifiers and time frame information, and then manual entry of files, and without the need for data copying between tables, and being able to automatically generate executable files for light effects, which is convenient for connection with subsequent research and development, thereby improving the efficiency of light effect editing.
[0155] Reference Figure 7 , shows a flowchart of another data processing method provided by an embodiment of the present invention, which may specifically include the following steps:
[0156] Step 701, when a trigger event is detected, create or start a car light control script;
[0157] Step 702, in response to the first operation, obtaining target lighting effect dictionary data in a preset automobile lighting effect storage library, and visualizing the target lighting effect dictionary data in a dictionary search interface;
[0158] Step 703, in response to the second operation, copying part of the data in the target lighting effect dictionary data to the automobile lighting control script, and visualizing the part of the data in the lighting effect editing interface;
[0159] Step 704, generating lighting effect identification data corresponding to the partial data, and storing the lighting effect identification data in the automobile lighting control script;
[0160] In a specific implementation, the attribute information corresponding to some of the data can be determined, and 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.
[0161] 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:
[0162] 1*256+1+0*65536=257
[0163] Step 705, in response to the operation on the parameter configuration area in the lighting effect editing interface, adjusting the configuration parameters of the automobile lighting control script;
[0164] In a specific implementation, 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:
[0165] 1. Lighting effect name (effect_name): It is the lighting effect name that can be recognized by the in-vehicle application;
[0166] 2. Lighting effect type (effect_type): characterizes the purpose of the lighting effect;
[0167] 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;
[0168] 4. Headlight unit time frame length: such as 20ms, which can be a multiple of 10;
[0169] 5. Tail light unit time frame length: such as 30ms, which can be a multiple of 10;
[0170] 6. Number of headlight cycles: It can be a natural number greater than 1;
[0171] 7. Tail light cycle times: it can be a natural number greater than 1;
[0172] 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;
[0173] 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.
[0174] Step 706, in response to the operation on the file management area in the lighting effect editing interface, generate an executable file corresponding to the automobile lighting control script according to the lighting effect identification data and the configuration parameters.
[0175] When an operation on the file management area in the lighting effect editing interface is 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 executable file is checked for integrity, the file name is entered to save it for use by the vehicle system.
[0176] In one example, the car lighting control script can also be directly exported to facilitate comparison during testing.
[0177] In an embodiment of the present invention, when a trigger event is detected, an automobile lighting control script is created or started, and in response to a first operation, target lighting effect dictionary data is obtained in a preset automobile lighting effect repository, and the target lighting effect dictionary data is visualized in a dictionary search interface, and in response to a second operation, part of the data in the target lighting effect dictionary data is copied to the automobile lighting control script, and in a lighting effect editing interface, part of the data is visualized, lighting effect identification data corresponding to the part of the data is generated, and the lighting effect identification data is stored in the automobile lighting control script, and in response to an operation on a parameter configuration area in the lighting effect editing interface, the configuration parameters of the automobile lighting control script are adjusted, and in response to an operation on a file management area in the lighting effect editing interface, an executable file corresponding to the automobile lighting control script is generated according to the lighting effect identification data and the configuration parameters, thereby achieving automatic generation of an executable file for the lighting effect during visual lighting effect editing, facilitating connection with subsequent research and development, avoiding the need to convert executable files with the help of tools, and greatly improving the efficiency from creation to actual vehicle execution.
[0178] 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.
[0179] Reference Figure 8 , 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:
[0180] The car light control script creation or activation module 801 is used to create or activate a car light control script when a trigger event is detected;
[0181] A first operation response module 802, configured to obtain target lighting effect dictionary data from a preset automobile lighting effect storage library in response to a first operation;
[0182] A second operation response module 803, configured to copy part of the target lighting effect dictionary data to the automobile lighting control script in response to a second operation;
[0183] The third operation response module 804 is used to generate an executable file corresponding to the automobile light control script in response to the third operation.
[0184] In one embodiment of the present invention, it also includes:
[0185] A target lighting effect dictionary data visualization module, used to visualize the target lighting effect dictionary data in a dictionary search interface;
[0186] The partial data visualization module is used to visualize the partial data in the lighting effect editing interface.
[0187] In one embodiment of the present invention, the first operation response module 802 includes:
[0188] a lighting effect dictionary identifier determination submodule, for determining a lighting effect dictionary identifier in response to an operation on an identifier input area in the dictionary search interface;
[0189] The target lighting effect dictionary data acquisition submodule is used to acquire the target lighting effect dictionary data according to the lighting effect dictionary identifier.
[0190] In one embodiment of the present invention, the target lighting effect dictionary data visualization module includes:
[0191] The lighting effect graphic display submodule in the dictionary search interface is used to display the lighting effect graphic corresponding to the target lighting effect dictionary data in the dictionary search interface.
[0192] In one embodiment of the present invention, the lighting effect graphic display submodule in the dictionary search interface includes:
[0193] a detailed image display unit, configured to display a detailed image of the lighting effect graphic corresponding to the target lighting effect dictionary data in the first lighting effect preview area of the dictionary search interface;
[0194] A thumbnail display unit is used to display a thumbnail of the lighting effect graphic corresponding to the target lighting effect dictionary data in the second lighting effect preview area of the dictionary search interface.
[0195] In one embodiment of the present invention, it also includes:
[0196] In response to an operation on the thumbnail image displayed in the second lighting effect preview area, the detailed image displayed in the first lighting effect preview area is adjusted.
[0197] In one embodiment of the present invention, it also includes:
[0198] The floating layer display module is used to display the dictionary search interface through a floating layer in response to an operation on the first virtual control in the lighting effect editing interface.
[0199] In an embodiment of the present invention, the second operation response module 803 includes:
[0200] 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;
[0201] The partial data copying submodule is used to copy the partial data to the automobile lighting control script in response to an operation on the editing operation area in the lighting effect editing interface.
[0202] In one embodiment of the present invention, the partial data visualization module includes:
[0203] The lighting effect graphic display submodule in the lighting effect editing interface is used to display the lighting effect graphic and attribute information corresponding to the part of data in the lighting effect editing interface.
[0204] In one embodiment of the present invention, it also includes:
[0205] The automobile lighting control script adjustment module is used to adjust the automobile lighting control script in response to the operation of the lighting effect graphics and attribute information displayed in the lighting effect editing interface.
[0206] In one embodiment of the present invention, it also includes:
[0207] The lighting effect identification data generation module is used to generate lighting effect identification data corresponding to the partial data, and store the lighting effect identification data in the automobile lighting control script.
[0208] In one embodiment of the present invention, it also includes:
[0209] The configuration parameter adjustment module is used to adjust the configuration parameters of the automobile lighting control script in response to an operation on the parameter configuration area in the lighting effect editing interface.
[0210] In an embodiment of the present invention, the third operation response module 804 includes:
[0211] The executable file generation submodule is used to generate an executable file corresponding to the automobile lighting control script according to the lighting effect identification data and the configuration parameters in response to the operation on the file management area in the lighting effect editing interface.
[0212] In an embodiment of the present invention, when a trigger event is detected, a car light control script is created or started; in response to a first operation, target light effect dictionary data is obtained from a preset car light effect repository, and the target light effect dictionary data is visualized in a dictionary search interface; in response to a second operation, part of the light data in the target light effect dictionary data is copied to the car light control script, and part of the data is visualized in a light effect editing interface; in response to a third operation, an executable file corresponding to the car light control script is generated, thereby realizing visual light effect editing, simplifying the operation of light effect editing, and being able to automatically generate an executable file for the light effect, thereby improving the efficiency of light effect editing.
[0213] 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.
[0214] 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.
[0215] 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.
[0216] 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.
[0217] 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.
[0218] 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.
[0219] 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.
[0220] 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.
[0221] 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.
[0222] 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.
[0223] 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: When a trigger event is detected, creating or starting a car light control script; In response to the first operation, target lighting effect dictionary data is obtained in a preset automobile lighting effect storage library; the target lighting effect dictionary data includes a lighting effect graphic and attribute information corresponding to the lighting effect graphic; the lighting effect graphic is displayed in a table; In the dictionary search interface, the target lighting effect dictionary data is visualized, and the lighting effect graphics corresponding to the target lighting effect dictionary data are displayed; In response to the second operation, copying part of the data in the target lighting effect dictionary data to the automobile lighting control script; In the lighting effect editing interface, the lighting effect graphics and attribute information corresponding to the partial data are displayed; In response to dragging and / or copying and pasting the attribute information displayed in the lighting effect editing interface, adjusting the automobile lighting control script; In response to the third operation, generating an executable file corresponding to the automobile light control script; Wherein, in response to the second operation, copying part of the data in the target lighting effect dictionary data to the automobile lighting control script includes: 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 automobile lighting control script.
2. The method according to claim 1, characterized in that The step of obtaining target lighting effect dictionary data from a preset automobile lighting effect storage library in response to the first operation includes: In response to an operation on an identification input area in the dictionary search interface, determining a lighting effect dictionary identification; According to the lighting effect dictionary identifier, target lighting effect dictionary data is obtained in a preset automobile lighting effect storage library.
3. The method according to claim 1, characterized in that In the dictionary search interface, displaying the lighting effect graphics corresponding to the target lighting effect dictionary data includes: In the first lighting effect preview area of the dictionary search interface, a detailed image of the lighting effect graphic corresponding to the target lighting effect dictionary data is displayed; In the second lighting effect preview area of the dictionary search interface, a thumbnail of the lighting effect graphic corresponding to the target lighting effect dictionary data is displayed.
4. The method according to claim 3, characterized in that Also includes: In response to an operation on the thumbnail image displayed in the second lighting effect preview area, the detailed image displayed in the first lighting effect preview area is adjusted.
5. The method according to claim 1, characterized in that Before acquiring the target lighting effect dictionary data from a preset automobile lighting effect repository in response to the first operation, the method further includes: In response to an operation on a first virtual control in the lighting effect editing interface, the dictionary search interface is displayed via a floating layer.
6. The method according to claim 1, characterized in that Also includes: In response to the operation on the lighting effect graphics and attribute information displayed in the lighting effect editing interface, the automobile lighting control script is adjusted.
7. The method according to claim 1, characterized in that Before generating the executable file corresponding to the automobile light control script in response to the third operation, the method further includes: Generating lighting effect identification data corresponding to the partial data, and storing the lighting effect identification data in the automobile lighting control script.
8. The method according to claim 7, characterized in that Before generating the executable file corresponding to the automobile light control script in response to the third operation, the method further includes: In response to an operation on a parameter configuration area in the lighting effect editing interface, the configuration parameters of the automobile lighting control script are adjusted.
9. The method according to claim 8, characterized in that In response to the third operation, generating an executable file corresponding to the automobile light control script 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 according to the lighting effect identification data and the configuration parameters.
10. A data processing device, characterized in that: The device comprises: A car light control script creation or activation module, used to create or activate a car light control script when a trigger event is detected; A first operation response module, configured to obtain target lighting effect dictionary data in a preset automobile lighting effect storage library in response to a first operation; the target lighting effect dictionary data includes a lighting effect graphic and attribute information corresponding to the lighting effect graphic; the lighting effect graphic is displayed in a table; A target lighting effect dictionary data visualization module, used to visualize the target lighting effect dictionary data in a dictionary search interface and display the lighting effect graphics corresponding to the target lighting effect dictionary data; A second operation response module, configured to copy part of the data in the target lighting effect dictionary data to the automobile lighting control script in response to a second operation; A display module, used for displaying the lighting effect graphics and attribute information corresponding to the partial data in the lighting effect editing interface; An adjustment module, configured to adjust the automobile lighting control script in response to dragging and / or copying and pasting the attribute information displayed in the lighting effect editing interface; A third operation response module, used for generating an executable file corresponding to the automobile light control script in response to a third operation; Wherein, the second operation response module includes: 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; The partial data copying submodule is used to copy the partial data to the automobile lighting control script in response to an operation on the editing operation area in the lighting effect editing interface.
11. 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 when the computer program is executed by the processor, the method for data processing according to any one of claims 1 to 9 is implemented.
12. 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 9 is implemented.
Citation Information
Patent Citations
Custom method and system of vehicle lighting effects, and vehicle
CN110001505A