CN112312630A - Data processing method and device - Google Patents

Data processing method and device Download PDF

Info

Publication number
CN112312630A
CN112312630A CN202011185817.2A CN202011185817A CN112312630A CN 112312630 A CN112312630 A CN 112312630A CN 202011185817 A CN202011185817 A CN 202011185817A CN 112312630 A CN112312630 A CN 112312630A
Authority
CN
China
Prior art keywords
script
light effect
light
automobile
control script
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
CN202011185817.2A
Other languages
Chinese (zh)
Other versions
CN112312630B (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 CN202011185817.2A priority Critical patent/CN112312630B/en
Publication of CN112312630A publication Critical patent/CN112312630A/en
Application granted granted Critical
Publication of CN112312630B publication Critical patent/CN112312630B/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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Geometry (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Mathematical Optimization (AREA)
  • General Engineering & Computer Science (AREA)
  • Mathematical Analysis (AREA)
  • Computational Mathematics (AREA)
  • Pure & Applied Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Evolutionary Computation (AREA)
  • Aviation & Aerospace Engineering (AREA)
  • Automation & Control Theory (AREA)
  • Architecture (AREA)
  • Human Computer Interaction (AREA)
  • Mechanical Engineering (AREA)
  • Stored Programmes (AREA)
  • Circuit Arrangement For Electric Light Sources In General (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; and responding to the operation of a light effect editing interface, determining a script identifier aiming at the automobile light control script, and generating an executable file corresponding to the automobile light control script according to the script identifier so as to control an automobile light component to display the light effect. By the embodiment of the invention, the executable file aiming at the lamp effect is automatically generated during visual lamp effect editing, so that the linkage with subsequent research and development is facilitated, the operation of lamp effect editing is simplified, and the efficiency of lamp 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;
and responding to the operation of a light effect editing interface, determining a script identifier aiming at the automobile light control script, and generating an executable file corresponding to the automobile light control script according to the script identifier so as to control an automobile light component to display the light effect.
Optionally, before the determining, in response to the operation on the light effect editing interface, a script identifier for the automobile light control script, and generating, according to the script identifier, an executable file corresponding to the automobile light control script, the method further includes:
acquiring target light effect dictionary data, and copying partial data in the target light effect dictionary data to the automobile light control script;
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 determining, in response to the operation on the light effect editing interface, a script identifier for the automobile light control script, and generating, according to the script identifier, an executable file corresponding to the automobile 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 determining, in response to the operation on the light effect editing interface, a script identifier for the automobile light control script, and generating an executable file corresponding to the automobile light control script according to the script identifier includes:
and responding to the operation of the file management area in the light effect editing interface, determining a script identifier aiming at the automobile light control script, and generating an executable file corresponding to the automobile light control script according to the light effect identifier data, the configuration parameters and the script identifier.
Optionally, the method further comprises:
and responding to the operation of the light effect editing interface, and generating a visual file corresponding to the automobile light control script.
Optionally, the method further comprises:
and storing the automobile lighting control script in a cloud.
Optionally, before the copying of part of the data in the target light effect dictionary data to the car light control script, further comprises:
visualizing the target lamp effect dictionary data in a dictionary lookup interface;
after the copying of part of the data in the target light effect dictionary data to the car light control script, further comprising:
and visualizing the partial data in the light effect editing interface.
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 executable file generating module is used for responding to the operation of a light effect editing interface, determining a script identifier aiming at the automobile light control script, and generating an executable file corresponding to the automobile light control script according to the script identifier 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 script identification aiming at the automobile light control script is determined 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 script identification to control the automobile light component to display the light effect, the automatic generation of the executable file aiming at the light effect is realized during the visual light effect editing, the linkage with the subsequent research and development is facilitated, the operation of the light effect editing is simplified, 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. 3c is a schematic diagram of a lamp effect editing process 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. 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.
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.
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 the operation of the light effect editing interface, determining a script identifier for the automobile light control script, and generating an executable file corresponding to the automobile light control script according to the script identifier 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.
As an example, the script identification may be a script name of a car light control script, for example, the name of the car light control script may be stored when it is created, i.e., the file name may be edited.
After the light effect editing interface is displayed, the script identification of the automobile light control script can be determined when the operation in the light effect editing interface is detected, then the executable file corresponding to the automobile light control script can be generated according to the script identification so as to control the automobile light control script to display the light effect, and after the integrity of the executable file is checked, the file name is input to be stored so as to be used by a vehicle-mounted system.
Specifically, since the vehicle lighting control script is a visual script, the vehicle lighting control script cannot be directly run in the vehicle-mounted system, and in order to be directly run in the vehicle-mounted system, the vehicle lighting control script may be converted into an executable file by one key in response to an operation of a user in the light effect editing interface.
In an example, as shown in FIG. 3c, 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 (i.e., script identification) of the car light control script can be stored when the script is created, i.e., the file name can be edited;
2. the automobile light control script created in the client application can be stored in the cloud server, and multi-user cross-device cooperative management can be supported; for example, as the created automobile lighting control script can be stored in the cloud in real time, the file can be found for continuous creation after the light effect editing interface is logged in;
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 script identification aiming at the automobile light control script is determined 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 script identification to control the automobile light component to display the light effect, the automatic generation of the executable file aiming at the light effect is realized during the visual light effect editing, the linkage with the subsequent research and development is facilitated, the operation of the light effect editing is simplified, 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, acquiring target light effect dictionary data, and copying partial data in the target light effect dictionary data to the automobile light control script;
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.
As an example, the partial data may be part of the light effect graphics in the target light effect dictionary data and attribute information corresponding to the part of the light effect graphics, the attribute information may include dictionary identifiers corresponding to the light effect dictionary data to which the light effect graphics belong, for example, each table in document 1 corresponds to one light effect dictionary data, the dictionary identifiers are table numbers, and may further include time frame information corresponding to the light effect graphics, 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, and the part of the data may be stored in a Random Access Memory (RAM).
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.
After the light effect editing interface is displayed, target light effect dictionary data can be acquired in a preset automobile light effect storage library, and partial data in the target light effect dictionary data can be copied to an automobile light control script.
In practical application, because a plurality of light effect dictionary data are preset, a dictionary lookup interface can be accessed, target light effect dictionary data can be obtained from the plurality of light effect dictionary data in a preset automobile light effect storage library through lookup operation of the light effect dictionary data according to user expectation, part of data in the target light effect dictionary data can be determined through selection operation, the part of data can be stored in a RAM, the dictionary lookup interface can be closed, the light effect editing interface can be accessed, and part of data stored in the RAM can be copied to an automobile light control script through operation of editing an operation area in the light effect editing interface.
Step 403, 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 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, determining a script identifier for the automobile light control script, and generating an executable file corresponding to the automobile light control script according to the light effect identifier data, the configuration parameters and the script identifier so as to control the automobile light component to display the light effect.
When the operation of the file management area in the light effect editing interface is detected, the script identification aiming at the automobile light control script can be determined, the executable file corresponding to the automobile light control script can be generated according to the light effect identification data, the configuration parameters and the script identification so as to control the automobile light control script to display the light effect, and after the integrity of the executable file is checked, the file name is input to be stored 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, a light effect editing interface is displayed in response to the creation or the starting of an automobile light control script, then target light effect dictionary data is obtained, partial data in the target light effect dictionary data is copied to the automobile light control script, light effect identification data corresponding to partial data is generated, 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, further, the script identification aiming at the automobile light control script is determined in response to the operation of 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, the configuration parameters and the script identification, so as to control the automobile light component to display the light effect, and when the visual light effect editing is realized, the method has the advantages that the executable files for the lamp effect are automatically generated, the linkage with subsequent research and development is facilitated, the conversion of the executable files by means of tools is avoided, the operation of lamp effect editing is simplified, and the efficiency from creation to real vehicle execution is greatly improved.
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 responding to the operation of the light effect editing interface, and generating a visual file corresponding to the automobile light control script.
In a specific implementation, a visual file corresponding to the automobile lighting control script may be generated when an operation on the lighting effect editing interface is detected.
For example, by generating a visual file corresponding to an automobile lighting control script, the visual file may be an Excel file, so that the automobile lighting control script is a visual script, the automobile lighting control script may be a variable that can be read and modified, the visual file corresponding to the automobile lighting control script may store a light effect graphic and attribute information corresponding to the light effect graphic, the light effect may be visually sensed through the light effect graphic, and specific light effect content may be located in light effect dictionary data through the attribute information.
For another example, creation may be performed in the visual light effect editing interface, and then a visual file corresponding to the automobile light control script may be exported, for example, an Excel file is exported, so that the exported Excel file is used as a comparison graph for verifying the actual automobile light effect.
Step 502, acquiring target light effect dictionary data, and visualizing the target light effect dictionary data in a dictionary lookup interface;
in practical application, due to the fact that a plurality of light effect dictionary data are preset, a dictionary lookup interface can be accessed according to user expectation, target light effect dictionary data can be obtained from the plurality of light effect dictionary data in a preset automobile light effect storage library through lookup operation of the light effect dictionary data, visualization can be carried out on the target light effect dictionary data in the dictionary lookup interface, and the user expectation light effect can be conveniently searched.
For example, after the target light effect dictionary data is obtained, the light effect graph corresponding to the target light effect dictionary data may be displayed in the dictionary lookup interface, for example, a table is used to display the light effect graph.
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.
Step 503, copying part of data in the target light effect dictionary data to the automobile light control script;
in practical application, the part of data can be stored in the RAM, the dictionary lookup interface can be closed, the light effect editing interface is entered, and the part of 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 504, visualizing the partial data in the light effect editing interface;
after copying the part of data to the vehicle lighting control script, the part of data may be visualized in the lighting effect editing interface, such as displaying the lighting effect graph and attribute information corresponding to the part of data.
In an example, the light effect graphics 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 adjusted accordingly without repeatedly copying from the light effect dictionary data.
Step 505, 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.
Step 506, responding to the operation of the light effect editing interface, determining a script identifier for the automobile light control script, and generating an executable file corresponding to the automobile light control script according to the script identifier so as to control an automobile light component to display the light effect.
After the light effect editing interface is displayed, the script identification of the automobile light control script can be determined when the operation in the light effect editing interface is detected, then the executable file corresponding to the automobile light control script can be generated according to the script identification so as to control the automobile light control script to display the light effect, and after the integrity of the executable file is checked, the file name is input to be stored so as to be used by a vehicle-mounted system.
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 target light effect dictionary data is obtained, 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, part data is visualized in the light effect editing interface, light effect identification data corresponding to part data is generated, the light effect identification data is stored in the light effect editing script, further, in response to the operation on the light effect editing interface, a script identification aiming at the automobile light control script is determined, an executable file corresponding to the automobile light control script is generated according to the script identification, so that automobile light components are controlled to display the light effect, the visualized light effect editing is realized, and the operation of the light effect editing is simplified, data copying can be carried out rapidly, the corresponding relation of partial light effect graphs and attribute information such as dictionary identification and time frame information required by manual identification is not needed, then files are input manually, data copying is not needed between tables, executable files aiming at light effects can be generated automatically, linkage with subsequent research and development is facilitated, and the efficiency of light effect editing is 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. 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;
the executable file generating module 602 is configured to determine, in response to an operation on a light effect editing interface, a script identifier for the automobile light control script, and generate an executable file corresponding to the automobile light control script according to the script identifier, so as to control an automobile light component to perform light effect display.
In an embodiment of the present invention, the apparatus further includes:
the target light effect dictionary data acquisition module is used for acquiring target light effect dictionary data and copying partial data in the target light effect dictionary data to the automobile light control script;
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 apparatus 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 executable file generating module 602 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, determining a script identifier aiming at the automobile light control script, and generating an executable file corresponding to the automobile light control script according to the light effect identifier data, the configuration parameters and the script identifier.
In an embodiment of the present invention, the apparatus further includes:
and the visual file generating module is used for responding to the operation of the light effect editing interface and generating a visual file corresponding to the automobile light control script.
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 present invention, the apparatus 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;
further comprising:
and the partial data visualization module is used for visualizing the partial data in the light effect editing interface.
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 script identification aiming at the automobile light control script is determined 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 script identification to control the automobile light component to display the light effect, the automatic generation of the executable file aiming at the light effect is realized during the visual light effect editing, the linkage with the subsequent research and development is facilitated, the operation of the light effect editing is simplified, 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;
and responding to the operation of a light effect editing interface, determining a script identifier aiming at the automobile light control script, and generating an executable file corresponding to the automobile light control script according to the script identifier so as to control an automobile light component to display the light effect.
2. The method according to claim 1, wherein before the determining, in response to the operation of the light effect editing interface, a script identifier for the car light control script and generating an executable file corresponding to the car light control script according to the script identifier, the method further comprises:
acquiring target light effect dictionary data, and copying partial data in the target light effect dictionary data to the automobile light control script;
and 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 before the determining, in response to the operation of the light effect editing interface, a script identifier for the car light control script and generating an executable file corresponding to the car light control script according to the script identifier, the method further comprises:
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.
4. The method according to claim 3, wherein the determining a script identifier for the car light control script in response to the operation of the light effect editing interface and generating an executable file corresponding to the car light control script according to the script identifier comprises:
and responding to the operation of the file management area in the light effect editing interface, determining a script identifier aiming at the automobile light control script, and generating an executable file corresponding to the automobile light control script according to the light effect identifier data, the configuration parameters and the script identifier.
5. The method of claim 1, 2, 3 or 4, further comprising:
and responding to the operation of the light effect editing interface, and generating a visual file corresponding to the automobile light control script.
6. The method of claim 1, 2, 3 or 4, further comprising:
and storing the automobile lighting control script in a cloud.
7. The method according to claim 2, wherein before the copying of part of the data in the target light effect dictionary data to the car light control script, further comprises:
visualizing the target lamp effect dictionary data in a dictionary lookup interface;
after the copying of part of the data in the target light effect dictionary data to the car light control script, further comprising:
and visualizing the partial data in the light effect editing interface.
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 executable file generating module is used for responding to the operation of a light effect editing interface, determining a script identifier aiming at the automobile light control script, and generating an executable file corresponding to the automobile light control script according to the script identifier 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.
CN202011185817.2A 2020-10-30 2020-10-30 Data processing method and device Active CN112312630B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011185817.2A CN112312630B (en) 2020-10-30 2020-10-30 Data processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011185817.2A CN112312630B (en) 2020-10-30 2020-10-30 Data processing method and device

Publications (2)

Publication Number Publication Date
CN112312630A true CN112312630A (en) 2021-02-02
CN112312630B CN112312630B (en) 2023-02-10

Family

ID=74332283

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011185817.2A Active CN112312630B (en) 2020-10-30 2020-10-30 Data processing method and device

Country Status (1)

Country Link
CN (1) CN112312630B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114051304A (en) * 2021-12-16 2022-02-15 浙江吉利控股集团有限公司 Lamp on-off state control method, device, equipment, medium and program product

Citations (5)

* 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
CN110113852A (en) * 2019-05-22 2019-08-09 苏州金螳螂文化发展股份有限公司 Scene lamp control method and system

Patent Citations (5)

* 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
CN110113852A (en) * 2019-05-22 2019-08-09 苏州金螳螂文化发展股份有限公司 Scene lamp control method and system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Also Published As

Publication number Publication date
CN112312630B (en) 2023-02-10

Similar Documents

Publication Publication Date Title
CN112306482A (en) Data processing method and device
CN109146081B (en) Method and device for creating model project in machine learning platform
US8726232B1 (en) Identification of patterns in modeling environments
US20080052684A1 (en) Stepwise source code refactoring
CN112312629B (en) Data processing method and device
CN112312631B (en) Data processing method and device
CN112306483A (en) Data processing method and device
CN112312630B (en) Data processing method and device
CN103176894A (en) Test data automatic derivative method and automatic derivative device facing database
CN112016692B (en) Display method and system for machine learning automatic modeling process
CN114297961A (en) Chip test case processing method and related device
CN109063040B (en) Client program data acquisition method and system
JP7055064B2 (en) Database migration support system and program
CN114741360A (en) Automobile part file reconstruction method and device, terminal equipment and storage medium
CN112597023A (en) Case management method and device based on guide picture, computer equipment and storage medium
CN108932121B (en) Multi-tenant distributed service component research and development oriented module and method
CN112306484A (en) Data processing method and device
CN113778421B (en) Method and equipment for generating service codes
CN113495723B (en) Method, device and storage medium for calling functional component
CN114238072A (en) HIL requirement design method, HIL requirement design device, computer equipment and storage medium
CN114968198A (en) Website development method, system and storage medium thereof
CN114936152A (en) Application testing method and device
CN113778541A (en) Applet generation method and device, electronic equipment and storage medium
CN107563025B (en) Verification platform management method and device
CN114518875A (en) Graphical programming system and programming method thereof

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