Movatterモバイル変換


[0]ホーム

URL:


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
CN114818653ACN202210379578.7ACN202210379578ACN114818653ACN 114818653 ACN114818653 ACN 114818653ACN 202210379578 ACN202210379578 ACN 202210379578ACN 114818653 ACN114818653 ACN 114818653A
Authority
CN
China
Prior art keywords
function information
lamp
library 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.)
Granted
Application number
CN202210379578.7A
Other languages
Chinese (zh)
Other versions
CN114818653B (en
Inventor
刘建华
王惠均
张昭荣
江炯同
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou 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 LtdfiledCriticalGuangzhou Caiyi Light Co Ltd
Priority to CN202210379578.7ApriorityCriticalpatent/CN114818653B/en
Publication of CN114818653ApublicationCriticalpatent/CN114818653A/en
Application grantedgrantedCritical
Publication of CN114818653BpublicationCriticalpatent/CN114818653B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

Translated fromChinese

本申请涉及一种灯具、灯库文件识别方法、装置和存储介质。所述灯具包括解析器、主控制器、驱动板以及运动组件;该主控制器与该解析器以及该驱动板连接;运动组件与驱动板连接;该解析器,用于获取目标灯库文件,并对该目标灯库文件进行解析处理,得到该目标灯库文件中包含的第一功能信息,并将该第一功能信息发送至该主控制器;该主控制器,用于对该第一功能信息进行格式转换处理,得到可被该驱动板识别的第二功能信息,并将该第二功能信息发送至该驱动板;该驱动板,用于根据该第二功能信息驱动该运动组件运行。采用该灯具能够提升灯库文件应用效率。

Figure 202210379578

The present application relates to a lamp, a lamp library file identification method, device and storage medium. The lamp includes a parser, a main controller, a driving board and a motion component; the main controller is connected with the parser and the driving board; the motion component is connected with the driving board; the parser is used to obtain the target lamp library file, And perform parsing processing on 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 for the first function information. The function information is subjected to format conversion processing to obtain second function information that can be recognized by the drive board, and the second function information is sent to the drive board; the drive board is used to drive the motion component to run according to the second function information . Using the lamp can improve the application efficiency of the lamp library file.

Figure 202210379578

Description

Translated fromChinese
灯具、灯库文件识别方法、装置和存储介质Lamp, lamp library file identification method, device and storage medium

技术领域technical field

本申请涉及灯光设备控制技术领域,特别是涉及一种灯具、灯库文件识别方法、装置和存储介质。The present application relates to the technical field of lighting equipment control, and in particular, to a lamp, a lamp library file identification method, device and storage medium.

背景技术Background technique

通常,通过一组灯具可呈现多种灯光秀。在呈现灯光秀之前,需要对各灯具对应的灯库文件进行效果编辑,以使各灯具中的控制器根据编辑后的灯光文件运行,从而组合实现所编辑的灯光秀。Often, multiple light shows are presented through a set of luminaires. Before presenting the light show, it is necessary to edit the effect of the light library file corresponding to each fixture, so that the controller in each fixture operates according to the edited light file, so as to realize the edited light show in combination.

然而,一组灯具中由于硬件故障或其他因素等原因需要更换个别灯具时,相关技术中需要对新更换的灯具对应的灯库文件重新进行效果编辑以及校对等工作,导致工作量大且效率低。However, when individual lamps in a group of lamps need to be replaced due to hardware failures or other factors, the related art needs to re-edit the effect editing and proofreading of the lamp library files corresponding to the newly replaced lamps, resulting in heavy workload and low efficiency. .

发明内容SUMMARY OF THE INVENTION

基于此,有必要针对上述技术问题,提供一种能够提升灯库文件应用效率的灯具、灯库文件识别方法、装置和存储介质。Based on this, it is necessary to provide a lamp, a method, a device and a storage medium for identifying a lamp library file, which can improve the application efficiency of the lamp library file, in view of the above technical problems.

第一方面,本申请提供了一种灯具。该灯具包括解析器、主控制器、驱动板以及运动组件;该主控制器与该解析器以及该驱动板连接;运动组件与驱动板连接;In a first aspect, the present application provides a lamp. The lamp includes a resolver, a main controller, a driving board and a motion component; the main controller is connected with the resolver and the driving board; the motion component is connected with the driving board;

该解析器,用于获取目标灯库文件,并对该目标灯库文件进行解析处理,得到该目标灯库文件中包含的第一功能信息,并将该第一功能信息发送至该主控制器;该主控制器,用于对该第一功能信息进行格式转换处理,得到可被该驱动板识别的第二功能信息,并将该第二功能信息发送至该驱动板;该驱动板,用于根据该第二功能信息驱动该运动组件运行。The parser is used to obtain the target lamp library file, and perform parsing processing on 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 processing on the first function information, obtain second function information that can be identified by the driver board, and send the second function information to the driver board; the driver board, with for driving the motion component to run according to the second function information.

在其中一个实施例中,该灯具还包括通信组件,该通信组件与该解析器连接;该通信组件,用于获取外部输入的该目标灯库文件,并将该目标灯库文件发送至该解析器;其中,该通信组件为网络通信组件、USB通信组件、无线传输通信组件或总线传输通信组件中的一种。In one embodiment, the light fixture further includes a communication component, the communication component is connected with the parser; the communication component is used for acquiring the externally input target light library file, and sending 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.

在其中一个实施例中,该主控制器,具体用于获取该第一功能信息的数据格式,并根据该数据格式确定格式转换方法,根据该格式转换方法对该第一功能信息进行格式转换处理,得到该第二功能信息。In one embodiment, the main controller is specifically configured to acquire 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.

在其中一个实施例中,该灯具还包括输入面板,该输入面板与该驱动板连接;该输入面板,用于获取用户输入的通道模式信息,并将该通道模式信息发送至该驱动板;该驱动板,具体用于在该通道模式信息对应的通道模式下,根据该第二功能信息驱动该运动组件运行。In one embodiment, the lamp further includes an input panel, the input panel is connected to the driver board; the input panel is used for acquiring the channel mode information input by the user, and sending the channel mode information to the driver board; the The driving board is specifically configured to drive the motion component to run according to the second function information in the channel mode corresponding to the channel mode information.

在其中一个实施例中,该主控制器,还用于通过该通信组件将该第二功能信息发送至外部控制台,该第二功能信息用于指示该外部控制台对该第二功能信息进行编辑处理,得到更新后的第二功能信息;该主控制器,还用于通过该通信组件获取该更新后的第二功能信息,并将该更新后的第二功能信息发送至该驱动板。In one embodiment, the main controller is further configured to send the second function information to the external console through the communication component, where the second function information is used to instruct the external console to perform the second function information on the external console. The editing process obtains the 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.

在其中一个实施例中,该第二功能信息包括灯具功能信息以及灯具通道信息。In one embodiment, the second function information includes lamp function information and lamp channel information.

第二方面,本申请还提供了一种灯库文件识别方法,用于上述灯具,该方法包括:In a second aspect, the present application also provides a lamp library file identification method for the above-mentioned lamps, and the method includes:

获取目标灯库文件;对该目标灯库文件进行解析处理,得到该目标灯库文件中包含的第一功能信息;对该第一功能信息进行格式转换处理,得到可被该灯具的驱动板识别的第二功能信息;根据该第二功能信息,驱动该灯具中的运动组件运行。Obtain a target lamp library file; perform parsing processing on the target lamp library file to obtain the first function information contained in the target lamp library file; perform format conversion processing on the first function information to obtain a driver board that can be recognized by the lamp the second function information; according to the second function information, the motion component in the lamp is driven to run.

在其中一个实施例中,对该第一功能信息进行格式转换处理,得到可被该灯具的驱动板识别的第二功能信息,包括:获取该第一功能信息的数据格式,并根据该数据格式确定格式转换方法;根据该格式转换方法对该第一功能信息进行格式转换处理,得到该第二功能信息。In one embodiment, 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 according to the data format Determine a format conversion method; 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 method further includes: acquiring channel mode information input by a user, and driving a motion component in the lighting fixture to operate in a channel mode corresponding to the channel mode information according to the second function information.

第三方面,本申请还提供了一种灯库文件识别装置,该装置包括:In a third aspect, the present application also provides a lamp library file identification device, the device comprising:

第一获取模块,用于获取目标灯库文件;The first acquisition module is used to acquire the target lamp library file;

第一解析模块,用于对该目标灯库文件进行解析处理,得到该目标灯库文件中包含的第一功能信息;a first parsing module, configured to perform parsing processing on the target lamp library file to obtain the first function information contained in the target lamp library file;

第一转换模块,用于对该第一功能信息进行格式转换处理,得到可被灯具的驱动板识别的第二功能信息;a first conversion module, configured to perform format conversion processing on the first function information to obtain second function information that can be recognized by the driving board of the lamp;

第一运行模块,用于根据该第二功能信息,驱动该灯具中的运动组件运行。The first operation module is used for driving the motion component in the lamp to operate according to the second function information.

在其中一个实施例中,该第一转换模块,具体用于:获取该第一功能信息的数据格式,并根据该数据格式确定格式转换方法;根据该格式转换方法对该第一功能信息进行格式转换处理,得到该第二功能信息。In one embodiment, the first conversion module is specifically configured to: acquire a data format of the first function information, and determine a format conversion method according to the data format; format the first function information according to the format conversion method The conversion process is performed to obtain the second function information.

在其中一个实施例中,该装置还包括:In one embodiment, the device further includes:

第二获取模块,用于获取用户输入的通道模式信息,并在该通道模式信息对应的通道模式下根据该第二功能信息驱动该灯具中的运动组件运行。The second acquiring module is configured to acquire the channel mode information input by the user, and drive the motion components in the lighting fixture to operate in the channel mode corresponding to the channel mode information according to the second function information.

第四方面,本申请还提供了一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现上述第二方面中任一项所述的方法的步骤。In a fourth aspect, the present application further provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, implements the steps of the method in any one of the above-mentioned second aspects.

第五方面,本申请还提供了一种计算机程序产品,该计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实现上述第二方面中任一项所述的方法的步骤。In a fifth aspect, the present application further provides a computer program product, the computer program product includes a computer program, which implements the steps of the method described in any one of the second aspects above when the computer program is executed by a processor.

上述灯具、灯库文件识别方法、装置和存储介质,该灯具包括解析器、主控制器、驱动板以及运动组件;该主控制器与该解析器以及该驱动板连接;运动组件与驱动板连接。通过该解析器对获取的目标灯库文件进行解析处理,得到该目标灯库文件中包含的第一功能信息,并将该第一功能信息发送至该主控制器。通过该主控制器对解析得到的第一功能信息进行格式转换处理,得到可被该驱动板识别的第二功能信息,并将该第二功能信息发送至该驱动板,从而使得该驱动板根据该第二功能信息驱动该运动组件运行。通过解析该目标灯库文件中的第一功能信息并对其做格式转换处理得到第二功能信息,从而使得对目标灯库文件中包含的信息进行识别,并驱动运动组件运行,在需要更换灯具时,无需对灯库文件中包含的功能信息进行重新编辑,而是直接可使用。无需人工操作,降低工作量,有效提升了工作效率。使得灯具的替换变得更加有效和简便。The above-mentioned lamp, lamp library file identification method, device and storage medium, the lamp includes a parser, a main controller, a driving board and a motion component; the main controller is connected with the parser and the driving board; the motion component is connected with the driving board . The acquired target lamp library file is parsed by the parser to obtain the first function information contained in the target lamp library file, and the first function information is sent to the main controller. The main controller performs format conversion processing on the parsed first function information, obtains second function information that can be recognized by the drive board, and sends the second function information to the drive board, so that the drive board can be based on The second function information drives the motion component to operate. By parsing the first function information in the target lamp library file and performing format conversion processing on it, the second function information is obtained, so that the information contained in the target lamp library file can be identified, and the motion components can be driven to run. When the lamp needs to be replaced When the function information contained in the lamp library file is not required to be re-edited, it can be used directly. No manual operation is required, the workload is reduced, and the work efficiency is effectively improved. It makes the replacement of lamps more effective and easier.

附图说明Description of drawings

图1为一个实施例中一种灯具的结构示意图;FIG. 1 is a schematic structural diagram of a lamp in one embodiment;

图2为一个实施例中第二种灯具的结构示意图;2 is a schematic structural diagram of a second type of lamp in one embodiment;

图3为一个实施例中一种可识别灯库文件的灯具的结构示意图;3 is a schematic structural diagram of a lamp capable of recognizing lamp library files in one embodiment;

图4为一个实施例中灯库文件识别方法的流程示意图;4 is a schematic flowchart of a method for identifying a lamp library file in one embodiment;

图5为一个实施例中获取第二功能信息的流程示意图;5 is a schematic flowchart of obtaining second function information in one embodiment;

图6为一个实施例中灯库文件识别装置的结构示意图。FIG. 6 is a schematic structural diagram of a lamp library file identification device in one embodiment.

具体实施方式Detailed ways

为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solutions and advantages of the present application more clearly understood, the present application will be described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application, but not to limit the present application.

通常,通过一组灯具可呈现多种灯光秀。在呈现灯光秀之前,需要对各灯具对应的灯库文件进行效果编辑,以使各灯具中的控制器根据编辑后的灯光文件运行,从而组合实现所编辑的灯光秀。但是会存在一组灯具中个别灯具损坏或者需要替换的情况。例如,某类应用灯光秀活动中,大批量的使用了某家厂商的灯具,在其使用一段时间后,由于设备本身的维护问题或者其它因素,导致必须更换其中的一批灯具,且用户并不想从原灯具厂商进行补充。Often, multiple light shows are presented through a set of luminaires. Before presenting the light show, it is necessary to edit the effect of the light library file corresponding to each fixture, so that the controller in each fixture operates according to the edited light file, so as to realize the edited light show in combination. However, there will 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, a large number of lamps from a certain manufacturer are used. After a period of use, due to maintenance problems of the equipment itself or other factors, a batch of lamps must be replaced, and the user does not Do not want to supplement from the original lighting manufacturer.

现有技术中,用户购入不同厂商的同类灯具,将需要重新对应用灯光秀的控制进行重新编辑。具体地,首先需要根据新厂商的灯具制作灯库文件,再根据灯光秀的需求,对灯库文件进行重新编程以及校对等工作,其工程量较大,效率低,耗费成本也较高。In the prior art, when a user purchases similar lamps from different manufacturers, it will be necessary to re-edit the control of the application light show. Specifically, the lamp library file needs to be produced according to the lamps of the new manufacturer, and then the lamp library file needs to be reprogrammed and proofread according to the needs of the light show, which requires a large amount of engineering, low efficiency and high cost.

因此需要一种通用的方法,使得不同厂商的同类灯具可以以同一种灯库文件在同一场合使用,既降低成本,也增加了产品的可塑性。Therefore, a general method is needed, so that similar lamps of different manufacturers can be used in the same occasion with the same lamp library file, which not only reduces the cost, but also increases the plasticity of the product.

有鉴于此,本申请提供了一种灯具、灯库文件识别方法、装置和存储介质,可提升灯库文件应用效率。In view of this, the present application provides a lamp, a lamp library file identification method, device and storage medium, which can improve the application efficiency of the lamp library file.

在一个实施例中,如图1所示,提供了一种灯具。该灯具100包括解析器101、主控制器102、驱动板103以及运动组件104;该主控制器102与该解析器101以及该驱动板103连接;运动组件104与驱动板103连接;该解析器101,用于获取目标灯库文件,并对该目标灯库文件进行解析处理,得到该目标灯库文件中包含的第一功能信息,并将该第一功能信息发送至该主控制器102;该主控制器102,用于对该第一功能信息进行格式转换处理,得到可被该驱动板103识别的第二功能信息,并将该第二功能信息发送至该驱动板103;该驱动板103,用于根据该第二功能信息驱动该运动组件104运行。In one embodiment, as shown in Figure 1, a light fixture is provided. Thelamp 100 includes aresolver 101, amain controller 102, adriving board 103 and amotion component 104; themain controller 102 is connected to theresolver 101 and thedriving board 103; themotion component 104 is connected to thedriving board 103; theresolver 101, for acquiring a target lamp library file, and performing parsing processing on the target lamp library file to obtain first function information contained in the target lamp library file, and sending the first function information to themain controller 102; Themain controller 102 is configured to perform format conversion processing on the first function information, obtain second function information that can be recognized by thedriver board 103, and send the second function information to thedriver board 103; thedriver board 103, for driving themotion component 104 to run according to the second function information.

其中,对于一组灯具而言,通常,可根据各灯具本身的功能信息采用同一数据格式进行编辑描述,得到各灯具分别对应的灯库文件,各灯具识别该灯库文件中包含的功能信息并运行,从而组合实现预设的灯光秀。若一组灯具中有个别灯具需要替换,则获取该需要被替换的灯具的灯库文件,将其作为目标灯库文件,应用于所替换的新的灯具中,本申请实施例提供的灯具即可作为该新的灯具,直接识别该目标灯库文件。Among them, for a group of lamps, usually, according to the function information of each lamp itself, the same data format can be used for editing and description, and the lamp library file corresponding to each lamp can be obtained, and each lamp can identify the function information contained in the lamp library file and run to combine to achieve the preset light show. If there are individual lamps in a group of lamps that 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 to be applied to the new lamps to be replaced. The lamps provided in the embodiments of the present application are It can be used as the new fixture to directly identify the target fixture library file.

通常,不同灯具的灯库文件中的功能信息所使用的数据格式不同,该不同数据格式指采用不同的规则进行描述记录。因此,当灯具获取到该目标灯库文件后,需要识别其所包含的第一功能信息,其中,该第一功能信息是采用第一数据格式描述的。具体的,灯具包括解析器101,该解析器101指可运行预设指令或程序算法的控制器件,可选的,该解析器101可解析的目标灯库文件的文件格式包括但不限于为hog4show、txt、r20或xml等文件格式。该解析器101获取该目标灯库文件并对其进行解析处理,从而得到目标灯库文件中包含的第一功能信息,该第一功能信息表示了该灯具可实现的功能。不同灯具的驱动板103可识别的功能信息的数据格式不同,因此,灯具中的主控制器102对该第一功能信息进行格式转换处理,从而将第一数据格式的第一功能信息转换为第二数据格式的第二功能信息,显然,第二功能信息所表示的功能与第一功能信息相同,二者仅数据格式不同。Usually, the data formats used for the function information in the lamp library files of different lamps are different, and the different data formats refer to using different rules for description and recording. Therefore, after the lamp acquires 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 includes aparser 101, and theparser 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 theparser 101 includes, but is not limited to, hog4show , txt, r20 or xml and other file formats. Theparser 101 acquires the target lamp library file and performs parsing processing on it, so as to obtain first function information contained in the target lamp library file, where the first function information represents the functions that can be realized by the lamp. The data formats of the function information that can be recognized by thedriver board 103 of different lamps are different. Therefore, themain controller 102 in the lamps performs format conversion processing on the first function information, so as to convert the first function information in the first data format into the first function information in the first data format. The second function information in two data formats, obviously, the function represented by the second function information is the same as the first function information, and only the data format is different.

主控制器102可将得到的第二功能信息发送至驱动板103,该驱动板103可识别该第二功能信息,从而驱动运动组件104运行,保证预设灯光秀正常实现。其中,所述运动组件包括所述灯具中的切割元件、风机以及发光体等各种可被驱动板驱动而运行的其他部件,第二功能信息可包括灯具功能、灯具通道特性以及灯具厂商等基本信息,具体的,灯具功能可包括发光体的驱动信息、切割组件的运动信息、XY轴的运行信息以及风机的调速信息等基本功能信息。Themain controller 102 can send the obtained second function information to the drivingboard 103, and the drivingboard 103 can recognize the second function information, thereby driving themotion component 104 to operate, and ensuring the normal realization of the preset light show. Wherein, the moving component includes various other components in the lamp, such as cutting element, fan, and illuminator, which can be driven and operated by the driving board, and the second function information may include the function of the lamp, the channel characteristics of the lamp, and basic information such as the lamp manufacturer. Information, specifically, the function of the lamp may include basic functional information such as the driving information of the light-emitting body, the motion information of the cutting assembly, the operation information of the XY axis, and the speed regulation information of the fan.

上述灯具,包括解析器101、主控制器102、驱动板103以及运动组件104;该主控制器102与该解析器101以及该驱动板103连接;运动组件104与驱动板103连接。通过该解析器101对获取的目标灯库文件进行解析处理,得到该目标灯库文件中包含的第一功能信息,并将该第一功能信息发送至该主控制器102。通过该主控制器102对解析得到的第一功能信息进行格式转换处理,得到可被该驱动板103识别的第二功能信息,并将该第二功能信息发送至该驱动板103,从而使得该驱动板103根据该第二功能信息驱动该运动组件104运行。通过解析该目标灯库文件中的第一功能信息并对其做格式转换处理得到第二功能信息,从而使得对目标灯库文件中包含的信息进行识别,并驱动运动组件104运行,在需要更换灯具时,无需对灯库文件中包含的功能信息进行重新编辑,而是直接可使用。无需人工操作,降低工作量,有效提升了工作效率。使得灯具的替换变得更加有效和简便。The above-mentioned lamp includes aresolver 101 , amain controller 102 , a drivingboard 103 and amotion component 104 ; themain controller 102 is connected to theresolver 101 and the drivingboard 103 ; themotion component 104 is connected to the drivingboard 103 . Theparser 101 performs parsing processing on the acquired target lamp library file, obtains the first function information contained in the target lamp library file, and sends the first function information to themain controller 102 . Themain controller 102 performs format conversion processing on the parsed first function information, obtains second function information that can be recognized by thedriver board 103, and sends the second function information to thedriver board 103, so that theThe driving board 103 drives themotion component 104 to operate according to the second function information. The second function information is obtained by parsing the first function information in the target lamp library file and performing format conversion processing on it, so as to identify the information contained in the target lamp library file, and drive themotion component 104 to run. When lighting fixtures, the function information contained in the fixture library file does not need to be re-edited, but can be used directly. No manual operation is required, the workload is reduced, and the work efficiency is effectively improved. It makes the replacement of lamps more effective and easier.

在一个实施例中,如图2所示,其示出了本申请实施例提供的第二种灯具的结构示意图。该灯具100还包括通信组件105,该通信组件105与该解析器101连接;该通信组件105,用于获取外部输入的该目标灯库文件,并将该目标灯库文件发送至该解析器101;其中,该通信组件105为网络通信组件、USB通信组件、无线传输通信组件或总线传输通信组件中的一种。In one embodiment, as shown in FIG. 2 , it shows a schematic structural diagram of the second type of lamp provided by the embodiment of the present application. Thelight fixture 100 further includes acommunication component 105, which is connected to theparser 101; thecommunication component 105 is used to obtain the externally input target light library file and send the target light library file to theparser 101 ; wherein, thecommunication component 105 is one of a network communication component, a USB communication component, a wireless transmission communication component or a bus transmission communication component.

其中,该灯具还包括通信组件105,从而通过该通信组件105获取外部输入的目标灯库文件,并将其发送至解析器101,以使解析器101对目标灯库文件进行解析处理。其中,可选的,该通信组件105可以为网络通信组件或无线传输通信组件,例如,网络通信组件可通过WIFI(Wireless Fidelity,无线保真)信号与外部设备通信,从而获取目标灯库文件。该通信组件105也可以为USB(Universal Serial Bus,通用串行总线)通信组件,例如,该灯具包含有USB接口,通过在该USB接口插入相关设备或者连接线,从而获取外部设备传输的目标灯库文件。该通信组件105还可以为总线传输通信组件,例如,该灯具可以包括RS485总线接口或者RS232总线接口等。The luminaire further includes acommunication component 105, so as to obtain the externally input target lamp library file through thecommunication component 105, and send it to theparser 101, so that theparser 101 parses the target lamp library file. Wherein, optionally, thecommunication 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, wireless fidelity) signal, thereby acquiring the target lamp library file. Thecommunication component 105 may also be a USB (Universal Serial Bus, Universal Serial Bus) communication component. For example, the light fixture includes a USB interface, and the target light transmitted by the external device can be obtained by inserting a related device or connecting line into the USB interface. Library file. Thecommunication component 105 may also be a bus transmission communication component. For example, the light fixture may include an RS485 bus interface or an RS232 bus interface.

本申请实施例中,通过通信组件,可便捷的获取目标灯库文件,以便于提升灯具识别灯库文件的效率,降低工作量。In the embodiment of the present application, through the communication component, the target lamp library file can be conveniently obtained, so as to improve the efficiency of lamp identification of the lamp library file and reduce the workload.

在一个实施例中,该主控制器102,具体用于获取该第一功能信息的数据格式,并根据该数据格式确定格式转换方法,根据该格式转换方法对该第一功能信息进行格式转换处理,得到该第二功能信息。该第二功能信息包括灯具功能信息以及灯具通道信息。In one embodiment, themain controller 102 is specifically configured to acquire 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. The second function information includes lamp function information and lamp channel information.

其中,该主控制器102主要用于对第一数据格式的第一功能信息进行格式转换处理,以得到第二数据格式的第二功能信息。该第二功能信息包括灯具的可实现的功能信息以及灯具运行所对应的通信信息等。Themain controller 102 is mainly used for performing format conversion processing on 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 achievable function information of the lamp and communication information corresponding to the operation of the lamp, and the like.

具体地,不同的目标灯库文件中的第一功能信息所使用的数据格式不同,该主控制器102可实现多种数据格式的转换。当获取到第一功能信息后,该主控制器102可先识别该第一功能信息所对应的第一数据格式,并根据第一数据格式确定对其进行格式转换所使用的格式转换方法,进一步的,根据该格式转换方法对该第一功能信息进行格式转换处理,从而将其转换为第二数据格式的第二功能信息。可选的,该格式转换方法可由程序算法实现。Specifically, the data formats used by the first function information in different target lamp library files are different, and themain controller 102 can realize the conversion of various data formats. After acquiring the first function information, themain 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 , performing format conversion processing on the first function information according to the format conversion method, so as to convert it into second function information in a second data format. Optionally, the format conversion method can be implemented by a program algorithm.

本申请实施例中,主控制器102通过确定相应的格式转换方法以对第一功能信息进行格式转换处理,从而实现格式转换处理的精准性。同时,由于确定了合适的格式转换方法,避免了转换错误,有效提升转换效率。In this embodiment of the present application, themain controller 102 performs format conversion processing on the first function information by determining a corresponding format conversion method, thereby achieving the accuracy of the format conversion processing. At the same time, since a suitable format conversion method is determined, conversion errors are avoided, and conversion efficiency is effectively improved.

在一个实施例中,该主控制器102,还用于通过该通信组件105将该第二功能信息发送至外部控制台,该第二功能信息用于指示该外部控制台对该第二功能信息进行编辑处理,得到更新后的第二功能信息;该主控制器102,还用于通过该通信组件105获取该更新后的第二功能信息,并将该更新后的第二功能信息发送至该驱动板103。In one embodiment, themain controller 102 is further configured to send the second function information to an external console through thecommunication component 105, where the second function information is used to instruct the external console to perform the second function information Perform editing processing to obtain updated second function information; themain controller 102 is also used to obtain the updated second function information through thecommunication component 105, and send the updated second function information to thedrive board 103 .

其中,一组灯具的灯光秀的编排,可通过外部控制台对各灯具的灯库文件所包含的功能信息进行编辑,从而使各灯具根据灯库文件中的功能信息运行,实现所编排的灯光秀。因此,本申请实施例中的灯具,在需要进行灯光秀编排的情况下,还可通过通信组件105将第二功能信息发送至外部控制台,使得外部控制台对台第二功能信息进行编辑更新,并得到包含编辑更新后的第二功能信息的目标灯库文件,并运行该编辑更新后的目标灯库文件,以使驱动板103驱动运动组件104运行,实现所编排的灯光秀。有效降低了成本和改造时间,避免资源浪费,具有高可塑性和高可靠性。Among them, for the arrangement of the light show of a group of lamps, the function information contained in the lamp library file of each lamp can be edited through the external console, so that each lamp can operate according to the function information in the lamp library file to realize the arranged lighting. show. Therefore, the lamps in the embodiments of the present application can also send the second function information to the external console through thecommunication component 105 when the light show arrangement needs to be performed, so that the external console can edit and update the second function information of the station , and obtain the target light library file containing the edited and updated second function information, and run the edited and updated target light library file, so that the drivingboard 103 drives themotion component 104 to run, and realizes the programmed light show. It effectively reduces the cost and transformation time, avoids waste of resources, and has high plasticity and high reliability.

在一个实施例中,该灯具还包括输入面板,该输入面板与该驱动板103连接;该输入面板,用于获取用户输入的通道模式信息,并将该通道模式信息发送至该驱动板103;该驱动板103,具体用于在该通道模式信息对应的通道模式下,根据该第二功能信息驱动该运动组件104运行。In one embodiment, the lamp further includes an input panel, the input panel is connected to thedriver board 103; the input panel is used to obtain the channel mode information input by the user, and send the channel mode information to thedriver board 103; The drivingboard 103 is specifically configured to drive themotion component 104 to operate according to the second function information in the channel mode corresponding to the channel mode information.

其中,灯具可对应不同的通道模式,例如单通道模式或多通道模式等,灯具中的驱动板103在预设的通道模式下根据第二功能信息驱动运动组件104。具体的,该灯具还可包括输入面板,可选的,该输入面板可以为触摸显示屏或者显示屏和按键组合的装置。外部用户可通过输入面板输入该驱动板103对应的通道模式信息,例如,可通过触摸显示屏输入通道模式信息,或者,通过按键和显示屏的组合,从灯具的显示屏上所显示的多个通道模式信息中选择目标通道模式信息。输入面板在检测到用户输入的通道模式信息后将其发送至驱动板103,以使驱动板103在对应的通道模式下根据第二功能信息驱动运动组件104运行。The lamps can correspond to different channel modes, such as single-channel mode or multi-channel mode, and the drivingboard 103 in the lamp drives themotion component 104 according to the second function information in the preset channel mode. Specifically, the luminaire may further include an input panel, optionally, the input panel may be a touch display screen or a device combining a display screen and keys. The external user can input the channel mode information corresponding to thedriver board 103 through the input panel. For example, the channel mode information can be input by touching the display screen, or, through the combination of the keys and the display screen, the channel mode information displayed on the display screen of the luminaire can be selected. Select the target channel mode information in the channel mode information. After detecting the channel mode information input by the user, the input panel sends it to the drivingboard 103, so that the drivingboard 103 drives themotion component 104 to operate according to the second function information in the corresponding channel mode.

本申请实施例中,通过获取通道模式信息,保证灯具在对应的通道模式下运行,使得整体的灯光秀完整。In the embodiment of the present application, by acquiring the channel mode information, it is ensured that the lamp operates in the corresponding channel mode, so that the overall light show is complete.

在一个实施例中,如图3所示,其示出了本申请实施例提供的一种可识别灯库文件的灯具的结构示意图。该灯具300包括通信组件301、文件解析器302、格式转换控制器303、驱动板304、运动组件305以及输入面板306。In one embodiment, as shown in FIG. 3 , it shows a schematic structural diagram of a lamp that can identify a lamp library file provided by an embodiment of the present application. Thelight fixture 300 includes acommunication component 301 , afile parser 302 , aformat conversion controller 303 , a drivingboard 304 , amotion component 305 and aninput panel 306 .

通信组件301具体可以为RS485总线接口。通过通信组件301获取外部设备传输的目标灯库文件,其中,该目标灯库文件为被替换的灯具所对应的灯库文件。可选的,该目标灯库文件可以为xml文件格式。通信组件301将获取到的目标灯库文件发送至文件解析器302。该文件解析器302对目标灯库文件进行解析,得到目标灯库文件对应的第一功能信息,其中该第一功能信息包括该灯具可实现的功能以及对应的通道功能。进一步的,格式转换控制器303获取该第一功能信息,并将其转换为驱动板304可识别的第二数据结构的第二功能信息。驱动板304接收格式转换控制器303发送的第二功能信息,并根据该第二功能信息驱动运动组件305运行,实现所编排的灯光秀。驱动板304根据接收到的采用新的数据结构描述的第二功能信息进行运行该灯具所具有的所有功能。可选的,通过输入面板306获取用户输入的通道模式信息,使得驱动板304可在该通道模式信息对应的通道模式下运行第二功能信息,以驱动运动组件305运行。Thecommunication component 301 may specifically be an RS485 bus interface. The target lamp library file transmitted by the external device is acquired through thecommunication component 301, wherein the target lamp library file is the lamp library file corresponding to the replaced lamp. Optionally, the target lamp library file may be in an xml file format. Thecommunication component 301 sends the acquired target lamp library file to thefile parser 302 . Thefile parser 302 parses the target lamp library file to obtain first function information corresponding to the target lamp library file, wherein the first function information includes functions that can be realized by the lamp and corresponding channel functions. Further, theformat conversion controller 303 acquires the first function information and converts it into second function information of the second data structure recognizable by thedriver board 304 . The drivingboard 304 receives the second function information sent by theformat conversion controller 303, and drives themotion component 305 to operate according to the second function information, so as to realize the programmed light show. The drivingboard 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 theinput panel 306, so that the drivingboard 304 can run the second function information in the channel mode corresponding to the channel mode information to drive themotion component 305 to run.

其中,该灯具300与被替换的灯具具有相同功能或者类型。该目标灯库文件包含有灯具功能、灯具通道特性以及灯具厂商等功能信息。Wherein, thelight fixture 300 has the same function or type as the replaced light fixture. The target lamp library file contains function information such as lamp functions, lamp channel characteristics, and lamp manufacturers.

采用上述灯具300运行目标灯库文件,方可便地进行第一功能信息的格式转换处理,减少用户的使用成本以及提供了更多的选择性,具有高可塑性以及高可靠性,可兼容不同灯库文件,从而避免了资源浪费。Using the above-mentionedlamps 300 to run the target lamp library file, the format conversion processing of the first function information can be conveniently performed, the use cost of the user is reduced, and more selectivity is provided, which has high plasticity and high reliability, and is compatible with different lamps. library files, thus avoiding resource waste.

在一个实施例中,如图4所示,其示出了本申请实施例提供的一种灯库文件识别方法的流程示意图。该灯库文件识别方法可用于上述实施例中的灯具100中,该方法包括:In one embodiment, as shown in FIG. 4 , it shows a schematic flowchart of a method for identifying a lamp library file provided by an embodiment of the present application. The lamp library file identification method can be used in thelamp 100 in the above embodiment, and the method includes:

步骤401,获取目标灯库文件。Instep 401, a target lamp library file is obtained.

其中,对于一组灯具而言,若一组灯具中有个别灯具需要替换,则获取该需要被替换的灯具的灯库文件,将其作为目标灯库文件,用于后续的识别。Wherein, for a group of lamps, if some lamps in the group of lamps 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.

步骤402,对该目标灯库文件进行解析处理,得到该目标灯库文件中包含的第一功能信息。Step 402: Perform parsing processing on the target lamp library file to obtain first function information contained in the target lamp library file.

其中,当灯具获取到该目标灯库文件后,需要识别其所包含的第一功能信息,其中,该第一功能信息是采用第一数据格式描述的。具体的,灯具通过其所包含的解析器对目标灯库文件进行解析处理,得到第一功能信息,该第一功能信息表示了该灯具可实现的功能。可选的,目标灯库文件的文件格式包括但不限于为hog4show、txt、r20或xml等文件格式。Wherein, after the lamp acquires the target lamp library file, it needs to identify the first function information contained therein, wherein the first function information is described in a first data format. Specifically, the lamp parses and processes the target lamp library file through the parser included in the lamp to obtain first function information, where the first function information represents the functions that can be realized by the lamp. Optionally, the file format of the target lamp library file includes but is not limited to file formats such as hog4show, txt, r20, or xml.

步骤403,对该第一功能信息进行格式转换处理,得到可被该灯具的驱动板识别的第二功能信息。Step 403 , performing format conversion processing on the first function information to obtain second function information that can be recognized by the driving board of the lamp.

通常,不同灯具的灯库文件中的功能信息所使用的数据格式不同,该不同数据格式指采用不同的规则进行描述记录。不同灯具的驱动板可识别的功能信息的数据格式不同,因此,可对该第一功能信息进行格式转换处理,从而将第一数据格式的第一功能信息转换为第二数据格式的第二功能信息,显然,第二功能信息所表示的功能与第一功能信息相同,二者仅数据格式不同。Usually, the data formats used for the function information in the lamp library files of different lamps are different, and the different data formats refer to using different rules for description and recording. The data formats of the functional information identifiable by the driver boards of different lamps are different. Therefore, the format conversion process can be performed on the first functional information, so as to convert the first functional information in the first data format into the second function in the second data format. information, obviously, the function represented by the second function information is the same as that of the first function information, and only the data format is different.

步骤404,根据该第二功能信息,驱动该灯具中的运动组件运行。Step 404, according to the second function information, drive the motion component in the lamp to operate.

其中,灯具中的驱动板可识别该第二功能信息,从而驱动运动组件运行,保证灯光秀正常实现。Wherein, the driving board in the lamp can identify the second function information, so as to drive the motion component to run, and ensure the normal realization of the light show.

通过解析该目标灯库文件中的第一功能信息并对其做格式转换处理得到第二功能信息,从而使得对目标灯库文件中包含的信息进行识别,并驱动运动组件运行,在需要更换灯具时,无需对灯库文件中包含的功能信息进行重新编辑,而是直接可识别使用。无需人工操作,降低工作量,有效提升了工作效率。使得灯具的替换变得更加有效和简便。By parsing the first function information in the target lamp library file and performing format conversion processing on it, the second function information is obtained, so that the information contained in the target lamp library file can be identified, and the motion components can be driven to run. When the lamp needs to be replaced When the function information contained in the lamp library file is not required to be re-edited, it can be directly recognized and used. No manual operation is required, the workload is reduced, and the work efficiency is effectively improved. It makes the replacement of lamps more effective and easier.

在一个实施例中,如图5所示,其示出了本申请实施例提供的一种获取第二功能信息的流程示意图。对该第一功能信息进行格式转换处理,得到可被该灯具的驱动板识别的第二功能信息,包括:In one embodiment, as shown in FIG. 5 , it shows a schematic flowchart of acquiring second function information provided by an embodiment of the present application. Format conversion processing is performed on the first function information to obtain second function information that can be recognized by the driver board of the lamp, including:

步骤501,获取该第一功能信息的数据格式,并根据该数据格式确定格式转换方法。Step 501: Acquire a data format of the first function information, and determine a format conversion method according to the data format.

步骤502,根据该格式转换方法对该第一功能信息进行格式转换处理,得到该第二功能信息。Step 502: Perform 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 first, and the format conversion method used for format conversion is determined according to the first data format. Further, format conversion processing is performed on the first function information according to the format conversion method, so as to convert it into second function information in a second data format. Optionally, the format conversion method can be implemented by a program algorithm.

本申请实施例中,通过确定相应的格式转换方法以对第一功能信息进行格式转换处理,从而保证格式转换处理的准确性。同时,由于确定了合适的格式转换方法,避免了转换错误,有效提升转换效率。In the embodiment of the present application, the format conversion process is performed on the first function information 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.

在一个实施例中,该方法还包括:获取用户输入的通道模式信息,并在该通道模式信息对应的通道模式下根据该第二功能信息驱动该灯具中的运动组件运行。In one embodiment, the method further includes: acquiring channel mode information input by a user, and driving a motion component in the lighting fixture to operate in a channel mode corresponding to the channel mode information according to the second function information.

其中,灯具可对应不同的通道模式,例如单通道模式或多通道模式等,灯具中的驱动板在预设的通道模式下根据第二功能信息驱动运动组件。具体的,该灯具还可包括输入面板,外部用户可通过输入面板输入该驱动板对应的通道模式信息,以使驱动板在对应的通道模式下根据第二功能信息驱动运动组件运行。The lamps can correspond to different channel modes, such as single-channel mode or multi-channel mode, etc., and the driving board in the lamp drives the motion components according to the second function information in the preset channel mode. Specifically, the luminaire may further include an input panel, through which an external user can input channel mode information corresponding to the driver board, so that the driver board drives the motion component to run according to the second function information in the corresponding channel mode.

应该理解的是,虽然如上所述的各实施例所涉及的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,如上所述的各实施例所涉及的流程图中的至少一部分步骤可以包括多个步骤或者多个阶段,这些步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤中的步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that, although the steps in the flowcharts involved in the above-mentioned embodiments are sequentially displayed according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, the execution of these steps is not strictly limited to the order, and the steps may be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed and completed at the same time, but may be performed at different times The execution order of these steps or phases is not necessarily sequential, but may be performed alternately or alternately with other steps or at least a part of the steps or phases in the other steps.

基于同样的发明构思,本申请实施例还提供了一种用于实现上述所涉及的灯库文件识别方法的灯库文件识别装置。该装置所提供的解决问题的实现方案与上述方法中所记载的实现方案相似,故下面所提供的一个或多个灯库文件识别装置实施例中的具体限定可以参见上文中对于灯库文件识别方法的限定,在此不再赘述。Based on the same inventive concept, an embodiment of the present application also provides a lamp library file identification device for implementing the above-mentioned lamp library file identification method. The solution to the problem provided by the device is similar to the solution described in the above method, so the specific limitations in the embodiments of one or more lamp library file identification device provided below can refer to the above for lamp library file identification The limitation of the method is not repeated here.

在一个实施例中,如图6所示,提供了一种灯库文件识别装置。该灯库文件识别装置600包括:第一获取模块601、第一解析模块602、第一转换模块603和第一运行模块604,其中:In one embodiment, as shown in FIG. 6, a lamp library file identification device is provided. The lamp library file identification device 600 includes: afirst acquisition module 601, afirst analysis module 602, afirst conversion module 603 and afirst operation module 604, wherein:

第一获取模块601,用于获取目标灯库文件;The first obtainingmodule 601 is used to obtain the target lamp library file;

第一解析模块602,用于对该目标灯库文件进行解析处理,得到该目标灯库文件中包含第一功能信息;afirst parsing module 602, configured to perform parsing processing on the target lamp library file to obtain the first function information contained in the target lamp library file;

第一转换模块603,用于对该第一功能信息进行格式转换处理,得到可被灯具的驱动板识别的第二功能信息;Thefirst conversion module 603 is configured to perform format conversion processing on the first function information to obtain second function information that can be recognized by the driving board of the lamp;

第一运行模块604,用于根据该第二功能信息,驱动该灯具中的运动组件运行。Thefirst operation module 604 is configured to drive the motion component in the lamp to operate according to the second function information.

在一个实施例中,该第一转换模块603,具体用于:获取该第一功能信息的数据格式,并根据该数据格式确定格式转换方法;根据该格式转换方法对该第一功能信息进行格式转换处理,得到该第二功能信息。In one embodiment, thefirst conversion module 603 is specifically configured to: acquire the data format of the first function information, and determine a format conversion method according to the data format; format the first function information according to the format conversion method The conversion process is performed to obtain the second function information.

在一个实施例中,该装置还包括:In one embodiment, the apparatus further includes:

第二获取模块,用于获取用户输入的通道模式信息,并在该通道模式信息对应的通道模式下根据该第二功能信息驱动该灯具中的运动组件运行。The second acquiring module is configured to acquire the channel mode information input by the user, and drive the motion components in the lighting fixture to operate in the channel mode corresponding to the channel mode information according to the second function information.

上述灯库文件识别装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。Each module in the above lamp library file identification device can be implemented in whole or in part by software, hardware and combinations thereof. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

在一个实施例中,提供了一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现以下步骤: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:

获取目标灯库文件;对该目标灯库文件进行解析处理,得到该目标灯库文件中包含第一功能信息;对该第一功能信息进行格式转换处理,得到可被该灯具的驱动板识别的第二功能信息;根据该第二功能信息,驱动该灯具中的运动组件运行。Obtain a target lamp library file; perform parsing processing on the target lamp library file to obtain first function information contained in the target lamp library file; perform format conversion processing on the first function information to obtain a lamp that can be recognized by the driver board of the lamp second function information; according to the second function information, drive the motion component in the lamp to run.

在一个实施例中,计算机程序被处理器执行时还实现以下步骤:In one embodiment, the computer program further implements the following steps when executed by the processor:

获取该第一功能信息的数据格式,并根据该数据格式确定格式转换方法;根据该格式转换方法对该第一功能信息进行格式转换处理,得到该第二功能信息。The data format of the first function information is acquired, and a format conversion method is determined according to the data format; the format conversion process is performed on the first function information according to the format conversion method to obtain the second function information.

在一个实施例中,计算机程序被处理器执行时还实现以下步骤:In one embodiment, the computer program further implements the following steps when executed by the processor:

获取用户输入的通道模式信息,并在该通道模式信息对应的通道模式下根据该第二功能信息驱动该灯具中的运动组件运行。The channel mode information input by the user is acquired, and the motion component in the lamp is driven to run according to the second function information in the channel mode corresponding to the channel mode information.

在一个实施例中,提供了一种计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实现以下步骤:In one embodiment, a computer program product is provided, comprising a computer program that, when executed by a processor, implements the following steps:

获取目标灯库文件;对该目标灯库文件进行解析处理,得到该目标灯库文件中包含第一功能信息;对该第一功能信息进行格式转换处理,得到可被该灯具的驱动板识别的第二功能信息;根据该第二功能信息,驱动该灯具中的运动组件运行。Obtain a target lamp library file; perform parsing processing on the target lamp library file to obtain first function information contained in the target lamp library file; perform format conversion processing on the first function information to obtain a lamp that can be recognized by the driver board of the lamp second function information; according to the second function information, drive the motion component in the lamp to run.

在一个实施例中,计算机程序被处理器执行时还实现以下步骤:In one embodiment, the computer program further implements the following steps when executed by the processor:

获取该第一功能信息的数据格式,并根据该数据格式确定格式转换方法;根据该格式转换方法对该第一功能信息进行格式转换处理,得到该第二功能信息。The data format of the first function information is acquired, and a format conversion method is determined according to the data format; the format conversion process is performed on the first function information according to the format conversion method to obtain the second function information.

在一个实施例中,计算机程序被处理器执行时还实现以下步骤:In one embodiment, the computer program further implements the following steps when executed by the processor:

获取用户输入的通道模式信息,并在该通道模式信息对应的通道模式下根据该第二功能信息驱动该灯具中的运动组件运行。The channel mode information input by the user is acquired, and the motion component in the lamp is driven to run according to the second function information in the channel mode corresponding to the channel mode information.

本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、数据库或其它介质的任何引用,均可包括非易失性和易失性存储器中的至少一种。非易失性存储器可包括只读存储器(Read-OnlyMemory,ROM)、磁带、软盘、闪存、光存储器、高密度嵌入式非易失性存储器、阻变存储器(ReRAM)、磁变存储器(Magnetoresistive Random Access Memory,MRAM)、铁电存储器(Ferroelectric Random Access Memory,FRAM)、相变存储器(Phase Change Memory,PCM)、石墨烯存储器等。易失性存储器可包括随机存取存储器(Random Access Memory,RAM)或外部高速缓冲存储器等。作为说明而非局限,RAM可以是多种形式,比如静态随机存取存储器(Static Random Access Memory,SRAM)或动态随机存取存储器(Dynamic RandomAccess Memory,DRAM)等。本申请所提供的各实施例中所涉及的数据库可包括关系型数据库和非关系型数据库中至少一种。非关系型数据库可包括基于区块链的分布式数据库等,不限于此。本申请所提供的各实施例中所涉及的处理器可为通用处理器、中央处理器、图形处理器、数字信号处理器、可编程逻辑器、基于量子计算的数据处理逻辑器等,不限于此。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented by instructing relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage In the medium, when the computer program is executed, it may include the processes of the above-mentioned method embodiments. Wherein, any reference to a memory, a database or other media used in the various embodiments provided in this application may include at least one of a non-volatile memory and a volatile memory. Non-volatile memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive memory (ReRAM), magnetic variable memory (Magnetoresistive Random Memory) Access Memory, MRAM), Ferroelectric Random Access Memory (FRAM), Phase Change Memory (Phase Change Memory, PCM), graphene memory, etc. Volatile memory may include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration and not limitation, the RAM may be in various forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM). The databases involved in the various embodiments provided in this application may include at least one of relational databases and non-relational databases. The non-relational database may include a blockchain-based distributed database, etc., but is not limited thereto. The processors involved in the various embodiments provided in this application may be general-purpose processors, central processing units, graphics processors, digital signal processors, programmable logic devices, data processing logic devices based on quantum computing, etc., and are not limited to this.

以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above embodiments can be combined arbitrarily. In order to make the description simple, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features It is considered to be the range described in this specification.

以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本申请专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请的保护范围应以所附权利要求为准。The above-mentioned embodiments only represent several embodiments of the present application, and the descriptions thereof are relatively specific and detailed, but should not be construed as a limitation on the scope of the patent of the present application. It should be pointed out that for those skilled in the art, without departing from the concept of the present application, several modifications and improvements can be made, which all belong to the protection scope of the present application. Therefore, the scope of protection of the present application should be determined by the appended claims.

Claims (11)

Translated fromChinese
1.一种灯具,其特征在于,所述灯具包括解析器、主控制器、驱动板以及运动组件;所述主控制器与所述解析器以及所述驱动板连接,所述运动组件与所述驱动板连接;1. A luminaire, characterized in that the luminaire comprises a resolver, a main controller, a driving board and a motion assembly; the main controller is connected with the resolver and the driving board, and the motion assembly is connected with the the driver board connection;所述解析器,用于获取目标灯库文件,并对所述目标灯库文件进行解析处理,得到所述目标灯库文件中包含的第一功能信息,并将所述第一功能信息发送至所述主控制器;The parser is used to obtain the target lamp library file, perform parsing processing on 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;所述主控制器,用于对所述第一功能信息进行格式转换处理,得到可被所述驱动板识别的第二功能信息,并将所述第二功能信息发送至所述驱动板;the main controller, configured to perform format conversion processing on the first function information, obtain second function information that can be recognized by the drive board, and send the second function information to the drive board;所述驱动板,用于根据所述第二功能信息驱动所述运动组件运行。The driving board is used for driving the motion component to operate according to the second function information.2.根据权利要求1所述的灯具,其特征在于,所述灯具还包括通信组件,所述通信组件与所述解析器连接;2. The light fixture according to claim 1, characterized in that, the light fixture further comprises a communication component, and the communication component is connected with the resolver;所述通信组件,用于获取外部输入的所述目标灯库文件,并将所述目标灯库文件发送至所述解析器;the communication component, configured to obtain the externally inputted target lamp library file, and send the target lamp library file to the parser;其中,所述通信组件为网络通信组件、USB通信组件、无线传输通信组件或总线传输通信组件中的一种。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.根据权利要求1所述的灯具,其特征在于,3. The lamp according to claim 1, characterized in that,所述主控制器,具体用于获取所述第一功能信息的数据格式,并根据所述数据格式确定格式转换方法,根据所述格式转换方法对所述第一功能信息进行格式转换处理,得到所述第二功能信息。The main controller is specifically configured to acquire 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.根据权利要求1所述的灯具,其特征在于,所述灯具还包括输入面板,所述输入面板与所述驱动板连接;4. The lamp according to claim 1, wherein the lamp further comprises an input panel, the input panel is connected to the driving board;所述输入面板,用于获取用户输入的通道模式信息,并将所述通道模式信息发送至所述驱动板;the input panel, used for acquiring channel mode information input by a user, and sending the channel mode information to the driver board;所述驱动板,具体用于在所述通道模式信息对应的通道模式下,根据所述第二功能信息驱动所述运动组件运行。The driving board is specifically configured to drive the motion component to run according to the second function information in a channel mode corresponding to the channel mode information.5.根据权利要求2所述的灯具,其特征在于,5. The lamp according to claim 2, characterized in that,所述主控制器,还用于通过所述通信组件将所述第二功能信息发送至外部控制台,所述第二功能信息用于指示所述外部控制台对所述第二功能信息进行编辑处理,得到更新后的第二功能信息;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 processing to obtain the updated second function information;所述主控制器,还用于通过所述通信组件获取所述更新后的第二功能信息,并将所述更新后的第二功能信息发送至所述驱动板。The main controller is further configured to acquire the updated second function information through the communication component, and send the updated second function information to the drive board.6.根据权利要求1至5任一所述的灯具,其特征在于,所述第二功能信息包括灯具功能信息以及灯具通道信息。6 . The lamp according to claim 1 , wherein the second function information includes lamp function information and lamp channel information. 7 .7.一种灯库文件识别方法,用于如权利要求1至6任一所述的灯具,其特征在于,所述方法包括:7. A method for identifying a lamp library file, used for the lamp as claimed in any one of claims 1 to 6, wherein the method comprises:获取目标灯库文件;Get the target lamp library file;对所述目标灯库文件进行解析处理,得到所述目标灯库文件中包含的第一功能信息;Perform parsing processing on the target lamp library file to obtain the first function information contained in the target lamp library file;对所述第一功能信息进行格式转换处理,得到可被所述灯具的驱动板识别的第二功能信息;Perform format conversion processing on the first function information to obtain second function information that can be recognized by the driving board of the lamp;根据所述第二功能信息,驱动所述灯具中的运动组件运行。According to the second function information, the motion component in the lamp is driven to operate.8.根据权利要求7所述的方法,其特征在于,所述对所述第一功能信息进行格式转换处理,得到可被灯具的驱动板识别的第二功能信息,包括:8 . The method according to claim 7 , wherein the performing format conversion processing on the first function information to obtain the second function information that can be recognized by the driving board of the lamp, comprising: 8 .获取所述第一功能信息的数据格式,并根据所述数据格式确定格式转换方法;Obtain the data format of the first function information, and determine a format conversion method according to the data format;根据所述格式转换方法对所述第一功能信息进行格式转换处理,得到所述第二功能信息。Format conversion processing is performed on the first function information according to the format conversion method to obtain the second function information.9.根据权利要求7所述的方法,其特征在于,所述方法还包括:9. The method according to claim 7, wherein the method further comprises:获取用户输入的通道模式信息,并在所述通道模式信息对应的通道模式下根据所述第二功能信息驱动所述灯具中的运动组件运行。The channel mode information input by the user is acquired, and in the channel mode corresponding to the channel mode information, the motion component in the lamp is driven to operate according to the second function information.10.一种灯库文件识别装置,其特征在于,所述装置包括:10. A lamp library file identification device, wherein the device comprises:第一获取模块,用于获取目标灯库文件;The first acquisition module is used to acquire the target lamp library file;第一解析模块,用于对所述目标灯库文件进行解析处理,得到所述目标灯库文件中包含的第一功能信息;a first parsing module, configured to perform parsing processing on the target lamp library file to obtain first function information contained in the target lamp library file;第一转换模块,用于对所述第一功能信息进行格式转换处理,得到可被灯具的驱动板识别的第二功能信息;a first conversion module, configured to perform format conversion processing on the first function information to obtain second function information that can be recognized by the driving board of the lamp;第一运行模块,用于根据所述第二功能信息,驱动所述灯具中的运动组件运行。The first operation module is configured to drive the motion component in the lamp to operate according to the second function information.11.一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现权利要求7至9中任一项所述的方法的步骤。11. A computer-readable storage medium on which a computer program is stored, 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.
CN202210379578.7A2022-04-122022-04-12 Lamp, lamp library file identification method, device and storage mediumActiveCN114818653B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202210379578.7ACN114818653B (en)2022-04-122022-04-12 Lamp, lamp library file identification method, device and storage medium

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202210379578.7ACN114818653B (en)2022-04-122022-04-12 Lamp, lamp library file identification method, device and storage medium

Publications (2)

Publication NumberPublication Date
CN114818653Atrue CN114818653A (en)2022-07-29
CN114818653B CN114818653B (en)2025-03-25

Family

ID=82535564

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202210379578.7AActiveCN114818653B (en)2022-04-122022-04-12 Lamp, lamp library file identification method, device and storage medium

Country Status (1)

CountryLink
CN (1)CN114818653B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20050248299A1 (en)*2003-11-202005-11-10Color Kinetics IncorporatedLight system manager
CN1949949A (en)*2006-08-232007-04-18中国科学院计算技术研究所LED lamp light wireless controlling system
CN109657035A (en)*2018-11-282019-04-19广州市华用智能科技有限公司Method for controlling lamp and device based on lamp library file
CN209184849U (en)*2018-09-252019-07-30上海雷舞照明技术有限公司 Lamp controller device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20050248299A1 (en)*2003-11-202005-11-10Color Kinetics IncorporatedLight system manager
CN1949949A (en)*2006-08-232007-04-18中国科学院计算技术研究所LED lamp light wireless controlling system
CN209184849U (en)*2018-09-252019-07-30上海雷舞照明技术有限公司 Lamp controller device
CN109657035A (en)*2018-11-282019-04-19广州市华用智能科技有限公司Method for controlling lamp and device based on lamp library file

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
YELIGHTING: "领焰灯库制作工具使用简要说明", pages 2 - 3, Retrieved from the Internet <URL:http://www.yelighting.com/web/static/download/yellibmaker.pdf>*

Also Published As

Publication numberPublication date
CN114818653B (en)2025-03-25

Similar Documents

PublicationPublication DateTitle
EP3042254B1 (en)Systems and methods for virtualizing a programmable logic controller
CN101228488B (en)Method for operating and monitoring a control device, corresponding operating/monitoring device, control device, and machine comprising such a control device
US9104810B2 (en)Creating a test case
JP6676126B2 (en) Computer system, programming method and non-transitory computer readable medium
CN112286557A (en)Method and device for updating code content in non-covering mode
US20150375624A1 (en)Controller and map file conversion device
CN105354036A (en)Database operation code generating method and apparatus
US8397055B2 (en)Method and system for post-build modification of firmware binaries to support different hardware configurations
CN116542207A (en)Method, device, equipment and storage medium for generating circuit layout
JP2009146229A (en) Programmable controller system
CN111445840A (en) Debugging method of LED display module, receiving card and LED display
CN104035360A (en)Parameter adjusting method for EPS controller and device
JP5508078B2 (en) Program creation support apparatus and method, and program
CN114818653A (en)Lamp, lamp library file identification method and device and storage medium
CN112286813B (en)Automatic generation system and method for use case keywords
CN105511938A (en)Virtual disk construction method
CN1530832A (en)Method and apparatus for programming electronic devices using a common parameter format
TWI485019B (en)Method of motion and system for pcb drilling and milling device using different motion controlling manufacture
US20230237249A1 (en)Method and system for generating an automation engineering project in a technical installation using multidisciplinary approach
CN108664276B (en)Method for configuring hardware information through text
US20180018364A1 (en)Common analytic framework and environment for big data analytics
CN113626390B (en) A method, device, electronic device and storage medium for generating BB files
JP6566859B2 (en) Engineering tools
CN115858025A (en) System parameter visualization configuration method and device
CN114779667A (en)Method and device for realizing control logic of mining equipment and computer equipment

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
CB02Change of applicant information
CB02Change of applicant information

Country or region after:China

Address after:No. 46 Ketai 1st Road, Guangzhou Private Science and Technology Park, Baiyun District, Guangzhou City, Guangdong Province, 510000

Applicant after:Guangzhou Caiyi Technology Co.,Ltd.

Address before:No. 46 Ketai 1st Road, Guangzhou Private Science and Technology Park, Baiyun District, Guangzhou City, Guangdong Province

Applicant before:Guangzhou Colourful Lighting Co.,Ltd.

Country or region before:China

GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp