CN112306482A - Data processing method and device - Google Patents

Data processing method and device Download PDF

Info

Publication number
CN112306482A
CN112306482A CN202011185789.4A CN202011185789A CN112306482A CN 112306482 A CN112306482 A CN 112306482A CN 202011185789 A CN202011185789 A CN 202011185789A CN 112306482 A CN112306482 A CN 112306482A
Authority
CN
China
Prior art keywords
light effect
data
dictionary
effect
light
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011185789.4A
Other languages
Chinese (zh)
Inventor
陆宇哲
刘毅林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Xiaopeng Motors Technology Co Ltd
Original Assignee
Guangzhou Xiaopeng Motors Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Xiaopeng Motors Technology Co Ltd filed Critical Guangzhou Xiaopeng Motors Technology Co Ltd
Priority to CN202011185789.4A priority Critical patent/CN112306482A/en
Publication of CN112306482A publication Critical patent/CN112306482A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/237Lexical tools
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • H05B47/165Controlling the light source following a pre-assigned programmed sequence; Logic control [LC]

Abstract

The embodiment of the invention provides a data processing method and a data processing device, wherein the method comprises the following steps: when a trigger event is detected, creating or starting an automobile light control script; responding to a first operation, and acquiring target light effect dictionary data in a preset automobile light effect storage library; copying partial data in the target light effect dictionary data to the vehicle light control script in response to a second operation; and responding to a third operation, and generating an executable file corresponding to the automobile light control script. By the embodiment of the invention, visual light effect editing is realized, the operation of the light effect editing is simplified, the executable file aiming at the light effect can be automatically generated, and the efficiency of the light effect editing is improved.

Description

Data processing method and device
Technical Field
The present invention relates to the field of data processing, and in particular, to a method and an apparatus for data processing.
Background
At present, the programming of the vehicle light effect depends on suppliers, and a vehicle manufacturer lacks control on the aspects of the design of the vehicle light effect, the control logic of a light effect scene, the upgrade and the iteration of the light effect and the like.
In addition, the lamp effect design adopted by the supplier is only the edition of each lamp bead, and the edition mode depends on the manual operation of the professional and is complex.
Disclosure of Invention
In view of the above, it is proposed to provide a method and apparatus for data processing that overcomes or at least partially solves the above mentioned problems, comprising:
a method of data processing, the method comprising:
when a trigger event is detected, creating or starting an automobile light control script;
responding to a first operation, and acquiring target light effect dictionary data in a preset automobile light effect storage library;
copying partial data in the target light effect dictionary data to the vehicle light control script in response to a second operation;
and responding to a third operation, and generating an executable file corresponding to the automobile light control script.
Optionally, before the copying, in response to the second operation, part of the data in the target light effect dictionary data to the car light control script, further includes:
visualizing the target lamp effect dictionary data in a dictionary lookup interface;
before the generating, in response to the third operation, an executable file corresponding to the car light control script, the method further includes:
and visualizing the partial data in a lamp effect editing interface.
Optionally, the obtaining target light effect dictionary data in a preset car light effect repository in response to the first operation includes:
responding to the operation of the input area of the identification in the dictionary lookup interface, and determining a light effect dictionary identification;
and acquiring target light effect dictionary data from a preset automobile light effect storage library according to the light effect dictionary identifier.
Optionally, the visualizing the target light effect dictionary data in the dictionary lookup interface includes:
and displaying the light effect graph corresponding to the target light effect dictionary data in the dictionary lookup interface.
Optionally, the displaying, in the dictionary lookup interface, the light effect graph corresponding to the target light effect dictionary data includes:
displaying a detailed drawing of a lamp effect graph corresponding to the target lamp effect dictionary data in a first lamp effect preview area of the dictionary lookup interface;
and displaying a thumbnail of the lamp effect graph corresponding to the target lamp effect dictionary data in a second lamp effect preview area of the dictionary lookup interface.
Optionally, the method further comprises:
and adjusting the detailed drawing displayed in the first light effect preview area in response to the operation of the thumbnail displayed in the second light effect preview area.
Optionally, before the obtaining the target light effect dictionary data in the preset car light effect repository in response to the first operation, the method further includes:
and responding to the operation of a first virtual control in the light effect editing interface, and displaying the dictionary lookup interface through a floating layer.
Optionally, the copying, in response to a second operation, part of the data in the target light effect dictionary data to the car light control script includes:
in response to the operation of the light effect graph displayed in the dictionary lookup interface, determining part data in the target light effect dictionary data;
in response to an operation on an editing operation area in the light effect editing interface, copying the partial data to the car light control script.
Optionally, the visualizing the partial data in the light effect editing interface includes:
and displaying the light effect graph and the attribute information corresponding to the partial data in the light effect editing interface.
Optionally, the method further comprises:
and responding to the operation of the light effect graph and the attribute information displayed in the light effect editing interface, and adjusting the automobile light control script.
Optionally, before the generating, in response to the third operation, an executable file corresponding to the car light control script, the method further includes:
and generating light effect identification data corresponding to the partial data, and storing the light effect identification data in the automobile light control script.
Optionally, before the generating, in response to the third operation, an executable file corresponding to the car light control script, the method further includes:
and adjusting the configuration parameters of the automobile light control script in response to the operation of the parameter configuration area in the light effect editing interface.
Optionally, the generating, in response to the third operation, an executable file corresponding to the car light control script includes:
responding to the operation of the file management area in the light effect editing interface, and generating an executable file corresponding to the automobile light control script according to the light effect identification data and the configuration parameters.
An apparatus for data processing, the apparatus comprising:
the automobile light control script creating or starting module is used for creating or starting an automobile light control script when a trigger event is detected;
the first operation response module is used for responding to the first operation and acquiring target light effect dictionary data in a preset automobile light effect storage library;
a second operation response module for copying part of the data in the target light effect dictionary data to the vehicle light control script in response to a second operation;
and the third operation response module is used for responding to a third operation and generating an executable file corresponding to the automobile light control script.
An electronic device comprising a processor, a memory and a computer program stored on the memory and capable of running on the processor, the computer program, when executed by the processor, implementing a method of data processing as described above.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method of data processing as described above.
The embodiment of the invention has the following advantages:
in the embodiment of the invention, when a trigger event is detected, an automobile light control script is created or started, the target light effect dictionary data is acquired in a preset automobile light effect storage library in response to a first operation, part of the lamp data in the target light effect dictionary data is copied to the automobile light control script in response to a second operation, and an executable file corresponding to the automobile light control script is generated in response to a third operation, so that visual light effect editing is realized, the operation of the light effect editing is simplified, the executable file aiming at the light effect can be automatically generated, and the efficiency of the light effect editing is improved.
Drawings
In order to more clearly illustrate the technical solution of the present invention, the drawings needed to be used in the description of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
FIG. 1 is a diagram of a lamp effect dictionary data according to an embodiment of the present invention;
FIG. 2 is a flow chart illustrating steps of a method for data processing according to an embodiment of the present invention;
FIG. 3a is a schematic diagram of an interactive interface provided by an embodiment of the present invention;
FIG. 3b is a diagram of a lamp effect editing interface according to an embodiment of the present invention;
FIG. 3c is a diagram of an editing operation area according to an embodiment of the present invention;
FIG. 4 is a flow chart of steps in another method of data processing according to an embodiment of the invention;
FIG. 5a is a diagram of a dictionary lookup interface according to an embodiment of the present invention;
FIG. 5b is a diagram of another dictionary lookup interface provided by an embodiment of the present invention;
FIG. 6 is a flow chart of steps in another method of data processing according to an embodiment of the invention;
FIG. 7 is a flow chart illustrating steps of another method for data processing according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below. It is to be understood that the embodiments described are only a few embodiments of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In order to realize the editing of the vehicle light effect, a plurality of files can be set:
the file 1 may be light effect dictionary data, and the light effect dictionary data may be a constant, i.e., readable and non-modifiable, and may include a correspondence between time frame information (Tick) and light effect content of the vehicle lights, and may be used to control light effects of the vehicle lights in a certain time period through the light effect dictionary data.
In order to visually perceive the light effect during the light effect editing process, the light effect content of the vehicle lamp may be in the form of light effect graphs, and if the light effect graphs are displayed as tables, the file 1 may include a plurality of tables, and each table may correspond to one light effect dictionary data.
The vertical axis in the table represents time frame information, each grid represents a time period, for example, each grid is 20ms, the horizontal axis in the table represents lamp effect content of the vehicle lamp, the lamp effect graph forms a lamp effect graph, for example, AR1-AR19, BM1-BM48 and AL1-AL19 in fig. 1 are vehicle lamp identifiers, and each grid corresponding to the vehicle lamp identifier represents lamp effect content, for example, the on-off state and color of the vehicle lamp.
The file 2 can be a visual automobile lighting control script, the automobile lighting control script can be a variable, can be read and can be modified, the lamp effect graph and the attribute information corresponding to the lamp effect graph can be stored, the lamp effect can be visually sensed through the lamp effect graph, and specific lamp effect content can be located in the lamp effect dictionary data through the attribute information.
As an example, the attribute information may include dictionary identification corresponding to the light effect dictionary data to which the light effect graph belongs, for example, each table in document 1 corresponds to one light effect dictionary data, the dictionary identification is a table number, and it may further include time frame information corresponding to the light effect graph, a high beam control value (which may be used to control whether the high beam is turned on), a low beam control value (which may be used to control whether the low beam is turned on), a reserved bit, and the like.
In practical application, required light effect dictionary data can be screened out according to user requirements, then a desired part of light effect graphs can be copied from the light effect dictionary data to an automobile light control script, and attribute information corresponding to the part of light effect graphs is manually input into the automobile light control script.
After the attribute information is input, the light effect identification data corresponding to the attribute information can be generated according to a preset rule and stored in the automobile light control script.
For example, if the attribute information includes a dictionary identification of 01, time frame information of 1, and a C lamp control value of 0, the lamp effect identification data may be generated as follows:
1*256+1+0*65536=257
also, the car light control script may also have the following configuration parameters:
1. lamp effect name (effect _ name): it is a lamp effect name recognizable for vehicle-mounted applications;
2. lamp effect type (effect _ type): characterizing the use of the lamp effect;
3. lamp effect ID (effect _ ID): the characterization is used for identifying transmitted light effect identification data when the vehicle-mounted application interacts with part of the MCU;
4. headlight unit time frame length: such as 20ms, which may be a multiple of 10;
5. length of tail light unit time frame: such as 30ms, which may be a multiple of 10;
6. number of headlight cycles: it can take a natural number greater than 1;
7. cycle number of tail light: it can take a natural number greater than 1;
8. headlight stay information: representing whether the lighting effect of the last frame is kept after the front lamp executes the automobile light control script, wherein the lighting effect can be Boolean type, and then representing that the value 1 is kept and representing that the value 0 is not kept;
9. tail light stay information: and representing whether the lighting effect of the last frame is kept after the tail lamp executes the automobile lighting control script, wherein the lighting effect can be Boolean, and the representation of value 1 is kept and the representation of value 0 is not kept.
File 3 may be an executable file of the car light control script in document 2, i.e. the file may be directly recognized by and run in the in-vehicle system, e.g. the executable file may be a JSON file.
Specifically, an executable file can be generated according to light effect identification data and configuration parameters in the automobile light control script, and after integrity check is performed on the executable file, a file name is input for storage so as to be used by the vehicle-mounted system.
However, the above-described approach using multiple files has the following problems:
1. after searching for the required partial light effect graphs in the light effect dictionary data (file 1), the corresponding relation between the required partial light effect graphs and attribute information such as dictionary identification, time frame information and the like needs to be manually identified, and then the partial light effect graphs are input into the automobile light control script (file 2), so that the operation is complex and mistakes are easily made.
2. It is necessary to copy between the tabular light effect dictionary data (file 1) and the vehicle light control script (file 2), and mass data copying between tables is inefficient and is prone to collapse.
3. It is necessary to calculate light effect identification data by attribute information in a vehicle light control script (file 2), and then to generate an executable file (file 3) that can be recognized by an in-vehicle system using a tool, which is inefficient in operation.
Based on this, can edit through visual lamp effect, simplify the operation of lamp effect edition, both need not artifical required partial lamp effect figure and attribute information corresponding relation such as dictionary identification, time frame information, and then manual entry file also need not to carry out data replication between the form, and can the automatic generation to the executable file of lamp effect, be convenient for link up with subsequent research and development, promoted the efficiency of lamp effect edition.
The following is specifically described:
referring to fig. 2, a flowchart illustrating steps of a data processing method according to an embodiment of the present invention is shown, which may specifically include the following steps:
step 201, when a trigger event is detected, creating or starting an automobile light control script;
the automobile light control script can be a visual automobile light control script, can be a variable, can be read and can be modified, can be used for storing the light effect graph and the attribute information corresponding to the light effect graph, can be convenient for visually sense the light effect through the light effect graph, and can be used for positioning specific light effect contents in the light effect dictionary data through the attribute information.
As an example, the attribute information may include dictionary identification corresponding to the light effect dictionary data to which the light effect graph belongs, for example, each table in document 1 corresponds to one light effect dictionary data, the dictionary identification is a table number, and it may further include time frame information corresponding to the light effect graph, a high beam control value (which may be used to control whether the high beam is turned on), a low beam control value (which may be used to control whether the low beam is turned on), a reserved bit, and the like.
After a client for visual light effect editing is started, an interactive interface can be displayed, and when a trigger event aiming at the interactive interface is detected, a new automobile light control script can be created, or a previously created automobile light control script can be started.
Specifically, on the one hand, a creation control for creating a new automobile light control script, such as the control "create new automobile light control script" in fig. 3a, may be displayed in the interactive interface, and in response to an operation on the creation control, the new automobile light control script may be created.
On the other hand, since the previously created automobile light control script may be bound to the user account and stored in the cloud, after the user account is successfully logged in, the previously created automobile light control script may be searched through the user account, and then an opening control for the previously created automobile light control script, such as a control of "previously created automobile light control scripts 1-3" in fig. 3a, may be displayed in the interactive interface, and in response to an operation on the opening control, the previously created automobile light control script may be opened.
In an example, a script name corresponding to a previously created automobile light control script may be displayed in a control for the automobile light control script to distinguish.
In an embodiment of the present invention, the method may further include the following steps:
and storing the automobile lighting control script in a cloud.
In specific implementation, modification of a newly created automobile light control script and a previously created light effect control script can be synchronized to the cloud end and bound with a user account, so that cross-end sharing creation is realized.
Step 202, responding to a first operation, and acquiring target light effect dictionary data in a preset automobile light effect storage library;
the light effect dictionary data may be a constant, that is, may be read only and may not be modified, and may include a correspondence between time frame information (Tick) and light effect content of the vehicle lights, and the light effect dictionary data may be used to control light effects of each vehicle light in the vehicle in a certain time period.
In order to visually perceive the lamp effect in the lamp effect editing process, the lamp effect content of the vehicle lamp may be in the form of a lamp effect graph, and if a table is used to display the lamp effect graph, a plurality of tables may be set, and each table may correspond to one lamp effect dictionary data.
The vertical axis in the table represents time frame information, each grid represents a time period, for example, each grid is 20ms, the horizontal axis in the table represents lamp effect content of the vehicle lamp, the lamp effect graph forms a lamp effect graph, for example, AR1-AR19, BM1-BM48 and AL1-AL19 in fig. 1 are vehicle lamp identifiers, and each grid corresponding to the vehicle lamp identifier represents lamp effect content, for example, the on-off state and color of the vehicle lamp.
In one example, the light effect graphics may be scalable vector graphics, for example, a view of SVG vector graphics may be employed, which may be a better and efficient way to process planar graphics data in computer graphics processing.
In practical application, as the plurality of light effect dictionary data are stored in the preset automobile light effect storage library, a dictionary lookup interface can be accessed according to user expectation, and target light effect dictionary data are obtained from the plurality of light effect dictionary data through lookup operation of the light effect dictionary data.
In an embodiment of the present invention, before the week 203, the following steps may be further included:
and visualizing the target lamp effect dictionary data in a dictionary lookup interface.
After the target light effect dictionary data are obtained, the target light effect dictionary data can be visualized in a dictionary lookup interface, so that the light effect expected by a user can be conveniently looked up.
In an embodiment of the present invention, before step 202, the following steps may be further included:
and responding to the operation of a first virtual control in the light effect editing interface, and displaying the dictionary lookup interface through a floating layer.
After an automobile lighting control script is created or started, a lighting effect editing interface can be entered, as shown in fig. 3b, and the lighting effect editing interface can include an editing operation area, a file management area and a parameter configuration area, as shown in fig. 3c, and the editing operation area can have a first virtual control for searching the lighting effect dictionary data.
After the operation on the first virtual control is detected, a dictionary lookup interface can be entered from the light effect editing interface, and the dictionary lookup interface can be displayed on the upper layer of the light effect editing interface in a floating layer mode.
Step 203, responding to a second operation, copying partial data in the target light effect dictionary data to the automobile light control script;
the partial data may be part of the light effect graphs in the target light effect dictionary data and attribute information corresponding to the part of the light effect graphs, and the attribute information may include dictionary identifications corresponding to the light effect dictionary data to which the light effect graphs belong, for example, each table in document 1 corresponds to one piece of the light effect dictionary data, and the dictionary identifications are table numbers and may further include time frame information corresponding to the light effect graphs, high beam control values (which may be used to control whether a high beam is turned on), low beam control values (which may be used to control whether a low beam is turned on), reserved bits, and the like.
Since the target light effect dictionary data is visualized on the dictionary lookup interface, the desired partial data can be selected from the target light effect dictionary data through the second operation, and the partial data can be copied to the automobile light control script.
In this embodiment of the present invention, before step 204, the following steps may also be included:
and visualizing the partial data in a lamp effect editing interface.
After obtaining the partial data, the partial data may be visualized in a light effect editing interface, such as displaying a light effect graph and attribute information corresponding to the partial data.
And step 204, responding to the third operation, and generating an executable file corresponding to the automobile light control script.
The executable file can be directly recognized by the vehicle-mounted system and run in the vehicle-mounted system, for example, the executable file can be a JSON file.
Since the automobile light control script is a visual script and cannot be directly run in the vehicle-mounted system, in order to be directly run in the vehicle-mounted system, the automobile light control script can be converted into an executable file by one key in response to a user operating in the light effect editing interface.
In the embodiment of the invention, when a trigger event is detected, an automobile light control script is created or started, the target light effect dictionary data is acquired in a preset automobile light effect storage library in response to a first operation, part of the lamp data in the target light effect dictionary data is copied to the automobile light control script in response to a second operation, and an executable file corresponding to the automobile light control script is generated in response to a third operation, so that visual light effect editing is realized, the operation of the light effect editing is simplified, the executable file aiming at the light effect can be automatically generated, and the efficiency of the light effect editing is improved.
Referring to fig. 4, a flowchart illustrating steps of another data processing method according to an embodiment of the present invention is shown, which may specifically include the following steps:
step 401, when a trigger event is detected, creating or starting an automobile light control script;
step 402, responding to the operation of the identification input area in the dictionary lookup interface, and determining the identification of the light effect dictionary;
after entering the dictionary lookup interface, as shown in fig. 5a, the dictionary lookup interface may have an identification input area, and the lighting effect dictionary identification may be determined by inputting through the identification input area in the dictionary lookup interface.
Step 403, acquiring target light effect dictionary data from a preset automobile light effect storage library according to the light effect dictionary identifier;
because a plurality of light effect dictionary data are stored in a preset automobile light effect storage library, after the light effect dictionary identification is determined, target light effect dictionary data corresponding to the light effect dictionary identification can be acquired in the automobile light effect storage library.
Step 404, displaying a light effect graph corresponding to the target light effect dictionary data in the dictionary lookup interface;
after the target light effect dictionary data is obtained, the light effect graph corresponding to the target light effect dictionary data can be displayed in the dictionary lookup interface, for example, the light effect graph is displayed by using a table.
In an embodiment of the present invention, step 404 may include the following sub-steps:
displaying a detailed drawing of a lamp effect graph corresponding to the target lamp effect dictionary data in a first lamp effect preview area of the dictionary lookup interface; and displaying a thumbnail of the lamp effect graph corresponding to the target lamp effect dictionary data in a second lamp effect preview area of the dictionary lookup interface.
In practical application, as shown in fig. 5a, the dictionary lookup interface may have a first light effect preview area and a second light effect preview area, and may display detailed diagrams of light effect graphs corresponding to the target light effect dictionary data in the first light effect preview area, and may display thumbnails of light effect graphs corresponding to the target light effect dictionary data in the second light effect preview area for facilitating quick browsing because part of the light effect graphs are large.
In an embodiment of the present invention, the method may further include the following steps:
and adjusting the detailed drawing displayed in the first light effect preview area in response to the operation of the thumbnail displayed in the second light effect preview area.
When the operation on the thumbnail displayed in the second light effect preview area is detected, if the left side is the detailed drawing and the right side is the thumbnail in fig. 5b, the visible sliding block can be displayed by placing the cursor on the thumbnail, and the detailed drawing displayed in the first light effect preview area can be correspondingly adjusted by scrolling the visible sliding block up and down on the thumbnail, so that the rapid preview and positioning can be realized.
Step 405, responding to a second operation, copying partial data in the target light effect dictionary data to the automobile light control script, and visualizing the partial data in a light effect editing interface;
and step 406, in response to the third operation, generating an executable file corresponding to the automobile light control script.
In the embodiment of the invention, when a trigger event is detected, an automobile light control script is created or started, a light effect dictionary identifier is determined in response to the operation of an identifier input area in a dictionary lookup interface, target light effect dictionary data is obtained in a preset automobile light effect storage library according to the light effect dictionary identifier, a light effect graph corresponding to the target light effect dictionary data is displayed in the dictionary lookup interface, part data in the target light effect dictionary data is copied to the automobile light control script in response to a second operation, part data is visualized in a light effect editing interface, an executable file corresponding to the automobile light control script is generated in response to a third operation, so that the light effect expected by a user is quickly searched in the process of visual light effect editing, and the efficiency of searching the light effect is improved.
Referring to fig. 6, a flowchart illustrating steps of another data processing method according to an embodiment of the present invention is shown, which may specifically include the following steps:
601, when a trigger event is detected, creating or starting an automobile light control script;
step 602, in response to a first operation, acquiring target light effect dictionary data from a preset automobile light effect storage library, and visualizing the target light effect dictionary data in a dictionary lookup interface;
step 603, responding to the operation of the light effect graph displayed in the dictionary lookup interface, and determining part data in the target light effect dictionary data;
because the light effect graph of the target light effect dictionary data is displayed in the dictionary lookup interface, part of the light effect graph can be selected through the selection frame, and then part of data in the target light effect dictionary data can be determined, and the part of data can be stored in a Random Access Memory (RAM).
Step 604, in response to the operation of the editing operation area in the light effect editing interface, copying the partial data to the automobile light control script;
after determining part of the data, the dictionary lookup interface can be closed, the light effect editing interface is entered, and then part of the data stored in the RAM can be copied to the automobile light control script through the operation of editing the operation area in the light effect editing interface.
Step 605, displaying the light effect graph and the attribute information corresponding to the partial data in the light effect editing interface;
after copying part of the data to the automobile light control script, the light effect graph and the attribute information corresponding to the part of the data can be displayed in the editing operation area in the light effect editing interface.
As an example, the attribute information may include dictionary identification corresponding to the light effect dictionary data to which the part of data belongs, for example, each table corresponds to one light effect dictionary data, the dictionary identification is a table number, and it may further include time frame information corresponding to the part of light effect graph, a high beam control value (which may be used to control whether the high beam is turned on), a low beam control value (which may be used to control whether the low beam is turned on), reserved bits, and the like.
In an embodiment of the present invention, the method may further include the following steps:
and responding to the operation of the light effect graph and the attribute information displayed in the light effect editing interface, and adjusting the automobile light control script.
In a specific implementation, the light effect graph and the attribute information displayed in the light effect editing area of the light effect editing interface can be operated, such as dragging, moving, copying and pasting, and the like, so that the automobile light control script can be correspondingly adjusted without being repeatedly copied from the light effect dictionary data.
And 606, responding to the third operation, and generating an executable file corresponding to the automobile light control script.
In the embodiment of the invention, when a trigger event is detected, an automobile light control script is created or started, target light effect dictionary data is acquired in a preset automobile light effect repository in response to a first operation, the target light effect dictionary data is visualized in a dictionary lookup interface, partial data in the target light effect dictionary data is determined in response to the operation of a light effect graph displayed in the dictionary lookup interface, partial data is copied to the automobile light control script in response to the operation of an editing operation area in a light effect editing interface, the light effect graph corresponding to the partial data is displayed in the light effect editing interface, an executable file corresponding to the automobile light control script is generated in response to a third operation, and rapid data copying is realized in the visual light effect editing process without manually identifying the required partial light effect graph and a dictionary identifier, The attribute information corresponding relations such as the time frame information and the like are further manually input into files, data copying does not need to be carried out between the forms, executable files aiming at the lamp effect can be automatically generated, the lamp effect can be conveniently linked with subsequent research and development, and the efficiency of lamp effect editing is improved.
Referring to fig. 7, a flowchart illustrating steps of another data processing method according to an embodiment of the present invention is shown, which may specifically include the following steps:
step 701, when a trigger event is detected, creating or starting an automobile light control script;
step 702, responding to a first operation, acquiring target light effect dictionary data in a preset automobile light effect storage library, and visualizing the target light effect dictionary data in a dictionary lookup interface;
step 703, in response to a second operation, copying part of data in the target light effect dictionary data to the automobile light control script, and visualizing the part of data in a light effect editing interface;
step 704, generating light effect identification data corresponding to the partial data, and storing the light effect identification data in the automobile light control script;
in a specific implementation, attribute information corresponding to part of the data may be determined, light effect identification data corresponding to the attribute information may be generated according to a preset rule, and stored in an automobile light control script.
For example, if the attribute information includes a dictionary identification of 01, time frame information of 1, and a C lamp control value of 0, the lamp effect identification data may be generated as follows:
1*256+1+0*65536=257
step 705, responding to the operation of the parameter configuration area in the light effect editing interface, and adjusting the configuration parameters of the automobile light control script;
in a specific implementation, the configuration parameters of the automobile lighting control script may be further adjusted by operating the parameter configuration area in the lighting effect editing interface, where the configuration parameters may include the following:
1. lamp effect name (effect _ name): it is a lamp effect name recognizable for vehicle-mounted applications;
2. lamp effect type (effect _ type): characterizing the use of the lamp effect;
3. lamp effect ID (effect _ ID): the characterization is used for identifying transmitted light effect identification data when the vehicle-mounted application interacts with part of the MCU;
4. headlight unit time frame length: such as 20ms, which may be a multiple of 10;
5. length of tail light unit time frame: such as 30ms, which may be a multiple of 10;
6. number of headlight cycles: it can take a natural number greater than 1;
7. cycle number of tail light: it can take a natural number greater than 1;
8. headlight stay information: representing whether the lighting effect of the last frame is kept after the front lamp executes the automobile light control script, wherein the lighting effect can be Boolean type, and then representing that the value 1 is kept and representing that the value 0 is not kept;
9. tail light stay information: and representing whether the lighting effect of the last frame is kept after the tail lamp executes the automobile lighting control script, wherein the lighting effect can be Boolean, and the representation of value 1 is kept and the representation of value 0 is not kept.
Step 706, responding to the operation of the file management area in the light effect editing interface, and generating an executable file corresponding to the automobile light control script according to the light effect identification data and the configuration parameters.
When the operation of the file management area in the light effect editing interface is detected, an executable file corresponding to the automobile light control script can be generated according to the light effect identification data and the configuration parameters, and after the integrity of the executable file is checked, a file name is input for storage so as to be used by a vehicle-mounted system.
In one example, the vehicle lighting control script can also be directly derived to facilitate comparison during testing.
In the embodiment of the invention, when a trigger event is detected, an automobile light control script is created or started, target light effect dictionary data is acquired in a preset automobile light effect repository in response to a first operation, the target light effect dictionary data is visualized in a dictionary lookup interface, part data in the target light effect dictionary data is copied to the automobile light control script in response to a second operation, the part data is visualized in a light effect editing interface to generate light effect identification data corresponding to the part data, the light effect identification data is stored in the automobile light control script, the configuration parameters of the automobile light control script are adjusted in response to the operation of a parameter configuration area in the light effect editing interface, and the configuration parameters are adjusted in response to the operation of a component management area in the light effect editing interface according to the light effect identification data and the configuration parameters, the method has the advantages that the executable file corresponding to the automobile lighting control script is generated, so that the executable file aiming at the light effect is automatically generated when the visual light effect is edited, the linkage with subsequent research and development is facilitated, the conversion of the executable file by means of a tool is avoided, and the efficiency from creation to real vehicle execution is greatly improved.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Referring to fig. 8, a schematic structural diagram of a data processing apparatus according to an embodiment of the present invention is shown, which may specifically include the following modules:
an automobile light control script creating or starting module 801, configured to create or start an automobile light control script when a trigger event is detected;
a first operation response module 802, configured to, in response to a first operation, obtain target light effect dictionary data in a preset automobile light effect repository;
a second operation response module 803 for copying part of the data in the target light effect dictionary data to the car light control script in response to a second operation;
a third operation response module 804, configured to generate an executable file corresponding to the car light control script in response to a third operation.
In an embodiment of the present invention, the method further includes:
the target light effect dictionary data visualization module is used for visualizing the target light effect dictionary data in a dictionary lookup interface;
and the partial data visualization module is used for visualizing the partial data in the light effect editing interface.
In an embodiment of the present invention, the first operation response module 802 includes:
the light effect dictionary identification determining submodule is used for responding to the operation of the identification input area in the dictionary lookup interface and determining the light effect dictionary identification;
and the target light effect dictionary data acquisition submodule is used for acquiring target light effect dictionary data according to the light effect dictionary identification.
In an embodiment of the present invention, the target light effect dictionary data visualization module includes:
and the light effect graph display sub-module in the dictionary lookup interface is used for displaying the light effect graph corresponding to the target light effect dictionary data in the dictionary lookup interface.
In an embodiment of the present invention, the light effect graph display sub-module in the dictionary lookup interface includes:
the detailed diagram display unit is used for displaying a detailed diagram of a lamp effect graph corresponding to the target lamp effect dictionary data in a first lamp effect preview area of the dictionary lookup interface;
and the thumbnail display unit is used for displaying the thumbnail of the lamp effect graph corresponding to the target lamp effect dictionary data in a second lamp effect preview area of the dictionary lookup interface.
In an embodiment of the present invention, the method further includes:
and adjusting the detailed drawing displayed in the first light effect preview area in response to the operation of the thumbnail displayed in the second light effect preview area.
In an embodiment of the present invention, the method further includes:
and the floating layer display module is used for responding to the operation of the first virtual control in the light effect editing interface and displaying the dictionary lookup interface through a floating layer.
In an embodiment of the present invention, the second operation response module 803 includes:
the partial data determination submodule is used for responding to the operation of the lamp effect graph displayed in the dictionary lookup interface and determining partial data in the target lamp effect dictionary data;
and the partial data copying sub-module is used for copying 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.
In an embodiment of the present invention, the partial data visualization module includes:
and the light effect graph display submodule in the light effect editing interface is used for displaying the light effect graph and the attribute information corresponding to the part of data in the light effect editing interface.
In an embodiment of the present invention, the method further includes:
and the automobile light control script adjusting module is used for responding to the operation of the light effect graph and the attribute information displayed in the light effect editing interface and adjusting the automobile light control script.
In an embodiment of the present invention, the method further includes:
and the light effect identification data generation module is used for generating light effect identification data corresponding to the partial data and storing the light effect identification data in the automobile light control script.
In an embodiment of the present invention, the method further includes:
and the configuration parameter adjusting module is used for responding to the operation of the parameter configuration area in the light effect editing interface and adjusting the configuration parameters of the automobile light control script.
In an embodiment of the present invention, the third operation response module 804 includes:
and the executable file generation sub-module is used for responding to the operation of the file management area in the light effect editing interface and generating the executable file corresponding to the automobile light control script according to the light effect identification data and the configuration parameters.
In the embodiment of the invention, when a trigger event is detected, an automobile light control script is created or started, target light effect dictionary data is acquired in a preset automobile light effect storage library in response to a first operation, the target light effect dictionary data is visualized in a dictionary lookup interface, partial light data in the target light effect dictionary data is copied to the automobile light control script in response to a second operation, partial data is visualized in a light effect editing interface, and an executable file corresponding to the automobile light control script is generated in response to a third operation, so that visual light effect editing is realized, the operation of the light effect editing is simplified, the executable file aiming at the light effect can be automatically generated, and the efficiency of the light effect editing is improved.
An embodiment of the present invention also 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 when executed by the processor, the computer program implements the method for processing data as above.
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the above data processing method.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The method and apparatus for data processing provided above are described in detail, and a specific example is applied herein to illustrate the principles and embodiments of the present invention, and the above description of the embodiment is only used to help understand the method and core ideas of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (16)

1. A method of data processing, the method comprising:
when a trigger event is detected, creating or starting an automobile light control script;
responding to a first operation, and acquiring target light effect dictionary data in a preset automobile light effect storage library;
copying partial data in the target light effect dictionary data to the vehicle light control script in response to a second operation;
and responding to a third operation, and generating an executable file corresponding to the automobile light control script.
2. The method according to claim 1, wherein before the copying partial data in the target light effect dictionary data to the car light control script in response to the second operation, further comprises:
visualizing the target lamp effect dictionary data in a dictionary lookup interface;
before the generating, in response to the third operation, an executable file corresponding to the car light control script, the method further includes:
and visualizing the partial data in a lamp effect editing interface.
3. The method according to claim 2, wherein the obtaining target light effect dictionary data in a preset automotive light effect repository in response to a first operation comprises:
responding to the operation of the input area of the identification in the dictionary lookup interface, and determining a light effect dictionary identification;
and acquiring target light effect dictionary data from a preset automobile light effect storage library according to the light effect dictionary identifier.
4. The method of claim 2 or 3, wherein visualizing the target light effect dictionary data in a dictionary lookup interface comprises:
and displaying the light effect graph corresponding to the target light effect dictionary data in the dictionary lookup interface.
5. The method of claim 4, wherein displaying, in the dictionary lookup interface, a light effect graph corresponding to the target light effect dictionary data comprises:
displaying a detailed drawing of a lamp effect graph corresponding to the target lamp effect dictionary data in a first lamp effect preview area of the dictionary lookup interface;
and displaying a thumbnail of the lamp effect graph corresponding to the target lamp effect dictionary data in a second lamp effect preview area of the dictionary lookup interface.
6. The method of claim 5, further comprising:
and adjusting the detailed drawing displayed in the first light effect preview area in response to the operation of the thumbnail displayed in the second light effect preview area.
7. The method according to claim 2, wherein before the obtaining target light effect dictionary data in a preset automotive light effect repository in response to the first operation, further comprising:
and responding to the operation of a first virtual control in the light effect editing interface, and displaying the dictionary lookup interface through a floating layer.
8. The method according to claim 2, wherein the copying partial data in the target light effect dictionary data to the car light control script in response to a second operation comprises:
in response to the operation of the light effect graph displayed in the dictionary lookup interface, determining part data in the target light effect dictionary data;
in response to an operation on an editing operation area in the light effect editing interface, copying the partial data to the car light control script.
9. The method of claim 8, wherein visualizing the portion of data in a light effect editing interface comprises:
and displaying the light effect graph and the attribute information corresponding to the partial data in the light effect editing interface.
10. The method of claim 9, further comprising:
and responding to the operation of the light effect graph and the attribute information displayed in the light effect editing interface, and adjusting the automobile light control script.
11. The method according to claim 2, wherein before the generating an executable file corresponding to the car light control script in response to the third operation, further comprising:
and generating light effect identification data corresponding to the partial data, and storing the light effect identification data in the automobile light control script.
12. The method of claim 11, further comprising, before the generating an executable file corresponding to the car light control script in response to a third operation:
and adjusting the configuration parameters of the automobile light control script in response to the operation of the parameter configuration area in the light effect editing interface.
13. The method of claim 12, wherein generating an executable file corresponding to the vehicle light control script in response to a third operation comprises:
responding to the operation of the file management area in the light effect editing interface, and generating an executable file corresponding to the automobile light control script according to the light effect identification data and the configuration parameters.
14. An apparatus for data processing, the apparatus comprising:
the automobile light control script creating or starting module is used for creating or starting an automobile light control script when a trigger event is detected;
the first operation response module is used for responding to the first operation and acquiring target light effect dictionary data in a preset automobile light effect storage library;
a second operation response module for copying part of the data in the target light effect dictionary data to the vehicle light control script in response to a second operation;
and the third operation response module is used for responding to a third operation and generating an executable file corresponding to the automobile light control script.
15. An electronic device comprising a processor, a memory, and a computer program stored on the memory and capable of running on the processor, the computer program, when executed by the processor, implementing a method of data processing according to any one of claims 1 to 13.
16. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out a method of data processing according to any one of claims 1 to 13.
CN202011185789.4A 2020-10-30 2020-10-30 Data processing method and device Pending CN112306482A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011185789.4A CN112306482A (en) 2020-10-30 2020-10-30 Data processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011185789.4A CN112306482A (en) 2020-10-30 2020-10-30 Data processing method and device

Publications (1)

Publication Number Publication Date
CN112306482A true CN112306482A (en) 2021-02-02

Family

ID=74330630

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011185789.4A Pending CN112306482A (en) 2020-10-30 2020-10-30 Data processing method and device

Country Status (1)

Country Link
CN (1) CN112306482A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112306483A (en) * 2020-10-30 2021-02-02 广州小鹏汽车科技有限公司 Data processing method and device
CN114051304A (en) * 2021-12-16 2022-02-15 浙江吉利控股集团有限公司 Lamp on-off state control method, device, equipment, medium and program product
CN117560828A (en) * 2024-01-11 2024-02-13 深圳市智岩科技有限公司 Atmosphere lamp equipment, multi-lamp-effect mixed broadcasting control method, corresponding device and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101489337A (en) * 2008-12-19 2009-07-22 上海广茂达灯光景观工程有限公司 Editing method for LED lamp light landscape scene
US20160370981A1 (en) * 2015-06-19 2016-12-22 Uniform Industrial Corp. Editing device and method for edit and preview of light control pattern
CN110001505A (en) * 2019-04-03 2019-07-12 广州小鹏汽车科技有限公司 A kind of customizing method and system, vehicle of Vehicle lamp effect
CN110035588A (en) * 2019-04-03 2019-07-19 广州小鹏汽车科技有限公司 A kind of programmable lamp system and lamp imitate output method, vehicle

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101489337A (en) * 2008-12-19 2009-07-22 上海广茂达灯光景观工程有限公司 Editing method for LED lamp light landscape scene
US20160370981A1 (en) * 2015-06-19 2016-12-22 Uniform Industrial Corp. Editing device and method for edit and preview of light control pattern
CN110001505A (en) * 2019-04-03 2019-07-12 广州小鹏汽车科技有限公司 A kind of customizing method and system, vehicle of Vehicle lamp effect
CN110035588A (en) * 2019-04-03 2019-07-19 广州小鹏汽车科技有限公司 A kind of programmable lamp system and lamp imitate output method, vehicle

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112306483A (en) * 2020-10-30 2021-02-02 广州小鹏汽车科技有限公司 Data processing method and device
CN114051304A (en) * 2021-12-16 2022-02-15 浙江吉利控股集团有限公司 Lamp on-off state control method, device, equipment, medium and program product
CN114051304B (en) * 2021-12-16 2023-09-26 浙江吉利控股集团有限公司 Lighting on-off state control method, device, equipment, medium and program product
CN117560828A (en) * 2024-01-11 2024-02-13 深圳市智岩科技有限公司 Atmosphere lamp equipment, multi-lamp-effect mixed broadcasting control method, corresponding device and medium
CN117560828B (en) * 2024-01-11 2024-03-15 深圳市智岩科技有限公司 Atmosphere lamp equipment, multi-lamp-effect mixed broadcasting control method, corresponding device and medium

Similar Documents

Publication Publication Date Title
CN112306482A (en) Data processing method and device
US6651240B1 (en) Object-oriented software development support apparatus and development support method
US11137871B2 (en) System and method for interface display screen manipulation
US8823738B1 (en) Merging electronic diagrams
BR112017026293B1 (en) SYSTEM FOR A WEBSITE BUILDING SYSTEM IMPLEMENTED ON A SERVER AND METHOD FOR A WEBSITE BUILDING SYSTEM IMPLEMENTED ON A SERVER
WO2020140940A1 (en) Code generation method and apparatus, and device and storage medium
CN112312631B (en) Data processing method and device
CN106933887B (en) Data visualization method and device
CN112306483A (en) Data processing method and device
CN112312629B (en) Data processing method and device
CN111143402A (en) Extended model generation method, device and medium
CN112667235A (en) Visual layout editing implementation method and device and electronic equipment
JP2009282709A5 (en)
CN112312630B (en) Data processing method and device
JP7055064B2 (en) Database migration support system and program
CN114741360A (en) Automobile part file reconstruction method and device, terminal equipment and storage medium
WO2001060060A1 (en) Control of sequence of video modifying operations
CN112597023A (en) Case management method and device based on guide picture, computer equipment and storage medium
CN112306484A (en) Data processing method and device
CN111428430A (en) Circuit device information acquisition method, device, equipment and medium in circuit design
US20220180011A1 (en) Systems and methods for modifying cad files
US20200159805A1 (en) System and method for producing transferable, modular web pages
CN112905151A (en) Rapid creation method for multi-sensing channel fusion virtual experiment
CN112596475B (en) System safety analysis system based on process control
CN115858398A (en) Method and device for generating automatic driving test scene and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination