CN114666956B - Bluetooth lamp band driving method and device, storage medium and electronic equipment - Google Patents

Bluetooth lamp band driving method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN114666956B
CN114666956B CN202210532803.6A CN202210532803A CN114666956B CN 114666956 B CN114666956 B CN 114666956B CN 202210532803 A CN202210532803 A CN 202210532803A CN 114666956 B CN114666956 B CN 114666956B
Authority
CN
China
Prior art keywords
bluetooth
driving
target
ports
port
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.)
Active
Application number
CN202210532803.6A
Other languages
Chinese (zh)
Other versions
CN114666956A (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.)
Shenzhen Feitengyun Technology Co ltd
Original Assignee
Shenzhen Feitengyun Technology 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 Shenzhen Feitengyun Technology Co ltd filed Critical Shenzhen Feitengyun Technology Co ltd
Priority to CN202210532803.6A priority Critical patent/CN114666956B/en
Publication of CN114666956A publication Critical patent/CN114666956A/en
Application granted granted Critical
Publication of CN114666956B publication Critical patent/CN114666956B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • H05B47/175Controlling the light source by remote control
    • H05B47/19Controlling the light source by remote control via wireless transmission
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • H05B47/165Controlling the light source following a pre-assigned programmed sequence; Logic control [LC]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

The invention discloses a Bluetooth lamp belt driving method and device, a storage medium and electronic equipment, wherein the Bluetooth lamp belt driving method comprises the following steps: acquiring a Bluetooth beacon control instruction of a target Bluetooth lamp band; analyzing the Bluetooth beacon control instruction to obtain a target color parameter of the target Bluetooth lamp band; determining ports required to be driven in the target Bluetooth lamp band and coding sequences corresponding to the ports based on the target color parameters; the driving time sequence generating device respectively generates driving control time sequences of corresponding ports according to the coding sequences corresponding to the ports; and respectively transmitting the driving control time sequence of each port to the corresponding port. The technical problems that the existing driving program and the driving program modification scheme in the prior art cannot adapt to the length change of a target time sequence period and the driving scheme that one period comprises a plurality of repeated colors are solved.

Description

Bluetooth lamp belt driving method and device, storage medium and electronic equipment
Technical Field
The invention relates to the technical field of light control, in particular to a Bluetooth lamp belt driving method and device, a storage medium and electronic equipment.
Background
In the prior art, with the development of urbanization, a lamp strip is installed in night sky of a city as an indispensable light source, and is suitable for various festivals and public occasions.
However, the arrangement sequence of the three primary color lamp beads of the lamp strip produced by different manufacturers can be different, different driving programs need to be adopted for the lamp strips with different arrangement sequences, but the cost is high, the same driving program is adopted for driving the lamp strips with different primary colors, and the expected effect of the display result is far. For the above problems, a scheme of color corresponding assignment is proposed in the prior art, for example, RGB is arranged in an original lamp strip, a driving lamp effect is RGB, a target lamp strip is GBR, and after color corresponding assignment is performed, display in which the driving lamp effect is RGB can be realized, but if the driving lamp effect is changed, for example, the original RGB needs to be changed into display effects such as RGR, GR, or RGBR, and the like. That is, the existing driver and driver modification schemes cannot adapt to the variation of the target timing cycle length and the driving scheme in which one cycle includes multiple repeated colors.
Disclosure of Invention
The invention aims to provide a Bluetooth lamp belt driving method and device, a storage medium and electronic equipment, and solves the technical problems that the existing driving program and the driving program modification scheme in the prior art cannot adapt to the change of the length of a target time sequence period and the driving scheme that one period comprises a plurality of repeated colors.
In order to achieve the above object, the present invention provides a driving method for a bluetooth lamp strip, where the lamp strip is provided with a driving timing generation device, and the method includes:
acquiring a Bluetooth beacon control instruction of a target Bluetooth lamp band;
analyzing the Bluetooth beacon control instruction to obtain a target color parameter of the target Bluetooth lamp band;
determining ports required to be driven in the target Bluetooth lamp band and coding sequences corresponding to the ports based on the target color parameters;
the driving time sequence generating device respectively generates driving control time sequences of corresponding ports according to the coding sequences corresponding to the ports;
and respectively transmitting the driving control time sequence of each port to the corresponding port.
Optionally, each port is respectively connected with and controls one color lamp bead correspondingly.
Optionally, parsing the bluetooth beacon control instruction to obtain a target color parameter of the target bluetooth light band includes:
and extracting a type parameter, a color quantity parameter and an arrangement sequence position parameter of each color in a color sequence contained in the Bluetooth beacon control instruction according to the Bluetooth beacon control instruction.
Optionally, determining ports to be driven in the target bluetooth light band and coding sequences corresponding to the ports based on the target color parameters; the driving time sequence generating device respectively generates driving control time sequences of corresponding ports according to the coding sequences corresponding to the ports, and the driving control time sequences comprise:
determining a port needing to be driven and controlled according to the type of the target color;
determining a drive control period according to the number of the target colors;
determining a coding sequence of a port corresponding to a target color according to the arrangement sequence position of the target color;
the driving time sequence generating device generates high and low level time sequences according to the coding sequence and the control period of each port.
Optionally, each of the ports corresponds to one of the control timing generation devices, and the method further includes:
and after determining the port needing to be driven and controlled and generating the coding sequence, sending the coding sequence and the period parameter to a control time sequence generating device of the corresponding port.
Optionally, determining whether the bluetooth beacon control command sent by the user contains a period parameter,
if the Bluetooth beacon control command is analyzed to contain a period parameter, determining a time control parameter according to the period;
and if the time control parameter does not contain the period parameter, determining the time control parameter by adopting a preset period parameter.
The present application further proposes an electronic device, comprising:
the signal acquisition module acquires a Bluetooth beacon control instruction of the target Bluetooth lamp band;
the analysis module analyzes the Bluetooth beacon control instruction to obtain a target color parameter of the target Bluetooth lamp band;
the control module is used for determining ports to be driven in the target Bluetooth lamp band and coding sequences corresponding to the ports based on the target color parameters;
the driving time sequence generating device respectively generates driving control time sequences of corresponding ports according to the coding sequences corresponding to the ports; and respectively transmitting the driving control time sequence of each port to the corresponding port.
It should be noted that, because the above-mentioned information interaction and execution processes between the devices/units are based on the same concept as the embodiment of the bluetooth lamp tape driving method of the present application, specific functions and technical effects thereof may be referred to specifically in the method embodiment section, and are not described herein again.
The present application further provides a storage medium, where at least one executable instruction is stored in the storage medium, and when the executable instruction is executed on an electronic device, the electronic device executes the operations of the bluetooth lamp band driving method described above.
The present application further provides an electronic device, comprising: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction causes the processor to execute the operation of the Bluetooth lamp belt driving method.
The present application further proposes an electronic device, which includes: a controller and a light strip;
the controller is electrically connected with the lamp strip, and a bluetooth lamp strip driving program is loaded on the controller and used for realizing the operation of the bluetooth lamp strip driving method.
The driving method of the Bluetooth lamp belt comprises the following steps: acquiring a Bluetooth beacon control instruction of a target Bluetooth lamp band; analyzing the Bluetooth beacon control instruction to obtain a target color parameter of the target Bluetooth lamp band; determining ports required to be driven in the target Bluetooth lamp band and coding sequences corresponding to the ports based on the target color parameters; the driving time sequence generating device respectively generates driving control time sequences of corresponding ports according to the coding sequences corresponding to the ports; and respectively transmitting the driving control time sequence of each port to the corresponding port. By the method, the Bluetooth beacon control instruction of the target Bluetooth lamp band can be analyzed to obtain the target color parameter, the port required to be driven is determined according to the target color parameter, and the driving control time sequence corresponding to the port is generated; and respectively transmitting the driving control time sequence of each port to the corresponding port. Therefore, the technical problems that the existing driving program and the driving program modification scheme can not adapt to the length change of the target time sequence period and the driving scheme that one period comprises a plurality of repeated colors are solved.
Drawings
The invention is further described below with reference to the accompanying drawings and examples;
fig. 1 is a schematic flow chart of a driving method of a bluetooth lamp strip in one embodiment.
Fig. 2 is a schematic circuit diagram of the bluetooth light strip in one embodiment.
Fig. 3 is a schematic diagram of a driving control sequence generated in the driving method of the bluetooth light band in an embodiment.
Fig. 4 is a schematic flowchart of a driving method of a bluetooth light strip in another embodiment.
Fig. 5 is a schematic block diagram of a bluetooth light strip driver/electronic device in one embodiment.
Fig. 6 is a schematic diagram of a module of the bluetooth light strip driving apparatus in one embodiment.
Detailed Description
Reference will now be made in detail to the present preferred embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like reference numerals refer to like elements throughout.
The invention provides a Bluetooth lamp belt driving method and device, a storage medium and electronic equipment, and aims to solve the technical problems that the existing driving program and driving program modification scheme in the prior art cannot adapt to the change of the target time sequence period length and a driving scheme with one period comprising a plurality of repeated colors.
In the following examples, the letters are exemplified in which R or R is red, G or G is green, and B or B is blue.
In an embodiment, as shown in fig. 1, a method for driving a bluetooth lamp strip, where the bluetooth lamp strip is provided with a driving timing generation device, includes:
s1, acquiring a Bluetooth beacon control instruction of a target Bluetooth lamp band;
the lamp belt Bluetooth beacon control instruction comprises a lamp belt control instruction of a target Bluetooth lamp belt given by a user and a Bluetooth beacon of the target Bluetooth lamp belt, wherein the lamp belt control instruction given by the user is a lamp belt control instruction with various color arrangements such as RGB, RRGGBBR, GBRR and the like. In addition, the bluetooth beacon control command further comprises parameters such as the color of lamp beads, the quantity of the lamp beads, the arrangement sequence of the lamp beads and the like of the target bluetooth lamp strip.
Optionally, the light band bluetooth beacon control instruction may be implemented by referring to the following manner, in the bluetooth light band, the light band bluetooth beacon control instruction generally consists of BLE _ HC _ AAA _ BBB _ C or BLE _ HC _ AAA _ BBB _ C, where;
BLE or BLE), case-insensitive, the identification being a bluetooth device;
HC (or HC), case-insensitive, the identification is that the lamp strip type is the magic lamp strip;
AAA: case-insensitive, magic color RGB order (nine color sequencing combinations of RGB), non-RGB fields are illegal; the light strip is based on RGB color mixing (R (0-255) G (0-255) B (0-255)); such as RGB, RRGGBBR, GBRR, etc.; this data is the light strip control command.
BBB: the number of lamp beads is (1 to 999), and the illegal field is set to be 50 by default;
c: the type of the lamp strip, (0 to 3), the illegal field is set to be 0 by default; 0 for WS2811 magic color IC, 1 for WS2812 magic color IC, 2 for SM16703 magic color IC, and 3 for TM1904 magic color IC.
It should be noted that the bluetooth beacon of the bluetooth beacon control instruction is obtained from the target bluetooth lamp band in advance by the device that sends the bluetooth beacon control instruction, or may be directly read in the target bluetooth lamp band, and after receiving the lamp band control instruction of the target bluetooth lamp band given by the user, the bluetooth beacon control instruction is composed of the bluetooth signal and the lamp band control instruction, and the bluetooth beacon control instruction may be generated at the user side or the lamp band end.
S2, analyzing the Bluetooth beacon control command to obtain a target color parameter of the target Bluetooth lamp band;
the step of analyzing the bluetooth beacon control command actually means obtaining a target color parameter of the target bluetooth light band, and the target color parameter contained in the bluetooth beacon control command can be distinguished through a generation mode of the bluetooth beacon control command.
Optionally, the target color parameter includes a type parameter, a number of colors parameter, and an arrangement order position parameter of each color in the color sequence.
S3, determining ports to be driven in the target Bluetooth lamp band and coding sequences corresponding to the ports based on the target color parameters;
for example, if the received bluetooth control command is GBRR, the target color may be analyzed to determine that the port to be driven has three ports G, B, and R, and if the received bluetooth control command is GR, the target color may be analyzed to determine that the port to be driven has two ports G and R
The coded sequence actually refers to a coded sequence of colors corresponding to the ports, 4 target colors can be determined to be included in each cycle according to the GBRR instruction, and if the sequence position of the G color arrangement is the first position, the coded sequence of the G port in one cycle is determined to be 1000; if the arrangement sequence position of the B color is the second position, the coding sequence of the G port in one period is determined to be 0100; and if the arrangement sequence position of the R color is the third four bits, the coding sequence of the R port in one period is determined to be 0011.
S4, the driving time sequence generating device respectively generates driving control time sequences of corresponding ports according to the coding sequences corresponding to the ports;
the generated drive control timing has a characteristic of a period and a magnitude, and is also called a drive signal.
The driving time sequence generating device can generate periodic cycle high and low levels of the corresponding ports according to the coding sequences corresponding to the ports, wherein the coding sequence is 1 corresponding to the high level, and 0 corresponding to the low level. The high level size value may be determined according to the driving voltage of each lamp.
And S5, respectively transmitting the driving control time sequence of each port to the corresponding port.
According to the scheme, the target color parameter can be obtained by analyzing the Bluetooth beacon control instruction of the target Bluetooth lamp band, and the drive control time sequence of the corresponding port is generated according to the target color parameter; the driving control time sequences of the ports are respectively transmitted to the corresponding ports, so that the driving control time sequences can be generated by analyzing the Bluetooth beacon control instructions of different periods and different repeated color schemes through the scheme, and the driving program modification scheme can be adapted to the technical problems of the change of the target time sequence period and the driving scheme with one period comprising a plurality of repeated colors.
Optionally, referring to fig. 2, each of the ports is connected to and controls one color lamp bead.
Because each port is respectively connected with and correspondingly controls one color lamp bead, the driving can be quickly realized by sending the driving control time sequences of different colors to the corresponding ports. In this case, the port may be a port where each chip U1/U./Un is connected to each lamp bead RGB as in fig. 2, or may be a port where one port is connected to a plurality of lamp beads of the same color. It should be noted that n is at most 999.
Optionally, parsing the bluetooth beacon control instruction to obtain a target color parameter of the target bluetooth light band includes:
and extracting a type parameter, a color quantity parameter and an arrangement sequence position parameter of each color in a color sequence contained in the Bluetooth beacon control instruction according to the Bluetooth beacon control instruction.
The bluetooth beacon control command may be understood by referring to BLE _ HC _ AAA _ BBB _ C or BLE _ HC _ AAA _ BBB _ C, where different fields contain different meaning, for example:
the type parameter in the color sequence can be the combination of different colors such as RGB of the lamp bead of the target Bluetooth lamp strip, for example, c. The color quantity parameter of the target bluetooth lamp strip is the quantity of the colors of the lamp beads, such as BBB, the arrangement sequence position parameter of each color is the lamp strip control instruction in the bluetooth beacon control instruction, and such as AAA is set to be the lamp strip control instruction arranged in various colors of RGB, RRGGBBR, GBRR and the like.
In an optional embodiment, as shown in fig. 4, based on the target color parameter, the ports that need to be driven in the target bluetooth light band and the coding sequences corresponding to the ports are determined; the driving time sequence generating device respectively generates driving control time sequences of corresponding ports according to the coding sequences corresponding to the ports, and the driving control time sequences comprise:
s341, determining a port needing to be driven and controlled according to the type of the target color;
taking the target color red as an example, at this time, the ports to which all red beads are connected need to be determined, and the determined port that needs to be driven and controlled is IN1.
S342, determining time control parameters according to the number of the target colors;
the time control parameter refers to the duration of each high and low level. The number RGGGBRGGB of the target color is assumed, so that the length of the driving control period at this time can be determined to be 9 signals, the specific time is determined according to the display time of each signal, and if the period is 1S, the time control parameter of each color is 1/9S. Assuming the number RGBRGB of the target colors, there are two periods in the field at this time, so that it can be determined that the driving control period at this time is the length of 3 signals, the specific time is determined according to the display time of each signal, and if each period is 1S, the driving control parameter is 1/3S, but the coding sequence of each port is R:100, g 010, b.
S343, determining a coding sequence of a port corresponding to the target color according to the arrangement sequence position of the target color;
assuming that the arrangement sequence positions RGGGBRGGB in the target color parameter are sequentially at the second, third, fourth, seventh and eighth positions, the target color corresponds to the coding sequence of the port, and the generated coding sequence of the G port is 011100110. It should be noted that the arrangement sequence position in the target color parameter at this time is actually a driving scheme input by the user, that is, a light band control instruction.
And S344, the driving time sequence generating device generates high and low level time sequences according to the coding sequence and the control period of each port.
The high and low level timings are generated according to the code sequence and the control period of each port, and if the default period is 2us, the high and low level timings can be as shown in fig. 3, that is, in G color, the high and low level timings are correspondingly generated according to the code sequence 011100110, and the duration of each level is 1/9 × 2us.
In summary, according to the above scheme, the coding sequence can be determined according to the arrangement sequence position only when the arrangement sequence position is obtained, so that a high-low level time sequence can be generated to drive the lamp strip.
Optionally, each of the ports corresponds to one of the control timing generation devices, and the method further includes:
and after determining the port required to be driven and controlled and generating the coding sequence, sending the coding sequence and the period parameter to a control time sequence generating device of the corresponding port.
The period parameter refers to the duration of each period.
Optionally, determining whether the bluetooth beacon control command sent by the user contains a period parameter,
if the Bluetooth beacon control command is analyzed to contain a period parameter, determining a time control parameter according to the period;
if the time control parameter does not contain the period parameter, the preset period parameter is adopted to determine the time control parameter
The period parameters refer to, for example, 0.1s,1s, etc., and the time-dependent control parameters refer to the level duration for each 1 or 0 of a code sequence such as the drive control period 011100110.
By the scheme, any one Bluetooth beacon control command can be directly analyzed, and the coding sequence can be carried out according to the target color parameter no matter whether the Bluetooth beacon control command has time control parameters or not. Thus, each target color is controlled to be suitable for a scheme in which the target timing period is changed in length and a driving scheme in which one period includes a plurality of repeated colors is adopted.
In order to solve the above problem, as shown in fig. 5, the present application further provides a bluetooth lamp strip driving device 300, including:
the acquisition module 310 acquires a bluetooth beacon control instruction of a target bluetooth lamp band;
the analyzing module 320 analyzes the bluetooth beacon control instruction to obtain a target color parameter of the target bluetooth light band;
the encoding module 330 determines ports to be driven in the target bluetooth light band and encoding sequences corresponding to the ports based on the target color parameters;
the driving time sequence generating device 340 generates driving control time sequences of corresponding ports according to the coding sequences corresponding to the ports;
the control module 350 transmits the driving control timing sequence of each port to the corresponding port.
By the scheme, any one Bluetooth beacon control command can be directly analyzed, and the coding sequence can be carried out according to the target color parameter no matter whether the Bluetooth beacon control command has time control parameters. Each target color is thus controlled to be suitable for a scheme in which the target timing period varies in length and a driving scheme in which one period includes a plurality of repeated colors.
In order to solve the above problem, as shown in fig. 6, the present application also proposes an electronic device, which may include: a processor (processor) 402, a communication Interface 404, a memory 406, and a communication bus 408.
Wherein: the processor 402, communication interface 404, and memory 406 communicate with each other via a communication bus 408. A communication interface 404 for communicating with network elements of other devices, such as clients or other servers. The processor 402 is configured to execute the program 410, and may specifically execute the relevant steps in the above-described embodiment of the method for remotely controlling unlocking a vehicle door.
In particular, program 410 may include program code comprising computer-executable instructions.
The processor 402 may be a central processing unit CPU, or an Application Specific Integrated Circuit ASIC (Application Specific Integrated Circuit), or one or more Integrated circuits configured to implement an embodiment of the present invention. The device for remotely controlling unlocking of the vehicle door comprises one or more processors, which can be the same type of processor, such as one or more CPUs; or may be different types of processors such as one or more CPUs and one or more ASICs.
And a memory 406 for storing a program 410. Memory 406 may comprise high-speed RAM memory, and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
In order to solve the above problem, the present application further provides a storage medium, where at least one executable instruction is stored in the storage medium, and when the executable instruction runs on an electronic device, the electronic device executes the operation of the bluetooth lamp strip driving method as described above.
In order to solve the above problem, the present application also provides an electronic device, including: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction causes the processor to execute the operation of the Bluetooth lamp belt driving method.
In order to solve the above problem, the present application also provides an electronic device, including:
the controller, lamp area driver and bluetooth lamp area driver carry on in the controller, and the controller is connected with the lamp area electricity.
The controller is loaded with a bluetooth lamp band driving program and used for driving the bluetooth lamp band so as to realize the operation of the bluetooth lamp band driving method.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.

Claims (8)

1. A Bluetooth lamp belt driving method is characterized in that a driving time sequence generating device is arranged on a Bluetooth lamp belt, and the method comprises the following steps:
acquiring a Bluetooth beacon control instruction of a target Bluetooth lamp band;
analyzing the Bluetooth beacon control command to obtain a target color parameter of the target Bluetooth lamp band;
determining ports required to be driven in the target Bluetooth lamp band and coding sequences corresponding to the ports based on the target color parameters;
the driving time sequence generating device respectively generates driving control time sequences of corresponding ports according to the coding sequences corresponding to the ports;
respectively transmitting the driving control time sequence of each port to the corresponding port;
analyze bluetooth beacon control command is in order to obtain the target color parameter in target bluetooth lamp area, include:
extracting type parameters, color quantity parameters and arrangement sequence position parameters of all colors in a color sequence contained in the Bluetooth beacon control instruction according to the Bluetooth beacon control instruction;
determining ports required to be driven in the target Bluetooth lamp band and coding sequences corresponding to the ports based on the target color parameters; the driving time sequence generating device respectively generates driving control time sequences of corresponding ports according to the coding sequences corresponding to the ports, and the driving control time sequences comprise:
determining a port needing to be driven and controlled according to the type of the target color;
determining a time control parameter according to the number of the target colors;
determining a coding sequence of a port corresponding to a target color according to the arrangement sequence position of the target color;
and the driving time sequence generating device generates high and low level time sequences according to the coding sequence and the time control parameters of each port.
2. The method according to claim 1, wherein each of the ports is connected to a corresponding color lamp bead.
3. The method for driving the bluetooth lamp strip according to claim 1, wherein each of the ports corresponds to one of the driving timing generation devices, the method further comprising:
and after determining the port needing to be driven and controlled and generating the coding sequence, sending the coding sequence and the period parameter to a driving time sequence generating device of the corresponding port.
4. The method according to claim 1, wherein determining whether the Bluetooth beacon control command sent by the user contains a period parameter,
if the Bluetooth beacon control command is analyzed to contain period parameters, time control parameters are determined according to the period;
and if the time control parameter does not contain the period parameter, determining the time control parameter by adopting a preset period parameter.
5. An electronic device, comprising:
the signal acquisition module acquires a Bluetooth beacon control instruction of the target Bluetooth lamp band;
the analysis module analyzes the Bluetooth beacon control instruction to obtain a target color parameter of the target Bluetooth lamp band;
the analyzing the bluetooth beacon control command to obtain the target color parameter of the target bluetooth light band comprises:
extracting type parameters, color quantity parameters and arrangement sequence position parameters of all colors in a color sequence contained in the Bluetooth beacon control instruction according to the Bluetooth beacon control instruction;
the control module is used for determining ports to be driven in the target Bluetooth lamp band and coding sequences corresponding to the ports based on the target color parameters;
the driving time sequence generating device respectively generates driving control time sequences of corresponding ports according to the coding sequences corresponding to the ports; respectively transmitting the driving control time sequence of each port to the corresponding port;
the drive control timing includes:
determining a port needing to be driven and controlled according to the type of the target color;
determining a time control parameter according to the number of the target colors;
determining a coding sequence of a port corresponding to a target color according to the arrangement sequence position of the target color;
and the driving time sequence generating device generates high and low level time sequences according to the coding sequence and the time control parameters of each port.
6. A storage medium having stored therein at least one executable instruction, which when executed on an electronic device, causes the electronic device to perform the operations of the bluetooth lamp strip driving method according to any one of claims 1 to 4.
7. An electronic device, comprising: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface are communicated with each other through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction causes the processor to execute the operation of the Bluetooth lamp belt driving method according to any one of claims 1 to 4.
8. An electronic device, characterized in that the electronic device comprises: a controller and a light strip;
the controller is electrically connected with the lamp strip, and a bluetooth lamp strip driving program is loaded on the controller and used for realizing the operation of the bluetooth lamp strip driving method according to any one of claims 1 to 4.
CN202210532803.6A 2022-05-17 2022-05-17 Bluetooth lamp band driving method and device, storage medium and electronic equipment Active CN114666956B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210532803.6A CN114666956B (en) 2022-05-17 2022-05-17 Bluetooth lamp band driving method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210532803.6A CN114666956B (en) 2022-05-17 2022-05-17 Bluetooth lamp band driving method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN114666956A CN114666956A (en) 2022-06-24
CN114666956B true CN114666956B (en) 2022-11-29

Family

ID=82037712

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210532803.6A Active CN114666956B (en) 2022-05-17 2022-05-17 Bluetooth lamp band driving method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN114666956B (en)

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101603648B (en) * 2008-06-10 2012-05-30 矽诚科技股份有限公司 Parallel type single-line addressing lighting device
CN104507218B (en) * 2014-12-15 2017-03-15 罗小华 Based on the color lamp device that power line edge signal is controlled
CN205961497U (en) * 2016-05-30 2017-02-15 深圳市蚂蚁雄兵物联技术有限公司 Bluetooth ball bubble lamp
CN113192457B (en) * 2019-06-10 2022-06-28 酷矽半导体科技(上海)有限公司 Drive circuit, drive chip, display system and display method
CN110461068B (en) * 2019-08-28 2021-07-27 江门市征极光兆科技有限公司 LED lamp strip controller output wiring control method, lamp strip controller, system and storage medium
CN112616225A (en) * 2020-12-09 2021-04-06 漳州立达信光电子科技有限公司 Color light lamp illumination control method and terminal equipment

Also Published As

Publication number Publication date
CN114666956A (en) 2022-06-24

Similar Documents

Publication Publication Date Title
US8324824B2 (en) 1-wire communication protocol and interface circuit
CN108267918B (en) Projection light source drive control circuit
US20020135605A1 (en) Method of and system for automatically setting display mode of monitor, and recording medium performing the same
US20190342983A1 (en) A lighting system for controlling an led array
CN114727452B (en) Multi-primary color light control method based on RGB mode and application thereof
CN115334710B (en) Isothermal line color matching control method and application thereof
CN114666956B (en) Bluetooth lamp band driving method and device, storage medium and electronic equipment
CN105471503B (en) Visible light illumination preequalization communication channel decoding method
US6384754B1 (en) Decoder testing apparatus and methods that simultaneously apply the same multibit input data to multiple decoders
JP2579362B2 (en) Screen display device
CN114898583B (en) Signal lamp control scheme determining method and data processing method of intelligent traffic equipment
CN112673632A (en) Data processing method, device and system, system controller and module controller
JP2010085725A (en) Projection apparatus, projection method and program
CN114900925B (en) Multi-primary color light control method and application thereof
KR101722576B1 (en) Spectral color reproduction using a high-dimension reflective display
US9089025B2 (en) 1-wire communication protocol and interface circuit for high voltage applications
CN112601328A (en) Lamp control method and device, lamp and storage medium
CN117392944B (en) Display screen driving circuit, method and device
CN109152163B (en) Control method and device for breathing lamp in non-real-time system
KR102462007B1 (en) Lighting device based scenario activation, controlling device and method controlling the lighting device
KR102093280B1 (en) Performance directing system
CN111915601B (en) Abnormality test method, device and system for intelligent terminal
US6987461B2 (en) System and method for addressing optical emanations from an information processing device
CN115190680A (en) Lamp string driving circuit and curtain screen
CN113347367A (en) Light supplement lamp, control method and device thereof, electronic equipment, medium and shooting system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant