CN112312629A - Data processing method and device - Google Patents

Data processing method and device Download PDF

Info

Publication number
CN112312629A
CN112312629A CN202011185785.6A CN202011185785A CN112312629A CN 112312629 A CN112312629 A CN 112312629A CN 202011185785 A CN202011185785 A CN 202011185785A CN 112312629 A CN112312629 A CN 112312629A
Authority
CN
China
Prior art keywords
light effect
light
automobile
control script
effect
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.)
Granted
Application number
CN202011185785.6A
Other languages
Chinese (zh)
Other versions
CN112312629B (en
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 CN202011185785.6A priority Critical patent/CN112312629B/en
Publication of CN112312629A publication Critical patent/CN112312629A/en
Application granted granted Critical
Publication of CN112312629B publication Critical patent/CN112312629B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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]
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60QARRANGEMENT OF SIGNALLING OR LIGHTING DEVICES, THE MOUNTING OR SUPPORTING THEREOF OR CIRCUITS THEREFOR, FOR VEHICLES IN GENERAL
    • B60Q1/00Arrangement of optical signalling or lighting devices, the mounting or supporting thereof or circuits therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/12Geometric CAD characterised by design entry means specially adapted for CAD, e.g. graphical user interfaces [GUI] specially adapted for CAD
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/15Vehicle, aircraft or watercraft design

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Geometry (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Mathematical Optimization (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Pure & Applied Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Evolutionary Computation (AREA)
  • General Engineering & Computer Science (AREA)
  • Aviation & Aerospace Engineering (AREA)
  • Automation & Control Theory (AREA)
  • Architecture (AREA)
  • Human Computer Interaction (AREA)
  • Mechanical Engineering (AREA)
  • Lighting Device Outwards From Vehicle And Optical Signal (AREA)

Abstract

The embodiment of the invention provides a data processing method and a data processing device, wherein the method comprises the following steps: responding to the creation or starting of the automobile light control script, and displaying a light effect editing interface; responding to the operation of the light effect editing interface, adjusting the configuration parameters of the automobile light control script, and generating an executable file corresponding to the automobile light control script according to the configuration parameters so as to control an automobile light component to display the light effect. By the embodiment of the invention, visual light effect editing is realized, the operation of the light effect editing is simplified, the configuration parameters of the automobile light control script can be adjusted, the executable file aiming at the light effect is generated automatically, 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:
responding to the creation or starting of the automobile light control script, and displaying a light effect editing interface;
responding to the operation of the light effect editing interface, adjusting the configuration parameters of the automobile light control script, and generating an executable file corresponding to the automobile light control script according to the configuration parameters so as to control an automobile light component to display the light effect.
Optionally, the method further comprises:
when partial data in the target light effect dictionary data are copied to the automobile light control script, generating light effect identification data corresponding to the partial data;
and storing the light effect identification data in the automobile light control script.
Optionally, the adjusting, in response to the operation on the light effect editing interface, the configuration parameters of the automobile light control script, and generating an executable file corresponding to the automobile light control script according to the configuration parameters to control an automobile light component to perform light effect display includes:
adjusting configuration parameters of the automobile light control script in response to the operation of the parameter configuration area in the light effect editing interface;
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 so as to control the automobile light components to display the light effect.
Optionally, the method further comprises:
and when partial data in the target light effect dictionary data are detected to be copied to the automobile light control script, visualizing the partial data in a light effect editing interface.
Optionally, the method further comprises:
and storing the automobile lighting control script in a cloud.
Optionally, the configuration parameters include any one or more of:
name information of the automobile light effect, type information of the automobile light effect and identification information of the automobile light effect.
Optionally, the configuration parameters further include headlight parameter information and taillight parameter information;
the headlamp parameter information comprises any one or more of:
headlight unit time frame length information, headlight cycle number information, and headlight stay information;
the tail light parameter information includes any one or more of:
tail lamp unit time frame length information, tail lamp cycle number information and tail lamp stay information.
An apparatus for data processing, the apparatus comprising:
the light effect editing interface display module is used for responding to the establishment or the starting of the automobile light control script and displaying a light effect editing interface;
and the configuration parameter adjusting module is used for responding to the operation of the light effect editing interface, adjusting the configuration parameters of the automobile light control script, and generating an executable file corresponding to the automobile light control script according to the configuration parameters so as to control an automobile light component to display the light effect.
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, a light effect editing interface is displayed in response to the creation or the starting of the automobile light control script, so that the configuration parameters of the automobile light control script are adjusted in response to the operation on the light effect editing interface, the executable file corresponding to the automobile light control script is generated according to the configuration parameters, the automobile light component is controlled to display the light effect, the visual light effect editing is realized, the operation of the light effect editing is simplified, the configuration parameters of the automobile light control script can be adjusted, the executable file aiming at the light effect is 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 a lamp effect editing interface according to an embodiment of the present invention;
FIG. 3b is a schematic diagram of an interactive interface provided by 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. 5 is a flow chart of steps in another method of data processing provided by an embodiment of the invention;
fig. 6 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 high beam is on), a low beam control value (which may be used to control whether low beam is on), reserved bits, 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, responding to the creation or starting of an automobile light control script, and displaying a light effect editing interface;
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 light effect dictionary data may be a constant, i.e. readable only and non-modifiable, which may include a correspondence between time frame information (Tick) and light effect content of the vehicle lights, and may be used to control the light effect of each vehicle light in the vehicle for a certain period of time through the light effect dictionary data.
As still another example, the attribute information may include dictionary identification corresponding to the light effect dictionary data to which the light effect graphic belongs, such as that 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 graphic, a high beam control value (which may be used to control whether high beam is on), a low beam control value (which may be used to control whether low beam is on), reserved bits, and the like.
After the client for visual light effect editing is started, a new automobile light control script may be created through a displayed interactive interface when a trigger event for the interactive interface is detected, or a previously created automobile light control script may be started, and a light effect editing interface may be displayed, as shown in fig. 3a, where the light effect editing interface may include an editing operation area, a file management area, and a parameter configuration area.
In an example, in one aspect, a create control for creating a new car light control script, such as the "create new car light control script" control in fig. 3b, may be displayed in the interactive interface, and in response to an operation on the create control, the new car 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. 3b, 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 yet another example, a script name corresponding to a previously created car light control script may be displayed for distinction in a control for the car light control script.
Step 202, responding to the operation of the light effect editing interface, adjusting configuration parameters of the automobile light control script, and generating an executable file corresponding to the automobile light control script according to the configuration parameters so as to control an automobile light component to display the light effect.
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.
After the light effect editing interface is displayed, the configuration parameters of the automobile light control script can be adjusted through operation of the parameter configuration area in the light effect editing interface, and the executable file corresponding to the effect control script can be generated according to the configuration parameters so as to control the automobile light component to display the light effect.
For example, an operation on a file management area in a light effect editing interface can be detected, and then an executable file corresponding to an automobile light control script can be generated according to the configuration parameters.
The automobile light control script is a visual script and cannot be directly operated in the vehicle-mounted system, so that the automobile light control script can be directly operated in the vehicle-mounted system, the operation of a user on a file management area in a light effect editing interface can be detected, the automobile light control script can be converted into an executable file by one key, for example, when a JSON file is exported by one key, the JSON file can automatically carry required parameters, and the JSON file can be directly pushed to a vehicle-mounted large screen to be operated.
In an example, the configuration parameters may include any one or more of:
name information of the automobile light effect, type information of the automobile light effect and identification information of the automobile light effect.
For example, in the light effect editing interface, a parameter configuration bar may display an effect name effect _ name (i.e., name information of a car light effect), which may indicate that data is required to be filled in a car light control script, or may display an effect type effect _ type (i.e., type information of a car light effect), which may indicate that data is required to be filled in a car light control script, or may display an effect type effect _ id (i.e., identification information of a car light effect), which may indicate that data is required to be filled in a car light control script.
In an embodiment of the present invention, the configuration parameters may further include headlight parameter information and taillight parameter information;
the headlamp parameter information may include any one or more of:
headlight unit time frame length information, headlight cycle number information, and headlight stay information;
the tail light parameter information may include any one or more of:
tail lamp unit time frame length information, tail lamp cycle number information and tail lamp stay information.
Specifically, for the headlight parameter information/the taillight parameter information, the configuration parameters of the headlight/taillight may include a T Period (i.e., headlight unit time frame length information), which may represent the T Period of the headlight/taillight, and may be a multiple of 10, such as 10ms is the fastest for animation playing, 200ms is slower for animation playing, and may be customized by a designer; a Loop number Loop (i.e., headlight Loop number information) which may indicate the number of times the headlight/taillight effect is performed, and which may be customized by a designer; a final row stay Retain (i.e., headlight stay information) may be further included, which may indicate whether the final row is maintained (normally on state) after the execution of the headlights/taillights is completed, and may be customized by a designer.
In yet another example, a one-key export process by a car light control script one-key conversion to an executable file may include the following:
1. the name of the automobile light control script can be stored when the automobile light control script is created, namely the name of the file can be edited;
2. the automobile light control script created in the client application can be stored in the cloud server, so that cross-device management can be facilitated;
3. the method can be used for creating in a visual light effect editing interface, Excel files can be exported without manual Excel operation, and the exported Excel files can be used as comparison graphs for verifying the light effect of the actual vehicle;
4. the JSON file can be exported, the JSON file can be generated by processing one key through a computing engine, the exported JSON file can be directly sent to the car machine to execute the lantern language effect under the specified directory, and the JSON file is created without manual operation.
In the embodiment of the invention, a light effect editing interface is displayed in response to the creation or the starting of the automobile light control script, so that the configuration parameters of the automobile light control script are adjusted in response to the operation on the light effect editing interface, the executable file corresponding to the automobile light control script is generated according to the configuration parameters, the automobile light component is controlled to display the light effect, the visual light effect editing is realized, the operation of the light effect editing is simplified, the configuration parameters of the automobile light control script can be adjusted, the executable file aiming at the light effect is 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, responding to the creation or starting of an automobile light control script, and displaying a light effect editing interface;
after a client for visual light effect editing is started, a new automobile light control script can be created through a displayed interactive interface when a trigger event aiming at the interactive interface is detected, or a previously created automobile light control script can be started, and a light effect editing interface can be displayed.
Step 402, when partial data in target light effect dictionary data are copied to the automobile light control script, generating light effect identification data corresponding to the partial data;
the partial data may be part of the lamp effect graphs in the target lamp effect dictionary data and attribute information corresponding to the part of the lamp effect graphs, and the partial data may be stored in a Random Access Memory (RAM).
In a specific implementation, when it is detected that a desired partial data is selected from the target light effect dictionary data to copy the partial data to the automobile light control script, attribute information corresponding to the partial data may be determined, and then light effect identification data corresponding to the attribute information may be generated according to a preset rule.
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 403, storing the light effect identification data in the automobile light control script;
after generating the light effect identification data, the light effect identification data may be stored in the vehicle light control script.
Step 404, 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 405, 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 so as to control an automobile light component to display the light effect.
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 so as to control the automobile light component to display the light effect, and after the integrity of the executable file is checked, a file name is input to be stored so as to be used by a vehicle-mounted system.
For example, attribute information corresponding to part of the data can be determined, 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, and then an executable file corresponding to the automobile light control script can be generated according to the light effect identification data and the configuration parameters, so that the automobile light component can be controlled to display the light effect.
In one example, the vehicle lighting control script can also be directly derived to facilitate comparison during testing.
In the embodiment of the invention, a light effect editing interface is displayed in response to the creation or the starting of an automobile light control script, then when partial data in target light effect dictionary data are copied to the automobile light control script, light effect identification data corresponding to the partial data are generated, the light effect identification data are stored in the automobile light control script, the configuration parameters of the automobile light control script are adjusted in response to the operation on a parameter configuration area in the light effect editing interface, further in response to the operation on a file management area in the light effect editing interface, an executable file corresponding to the automobile light control script is generated according to the light effect identification data and the configuration parameters so as to control the automobile light component to display the light effect, and the automatic generation of the executable file aiming at the light effect is realized according to the light effect identification data and the configuration parameters during the visual light effect editing, the method is convenient to link with subsequent research and development, avoids the conversion of executable files by means of tools, and greatly improves the efficiency from creation to real vehicle execution.
Referring to fig. 5, 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 501, responding to the creation or starting of an automobile light control script, and displaying a light effect editing interface;
after a client for visual light effect editing is started, a new automobile light control script can be created through a displayed interactive interface when a trigger event aiming at the interactive interface is detected, or a previously created automobile light control script can be started, and a light effect editing interface can be displayed.
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 502, when it is detected that part of data in target light effect dictionary data is copied to the automobile light control script, visualizing the part of data in a light effect editing interface;
in a specific implementation, when it is detected that a desired part of data is selected from the target light effect dictionary data to copy the part of data to the vehicle light control script, the part of data may be visualized in the light effect editing interface, such as displaying light effect graphics and attribute information corresponding to the part of data.
For example, after entering the light effect editing interface, a part of the data stored in the RAM may be copied to the vehicle light control script by an operation of editing the operation area in the light effect editing interface, and further, the light effect graph and the attribute information corresponding to the part of the data may be displayed in the operation area edited in the light effect editing interface.
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 an example, a plurality of light effect dictionary data may be preset, a dictionary lookup interface may be entered, according to a user's desire, target light effect dictionary data may be obtained from the plurality of light effect dictionary data in a preset vehicle light effect repository through a lookup operation on the light effect dictionary data, and then desired partial data may be selected from the target light effect dictionary data, the partial data may be copied to a vehicle light control script, and 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.
In yet another example, the light effect graphics may be scalable vector graphics, for example, a view approach of SVG vector graphics may be employed, which may be a better and efficient way to process planar graphics data in computer graphics processing.
Step 503, responding to the operation of the light effect editing interface, adjusting the configuration parameters of the automobile light control script, and generating an executable file corresponding to the automobile light control script according to the configuration parameters to control an automobile light component to display the light effect.
After the light effect editing interface is displayed, the configuration parameters of the automobile light control script can be adjusted through operation of the parameter configuration area in the light effect editing interface, and the executable file corresponding to the effect control script can be generated according to the configuration parameters so as to control the automobile light component to display the light effect.
In the embodiment of the invention, a light effect editing interface is displayed in response to the creation or the starting of an automobile light control script, then when partial data in target light effect dictionary data is copied to the automobile light control script is detected, partial data is visualized in the light effect editing interface, further, in response to the operation on the light effect editing interface, the configuration parameters of the automobile light control script are adjusted, an executable file corresponding to the automobile light control script is generated according to the configuration parameters, so as to control the automobile light components to display the light effect, the data copying is realized quickly during the visualized light effect editing, the corresponding relation between partial light effect graphs and attribute information such as dictionary identification, time frame information and the like is not required to be manually identified, further, files are manually entered, the data copying is not required to be carried out between tables, and the configuration parameters of the automobile light control script can be adjusted, and then automatically generate an executable file aiming at the lamp effect, thereby improving the efficiency of lamp effect editing.
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. 6, 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:
the light effect editing interface display module 601 is used for responding to the creation or the starting of the automobile light control script and displaying a light effect editing interface;
a configuration parameter adjusting module 602, configured to adjust a configuration parameter of the automobile lighting control script in response to an operation on the lighting effect editing interface, and generate an executable file corresponding to the automobile lighting control script according to the configuration parameter, so as to control an automobile lighting component to perform lighting effect display.
In an embodiment of the present invention, the apparatus further includes:
the light effect identification data generation module is used for generating light effect identification data corresponding to partial data when partial data in the target light effect dictionary data are copied to the automobile light control script;
and the light effect identification data storage module is used for storing the light effect identification data in the automobile light control script.
In an embodiment of the present invention, the configuration parameter adjusting module 602 includes:
the configuration parameter adjusting submodule 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;
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 an executable file corresponding to the automobile light control script according to the light effect identification data and the configuration parameters so as to control the automobile light component to display the light effect.
In an embodiment of the present invention, the apparatus further includes:
and the visualization module is used for visualizing part of data in the target light effect dictionary data in a light effect editing interface when the condition that the part of data is copied to the automobile light control script is detected.
In an embodiment of the present invention, the apparatus further includes:
and the cloud storage module is used for storing the automobile lighting control script in a cloud.
In an embodiment of the invention, the configuration parameters include any one or more of:
name information of the automobile light effect, type information of the automobile light effect and identification information of the automobile light effect.
In an embodiment of the present invention, the configuration parameters further include headlight parameter information and taillight parameter information;
the headlamp parameter information comprises any one or more of:
headlight unit time frame length information, headlight cycle number information, and headlight stay information;
the tail light parameter information includes any one or more of:
tail lamp unit time frame length information, tail lamp cycle number information and tail lamp stay information.
In the embodiment of the invention, a light effect editing interface is displayed in response to the creation or the starting of the automobile light control script, so that the configuration parameters of the automobile light control script are adjusted in response to the operation on the light effect editing interface, the executable file corresponding to the automobile light control script is generated according to the configuration parameters, the automobile light component is controlled to display the light effect, the visual light effect editing is realized, the operation of the light effect editing is simplified, the configuration parameters of the automobile light control script can be adjusted, the executable file aiming at the light effect is 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 (10)

1. A method of data processing, the method comprising:
responding to the creation or starting of the automobile light control script, and displaying a light effect editing interface;
responding to the operation of the light effect editing interface, adjusting the configuration parameters of the automobile light control script, and generating an executable file corresponding to the automobile light control script according to the configuration parameters so as to control an automobile light component to display the light effect.
2. The method of claim 1, further comprising:
when partial data in the target light effect dictionary data are copied to the automobile light control script, generating light effect identification data corresponding to the partial data;
and storing the light effect identification data in the automobile light control script.
3. The method according to claim 2, wherein the adjusting configuration parameters of the car lighting control script in response to the operation of the lighting effect editing interface and generating an executable file corresponding to the car lighting control script according to the configuration parameters to control a car lighting component to perform a lighting effect exhibition comprises:
adjusting configuration parameters of the automobile light control script in response to the operation of the parameter configuration area in the light effect editing interface;
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 so as to control the automobile light components to display the light effect.
4. The method of claim 1, 2 or 3, further comprising:
and when partial data in the target light effect dictionary data are detected to be copied to the automobile light control script, visualizing the partial data in a light effect editing interface.
5. The method of claim 1, further comprising:
and storing the automobile lighting control script in a cloud.
6. The method of claim 1, wherein the configuration parameters include any one or more of:
name information of the automobile light effect, type information of the automobile light effect and identification information of the automobile light effect.
7. The method of claim 6, wherein the configuration parameters further include headlamp parameter information and taillight parameter information;
the headlamp parameter information comprises any one or more of:
headlight unit time frame length information, headlight cycle number information, and headlight stay information;
the tail light parameter information includes any one or more of:
tail lamp unit time frame length information, tail lamp cycle number information and tail lamp stay information.
8. An apparatus for data processing, the apparatus comprising:
the light effect editing interface display module is used for responding to the establishment or the starting of the automobile light control script and displaying a light effect editing interface;
and the configuration parameter adjusting module is used for responding to the operation of the light effect editing interface, adjusting the configuration parameters of the automobile light control script, and generating an executable file corresponding to the automobile light control script according to the configuration parameters so as to control an automobile light component to display the light effect.
9. 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 7.
10. 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 7.
CN202011185785.6A 2020-10-30 2020-10-30 Data processing method and device Active CN112312629B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011185785.6A CN112312629B (en) 2020-10-30 2020-10-30 Data processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011185785.6A CN112312629B (en) 2020-10-30 2020-10-30 Data processing method and device

Publications (2)

Publication Number Publication Date
CN112312629A true CN112312629A (en) 2021-02-02
CN112312629B CN112312629B (en) 2022-12-13

Family

ID=74330689

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011185785.6A Active CN112312629B (en) 2020-10-30 2020-10-30 Data processing method and device

Country Status (1)

Country Link
CN (1) CN112312629B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114212022A (en) * 2021-12-16 2022-03-22 浙江吉利控股集团有限公司 Vehicle lamp effect sharing method, apparatus, device, medium, and program product
CN114454805A (en) * 2022-02-23 2022-05-10 北京海纳川汽车部件股份有限公司 Control method and device for multi-pixel car lamp and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109152126A (en) * 2017-12-14 2019-01-04 蔚来汽车有限公司 For controlling the method for the lamp being set on vehicle and for the lighting system of vehicle
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
US20190241115A1 (en) * 2016-02-26 2019-08-08 Joseph P. Zizzadoro Automotive lamp control

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190241115A1 (en) * 2016-02-26 2019-08-08 Joseph P. Zizzadoro Automotive lamp control
CN109152126A (en) * 2017-12-14 2019-01-04 蔚来汽车有限公司 For controlling the method for the lamp being set on vehicle and for the lighting system of vehicle
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 (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114212022A (en) * 2021-12-16 2022-03-22 浙江吉利控股集团有限公司 Vehicle lamp effect sharing method, apparatus, device, medium, and program product
CN114454805A (en) * 2022-02-23 2022-05-10 北京海纳川汽车部件股份有限公司 Control method and device for multi-pixel car lamp and storage medium

Also Published As

Publication number Publication date
CN112312629B (en) 2022-12-13

Similar Documents

Publication Publication Date Title
CN112306482A (en) Data processing method and device
CN112312629B (en) Data processing method and device
US8726232B1 (en) Identification of patterns in modeling environments
CN115617327A (en) Low code page building system, method and computer readable storage medium
CN112312631B (en) Data processing method and device
CN111414166A (en) Code generation method, device, equipment and storage medium
CN109614095A (en) The method of user's Custom component, the generation method of platform code and device
CN108469955B (en) Annotation-based Android injection framework implementation method
CN112306483A (en) Data processing method and device
JPH04178833A (en) Method for supporting software reuse
CN112312630B (en) Data processing method and device
CN107797805B (en) Code packaging method and device and computer readable storage medium
CN114741360A (en) Automobile part file reconstruction method and device, terminal equipment and storage medium
CN116774982A (en) Code-free development method, equipment and storage medium in information creation environment
CN112601335B (en) Method and device for controlling automobile light
CN112306484A (en) Data processing method and device
CN107563025B (en) Verification platform management method and device
CN112498226A (en) Method and device for controlling automobile light
CN112540920A (en) Test method, device, equipment and storage medium
CN112698835B (en) Singlechip compiling and linking method and device, computer equipment and storage medium
CN113778421B (en) Method and equipment for generating service codes
KR100926832B1 (en) The method for effective figuration in Network Element Management
US20220327259A1 (en) A method for computer-implemented generation of a state machine from a simulated technical component in a block-based simulation model
CN115858398A (en) Method and device for generating automatic driving test scene and storage medium
CN116648689A (en) Method and device for generating automation script

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
GR01 Patent grant
GR01 Patent grant