Lamp, lamp library file identification method, device and storage medium

By integrating the parser and main controller in the lamp, automatic parsing and format conversion of the lamp library files is solved, and the problem of re-editing the lamp library files when replacing the lamp is solved, improving work efficiency and simplicity of replacement.

CN114818653BActive Publication Date: 2025-03-25GUANGZHOU CAIYI TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210379578.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-12
Publication Date
2025-03-25
Estimated Expiration
2042-04-12

AI Technical Summary

Technical Problem

In the prior art, when replacing lamps, the lamp library files corresponding to newly replaced lamps need to be re-edited and proofreaded, resulting in large workload and low efficiency.

Method used

A lamp is provided, including a parser, a main controller, a driving board and a moving component. The target lamp library file is obtained through the parser and parsed. The main controller converts the first function information in format to obtain the second function information that can be recognized by the driving board, thereby driving the moving component to run.

Benefits of technology

It is not necessary to re-edit the functional information contained in the lamp library file, and it can be used directly, reducing manual operations, reducing workload, improving work efficiency, and making the replacement of lamps more efficient and simple.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114818653B_ABST
    Figure CN114818653B_ABST
Patent Text Reader

Abstract

The present application relates to a lamp, a lamp library file identification method, a device and a storage medium. The lamp includes a parser, a main controller, a driver board and a motion component; the main controller is connected to the parser and the driver board; the motion component is connected to the driver board; the parser is used to obtain a target lamp library file, and parse the target lamp library file to obtain the first function information contained in the target lamp library file, and send the first function information to the main controller; the main controller is used to perform format conversion on the first function information to obtain the second function information that can be recognized by the driver board, and send the second function information to the driver board; the driver board is used to drive the motion component to operate according to the second function information. The use of this lamp can improve the efficiency of lamp library file application.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of lighting equipment control, and in particular to a method, device and storage medium for identifying lamps and lamp library files. Background Art

[0002] Usually, a group of lamps can present multiple light shows. Before presenting the light show, the light library files corresponding to each lamp need to be edited so that the controllers in each lamp run according to the edited light files, thereby realizing the edited light show in combination.

[0003] However, when individual lamps in a group of lamps need to be replaced due to hardware failure or other factors, the related technology requires re-editing and proofreading the lamp library files corresponding to the newly replaced lamps, resulting in a large workload and low efficiency. Summary of the invention

[0004] Based on this, it is necessary to provide a lamp, a lamp library file identification method, device and storage medium that can improve the application efficiency of the lamp library file in response to the above technical problems.

[0005] In a first aspect, the present application provides a lamp. The lamp includes a resolver, a main controller, a drive board, and a motion component; the main controller is connected to the resolver and the drive board; the motion component is connected to the drive board;

[0006] The parser is used to obtain a target light library file, parse the target light library file, obtain first function information contained in the target light library file, and send the first function information to the main controller; the main controller is used to perform format conversion on the first function information, obtain second function information that can be recognized by the driver board, and send the second function information to the driver board; the driver board is used to drive the motion component to operate according to the second function information.

[0007] In one embodiment, the lamp also includes a communication component, which is connected to the parser; the communication component is used to obtain the target light library file input externally and send the target light library file to the parser; wherein the communication component is one of a network communication component, a USB communication component, a wireless transmission communication component or a bus transmission communication component.

[0008] In one of the embodiments, the main controller is specifically used to obtain the data format of the first functional information, determine a format conversion method according to the data format, and perform format conversion processing on the first functional information according to the format conversion method to obtain the second functional information.

[0009] In one embodiment, the lamp also includes an input panel, which is connected to the driving board; the input panel is used to obtain channel mode information input by a user and send the channel mode information to the driving board; the driving board is specifically used to drive the motion component to operate according to the second function information in the channel mode corresponding to the channel mode information.

[0010] In one of the embodiments, the main controller is further used to send the second function information to the external console through the communication component, and the second function information is used to instruct the external console to edit the second function information to obtain updated second function information; the main controller is also used to obtain the updated second function information through the communication component and send the updated second function information to the driver board.

[0011] In one embodiment, the second function information includes lamp function information and lamp channel information.

[0012] In a second aspect, the present application also provides a lamp library file identification method for the above-mentioned lamps, the method comprising:

[0013] Obtain a target light library file; parse the target light library file to obtain first functional information contained in the target light library file; perform format conversion on the first functional information to obtain second functional information that can be recognized by a driver board of the lamp; and drive a motion component in the lamp to operate according to the second functional information.

[0014] In one embodiment, the first functional information is format converted to obtain second functional information that can be recognized by the driver board of the lamp, including: obtaining the data format of the first functional information and determining a format conversion method according to the data format; and format converting the first functional information according to the format conversion method to obtain the second functional information.

[0015] In one of the embodiments, the method further includes: acquiring channel mode information input by a user, and driving the motion component in the lamp to operate according to the second function information in the channel mode corresponding to the channel mode information.

[0016] In a third aspect, the present application further provides a light library file recognition device, the device comprising:

[0017] The first acquisition module is used to acquire the target light library file;

[0018] A first parsing module, used for parsing the target light library file to obtain first function information contained in the target light library file;

[0019] A first conversion module, used for performing format conversion processing on the first function information to obtain second function information that can be recognized by a driver board of the lamp;

[0020] The first operation module is used to drive the motion component in the lamp to operate according to the second function information.

[0021] In one of the embodiments, the first conversion module is specifically used to: obtain a data format of the first functional information, and determine a format conversion method according to the data format; perform format conversion processing on the first functional information according to the format conversion method to obtain the second functional information.

[0022] In one embodiment, the device further comprises:

[0023] The second acquisition module is used to acquire the channel mode information input by the user, and drive the motion component in the lamp to operate according to the second function information in the channel mode corresponding to the channel mode information.

[0024] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any one of the methods described in the second aspect above.

[0025] In a fifth aspect, the present application further provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of any one of the methods in the second aspect are implemented.

[0026] The above-mentioned lamp, lamp library file identification method, device and storage medium, the lamp includes a parser, a main controller, a driver board and a motion component; the main controller is connected to the parser and the driver board; the motion component is connected to the driver board. The acquired target lamp library file is parsed by the parser to obtain the first functional information contained in the target lamp library file, and the first functional information is sent to the main controller. The main controller performs format conversion processing on the parsed first functional information to obtain the second functional information that can be recognized by the driver board, and the second functional information is sent to the driver board, so that the driver board drives the motion component to operate according to the second functional information. By parsing the first functional information in the target lamp library file and performing format conversion processing on it to obtain the second functional information, the information contained in the target lamp library file is identified, and the motion component is driven to operate. When the lamp needs to be replaced, there is no need to re-edit the functional information contained in the lamp library file, but it can be used directly. No manual operation is required, the workload is reduced, and the work efficiency is effectively improved. The replacement of lamps becomes more effective and simple. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] Figure 1 is a schematic structural diagram of a lamp in one embodiment;

[0028] Figure 2 is a schematic structural diagram of a second lamp in an embodiment;

[0029] Figure 3 A schematic diagram of the structure of a lamp capable of identifying a lamp library file in an embodiment;

[0030] Figure 4 A schematic diagram of a process of identifying a light library file in one embodiment;

[0031] Figure 5 A schematic diagram of a process for obtaining second function information in an embodiment;

[0032] Figure 6 Schematic diagram of the structure of a light library file recognition device in one embodiment. DETAILED DESCRIPTION

[0033] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0034] Usually, a group of lamps can present a variety of light shows. Before presenting the light show, the light library files corresponding to each lamp need to be edited so that the controllers in each lamp run according to the edited light files, thereby combining to realize the edited light show. However, there may be situations where individual lamps in a group of lamps are damaged or need to be replaced. For example, in a certain type of application light show activity, a large number of lamps from a certain manufacturer are used. After a period of use, due to maintenance issues of the equipment itself or other factors, a batch of lamps must be replaced, and the user does not want to replenish them from the original lamp manufacturer.

[0035] In the prior art, when users purchase similar lamps from different manufacturers, they will need to re-edit the control of the applied light show. Specifically, they first need to create a lamp library file based on the lamps of the new manufacturer, and then reprogram and proofread the lamp library file according to the needs of the light show. This is a large amount of work, low efficiency, and high cost.

[0036] Therefore, a universal method is needed so that similar lamps from different manufacturers can be used in the same occasion with the same lamp library file, which not only reduces costs but also increases the plasticity of the product.

[0037] In view of this, the present application provides a lamp, a lamp library file identification method, a device and a storage medium, which can improve the application efficiency of the lamp library file.

[0038] In one embodiment, Figure 1 As shown, a lamp is provided. The lamp 100 includes a parser 101, a main controller 102, a driving board 103 and a motion component 104; the main controller 102 is connected to the parser 101 and the driving board 103; the motion component 104 is connected to the driving board 103; the parser 101 is used to obtain a target lamp library file, parse the target lamp library file, obtain the first function information contained in the target lamp library file, and send the first function information to the main controller 102; the main controller 102 is used to perform format conversion processing on the first function information, obtain the second function information that can be recognized by the driving board 103, and send the second function information to the driving board 103; the driving board 103 is used to drive the motion component 104 to operate according to the second function information.

[0039] Among them, for a group of lamps, usually, the same data format can be used for editing and description according to the functional information of each lamp itself, and the lamp library file corresponding to each lamp is obtained. Each lamp recognizes the functional information contained in the lamp library file and runs, so as to realize the preset light show in combination. If some lamps in a group of lamps need to be replaced, the lamp library file of the lamp to be replaced is obtained, and it is used as the target lamp library file and applied to the new lamp to be replaced. The lamp provided in the embodiment of the present application can be used as the new lamp and directly recognize the target lamp library file.

[0040] Generally, the function information in the lamp library files of different lamps uses different data formats, and the different data formats refer to the use of different rules for description and recording. Therefore, when the lamp obtains the target lamp library file, it is necessary to identify the first function information contained therein, wherein the first function information is described in the first data format. Specifically, the lamp includes a parser 101, and the parser 101 refers to a control device that can run preset instructions or program algorithms. Optionally, the file format of the target lamp library file that can be parsed by the parser 101 includes but is not limited to hog4show, txt, r20 or xml file formats. The parser 101 obtains the target lamp library file and parses it, thereby obtaining the first function information contained in the target lamp library file, and the first function information represents the function that the lamp can realize. The function information that can be recognized by the driver board 103 of different lamps has different data formats, so the main controller 102 in the lamp performs format conversion processing on the first function information, thereby converting the first function information in the first data format into the second function information in the second data format. Obviously, the function represented by the second function information is the same as the first function information, and the two are only different in data format.

[0041] The main controller 102 may send the obtained second function information to the driver board 103, and the driver board 103 may identify the second function information, thereby driving the motion component 104 to operate, and ensure that the preset light show is normally realized. The motion component includes the cutting element, fan, light emitter and other components in the lamp that can be driven by the driver board to operate, and the second function information may include basic information such as lamp function, lamp channel characteristics and lamp manufacturer. Specifically, the lamp function may include basic function information such as the driving information of the light emitter, the motion information of the cutting component, the operation information of the XY axis and the speed regulation information of the fan.

[0042] The above-mentioned lamp includes a parser 101, a main controller 102, a driving board 103 and a motion component 104; the main controller 102 is connected to the parser 101 and the driving board 103; and the motion component 104 is connected to the driving board 103. The parser 101 parses the acquired target lamp library file to obtain the first function information contained in the target lamp library file, and sends the first function information to the main controller 102. The main controller 102 performs format conversion processing on the parsed first function information to obtain the second function information that can be recognized by the driving board 103, and sends the second function information to the driving board 103, so that the driving board 103 drives the motion component 104 to operate according to the second function information. By parsing the first function information in the target lamp library file and performing format conversion processing on it to obtain the second function information, the information contained in the target lamp library file is recognized, and the motion component 104 is driven to operate. When the lamp needs to be replaced, the function information contained in the lamp library file does not need to be re-edited, but can be used directly. No manual operation is required, which reduces workload and effectively improves work efficiency, making the replacement of lamps more effective and convenient.

[0043] In one embodiment, Figure 2 , which shows a schematic diagram of the structure of the second lamp provided by the embodiment of the present application. The lamp 100 also includes a communication component 105, which is connected to the parser 101; the communication component 105 is used to obtain the target lamp library file input from the outside and send the target lamp library file to the parser 101; wherein the communication component 105 is one of a network communication component, a USB communication component, a wireless transmission communication component or a bus transmission communication component.

[0044] The lamp also includes a communication component 105, so that the target lamp library file input from the outside is obtained through the communication component 105, and the file is sent to the parser 101, so that the parser 101 parses and processes the target lamp library file. Optionally, the communication component 105 can be a network communication component or a wireless transmission communication component. For example, the network communication component can communicate with an external device via a WIFI (Wireless Fidelity) signal to obtain the target lamp library file. The communication component 105 can also be a USB (Universal Serial Bus) communication component. For example, the lamp includes a USB interface. By inserting a related device or a connecting cable into the USB interface, the target lamp library file transmitted by the external device can be obtained. The communication component 105 can also be a bus transmission communication component. For example, the lamp can include an RS485 bus interface or an RS232 bus interface.

[0045] In the embodiment of the present application, the target light library file can be easily obtained through the communication component, so as to improve the efficiency of the light fixture in identifying the light library file and reduce the workload.

[0046] In one embodiment, the main controller 102 is specifically used to obtain the data format of the first function information, determine the format conversion method according to the data format, and perform format conversion processing on the first function information according to the format conversion method to obtain the second function information. The second function information includes lamp function information and lamp channel information.

[0047] The main controller 102 is mainly used to convert the first function information in the first data format to obtain the second function information in the second data format. The second function information includes the achievable function information of the lamp and the communication information corresponding to the operation of the lamp.

[0048] Specifically, the first function information in different target light library files uses different data formats, and the main controller 102 can realize the conversion of multiple data formats. After acquiring the first function information, the main controller 102 can first identify the first data format corresponding to the first function information, and determine the format conversion method used for format conversion according to the first data format, and further, perform format conversion processing on the first function information according to the format conversion method, so as to convert it into the second function information of the second data format. Optionally, the format conversion method can be implemented by a program algorithm.

[0049] In the embodiment of the present application, the main controller 102 performs format conversion processing on the first function information by determining the corresponding format conversion method, thereby achieving accuracy of the format conversion processing. At the same time, since the appropriate format conversion method is determined, conversion errors are avoided and conversion efficiency is effectively improved.

[0050] In one embodiment, the main controller 102 is also used to send the second function information to an external console through the communication component 105, and the second function information is used to instruct the external console to edit the second function information to obtain updated second function information; the main controller 102 is also used to obtain the updated second function information through the communication component 105, and send the updated second function information to the driver board 103.

[0051] Among them, the arrangement of the light show of a group of lamps can be performed by editing the function information contained in the lamp library file of each lamp through an external console, so that each lamp can operate according to the function information in the lamp library file to realize the arranged light show. Therefore, the lamps in the embodiment of the present application can also send the second function information to the external console through the communication component 105 when it is necessary to arrange the light show, so that the external console can edit and update the second function information of the lamp, and obtain the target lamp library file containing the edited and updated second function information, and run the edited and updated target lamp library file, so that the driver board 103 drives the motion component 104 to operate, and realize the arranged light show. It effectively reduces the cost and transformation time, avoids waste of resources, and has high plasticity and high reliability.

[0052] In one embodiment, the lamp also includes an input panel, which is connected to the driving board 103; the input panel is used to obtain channel mode information input by the user and send the channel mode information to the driving board 103; the driving board 103 is specifically used to drive the motion component 104 to operate according to the second function information in the channel mode corresponding to the channel mode information.

[0053] Among them, the lamp can correspond to different channel modes, such as single-channel mode or multi-channel mode, etc. The driver board 103 in the lamp drives the motion component 104 according to the second functional information in the preset channel mode. Specifically, the lamp may also include an input panel. Optionally, the input panel may be a touch screen or a device composed of a display and buttons. An external user may input the channel mode information corresponding to the driver board 103 through the input panel. For example, the channel mode information may be input through the touch screen, or the target channel mode information may be selected from the multiple channel mode information displayed on the display screen of the lamp through a combination of buttons and a display. After detecting the channel mode information input by the user, the input panel sends it to the driver board 103, so that the driver board 103 drives the motion component 104 to operate according to the second functional information in the corresponding channel mode.

[0054] In the embodiment of the present application, by obtaining the channel mode information, it is ensured that the lamps operate in the corresponding channel mode, so that the overall light show is complete.

[0055] In one embodiment, Figure 3 , which shows a schematic diagram of a structure of a lamp capable of identifying a lamp library file provided in an embodiment of the present application. The lamp 300 includes a communication component 301, a file parser 302, a format conversion controller 303, a drive board 304, a motion component 305 and an input panel 306.

[0056] The communication component 301 may specifically be an RS485 bus interface. The target light library file transmitted by the external device is obtained through the communication component 301, wherein the target light library file is the light library file corresponding to the replaced lamp. Optionally, the target light library file may be in the xml file format. The communication component 301 sends the obtained target light library file to the file parser 302. The file parser 302 parses the target light library file to obtain the first function information corresponding to the target light library file, wherein the first function information includes the functions that the lamp can realize and the corresponding channel functions. Further, the format conversion controller 303 obtains the first function information and converts it into the second function information of the second data structure that can be recognized by the driver board 304. The driver board 304 receives the second function information sent by the format conversion controller 303, and drives the motion component 305 to run according to the second function information to realize the choreographed light show. The driver board 304 runs all the functions of the lamp according to the received second function information described by the new data structure. Optionally, the channel mode information input by the user is obtained through the input panel 306, so that the driving board 304 can run the second function information in the channel mode corresponding to the channel mode information to drive the motion component 305 to run.

[0057] The lamp 300 has the same function or type as the replaced lamp. The target lamp library file contains functional information such as lamp functions, lamp channel characteristics, and lamp manufacturers.

[0058] By using the above-mentioned lamp 300 to run the target lamp library file, the format conversion processing of the first function information can be conveniently performed, which reduces the user's usage cost and provides more choices. It has high plasticity and high reliability and is compatible with different lamp library files, thereby avoiding waste of resources.

[0059] In one embodiment, Figure 4 As shown, it shows a schematic flow chart of a lamp library file recognition method provided in an embodiment of the present application. The lamp library file recognition method can be used in the lamp 100 in the above embodiment, and the method includes:

[0060] Step 401, obtaining the target light library file.

[0061] Among them, for a group of lamps, if some of the lamps in the group need to be replaced, the lamp library file of the lamp to be replaced is obtained and used as the target lamp library file for subsequent identification.

[0062] Step 402: parse the target light library file to obtain the first function information contained in the target light library file.

[0063] When the lamp obtains the target lamp library file, it needs to identify the first function information contained therein, wherein the first function information is described in the first data format. Specifically, the lamp parses the target lamp library file through the parser contained therein to obtain the first function information, and the first function information represents the function that the lamp can realize. Optionally, the file format of the target lamp library file includes but is not limited to hog4show, txt, r20 or xml file formats.

[0064] Step 403: Perform format conversion processing on the first function information to obtain second function information that can be recognized by the driver board of the lamp.

[0065] Generally, the function information in the lamp library files of different lamps uses different data formats, and the different data formats refer to the use of different rules for description and recording. The function information identifiable by the driver boards of different lamps has different data formats, so the first function information can be format converted to convert the first function information in the first data format into the second function information in the second data format. Obviously, the function represented by the second function information is the same as that of the first function information, and the two are only different in data format.

[0066] Step 404: driving a motion component in the lamp to operate according to the second function information.

[0067] Among them, the driving board in the lamp can identify the second function information, thereby driving the motion component to operate and ensure the normal implementation of the light show.

[0068] By parsing the first function information in the target lamp library file and converting its format to obtain the second function information, the information contained in the target lamp library file can be identified and the motion component can be driven to operate. When the lamp needs to be replaced, there is no need to re-edit the function information contained in the lamp library file, but it can be directly identified and used. No manual operation is required, the workload is reduced, and the work efficiency is effectively improved. The replacement of lamps becomes more effective and simple.

[0069] In one embodiment, Figure 5 , which shows a schematic diagram of a process for obtaining second function information provided by an embodiment of the present application. The first function information is format converted to obtain second function information that can be recognized by the driver board of the lamp, including:

[0070] Step 501: Acquire the data format of the first functional information, and determine a format conversion method according to the data format.

[0071] Step 502: Perform format conversion processing on the first functional information according to the format conversion method to obtain the second functional information.

[0072] Specifically, the first function information in different target light library files uses different data formats and corresponding conversion methods. Therefore, after obtaining the first function information, the first data format corresponding to the first function information can be identified first, and the format conversion method used for format conversion can be determined according to the first data format. Further, the first function information is format converted according to the format conversion method, so as to be converted into the second function information in the second data format. Optionally, the format conversion method can be implemented by a program algorithm.

[0073] In the embodiment of the present application, the first function information is format converted by determining a corresponding format conversion method, thereby ensuring the accuracy of the format conversion process. At the same time, since a suitable format conversion method is determined, conversion errors are avoided and conversion efficiency is effectively improved.

[0074] In one embodiment, the method further includes: acquiring channel mode information input by a user, and driving the motion component in the lamp to operate according to the second function information in the channel mode corresponding to the channel mode information.

[0075] The lamp may correspond to different channel modes, such as a single channel mode or a multi-channel mode, etc. The driver board in the lamp drives the motion component according to the second functional information in the preset channel mode. Specifically, the lamp may further include an input panel, and an external user may input the channel mode information corresponding to the driver board through the input panel, so that the driver board drives the motion component to operate according to the second functional information in the corresponding channel mode.

[0076] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0077] Based on the same inventive concept, the embodiment of the present application also provides a light library file recognition device for implementing the light library file recognition method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more light library file recognition device embodiments provided below can refer to the limitations of the light library file recognition method above, and will not be repeated here.

[0078] In one embodiment, Figure 6 As shown, a device for identifying a light library file is provided. The device for identifying a light library file 600 comprises: a first acquisition module 601, a first analysis module 602, a first conversion module 603 and a first operation module 604, wherein:

[0079] The first acquisition module 601 is used to acquire a target light library file;

[0080] A first parsing module 602 is used to parse the target light library file to obtain first function information contained in the target light library file;

[0081] The first conversion module 603 is used to perform format conversion processing on the first function information to obtain second function information that can be recognized by the driver board of the lamp;

[0082] The first operation module 604 is used to drive the motion component in the lamp to operate according to the second function information.

[0083] In one embodiment, the first conversion module 603 is specifically used to: obtain the data format of the first functional information, and determine a format conversion method according to the data format; perform format conversion processing on the first functional information according to the format conversion method to obtain the second functional information.

[0084] In one embodiment, the apparatus further comprises:

[0085] The second acquisition module is used to acquire the channel mode information input by the user, and drive the motion component in the lamp to operate according to the second function information in the channel mode corresponding to the channel mode information.

[0086] Each module in the above-mentioned light library file recognition device can be implemented in whole or in part by software, hardware and their combination. Each of the above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the corresponding operations of each of the above modules.

[0087] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0088] Obtain a target light library file; parse the target light library file to obtain first function information contained in the target light library file; perform format conversion on the first function information to obtain second function information that can be recognized by the driver board of the lamp; and drive the motion component in the lamp to operate according to the second function information.

[0089] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0090] The data format of the first functional information is acquired, and a format conversion method is determined according to the data format; and the first functional information is format converted according to the format conversion method to obtain the second functional information.

[0091] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0092] The channel mode information input by the user is obtained, and the motion component in the lamp is driven to operate according to the second function information in the channel mode corresponding to the channel mode information.

[0093] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:

[0094] Obtain a target light library file; parse the target light library file to obtain first function information contained in the target light library file; perform format conversion on the first function information to obtain second function information that can be recognized by the driver board of the lamp; and drive the motion component in the lamp to operate according to the second function information.

[0095] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0096] The data format of the first functional information is acquired, and a format conversion method is determined according to the data format; and the first functional information is format converted according to the format conversion method to obtain the second functional information.

[0097] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0098] The channel mode information input by the user is obtained, and the motion component in the lamp is driven to operate according to the second function information in the channel mode corresponding to the channel mode information.

[0099] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0100] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0101] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A lamp, characterized in that: The lamp comprises a resolver, a main controller, a driving board and a motion component; the main controller is connected to the resolver and the driving board, and the motion component is connected to the driving board; The parser is used to obtain a target lamp library file, parse the target lamp library file, obtain first function information contained in the target lamp library file, and send the first function information to the main controller, wherein the first function information is described in a first data format and indicates a function that can be realized by the lamp; The main controller is used to perform format conversion processing on the first function information to obtain second function information that can be recognized by the driver board, and send the second function information to the driver board, wherein the second function information has a different data format from the first function information and represents the same function; The driving board is used to drive the motion component to operate according to the second functional information.

2. The lamp according to claim 1, characterized in that: The lamp also includes a communication component, and the communication component is connected to the parser; The communication component is used to obtain the target light library file input from the outside and send the target light library file to the parser; Wherein, the communication component is one of a network communication component, a USB communication component, a wireless transmission communication component or a bus transmission communication component.

3. The lamp according to claim 1, characterized in that: The main controller is specifically used to obtain the data format of the first function information, determine a format conversion method according to the data format, and perform format conversion processing on the first function information according to the format conversion method to obtain the second function information.

4. The lamp according to claim 1, characterized in that: The lamp further comprises an input panel, wherein the input panel is connected to the driving board; The input panel is used to obtain the channel mode information input by the user and send the channel mode information to the driving board; The driving board is specifically used to drive the motion component to operate according to the second function information in the channel mode corresponding to the channel mode information.

5. The lamp according to claim 2, characterized in that: The main controller is further used to send the second function information to the external console through the communication component, wherein the second function information is used to instruct the external console to edit the second function information to obtain updated second function information; The main controller is further configured to obtain the updated second function information through the communication component and send the updated second function information to the driving board.

6. The lamp according to any one of claims 1 to 5, characterized in that: The second function information includes lamp function information and lamp channel information.

7. A lamp library file recognition method, used for the lamp as claimed in any one of claims 1 to 6, characterized in that: The method comprises: Get the target light library file; Parsing the target lamp library file to obtain first function information contained in the target lamp library file, wherein the first function information is described in a first data format and indicates a function that can be realized by the lamp; Performing format conversion processing on the first function information to obtain second function information that can be recognized by the driver board of the lamp, wherein the second function information has a different data format from the first function information and represents the same function; According to the second function information, a motion component in the lamp is driven to operate.

8. The method according to claim 7, characterized in that The performing format conversion processing on the first function information to obtain second function information that can be recognized by the driver board of the lamp includes: Acquiring a data format of the first function information, and determining a format conversion method according to the data format; The first function information is format converted according to the format conversion method to obtain the second function information.

9. The method according to claim 7, characterized in that: The method further comprises: Acquire channel mode information input by a user, and drive the motion component in the lamp to operate according to the second function information in the channel mode corresponding to the channel mode information.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 7 to 9 are implemented.