Disclosure of Invention
In order to solve the above problems, the present invention provides a method for burning a control program of an LED lamp group, comprising the following steps:
s1, determining a plurality of programs to be burned of the LED lamp group, and setting burning numbers for the programs to be burned;
s2, the burner sequentially burns the programs to be burnt into the light control chip of the LED lamp group according to the burning numbers;
and S3, the light control chip executes light control operation on the LED lamp group according to the plurality of programs to be burned.
As a preferred embodiment, the setting of the burning numbers for the plurality of programs to be burned specifically includes:
setting a program burning start zone bit and a program burning end zone bit; setting a burning number, a program burning starting bit and a program burning ending bit of each program to be burned, and storing the burning number, the program burning starting bit and the program burning ending bit in a linked list;
the program recording end bit points to a recording number of a next program to be recorded; the program burning starting bit of a first program to be burnt of the plurality of programs to be burnt is the program burning starting marker bit; the program burning ending bit of the last program to be burned of the plurality of programs to be burned points to the program burning ending mark bit.
As a preferred embodiment, the burner sequentially burns the plurality of programs to be burnt into the light control chip of the LED lamp set according to the burning numbers, specifically;
the burner acquires the burning serial number, the program burning starting bit and the program burning ending bit in the linked list, burns the first program to be burned according to the direction of the burning starting bit, and burns the next program to be burned according to the direction of the ending bit of the first program to be burned after the burning of the first program to be burned is finished until the burning of the last program to be burned is finished;
if all the programs to be burned are burned successfully, setting the program burning ending mark position pointed by the program burning ending position of the last program to be burned; transmitting the value of the program burning end zone bit to the burner, and the burner sends a burning success signal according to the value;
and if the program to be burned has the program with the burning failure, sending the serial number of the program with the burning failure to the burner.
As a preferred embodiment, if there is a program with recording failure in the program to be recorded, sending the number of the program with recording failure to the recorder, further comprising;
if the program to be burned has the program which fails in burning, the number of the program which fails in burning is sent to the burner and the user interface operation terminal so as to prompt the user which programs to be burned fail in burning and prompt the user whether to re-burn the program which fails in burning;
if the user selects a program which fails in re-burning, re-burning the program corresponding to the burning number according to the burning number; after the burning is successful, storing the original data of the program which fails to burn in the linked list;
and if the user does not select the program with the burning failure again, deleting the burning number corresponding to the program with the burning failure in the linked list, and pointing the program burning ending bit of the previous program of the program with the burning failure to the program burning ending bit of the next program of the program with the burning failure.
The invention provides a burning method of an LED lamp bank control program, which comprises the following steps of firstly, determining a plurality of programs to be burnt of an LED lamp bank, and setting burning numbers for the programs to be burnt; then, the burner sequentially burns the programs to be burnt into the light control chip of the LED lamp group according to the burning serial numbers; and finally, the light control chip executes light control operation on the LED lamp group according to the plurality of burning programs to be burned. By setting the burning numbers for the programs to be burned, the corresponding programs to be burned can be conveniently selected for burning according to the actual requirements of users, so that the program burning efficiency is improved; in addition, by arranging the linked list, the sequential burning of a plurality of programs to be burned is ensured, and the burning efficiency and accuracy are improved; and finally, the success or failure of the burning is fed back, so that developers are helped to accurately obtain burning results and make adjustments in time.
As another implementation way, the invention also provides a device adopting the method, which is characterized by comprising a user interface operation terminal, an LED lamp group and a burner;
the user interface operation terminal, the LED lamp set and the burner are electrically connected in pairs;
the burner determines a plurality of programs to be burned of the LED lamp group and sets burning numbers for the programs to be burned;
the burner sequentially burns the programs to be burnt into the light control chip of the LED lamp set according to the burning serial numbers;
the lighting control chip executes lighting control operation on the LED lamp group according to the plurality of programs to be burned;
and the user interface operation terminal sends prompt information to the user according to the burning results of the programs to be burned.
The invention provides a burning device for an LED lamp bank control program, which comprises the following steps of firstly, determining a plurality of programs to be burned of an LED lamp bank, and setting burning numbers for the programs to be burned; then, the burner sequentially burns the programs to be burnt into the light control chip of the LED lamp group according to the burning serial numbers; and finally, the light control chip executes light control operation on the LED lamp group according to the plurality of burning programs to be burned. By setting the burning numbers for the programs to be burned, the corresponding programs to be burned can be conveniently selected for burning according to the actual requirements of users, so that the program burning efficiency is improved; in addition, by arranging the linked list, the sequential burning of a plurality of programs to be burned is ensured, and the burning efficiency and accuracy are improved; and finally, the success or failure of the burning is fed back, so that developers are helped to accurately obtain burning results and make adjustments in time.
The first embodiment is as follows:
the invention provides a burning method of an LED lamp group control program, which comprises the following steps:
s1, determining a plurality of programs to be burned of the LED lamp group, and setting burning numbers for the programs to be burned; for example, the LED lamp group a has 5 programs to be burned, the 5 programs to be burned may be lighting control schemes of 5 LED lamp groups a, and the burning numbers N1-N5 are set for the programs to be burned respectively; of course, the 5 burning numbers can also be discontinuous numbers. It should be noted that the burning number may be preset, or may be temporarily set based on the LED lamp group; if the burning numbers are preset, since all the programs to be burned are numbered, the LED lamp group includes not only a, but also B, C and other lamp groups, and the burning programs of different lamp groups may be different, the burning numbers may be discontinuous for the LED lamp group a, for example, N1, N3, N4, N5, N7; if the burning number is temporarily set based on the LED lamp group, the burning numbers are continuous, namely N1-N5.
S2, the burner sequentially burns the programs to be burnt into the light control chip of the LED lamp group according to the burning numbers; the sequential burning is performed based on the sequence of the burning numbers from small to large, namely, if the burning numbers are continuous, the burning sequence is N1 to N5; if the burning number is not continuous, the burning sequence is N1, N3, N4, N5 and N7.
And S3, the light control chip executes light control operation on the LED lamp group according to the plurality of programs to be burned. And the light control chip writes the program which is successfully burned into the memory, and calls a corresponding light control program to control the light of the LED lamp group according to the operation instruction of the user.
As a preferred embodiment, the setting of the burning numbers for the plurality of programs to be burned specifically includes:
setting a program burning start zone bit and a program burning end zone bit; setting a burning number, a program burning starting bit and a program burning ending bit of each program to be burned, and storing the burning number, the program burning starting bit and the program burning ending bit in a linked list;
the program recording end bit points to a recording number of a next program to be recorded; the program burning starting bit of a first program to be burnt of the plurality of programs to be burnt is the program burning starting marker bit; the program burning ending bit of the last program to be burned of the plurality of programs to be burned points to the program burning ending mark bit.
As a preferred embodiment, the burner sequentially burns the plurality of programs to be burnt into the light control chip of the LED lamp set according to the burning numbers, specifically;
the burner acquires the burning serial number, the program burning starting bit and the program burning ending bit in the linked list, burns the first program to be burned according to the direction of the burning starting bit, and burns the next program to be burned according to the direction of the ending bit of the first program to be burned after the burning of the first program to be burned is finished until the burning of the last program to be burned is finished; as shown in the following table:
if all the programs to be burned are burned successfully, setting the program burning ending mark position pointed by the program burning ending position of the last program to be burned; transmitting the value of the program burning end zone bit to the burner, and the burner sends a burning success signal according to the value; for example, after the program N7 finishes recording, the recording end position of N7 is set, and the value of the set is transmitted to the recorder, which sends out a recording success signal according to the value.
And if the program to be burned has the program with the burning failure, sending the serial number of the program with the burning failure to the burner. For example, if the program to be burned N4 fails to be burned during the program burning process, the ending flag of the program N3 is directly modified to the starting flag of the program N5 to start the program N5; and sends the program burning number N4 to the burner after the burning of the program N7 is finished.
As a preferred embodiment, if there is a program with recording failure in the program to be recorded, sending the number of the program with recording failure to the recorder, further comprising;
if the program to be burned has the program which fails in burning, the number of the program which fails in burning is sent to the burner and the user interface operation terminal so as to prompt the user which programs to be burned fail in burning and prompt the user whether to re-burn the program which fails in burning;
if the user selects a program which fails in re-burning, re-burning the program corresponding to the burning number according to the burning number; after the burning is successful, storing the original data of the program which fails to burn in the linked list; for example, if the user newly selects the program to be burned N4 to be burned to burn the LED lamp group a, the linked list relationship in the table is maintained.
And if the user does not select the program with the burning failure again, deleting the burning number corresponding to the program with the burning failure in the linked list, and pointing the program burning ending bit of the previous program of the program with the burning failure to the program burning ending bit of the next program of the program with the burning failure. For example, if the user abandons burning the program N4 to be burned to the LED lamp group a, the linked list relationship in the above table is modified as shown in the following table:
the invention provides a burning method of an LED lamp bank control program, which comprises the following steps of firstly, determining a plurality of programs to be burnt of an LED lamp bank, and setting burning numbers for the programs to be burnt; then, the burner sequentially burns the programs to be burnt into the light control chip of the LED lamp group according to the burning serial numbers; and finally, the light control chip executes light control operation on the LED lamp group according to the plurality of burning programs to be burned. By setting the burning numbers for the programs to be burned, the corresponding programs to be burned can be conveniently selected for burning according to the actual requirements of users, so that the program burning efficiency is improved; in addition, by arranging the linked list, the sequential burning of a plurality of programs to be burned is ensured, and the burning efficiency and accuracy are improved; and finally, the success or failure of the burning is fed back, so that developers are helped to accurately obtain burning results and make adjustments in time.
As another implementation way, the invention also provides a device adopting the method, which is characterized by comprising a user interface operation terminal, an LED lamp group and a burner;
the user interface operation terminal, the LED lamp set and the burner are electrically connected in pairs;
the burner determines a plurality of programs to be burned of the LED lamp group and sets burning numbers for the programs to be burned;
the burner sequentially burns the programs to be burnt into the light control chip of the LED lamp set according to the burning serial numbers;
the lighting control chip executes lighting control operation on the LED lamp group according to the plurality of programs to be burned;
and the user interface operation terminal sends prompt information to the user according to the burning results of the programs to be burned.
It should be noted that the apparatus of the present invention can be implemented by using a functional module for implementing the steps in the foregoing method, which is not described herein again.
The invention provides a burning device for an LED lamp bank control program, which comprises the following steps of firstly, determining a plurality of programs to be burned of an LED lamp bank, and setting burning numbers for the programs to be burned; then, the burner sequentially burns the programs to be burnt into the light control chip of the LED lamp group according to the burning serial numbers; and finally, the light control chip executes light control operation on the LED lamp group according to the plurality of burning programs to be burned. By setting the burning numbers for the programs to be burned, the corresponding programs to be burned can be conveniently selected for burning according to the actual requirements of users, so that the program burning efficiency is improved; in addition, by arranging the linked list, the sequential burning of a plurality of programs to be burned is ensured, and the burning efficiency and accuracy are improved; and finally, the success or failure of the burning is fed back, so that developers are helped to accurately obtain burning results and make adjustments in time.
The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes performed by the present specification and drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.