Controller upgrade-free lamp chip setting method and device

By implementing a method of sending configuration frames in a cascade or parallel manner in the controller, the problem of frequent controller upgrades in the existing technology is solved, the scalability and maintenance efficiency of the system are improved, and the system is adapted to the needs of new chip types.

CN119336726AActive Publication Date: 2025-01-21JIANGMEN SIYU TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202411278497.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-12
Publication Date
2025-01-21
Estimated Expiration
2044-09-12

AI Technical Summary

Technical Problem

In the prior art, with the continuous upgrading of LED driver chips, controllers need to be frequently upgraded to support new chip types, resulting in reduced device program storage resources and no longer being upgraded.

Method used

Through cascade or parallel connection, the configuration frame is sent to the lamp chip, so that the system can support new lamp chip types without modifying the internal program of the controller. The specific method includes obtaining relevant information from the write parameter format library and database according to the chip type, constructing the protocol format and data content, and generating the configuration frame.

Benefits of technology

Improve the scalability and maintenance efficiency of the system, simplify the configuration process of the lamp chip, enhance the flexibility of the system, and enhance the system to more easily adapt to the type of new lamp chip that may occur in the future.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119336726A_ABST
    Figure CN119336726A_ABST
Patent Text Reader

Abstract

The invention discloses a controller upgrade-free lamp chip setting method and device, and the method comprises the steps: obtaining writing parameter format feature description from a writing parameter format library according to the type of a lamp chip, and constructing a protocol format; the writing parameter format library comprises a time sequence of the lamp chip; according to the type of the lamp chip, data field description is obtained from a write parameter database, and data content is determined; the writing parameter database comprises an instruction code, a parameter code and a value range of the parameter code of the lamp chip; constructing a lamp chip configuration frame according to the protocol format and the data content; and the controller sends the lamp chip configuration frame to the lamp chip through a cascade connection mode or a parallel connection mode. According to the invention, the controller sends the lamp chip configuration frame to the lamp chip in a cascading or parallel connection manner, so that the system can support a new lamp chip type on the premise of not modifying the internal program of the controller, and the expansibility and maintenance efficiency of the system are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of lamp chip control, and in particular to a lamp chip setting method and device without controller upgrade. Background Art

[0002] In the floodlighting industry, a large number of LED driver chips controlled by DMX512 parallel connection are now used. Their use requires the configuration of certain parameters through the controller. In response to market demand, more and more parameters need to be configured in the process of continuous chip upgrades, and the data protocol is constantly changing and cannot be backward compatible. The traditional practice is that every time a new chip is launched, the controller needs to upgrade the program according to its configuration protocol so that it can support the configuration of the chip. The disadvantage of this approach is that every time a chip is launched, R&D personnel need to be invested in upgrading the controller program, and the continuous increase in chip support programs will cause the program storage resources of the device to continue to shrink, and after reaching a certain level, it can no longer be upgraded. Summary of the invention

[0003] The embodiment of the present invention provides a method and device for setting a lamp chip without requiring a controller to be upgraded. The controller sends a configuration frame to the lamp chip in a cascade or parallel manner, so that the system can support new lamp chip types without modifying the internal program of the controller, thereby improving the scalability and maintenance efficiency of the system.

[0004] To achieve the above-mentioned purpose, a first aspect of an embodiment of the present application provides a lamp chip setting method without controller upgrade, comprising:

[0005] According to the type of lamp chip, obtain the characteristic description of the writing parameter format from the writing parameter format library and construct the protocol format; the writing parameter format library includes the timing of the lamp chip;

[0006] According to the type of lamp chip, obtain the data field description from the write parameter database to determine the data content; the write parameter database includes the instruction code, parameter code and parameter code value range of the lamp chip;

[0007] Constructing a lamp chip configuration frame according to the protocol format and the data content;

[0008] The controller sends the lamp chip configuration frame to the lamp chip in a cascade manner or a parallel manner.

[0009] In a possible implementation manner of the first aspect, acquiring a write parameter format feature description from a write parameter format library according to the type of the lamp chip and constructing a protocol format specifically includes:

[0010] If there is a code gap between the instruction code and parameter code of the lamp chip, and they need to be written uniformly by the bus, a first type of single-frame protocol format is constructed as the protocol format; the first type of single-frame protocol format includes a reset code, a start code, an instruction code and a parameter code, and there is a code gap between the reset code, the start code, the instruction code and the parameter code.

[0011] In a possible implementation manner of the first aspect, acquiring a write parameter format feature description from a write parameter format library according to the type of the lamp chip and constructing a protocol format specifically includes:

[0012] If there is no code gap between the instruction code and parameter code of the lamp chip, and they do not need to be written uniformly by the bus, a second type of single-frame protocol format is constructed as the protocol format; the second type of single-frame protocol format includes a reset code, a start code and several combination codes, and there are code gaps between the reset code, the start code and the combination code, and the combination code includes adjacent instruction codes and parameter codes, and one combination code corresponds to one lamp chip.

[0013] In a possible implementation manner of the first aspect, acquiring a write parameter format feature description from a write parameter format library according to the type of the lamp chip and constructing a protocol format specifically includes:

[0014] If the lamp chip requires a combination of several DMX data frames for input, a multi-frame protocol format is constructed; the multi-frame protocol format includes a reset code, a start code and an instruction code, or the multi-frame protocol format includes a reset code, a start code and a parameter code; the number of bytes of the instruction code or parameter code has a lower limit and an upper limit.

[0015] In a possible implementation of the first aspect, when constructing the protocol format, the protocol format is constructed using several characteristic values ​​including the number of frame groups, group interval, frame group end idle wait, frame group end reset code, frame type, number of frames, frame interval, frame size, reset code duration, start code, code interval, segment interval and data type.

[0016] In a possible implementation of the first aspect, the number of frame groups is the number of configuration frame groups included in one configuration; the group interval is the duration of the interval between groups; the frame group end idle includes a code value and a time parameter; the frame group end reset code includes a code value and a time parameter; the frame type is a DMX512 category value; the number of frames is the number of frames included in each group; the frame interval is the interval duration between frames in the same group; the frame size is a variable value following the length of the data field or a fixed value of the number of data bytes; the reset code duration is a parameter for the duration of the reset code maintaining a low level; the start code is fixed to 0; the code interval is the idle level duration between different codes; the segment interval is the interval between the instruction code and the parameter code during cascade coding; the data type is a representation value of the instruction code and the data code.

[0017] In a possible implementation of the first aspect, when the DMX512 category value is 0, it indicates that the baud rate of the frame is 250K, the data low bit comes first, including 1 start bit, 8 data bits and 2 stop bits;

[0018] When the DMX512 category value is 1, it means that the baud rate of the frame is 250K, the high bit of the data comes first, including 1 start bit, 8 data bits and 2 stop bits.

[0019] In a possible implementation of the first aspect, when the characterization value is 0, it indicates that the instruction code and the data code are separated; when the characterization value is 1, the instruction code and the data code are merged; when the characterization value is 2, it indicates that the instruction code and the data code do not need to be distinguished.

[0020] In a possible implementation manner of the first aspect, determining the data content specifically includes:

[0021] According to the data field description, the data content is determined using several fields of the frame sequence number, the instruction code, the parameter code and the chip quantity;

[0022] The frame number is used to identify the frame to which the three fields of instruction code, parameter code and chip quantity belong; the instruction code is a collection of a string of instruction codes arranged in sequence, and this field is not used when the data type is 2; the parameter code is a collection of a string of parameter codes arranged in sequence, and only this field is filled in when the data type is 2; the chip quantity is the number of chips when writing parameters in cascade, and is fixed to 1 when writing parameters in parallel.

[0023] A second aspect of an embodiment of the present application provides a lamp chip setting device without controller upgrade, comprising:

[0024] A format construction module is used to obtain a write parameter format feature description from a write parameter format library according to the type of the lamp chip and construct a protocol format; the write parameter format library includes the timing of the lamp chip;

[0025] Construct a data module for obtaining data field descriptions from a write parameter database and determining data content according to the type of the lamp chip; the write parameter database includes the instruction code, parameter code and value range of the parameter code of the lamp chip;

[0026] A configuration frame module, used to construct a lamp chip configuration frame according to the protocol format and the data content;

[0027] The sending module is used for the controller to send the lamp chip configuration frame to the lamp chip in a cascade manner or a parallel manner.

[0028] Compared with the prior art, the embodiment of the present invention provides a controller upgrade-free lamp chip setting method and device, which will query the write parameter format library according to the type of lamp chip. The write parameter format library stores the timing information of the lamp chip. Based on this information, the controller can determine how to construct the communication protocol format; obtain the data field description for the lamp chip from the write parameter database. The write parameter database contains the instruction code, parameter code and the valid value range of the parameter code for a specific lamp chip, which helps to determine the actual data content. After determining the information of the protocol format and data content, the controller can construct a lamp chip configuration frame. The lamp chip configuration frame contains all the configuration information required for the lamp chip, which is organized according to the previously determined protocol format and data content.

[0029] The controller sends the configuration frame to the lamp chip in a cascade or parallel manner. This method enables the system to support new lamp chip types without modifying the internal program of the controller, thereby improving the scalability and maintenance efficiency of the system. The present invention not only simplifies the configuration process of the lamp chip, but also enhances the flexibility of the system, so that the system can more easily adapt to new lamp chip types that may appear in the future. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Figure 1 It is a flowchart of a method for setting a lamp chip without requiring a controller upgrade according to an embodiment of the present invention;

[0031] Figure 2 It is a schematic diagram of a configuration process of a first type single frame protocol format provided by an embodiment of the present invention;

[0032] Figure 3 It is a schematic diagram of a configuration process of a second type single frame protocol format provided by an embodiment of the present invention;

[0033] Figure 4 The present invention provides a schematic diagram of a configuration process of a multi-frame protocol format according to an embodiment of the present invention. DETAILED DESCRIPTION

[0034] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0035] To solve the above problems, see Figure 1 An embodiment of the present invention provides a lamp chip setting method without controller upgrade, comprising:

[0036] S10. According to the type of the lamp chip, obtain the write parameter format feature description from the write parameter format library and construct a protocol format; the write parameter format library includes the timing of the lamp chip.

[0037] S11. According to the type of lamp chip, obtain data field description from the write parameter database to determine the data content; the write parameter database includes the instruction code, parameter code and value range of the parameter code of the lamp chip.

[0038] S12. Construct a lamp chip configuration frame according to the protocol format and the data content.

[0039] S13. The controller sends the lamp chip configuration frame to the lamp chip in a cascade manner or a parallel manner.

[0040] In S10, the write parameter format library will be queried according to the type of lamp chip. The write parameter format feature description for the lamp chip is obtained from the write parameter format library. The write parameter database stores the timing information of the lamp chip. Based on this information, the host computer of the controller can determine how to construct the communication protocol format. Then, in S11, the host computer will query the write parameter database according to the type of lamp chip. The write parameter database contains the command code (Command Code), parameter code (Parameter Code) and the valid value range of the parameter code of the specific lamp chip, and then determine the actual data content. With the information of the protocol format and data content, the controller can construct the lamp chip configuration frame. The configuration frame contains all the configuration information required for the lamp chip, which is organized according to the format determined previously. Finally, the controller sends the configuration frame to the lamp chip in cascade or parallel. This method enables the system to support new types of lamp chips without modifying the internal program of the controller, thereby improving the scalability and maintenance efficiency of the system.

[0041] The above method splits the parameter configuration protocol of the mainstream LED driver chip into two parts: building the protocol format and determining the data content. The instruction packet can be encapsulated in the host computer through abstract and parameterized format feature description and data field description, and transmitted to the controller via an SD card or communication interface. The controller sends the level and data sequence to the lamp chip according to the data field description, thereby realizing the parameter setting of most new lamp chips without updating the running program of the controller.

[0042] The host computer can have an interactive interface, which can select the lamp chip and its corresponding parameter value, and add new parameters; the host computer can have a chip write parameter database, and the new lamp chip generally needs to upgrade the write parameter database; the host computer can have a chip write parameter format library, and when adding a new lamp chip, if there is no compatibility in the format library, the write parameter format library needs to be upgraded. Encapsulate the instruction package (including the write parameter format and data content) and pass it to the control, and the new transmission method needs to be upgraded.

[0043] It should be noted that the parameter format library is saved in text format, one format and one text file. It is compiled by technical personnel according to the chip data and the protocol format constructed in S10. The text contains the protocol format for various chip configurations (generally called timing). When a certain chip needs to be configured, first find the corresponding format feature description from the library, and pass the description to the controller. The controller builds the protocol format based on the description. Generally, multiple chips from a manufacturer share a set of formats, and the manufacturer's protocol is finalized and basically no longer changed. When a new chip is launched and its configuration protocol format is incompatible with the current format in stock, it needs to be updated, that is, a new set of format feature descriptions is added.

[0044] The parameter database is saved in text format. One chip corresponds to one text file. The technical staff compiles it in an agreed manner according to the chip data. The text contains the instruction code, parameter code, and value range of each parameter code contained in various chips. It can be used for the software interface to display chip parameter options. After the user selects, the software background performs data abstract description and passes it to the controller. The controller fills the data (including instructions and parameter values) into the corresponding protocol format according to the description content and sends it to the lamp chip. Generally, a chip needs to independently build a set of parameters. When a new chip is launched, the corresponding data content needs to be added to the library.

[0045] The lamp chip configuration frame consists of one or more DMX512 frames. The frame format includes:

[0046] Idle level: The bus level when there is no data transmission, usually a high level.

[0047] Reset code: It is usually a low level for a certain period of time, and the duration may vary for different chips.

[0048] Start code: One byte of serial port data with a fixed value of 0 (1 start bit + 8 data bits + 2 stop bits).

[0049] Instruction code: used to identify what parameters to write, generally a variable number of bytes of serial port data (1 start bit + 8 data bits + 2 stop bits).

[0050] Parameter code: a set of parameter values, generally variable multiple bytes of serial port data (1 start bit + 8 data bits + 2 stop bits).

[0051] For example, see Figure 2 According to the type of lamp chip, the characteristic description of the write parameter format is obtained from the write parameter format library, and the protocol format is constructed, which specifically includes:

[0052] If there is a code gap between the instruction code and parameter code of the lamp chip, and they need to be written uniformly by the bus, a first type of single-frame protocol format is constructed as the protocol format; the first type of single-frame protocol format includes a reset code, a start code, an instruction code and a parameter code, and there is a code gap between the reset code, the start code, the instruction code and the parameter code.

[0053] When there is a code gap between the command code and parameter code of the lamp chip, and these codes need to be written uniformly through the bus, the controller needs to build the first type of single frame protocol format. This format is designed to ensure the correctness and consistency of data transmission.

[0054] Among them, the reset code is a signal used to initialize the communication link and ensure that the receiving end is in a receiving state. It marks the beginning of a frame of data and maintains a certain interval with other codes; the start code follows the reset code and is used to clearly inform the receiver that a frame of data is about to begin. In this protocol, the start code is fixed to 0, which means that it always remains unchanged, making it easy to identify the beginning of the frame; the instruction code specifies the operation command to be executed by the lighting chip. It is located after the start code, and there is also a code interval between it and the start code; the parameter code is used to pass the parameter value to the lighting chip to adjust its working state. The parameter code follows the instruction code and there is also a code interval between it and the instruction code.

[0055] The code interval refers to the time or space interval between the reset code, start code, command code and parameter code. These intervals exist to ensure that the codes are not confused and the receiving end can correctly distinguish each code.

[0056] Because they need to be written uniformly through the bus, this means that all codes - reset code, start code, instruction code and parameter code - must be sent as a whole to ensure that the lighting chip can receive the complete command at one time.

[0057] In this way, the controller can dynamically generate configuration frames suitable for different types of lamp chips without changing its own program, thereby achieving flexible configuration and management of lamp chips. This method improves the scalability and maintainability of the system and reduces the workload of frequently updating the controller program to support new chips.

[0058] For example, see Figure 3 According to the type of lamp chip, the characteristic description of the write parameter format is obtained from the write parameter format library, and the protocol format is constructed, which specifically includes:

[0059] If there is no code gap between the instruction code and parameter code of the lamp chip, and they do not need to be written uniformly by the bus, a second type of single-frame protocol format is constructed as the protocol format; the second type of single-frame protocol format includes a reset code, a start code and several combination codes, and there are code gaps between the reset code, the start code and the combination code, and the combination code includes adjacent instruction codes and parameter codes, and one combination code corresponds to one lamp chip.

[0060] When there is no code interval between the command code and parameter code of the lamp chip, and these codes do not need to be written uniformly through the bus, the controller needs to build a second type of single-frame protocol format. This format is designed to adapt to lamp chips that can write command codes and parameter codes independently.

[0061] In the second type of single frame protocol format, the reset code is used to initialize the communication link to ensure that the receiving end is in a receiving state. It marks the beginning of a frame of data and maintains a certain interval with other codes; the start code follows the reset code and is used to clearly inform the receiving end that a frame of data is about to begin. In this protocol, the start code is fixed to 0; the combination code is a unit composed of adjacent instruction codes and parameter codes. Each combination code corresponds to a lamp chip, which means that each lamp chip can receive its own instructions and parameters through such a combination code.

[0062] Although there is no code gap between the instruction code and the parameter code, there is still a code gap between the reset code, the start code and the combination code. These gaps are to ensure the clear definition of each code and prevent data confusion. Since there is no need to write uniformly through the bus, this means that each lamp chip can receive its instruction code and parameter code independently, that is, each lamp chip can process its own combination code.

[0063] According to the requirements of the lamp chip, the instruction code and parameter code are combined into a combination code. Each combination code represents the complete information required by a lamp chip.

[0064] When constructing the second type of single frame protocol format, ensure that there is an appropriate code interval between the reset code, the start code and each combination code to ensure the accuracy of data transmission. The controller sends the constructed configuration frame to the lamp chip in cascade or parallel mode. In cascade mode, each lamp chip receives its own configuration frame in turn; in parallel mode, all lamp chips receive the configuration frame at the same time.

[0065] In this way, the controller can dynamically generate configuration frames suitable for different types of lamp chips without changing its own program, thereby realizing flexible configuration and management of lamp chips. This method improves the scalability and maintainability of the system and reduces the workload of frequently updating the controller program to support new chips.

[0066] Exemplarily, the method of obtaining a write parameter format feature description from a write parameter format library and constructing a protocol format according to the type of lamp chip specifically includes:

[0067] If the lamp chip requires a combination of several DMX data frames for input, a multi-frame protocol format is constructed; the multi-frame protocol format includes a reset code, a start code and an instruction code, or the multi-frame protocol format includes a reset code, a start code and a parameter code; the number of bytes of the instruction code or parameter code has a lower limit and an upper limit.

[0068] When the lamp chip needs to be configured through the combined input of multiple DMX data frames, the controller needs to build a multi-frame protocol format. This format is designed for lamp chips that need to complete configuration tasks through a series of continuous data frames.

[0069] In the multi-frame protocol format, the reset code is used to initialize the communication link and ensure that the receiving end is in a receiving state. It marks the beginning of a frame of data and maintains a certain interval with other codes; the start code follows the reset code and is used to clearly inform the receiving end that a frame of data is about to begin. In this protocol, the start code is fixed to 0; if the lamp chip needs to be guided by the instruction code, the multi-frame protocol format will include the instruction code; if the lamp chip needs to adjust its behavior through the parameter code, the multi-frame protocol format will include the parameter code.

[0070] For example, see Figure 4 The following embodiment is a sending example of sending two sets of multi-frame protocol formats when the multi-frame protocol format corresponding to the lamp chip is 2 fields (setting 2 channels / dual colors):

[0071] The first frame of the first group: contains data of 3 channels, and the data content is: 0x00, 0x00, 0x00;

[0072] The second frame of the first group: contains data of three channels, and the data content is: 0x00, 0x00, 0x00;

[0073] The third frame of the first group: contains data of three channels, and the data content is: 0x0E, 0x01, 0x00;

[0074] The fourth frame of the first group: contains data of three channels, and the data content is: 0x0D, 0x01, 0x00;

[0075] After each frame is sent, there is an interval of 5ms before sending the next frame. After the fourth frame of the first group of data is sent, there is an interval of 5ms and then a reset of 100us is sent.

[0076] After waiting for 1 second, send the following second set of configuration commands:

[0077] The first frame of the second group: contains data of three channels, and the data content is: 0x00, 0x00, 0x00;

[0078] The second frame of the second group: contains data of 3 channels, and the data content is: 0x00, 0x00, 0x00;

[0079] The third frame of the second group: contains data of three channels, and the data content is: 0x26, 0x01, 0x00;

[0080] The fourth frame of the second group: contains data of three channels, and the data content is: 0x25, 0x01, 0x00;

[0081] After each frame is sent, there is an interval of 5ms before sending the next frame. After the fourth frame of the second group of data is sent, there is an interval of 5ms and then a reset of 100us is sent.

[0082] Wait 2 seconds to complete the 2-field function setting.

[0083] There is a lower limit and an upper limit on the number of bytes in the instruction code or parameter code. This means that the length of each code is limited and cannot exceed the specified range. The lighting chip needs to be configured through a combination of multiple DMX data frames, which means that a single frame may not be enough to convey all the necessary configuration information.

[0084] By building a multi-frame protocol format, the controller can dynamically generate configuration frames suitable for different types of lamp chips without changing its own program. This approach improves the scalability and maintainability of the system and reduces the workload of frequently updating the controller program to support new chips. In addition, this approach ensures that lamp chips can be effectively managed and configured even when multiple frames are required to complete the configuration.

[0085] Exemplarily, when constructing the protocol format, the protocol format is constructed using several characteristic values ​​including the number of frame groups, group interval, frame group end idle wait, frame group end reset code, frame type, number of frames, frame interval, frame size, reset code duration, start code, code interval, segment interval and data type.

[0086] Suppose you need to build a multi-frame protocol format to configure a lighting chip. The chip needs to be configured through two DMX data frames, one of which contains the instruction code and the other contains the parameter code. The following is an example of the construction process:

[0087] Determine the number of frame groups: Assume that two frame groups are required to complete the configuration.

[0088] Set the group interval: The group interval is 1 millisecond.

[0089] Set the frame group end idle wait: the end idle wait time is 2 milliseconds.

[0090] Set the frame group end reset code: the reset code is low level and the duration is 3 milliseconds.

[0091] Select the frame type: DMX512 category value is 0, which means the baud rate is 250K and the data is low-order first.

[0092] Set the number of frames: Each frame group contains 2 frames.

[0093] Set the frame interval: The frame interval is 0.5 milliseconds.

[0094] Set the frame size: The data length of each frame is 16 bytes.

[0095] Set the reset code duration: The reset code duration is 1 millisecond.

[0096] Set the start code: The start code is fixed to 0.

[0097] Set the code interval: the code interval is 0.2 milliseconds.

[0098] Set the segment interval: The segment interval is 0.3 milliseconds.

[0099] Set data type: instruction code and data code are separated (characteristic value is 0).

[0100] In this way, the controller can build a flexible and efficient multi-frame protocol format to ensure that the lamp chip can accurately receive the required configuration information and perform corresponding operations based on this information.

[0101] Exemplarily, the number of frame groups is the number of configuration frame groups included in one configuration; the group interval is the duration of the interval between groups; the frame group end idle includes a code value and a time parameter; the frame group end reset code includes a code value and a time parameter; the frame type is a DMX512 category value; the number of frames is the number of frames included in each group; the frame interval is the interval duration between frames in the same group; the frame size is a variable value following the length of the data field or a fixed value of the number of data bytes; the reset code duration is a parameter for the duration of the reset code maintaining a low level; the start code is fixed to 0; the code interval is the idle level duration between different codes; the segment interval is the interval between the instruction code and the parameter code during cascade coding; the data type is a representation value of the instruction code and the data code.

[0102] Exemplarily, when the DMX512 category value is 0, it indicates that the baud rate of the frame is 250K, the data low bit comes first, including 1 start bit, 8 data bits and 2 stop bits;

[0103] When the DMX512 category value is 1, it means that the baud rate of the frame is 250K, the high bit of the data comes first, including 1 start bit, 8 data bits and 2 stop bits.

[0104] Exemplarily, when the characterization value is 0, it indicates that the instruction code and the data code are separated; when the characterization value is 1, the instruction code and the data code are combined; when the characterization value is 2, it indicates that the instruction code and the data code do not need to be distinguished.

[0105] In summary, the construction format can be described by the characteristic values ​​in Table 1.

[0106] Table 1 Eigenvalue table of construction format

[0107]

[0108]

[0109] Exemplarily, the determining of data content specifically includes:

[0110] According to the characteristic description of the write parameter format, the data content is determined using several fields of the frame sequence number, the instruction code, the parameter code and the chip quantity;

[0111] The frame number is used to identify the frame to which the three fields of instruction code, parameter code and chip quantity belong; the instruction code is a collection of a string of instruction codes arranged in sequence, and this field is not used when the data type is 2; the parameter code is a collection of a string of parameter codes arranged in sequence, and only this field is filled in when the data type is 2; the chip quantity is the number of chips when writing parameters in cascade, and is fixed to 1 when writing parameters in parallel.

[0112] The data that needs to be determined include:

[0113] Frame Sequence Number: It is used to identify the frame to which the instruction code, parameter code and chip quantity belong. This is to ensure the uniqueness of each frame in the sequence and help the receiving end to correctly parse each frame.

[0114] Command Code: A set of command codes arranged in order. If the data type is 2 (no need to distinguish between command codes and data codes), this field is not used.

[0115] Parameter Code: A sequence of parameter codes. If the data type is 2, only the parameter code field is used.

[0116] Number of Chips: In cascade write mode, the number of chips refers to the total number of cascaded lamp chips; in parallel write mode, the number of chips is fixed to 1, indicating that all lamp chips receive the same configuration frame at the same time.

[0117] Through the above steps, the controller can determine the specific data content according to the type of lamp chip and the required write parameter format feature description, thereby constructing a correct configuration frame. This method not only improves the flexibility of configuration, but also ensures that the lamp chip can correctly receive the required configuration information.

[0118] In summary, the data content can be determined by the fields shown in Table 2.

[0119] Table 2 Field description table for determining data content

[0120]

[0121] The following example uses the parallel writing of current levels for UCS512K series chips (the current levels of the 7 channels are 1, 2, 3, 4, 5, 6, and 7 respectively):

[0122] Write parameter format feature description:

[0123] Groups=1

[0124] Group Interval = 0

[0125] GroupEndWait=0

[0126] GroupEndReset=0

[0127] FrameType=1

[0128] FrameQty=1

[0129] FrameInterval=0

[0130] ResetCode = 2500000 / / Reset low level duration 2.5 seconds

[0131] StartCode=0

[0132] Code Interval = 176

[0133] Seg Interval = 176

[0134] DataType=1

[0135] Data field description:

[0136] FrameNum=1

[0137] I nsCode=170,15,52,49,172,144

[0138] ParamCode=1,130,3,132,5,134,7

[0139] Ch i pQty=1

[0140] The following example takes "setting the 4-channel current of the GS8526 chip to a maximum of 26.5mA (this chip only supports parallel writing)" as an example:

[0141] Write parameter format feature description:

[0142] Groups = 1 / / a group of frames

[0143] GroupInterval=0 / / No group interval GroupEndWait=5000 / / 5ms idle level after group GroupEndReset=100 / / 100us reset after group FrameType=0 / / Standard DMX512

[0144] FrameQty=4 / / Each group has 4 frames of dataFrameInterval=10000 / / Frame interval 10msResetCode=88 / / Reset low level duration 88usStartCode=0 / / Reset code is 0CodeInterval=8 / / Code interval 8usSegInterval=0 / / No segment intervalDataType=2 / / Instruction code and data code are not clearly distinguishedData field description:

[0145] FrameNum=1

[0146] ParamCode=0,0,0

[0147] Ch i pQty=1

[0148] FrameNum=2

[0149] ParamCode=0,0,0

[0150] Ch i pQty=1

[0151] FrameNum=3

[0152] ParamCode=6,255,255Ch i pQty=1

[0153] FrameNum=4

[0154] ParamCode=2,255,255

[0155] Ch i pQty=1

[0156] Compared with the prior art, the embodiment of the present invention provides a method for setting lamp chips without controller upgrade, which queries the write parameter format library according to the type of lamp chip. The write parameter format library stores the timing information of the lamp chip. Based on this information, the controller can determine how to construct the communication protocol format; obtain the write parameter format feature description for the lamp chip from the write parameter database. The write parameter database contains the instruction code, parameter code and the valid value range of the parameter code for a specific lamp chip, which helps to determine the actual data content. After determining the information of the protocol format and data content, the controller can construct a lamp chip configuration frame. The lamp chip configuration frame contains all the configuration information required for the lamp chip, which is organized according to the previously determined protocol format and data content.

[0157] The controller sends the configuration frame to the lamp chip in a cascade or parallel manner. This method enables the system to support new lamp chip types without modifying the internal program of the controller, thereby improving the scalability and maintenance efficiency of the system. The present invention not only simplifies the configuration process of the lamp chip, but also enhances the flexibility of the system, so that the system can more easily adapt to new lamp chip types that may appear in the future.

[0158] An embodiment of the present application provides a lamp chip setting device without controller upgrade, including: a construction format module, a construction data module, a configuration frame module and a sending module.

[0159] A format construction module is used to obtain a write parameter format feature description from a write parameter format library and construct a protocol format according to the type of the lamp chip; the write parameter format library includes the timing of the lamp chip.

[0160] A data module is constructed to obtain data field descriptions from a write parameter database and determine data content according to the type of the lamp chip; the write parameter database includes the instruction code, parameter code and value range of the parameter code of the lamp chip.

[0161] A configuration frame module, used to construct a lamp chip configuration frame according to the protocol format and the data content;

[0162] The sending module is used for the controller to send the lamp chip configuration frame to the lamp chip in a cascade manner or a parallel manner.

[0163] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system described above can refer to the corresponding process in the aforementioned method embodiment and will not be described again here.

[0164] Compared with the prior art, the embodiment of the present invention provides a controller-free upgrade lamp chip setting device, which queries the write parameter format library according to the type of lamp chip. The write parameter format library stores the timing information of the lamp chip. Based on this information, the controller can determine how to construct the communication protocol format; obtain the data field description for the lamp chip from the write parameter database. The write parameter database contains the instruction code, parameter code and the valid value range of the parameter code for a specific lamp chip, which helps to determine the actual data content. After determining the information of the protocol format and data content, the controller can construct a lamp chip configuration frame. The lamp chip configuration frame contains all the configuration information required for the lamp chip, which is organized according to the previously determined protocol format and data content.

[0165] The controller sends the configuration frame to the lamp chip in a cascade or parallel manner. This method enables the system to support new lamp chip types without modifying the internal program of the controller, thereby improving the scalability and maintenance efficiency of the system. The present invention not only simplifies the configuration process of the lamp chip, but also enhances the flexibility of the system, so that the system can more easily adapt to new lamp chip types that may appear in the future.

[0166] An embodiment of the present application provides a computer-readable storage medium, which includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the above-mentioned controller upgrade-free lamp chip setting method.

[0167] The computer device may be a computing device such as a smart phone, a tablet computer, a desktop computer, and a cloud server. The computer device may include, but is not limited to, a processor and a memory. Those skilled in the art will appreciate that the figure is merely an example of a computer device and does not constitute a limitation on the computer device, and may include more or fewer components than shown in the figure, or a combination of certain components, or different components, such as input and output devices, network access devices, etc.

[0168] The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0169] In some embodiments, the memory may be an internal storage unit of the computer device, such as a hard disk or memory of the computer device. In other embodiments, the memory may also be an external storage device of the computer device, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the computer device. Further, the memory may also include both an internal storage unit of the computer device and an external storage device. The memory is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as the program code of the computer program, etc. The memory may also be used to temporarily store data that has been output or is to be output.

[0170] An embodiment of the present application provides a computer program product. When the computer program product is run on a computer device, the computer device implements the steps in the above-mentioned method embodiments when executing the computer device.

[0171] In several embodiments provided in the present application, it is understood that each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from that marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved.

[0172] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0173] The above is a preferred embodiment of the present invention. It should be pointed out that a person skilled in the art can make several improvements and modifications without departing from the principle of the present invention. These improvements and modifications are also considered to be within the scope of protection of the present invention.

Claims

1. A method for setting a lamp chip without controller upgrade, characterized in that: include: According to the type of lamp chip, obtain the characteristic description of the writing parameter format from the writing parameter format library and construct the protocol format; the writing parameter format library includes the timing of the lamp chip; According to the type of lamp chip, obtain the data field description from the write parameter database to determine the data content; the write parameter database includes the instruction code, parameter code and parameter code value range of the lamp chip; Constructing a lamp chip configuration frame according to the protocol format and the data content; The controller sends the lamp chip configuration frame to the lamp chip in a cascade manner or a parallel manner.

2. A method for setting a lamp chip without controller upgrade as claimed in claim 1, characterized in that: According to the type of lamp chip, the characteristic description of the write parameter format is obtained from the write parameter format library, and the protocol format is constructed, which specifically includes: If there is a code gap between the instruction code and parameter code of the lamp chip, and they need to be written uniformly by the bus, a first type of single-frame protocol format is constructed as the protocol format; the first type of single-frame protocol format includes a reset code, a start code, an instruction code and a parameter code, and there is a code gap between the reset code, the start code, the instruction code and the parameter code.

3. A method for setting a lamp chip without controller upgrade as claimed in claim 1, characterized in that: According to the type of lamp chip, the characteristic description of the write parameter format is obtained from the write parameter format library, and the protocol format is constructed, which specifically includes: If there is no code gap between the instruction code and parameter code of the lamp chip, and they do not need to be written uniformly by the bus, a second type of single-frame protocol format is constructed as the protocol format; the second type of single-frame protocol format includes a reset code, a start code and several combination codes, and there are code gaps between the reset code, the start code and the combination code, and the combination code includes adjacent instruction codes and parameter codes, and one combination code corresponds to one lamp chip.

4. A method for setting a lamp chip without controller upgrade as claimed in claim 1, characterized in that: According to the type of lamp chip, the characteristic description of the write parameter format is obtained from the write parameter format library, and the protocol format is constructed, specifically including: If the lamp chip requires a combination of several DMX data frames for input, a multi-frame protocol format is constructed; the multi-frame protocol format includes a reset code, a start code and an instruction code, or the multi-frame protocol format includes a reset code, a start code and a parameter code; the number of bytes of the instruction code or parameter code has a lower limit and an upper limit.

5. A method for setting a lamp chip without controller upgrade as claimed in any one of claims 2 to 4, characterized in that: When constructing the protocol format, the protocol format is constructed using several characteristic values ​​including the number of frame groups, group interval, frame group end idle wait, frame group end reset code, frame type, number of frames, frame interval, frame size, reset code duration, start code, code interval, segment interval and data type.

6. A method for setting a lamp chip without controller upgrade as claimed in claim 5, characterized in that: The number of frame groups is the number of configuration frame groups included in one configuration; the group interval is the duration of the interval between groups; the frame group end idle includes a code value and a time parameter; the frame group end reset code includes a code value and a time parameter; the frame type is the DMX512 category value; the number of frames is the number of frames included in each group; the frame interval is the interval duration between frames in the same group; the frame size is a variable value following the length of the data field or a fixed value of the number of data bytes; the reset code duration is a parameter for the duration of the reset code maintaining a low level; the start code is fixed to 0; the code interval is the idle level duration between different codes; the segment interval is the interval between the instruction code and the parameter code during cascade coding; the data type is the representation value of the instruction code and the data code.

7. A method for setting a lamp chip without controller upgrade as claimed in claim 6, characterized in that: When the DMX512 category value is 0, it means that the baud rate of the frame is 250K, the data low bit comes first, including 1 start bit, 8 data bits and 2 stop bits; When the DMX512 category value is 1, it means that the baud rate of the frame is 250K, the high bit of the data comes first, including 1 start bit, 8 data bits and 2 stop bits.

8. A method for setting a lamp chip without controller upgrade as claimed in claim 6, characterized in that: When the characterization value is 0, it indicates that the instruction code and the data code are separated; when the characterization value is 1, the instruction code and the data code are combined; when the characterization value is 2, it indicates that the instruction code and the data code do not need to be distinguished.

9. A method for setting lamp chips without controller upgrade as claimed in claim 1, characterized in that: The determining of data content specifically includes: According to the data field description, the data content is determined using several fields of the frame sequence number, the instruction code, the parameter code and the chip quantity; The frame number is used to identify the frame to which the three fields of instruction code, parameter code and chip quantity belong; the instruction code is a collection of a string of instruction codes arranged in sequence, and this field is not used when the data type is 2; the parameter code is a collection of a string of parameter codes arranged in sequence, and only this field is filled in when the data type is 2; the chip quantity is the number of chips when writing parameters in cascade, and is fixed to 1 when writing parameters in parallel.

10. A lamp chip setting device without controller upgrade, characterized in that: include: A format construction module is used to obtain a write parameter format feature description from a write parameter format library according to the type of the lamp chip and construct a protocol format; the write parameter format library includes the timing of the lamp chip; Construct a data module for obtaining data field descriptions from a write parameter database and determining data content according to the type of the lamp chip; the write parameter database includes the instruction code, parameter code and value range of the parameter code of the lamp chip; A configuration frame module, used to construct a lamp chip configuration frame according to the protocol format and the data content; The sending module is used for the controller to send the lamp chip configuration frame to the lamp chip in a cascade manner or a parallel manner.

Citation Information

Patent Citations

  • Logic design structure of general chip adopting microprocessor architecture and method thereof

    CN101625706A

  • General data analysis platform and method for communication data stream

    CN109981599A

  • Method and device for simulating digital dimming protocol sequential logic through computer and medium

    CN113891537A

  • Optical multi-touch detection control method

    CN114675756A

  • Remote FPGA online upgrading method and system based on BLVDS communication

    CN118069181A