CN114818653A - Lamp, lamp library file identification method and device and storage medium - Google Patents

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

Info

Publication number
CN114818653A
CN114818653A CN202210379578.7A CN202210379578A CN114818653A CN 114818653 A CN114818653 A CN 114818653A CN 202210379578 A CN202210379578 A CN 202210379578A CN 114818653 A CN114818653 A CN 114818653A
Authority
CN
China
Prior art keywords
function information
lamp
file
format conversion
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210379578.7A
Other languages
Chinese (zh)
Inventor
刘建华
王惠均
张昭荣
江炯同
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Caiyi Light Co Ltd
Original Assignee
Guangzhou Caiyi Light 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 Caiyi Light Co Ltd filed Critical Guangzhou Caiyi Light Co Ltd
Priority to CN202210379578.7A priority Critical patent/CN114818653A/en
Publication of CN114818653A publication Critical patent/CN114818653A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/205Parsing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/151Transformation

Abstract

The application relates to a lamp, a lamp bank file identification method, a lamp bank file identification device and a storage medium. The lamp comprises a resolver, a main controller, a driving plate and a motion assembly; the main controller is connected with the resolver and the drive board; the motion assembly is connected with the drive plate; the analyzer is used for acquiring a target lamp house file, analyzing the target lamp house file to obtain first function information contained in the target lamp house file, and sending the first function information to the main controller; the main controller is used for performing format conversion processing on the first function information to obtain second function information which can be identified by the drive board, and sending the second function information to the drive board; the driving board is used for driving the motion assembly to operate according to the second function information. By adopting the lamp, the application efficiency of the lamp house file can be improved.

Description

Lamp, lamp library file identification method and device and storage medium
Technical Field
The application relates to the technical field of light equipment control, in particular to a lamp, a lamp house file identification method and device and a storage medium.
Background
Typically, a variety of light shows can be presented by a group of luminaires. Before the light show is presented, effect editing needs to be performed on the light library files corresponding to the lamps, so that the controllers in the lamps operate according to the edited light files, and the edited light show is combined and realized.
However, when a group of lamps needs to be replaced due to hardware failure or other factors, the related art needs to edit the effect of the lamp library file corresponding to the newly replaced lamp and perform the calibration and other tasks again, which results in a large workload and low efficiency.
Disclosure of Invention
Therefore, it is necessary to provide a luminaire, a method and an apparatus for identifying a light library file, and a storage medium, which can improve the application efficiency of the light library file, in order to solve the above technical problems.
In a first aspect, a luminaire is provided. The lamp comprises a resolver, a main controller, a driving plate and a motion assembly; the main controller is connected with the resolver and the drive board; the motion assembly is connected with the drive plate;
the analyzer is used for acquiring a target lamp house file, analyzing the target lamp house file to obtain first function information contained in the target lamp house file, and sending the first function information to the main controller; the main controller is used for performing format conversion processing on the first function information to obtain second function information which can be identified by the drive board, and sending the second function information to the drive board; the driving board is used for driving the motion assembly to operate according to the second function information.
In one embodiment, the lamp further comprises a communication component, wherein the communication component is connected with the resolver; the communication component is used for acquiring the target lamp house file input from the outside and sending the target lamp house file to the analyzer; 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.
In one embodiment, the main controller is specifically configured to acquire a 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.
In one embodiment, the lamp further comprises an input panel connected with the driving board; the input panel is used for acquiring channel mode information input by a user and sending the channel mode information to the drive board; the driving board is specifically configured to drive the motion component to operate according to the second function information in a channel mode corresponding to the channel mode information.
In one embodiment, the main controller is further configured to send the second function information to an external console through the communication component, where the second function information is used to instruct the external console to edit the second function information, so as 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 driver board.
In one embodiment, the second function information includes lamp function information and lamp channel information.
In a second aspect, the present application further provides a method for identifying a lamp library file, which is used for the above lamp, and the method includes:
acquiring a target lamp house file; analyzing the target lamp house file to obtain first function information contained in the target lamp house file; carrying out format conversion processing on the first function information to obtain second function information which can be identified by a driving board of the lamp; and driving a motion assembly in the lamp to operate according to the second function information.
In one embodiment, performing format conversion processing on the first function information to obtain second function information recognizable by a driver board of the luminaire includes: acquiring a data format of the first function information, and determining a format conversion method according to the data format; and performing format conversion processing on the first function information according to the format conversion method to obtain the second function information.
In one embodiment, the method further comprises: and acquiring channel mode information input by a user, and driving a moving component in the lamp to operate according to the second function information in a channel mode corresponding to the channel mode information.
In a third aspect, the present application further provides a device for identifying a lamp house file, including:
the first acquisition module is used for acquiring a target lamp house file;
the first analysis module is used for analyzing the target lamp house file to obtain first function information contained in the target lamp house file;
the first conversion module is used for carrying out format conversion processing on the first function information to obtain second function information which can be identified by a driving board of the lamp;
and the first operation module is used for driving the motion assembly in the lamp to operate according to the second function information.
In one embodiment, the first conversion module is specifically configured to: acquiring a data format of the first function information, and determining a format conversion method according to the data format; and carrying out format conversion processing on the first function information according to the format conversion method to obtain the second function information.
In one embodiment, the apparatus further comprises:
and the second acquisition module is used for acquiring channel mode information input by a user and driving the motion assembly in the lamp to operate according to the second function information in a channel mode corresponding to the channel mode information.
In a fourth aspect, the present application also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the method of any of the second aspects described above.
In a fifth aspect, the present application also provides a computer program product comprising a computer program that, when executed by a processor, performs the steps of the method of any of the second aspects described above.
The lamp, the lamp library file identification method and device and the storage medium are characterized in that the lamp comprises an analyzer, a main controller, a driving board and a motion assembly; the main controller is connected with the resolver and the drive board; the motion assembly is connected with the drive plate. And analyzing the acquired target lamp house file through the analyzer to obtain first function information contained in the target lamp house file, and sending the first function information to the main controller. And performing format conversion processing on the first function information obtained by analysis through the main controller to obtain second function information which can be identified by the drive board, and sending the second function information to the drive board, so that the drive board drives the motion assembly to operate according to the second function information. The second function information is obtained by analyzing the first function information in the target lamp house file and performing format conversion processing on the first function information, so that the information contained in the target lamp house file is identified, the motion assembly is driven to operate, and when a lamp needs to be replaced, the function information contained in the lamp house file does not need to be edited again, but can be directly used. Need not manual operation, reduce work load, effectively promoted work efficiency. So that the replacement of the lamp becomes more efficient and easier.
Drawings
Fig. 1 is a schematic structural diagram of a lamp according to an embodiment;
FIG. 2 is a schematic diagram of a second embodiment of a luminaire;
FIG. 3 is a schematic diagram of a lamp capable of recognizing a library file according to an embodiment;
FIG. 4 is a flowchart illustrating a method for identifying light library files in one embodiment;
FIG. 5 is a flowchart illustrating obtaining second function information according to an embodiment;
fig. 6 is a schematic structural diagram of a lamp house file identification device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
Typically, a variety of light shows can be presented by a group of luminaires. Before the light show is presented, effect editing needs to be performed on the light library files corresponding to the lamps, so that the controllers in the lamps operate according to the edited light files, and the edited light show is combined and realized. There may be situations where individual fixtures in a group of fixtures are damaged or need to be replaced. For example, in some kind of application light show activity, a large number of lamps of a certain manufacturer are used, and after a certain period of use, a lot of lamps must be replaced due to maintenance problems of the equipment itself or other factors, and the user does not want to supplement the lamps from the original lamp manufacturer.
In the prior art, a user purchases the same kind of lamps of different manufacturers, and the control of the application light show needs to be edited again. Specifically, the lamp house file is firstly manufactured according to the lamp of a new manufacturer, and then the lamp house file is reprogrammed, corrected and the like according to the light show requirement, so that the engineering quantity is large, the efficiency is low, and the cost is high.
Therefore, a universal method is needed, so that the same type of lamps of different manufacturers can be used in the same place by using the same lamp library file, the cost is reduced, and the plasticity of the product is increased.
In view of this, the present application provides a lamp, a lamp library file identification method, an apparatus and a storage medium, which can improve the application efficiency of the lamp library file.
In one embodiment, as shown in FIG. 1, a light fixture is provided. The lamp 100 comprises a resolver 101, a main controller 102, a driving plate 103 and a motion assembly 104; the main controller 102 is connected to the resolver 101 and the drive board 103; the motion assembly 104 is connected with the driving plate 103; the parser 101 is configured to obtain a target lamp house file, parse the target lamp house file to obtain first function information included in the target lamp house file, and send the first function information to the main controller 102; the main controller 102 is configured to perform format conversion processing on the first function information to obtain second function information that can be recognized by the driver board 103, and send the second function information to the driver board 103; the driving board 103 is used for driving the motion assembly 104 to operate according to the second function information.
For a group of lamps, generally, the same data format can be used for editing and describing the function information of each lamp according to the function information of each lamp, so as to obtain a lamp library file corresponding to each lamp, and each lamp identifies and operates the function information contained in the lamp library file, so that the preset light show is realized in a combined manner. If some lamps in a group of lamps need to be replaced, the lamp library file of the lamp needing to be replaced is obtained and is used as the target lamp library file to be applied to the replaced new lamps.
Generally, different data formats are used for the function information in the lamp library files of different lamps, and the different data formats are described and recorded by adopting different rules. Therefore, after the lamp acquires the target lamp library file, the first function information included in the target lamp library file needs to be identified, wherein the first function information is described by adopting a first data format. Specifically, the luminaire includes a parser 101, where the parser 101 refers to a control device capable of executing a preset instruction or program algorithm, and optionally, the file format of the target lamp library file that can be parsed by the parser 101 includes, but is not limited to, file formats such as hog4show, txt, r20, or xml. The parser 101 obtains the target lamp library file and parses the target lamp library file, so as to obtain first function information included in the target lamp library file, where the first function information represents functions that can be realized by the lamp. Since the data formats of the function information recognizable by the driver boards 103 of different luminaires are different, the main controller 102 in the luminaire 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.
The main controller 102 can send the obtained second function information to the driving board 103, and the driving board 103 can identify the second function information, so that the motion assembly 104 is driven to operate, and the preset light show is guaranteed to be normally realized. The motion assembly comprises various other components which can be driven by the driving plate to operate, such as a cutting element, a fan and a luminous body in the lamp, the second function information can comprise basic information of a lamp function, a lamp channel characteristic, a lamp manufacturer and the like, and specifically, the lamp function can comprise basic function information of driving information of the luminous body, motion information of the cutting assembly, operation information of an XY axis, speed regulation information of the fan and the like.
The lamp comprises a resolver 101, a main controller 102, a driving board 103 and a motion assembly 104; the main controller 102 is connected with the resolver 101 and the driver board 103; the kinematic assembly 104 is connected to the drive plate 103. The parser 101 parses the acquired target lamp library file to obtain first function information included 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 second function information which can be recognized by the driver board 103, and sends the second function information to the driver board 103, so that the driver board 103 drives the motion assembly 104 to operate according to the second function information. The second function information is obtained by analyzing the first function information in the target lamp library file and performing format conversion processing on the first function information, so that the information contained in the target lamp library file is identified, the motion assembly 104 is driven to operate, and when a lamp needs to be replaced, the function information contained in the lamp library file does not need to be edited again, but can be directly used. Need not manual operation, reduce work load, effectively promoted work efficiency. So that the replacement of the lamp becomes more efficient and easier.
In one embodiment, as shown in fig. 2, a schematic structural diagram of a second luminaire provided in the embodiments of the present application is shown. The luminaire 100 further comprises a communication component 105, wherein the communication component 105 is connected with the resolver 101; the communication module 105 is configured to obtain the target lamp library file input from the outside and send the target lamp library file to the parser 101; 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.
The lamp further comprises a communication component 105, so that a target lamp library file input from the outside is obtained through the communication component 105 and is sent to the parser 101, so that the parser 101 parses the target lamp library file. Optionally, the communication component 105 may be a network communication component or a Wireless transmission communication component, for example, the network communication component may communicate with an external device through a WIFI (Wireless Fidelity) signal, so as to obtain the target lamp library file. The communication component 105 may also be a USB (Universal Serial Bus) communication component, for example, the lamp includes a USB interface, and the target lamp library file transmitted by the external device is obtained by inserting the relevant device or the connection line into the USB interface. The communication component 105 may also be a bus transmission communication component, for example, the luminaire may include an RS485 bus interface or an RS232 bus interface, etc.
In this application embodiment, through the communication subassembly, can be convenient acquire target lamp house file to in the efficiency of promoting lamps and lanterns discernment lamp house file, reduce work load.
In an embodiment, the main controller 102 is specifically configured to obtain a 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. The second function information includes lamp function information and lamp channel information.
The main controller 102 is mainly configured to perform format conversion processing on the first function information in the first data format to obtain second function information in the second data format. The second function information includes function information that can be realized by the lamp and communication information corresponding to the operation of the lamp.
Specifically, the data formats used by the first function information in different target lamp library files are different, and the main controller 102 can implement conversion of multiple data formats. After the first function information is obtained, the main controller 102 may first identify a first data format corresponding to the first function information, determine a format conversion method used for performing format conversion on the first function information 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 the first function information into second function information in a second data format. Alternatively, the format conversion method may be implemented by a program algorithm.
In the embodiment of the present application, the main controller 102 performs format conversion processing on the first function information by determining a corresponding format conversion method, so as to achieve accuracy of the format conversion processing. Meanwhile, due to the fact that a proper format conversion method is determined, conversion errors are avoided, and conversion efficiency is effectively improved.
In an embodiment, the main controller 102 is further configured to send the second function information to an external console through the communication component 105, where the second function information is used to instruct the external console to edit the second function information, so as to obtain updated second function information; the main controller 102 is further configured to obtain the updated second function information through the communication component 105, and send the updated second function information to the driver board 103.
The arrangement of the light shows of the group of lamps can edit the function information contained in the lamp library file of each lamp through the external control console, so that each lamp runs according to the function information in the lamp library file, and the arranged light shows are realized. Therefore, in the embodiment of the application, when the light show arrangement is required, the second function information may be sent to the external console through the communication component 105, so that the external console edits and updates the second function information, obtains the target light library file containing the edited and updated second function information, and runs the edited and updated target light library file, so that the driving board 103 drives the motion component 104 to run, and the arranged light show is realized. Effectively reduces the cost and the reconstruction time, avoids resource waste, and has high plasticity and high reliability.
In one embodiment, the light fixture further comprises an input panel connected with the driving board 103; the input panel is configured to obtain channel mode information input by a user, and send the channel mode information to the driver board 103; the driving board 103 is specifically configured to drive the motion component 104 to operate according to the second function information in a channel mode corresponding to the channel mode information.
The lamp may correspond to different channel modes, such as a single channel mode or a multi-channel mode, and the driving board 103 in the lamp drives the moving component 104 according to the second function information in the preset channel mode. In particular, the light fixture may further include an input panel, and optionally, the input panel may be a touch display screen or a device combining a display screen and a key. The channel mode information corresponding to the driver board 103 may be input by an external user through an input panel, for example, the channel mode information may be input by touching a display screen, or a target channel mode information may be selected from a plurality of channel mode information displayed on a display screen of a lamp through a combination of keys and a display screen. The input panel sends the channel mode information input by the user to the driving board 103 after detecting the channel mode information, so that the driving board 103 drives the motion assembly 104 to operate according to the second function information in the corresponding channel mode.
In the embodiment of the application, through obtaining channel mode information, guarantee that lamps and lanterns operate under the channel mode that corresponds for the beautiful complete of holistic light.
In an embodiment, as shown in fig. 3, a schematic structural diagram of a luminaire capable of recognizing a light library file provided by the embodiment of the present application is shown. The luminaire 300 includes a communication component 301, a file parser 302, a format conversion controller 303, a driver board 304, a motion component 305, and an input panel 306.
The communication component 301 may specifically be an RS485 bus interface. And acquiring a target lamp house file transmitted by the external device through the communication assembly 301, wherein the target lamp house file is a lamp house file corresponding to the replaced lamp. Optionally, the target lamp library file may be in an xml file format. The communication component 301 sends the acquired target lamp library file to the file parser 302. The file parser 302 parses the target lamp library file to obtain first function information corresponding to the target lamp library file, where the first function information includes functions that can be realized by the lamp and corresponding channel functions. Further, the format conversion controller 303 acquires the first function information and converts it into second function information of a second data structure recognizable by the driver board 304. The driving board 304 receives the second function information sent by the format conversion controller 303, and drives the motion component 305 to operate according to the second function information, so as to realize the arranged light show. The driving board 304 operates 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 may operate the second function information in the channel mode corresponding to the channel mode information to drive the motion component 305 to operate.
Wherein the light fixture 300 has the same function or type as the light fixture being replaced. The target lamp library file contains function information such as lamp functions, lamp channel characteristics, lamp manufacturers and the like.
By adopting the lamp 300 to operate the target lamp house file, format conversion processing of the first function information can be conveniently performed, the use cost of a user is reduced, more selectivity is provided, high plasticity and high reliability are achieved, and different lamp house files can be compatible, so that resource waste is avoided.
In one embodiment, as shown in fig. 4, a flowchart of a method for identifying a light library file provided by an embodiment of the present application is shown. The method for identifying the lamp library file can be used in the lamp 100 in the above embodiment, and the method includes:
step 401, obtaining a target lamp house file.
For a group of lamps, if some lamps in the group of lamps need to be replaced, the lamp library file of the lamps needing to be replaced is acquired and is used as the target lamp library file for subsequent identification.
Step 402, analyzing the target lamp house file to obtain first function information contained in the target lamp house file.
After the lamp acquires the target lamp library file, first function information contained in the target lamp library file needs to be identified, wherein the first function information is described by adopting a first data format. Specifically, the lamp parses the target lamp library file through a parser included in the lamp to obtain first function information, where the first function information represents functions that can be realized by the lamp. Optionally, the file format of the target lamp library file includes, but is not limited to, a file format such as hog4show, txt, r20, or xml.
Step 403, performing format conversion processing on the first function information to obtain second function information that can be identified by a driving board of the lamp.
Generally, different data formats are used for the function information in the lamp library files of different lamps, and the different data formats are described and recorded by adopting different rules. The data formats of the function information recognizable by the driving boards of different lamps are different, so that the first function information can be subjected to format conversion processing, so that the first function information in the first data format is converted 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 only the data formats of the first function information and the second function information are different.
And step 404, driving a moving component in the lamp to operate according to the second function information.
Wherein, this second functional information of drive plate discernment in the lamps and lanterns to the operation of drive motion subassembly guarantees that the light is beautiful normally to be realized.
The second function information is obtained by analyzing the first function information in the target lamp house file and performing format conversion processing on the first function information, so that the information contained in the target lamp house file is identified, the moving assembly is driven to operate, and when a lamp needs to be replaced, the function information contained in the lamp house file does not need to be re-edited, but can be directly identified and used. Need not manual operation, reduce work load, effectively promoted work efficiency. So that the replacement of the lamp becomes more efficient and easier.
In an embodiment, as shown in fig. 5, a schematic flow chart for acquiring the second function information provided by the embodiment of the present application is shown. Performing format conversion processing on the first function information to obtain second function information which can be identified by a driving board of the lamp, wherein the format conversion processing comprises the following steps:
step 501, acquiring a data format of the first function information, and determining a format conversion method according to the data format.
Step 502, performing format conversion processing on the first function information according to the format conversion method to obtain the second function information.
Specifically, the data formats used by the first function information in different target lamp library files are different, and the corresponding conversion methods are also different. Therefore, after the first function information is acquired, the first data format corresponding to the first function information can be identified, and the format conversion method used for performing format conversion on the first function information can be determined according to the first data format. Further, the first function information is subjected to format conversion processing according to the format conversion method, so that the first function information is converted into second function information in a second data format. Alternatively, the format conversion method may be implemented by a program algorithm.
In the embodiment of the application, the format conversion processing is performed on the first function information by determining the corresponding format conversion method, so that the accuracy of the format conversion processing is ensured. Meanwhile, due to the fact that a proper format conversion method is determined, conversion errors are avoided, and conversion efficiency is effectively improved.
In one embodiment, the method further comprises: and acquiring channel mode information input by a user, and driving a moving component in the lamp to operate according to the second function information in a channel mode corresponding to the channel mode information.
The lamp can correspond to different channel modes, such as a single channel mode or a multi-channel mode, and the driving board in the lamp drives the motion assembly according to the second function information in the preset channel mode. Specifically, the lamp may further include an input panel, and an external user may input channel mode information corresponding to the driving board through the input panel, so that the driving board drives the motion assembly to operate in the corresponding channel mode according to the second function information.
It should be understood that, although the steps in the flowcharts related to the embodiments as described above are sequentially displayed as indicated by arrows, the steps are not necessarily performed sequentially as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a part of the steps in the flowcharts related to the embodiments described above may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the execution order of the steps or stages is not necessarily sequential, but may be performed alternately or alternately with other steps or at least a part of the steps or stages in other steps.
Based on the same inventive concept, the embodiment of the present application further provides a light library file identification apparatus for implementing the light library file identification method. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the method, so that specific limitations in one or more embodiments of the light library file identification device provided below can be referred to the limitations on the light library file identification method in the foregoing, and details are not repeated herein.
In one embodiment, as shown in fig. 6, a light bank file identification apparatus is provided. The lamp house file recognition apparatus 600 includes: a first obtaining module 601, a first parsing module 602, a first converting module 603, and a first running module 604, wherein:
a first obtaining module 601, configured to obtain a target lamp house file;
a first parsing module 602, configured to parse the target lamp library file to obtain that the target lamp library file includes first function information;
a first conversion module 603, configured to perform format conversion processing on the first function information to obtain second function information that can be identified by a driver board of a lamp;
the first operation module 604 is configured to drive the moving component in the light fixture to operate according to the second function information.
In an embodiment, the first conversion module 603 is specifically configured to: acquiring a data format of the first function information, and determining a format conversion method according to the data format; and carrying out format conversion processing on the first function information according to the format conversion method to obtain the second function information.
In one embodiment, the apparatus further comprises:
and the second acquisition module is used for acquiring channel mode information input by a user and driving the motion assembly in the lamp to operate according to the second function information in a channel mode corresponding to the channel mode information.
The modules in the light library file identification device can be wholly or partially realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
acquiring a target lamp house file; analyzing the target lamp house file to obtain first function information contained in the target lamp house file; carrying out format conversion processing on the first function information to obtain second function information which can be identified by a driving board of the lamp; and driving a motion assembly in the lamp to operate according to the second function information.
In one embodiment, the computer program when executed by the processor further performs the steps of:
acquiring a data format of the first function information, and determining a format conversion method according to the data format; and carrying out format conversion processing on the first function information according to the format conversion method to obtain the second function information.
In one embodiment, the computer program when executed by the processor further performs the steps of:
and acquiring channel mode information input by a user, and driving a moving component in the lamp to operate according to the second function information in a channel mode corresponding to the channel mode information.
In one embodiment, a computer program product is provided, comprising a computer program which, when executed by a processor, performs the steps of:
acquiring a target lamp house file; analyzing the target lamp house file to obtain first function information contained in the target lamp house file; carrying out format conversion processing on the first function information to obtain second function information which can be identified by a driving board of the lamp; and driving a motion assembly in the lamp to operate according to the second function information.
In one embodiment, the computer program when executed by the processor further performs the steps of:
acquiring a data format of the first function information, and determining a format conversion method according to the data format; and carrying out format conversion processing on the first function information according to the format conversion method to obtain the second function information.
In one embodiment, the computer program when executed by the processor further performs the steps of:
and acquiring channel mode information input by a user, and driving a moving component in the lamp to operate according to the second function information in a channel mode corresponding to the channel mode information.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, database, or other medium used in the embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high-density embedded nonvolatile Memory, resistive Random Access Memory (ReRAM), Magnetic Random Access Memory (MRAM), Ferroelectric Random Access Memory (FRAM), Phase Change Memory (PCM), graphene Memory, and the like. Volatile Memory can include Random Access Memory (RAM), external cache Memory, and the like. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others. The databases referred to in various embodiments provided herein may include at least one of relational and non-relational databases. The non-relational database may include, but is not limited to, a block chain based distributed database, and the like. The processors referred to in the embodiments provided herein may be general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic devices, quantum computing based data processing logic devices, etc., without limitation.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present application shall be subject to the appended claims.

Claims (11)

1. A lamp is characterized by comprising a resolver, a main controller, a driving board and a motion assembly; the main controller is connected with the resolver and the driving plate, and the motion assembly is connected with the driving plate;
the analyzer is used for acquiring a target lamp house file, analyzing the target lamp house file to obtain first function information contained in the target lamp house file, and sending the first function information to the main controller;
the main controller is used for performing format conversion processing on the first function information to obtain second function information which can be identified by the drive board, and sending the second function information to the drive board;
and the driving board is used for driving the motion assembly to operate according to the second function information.
2. A light fixture as recited in claim 1, further comprising a communication component, the communication component being coupled to the parser;
the communication assembly is used for acquiring the target lamp house file input from the outside and sending the target lamp house file to the analyzer;
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 luminaire of claim 1,
the main controller is specifically configured to acquire a 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 light fixture of claim 1, further comprising an input panel connected to the driver board;
the input panel is used for acquiring channel mode information input by a user and sending the channel mode information to the driving board;
the driving board is specifically configured to drive the motion component to operate according to the second function information in a channel mode corresponding to the channel mode information.
5. The luminaire of claim 2,
the main controller is further configured to send the second function information to an external console through the communication component, where the second function information is used to instruct the external console to edit the second function information, so as to obtain updated second function information;
the main controller is further configured to acquire the updated second function information through the communication assembly, and send the updated second function information to the driver board.
6. A luminaire as claimed in any one of claims 1 to 5, characterized in that the second function information comprises luminaire function information and luminaire channel information.
7. A method of lamp library file identification for a lamp as claimed in any one of claims 1 to 6, the method comprising:
acquiring a target lamp house file;
analyzing the target lamp house file to obtain first function information contained in the target lamp house file;
carrying out format conversion processing on the first function information to obtain second function information which can be identified by a driving board of the lamp;
and driving a motion assembly in the lamp to operate according to the second function information.
8. The method of claim 7, wherein performing format conversion processing on the first function information to obtain second function information recognizable by a driving board of a luminaire comprises:
acquiring a data format of the first function information, and determining a format conversion method according to the data format;
and carrying out format conversion processing on the first function information according to the format conversion method to obtain the second function information.
9. The method of claim 7, further comprising:
and acquiring channel mode information input by a user, and driving a motion assembly in the lamp to operate according to the second function information in a channel mode corresponding to the channel mode information.
10. A light library file identification apparatus, the apparatus comprising:
the first acquisition module is used for acquiring a target lamp house file;
the first analysis module is used for analyzing the target lamp house file to obtain first function information contained in the target lamp house file;
the first conversion module is used for carrying out format conversion processing on the first function information to obtain second function information which can be identified by a driving board of a lamp;
and the first operation module is used for driving the motion assembly in the lamp to operate according to the second function information.
11. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 7 to 9.
CN202210379578.7A 2022-04-12 2022-04-12 Lamp, lamp library file identification method and device and storage medium Pending CN114818653A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210379578.7A CN114818653A (en) 2022-04-12 2022-04-12 Lamp, lamp library file identification method and device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210379578.7A CN114818653A (en) 2022-04-12 2022-04-12 Lamp, lamp library file identification method and device and storage medium

Publications (1)

Publication Number Publication Date
CN114818653A true CN114818653A (en) 2022-07-29

Family

ID=82535564

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210379578.7A Pending CN114818653A (en) 2022-04-12 2022-04-12 Lamp, lamp library file identification method and device and storage medium

Country Status (1)

Country Link
CN (1) CN114818653A (en)

Similar Documents

Publication Publication Date Title
CN101228488B (en) Method for operating and monitoring a control device, corresponding operating/monitoring device, control device, and machine comprising such a control device
CN109446218A (en) SQL statement generation method, device and computer readable storage medium
US7886234B2 (en) Systems and methods for creating embedded target images
US8898642B2 (en) Profiling and sequencing operators executable in an emulated computing system
US20200359094A1 (en) Screen parameter configuration system
CN100565452C (en) Componentized embedded system information retrieval system and method
CN104133772A (en) Automatic test data generation method
US9405518B2 (en) Leveraging legacy applications for use with modern applications
CN103164455B (en) The optimization method and device of data base
CN102541521A (en) Automatic operating instruction generating device based on structured query language and method
CN110990019A (en) Java class analysis method and device, storage medium and electronic equipment
JP2019139742A (en) Computer system, programming method, and non-transitory computer-readable medium
CN103870384A (en) Test case presumption method and system
CN112068852A (en) Method, system, equipment and medium for installing open source software based on domestic server
CN105677348A (en) BOOT program storing method and device and BOOT program starting method and device
KR100322006B1 (en) Program upgrading apparatus and method for a firmware board
CN114818653A (en) Lamp, lamp library file identification method and device and storage medium
JP2011198237A (en) Programming support device, method, and program
CN109582318B (en) Processing method and device for Portobuf localization, terminal and storage medium
CN110457250B (en) Embedded data acquisition processing terminal and data acquisition processing method
CN114064601B (en) Storage process conversion method, device, equipment and storage medium
CN108664276B (en) Method for configuring hardware information through text
CN110222128B (en) Method and device for generating data preset sql
CN113778455A (en) Code conversion method and device, electronic equipment and storage medium
CN113282284A (en) Packing method and packing system adaptive to multiple customized projects

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