Lamp control method, electronic equipment, control system and computer readable medium

By setting up a fault detection chip in outdoor constant lighting fixtures and connecting them with the lamp controller through a single-line bidirectional communication link, the problem of maintenance difficulties in the abnormal working of the lamp is solved, real-time control of the lamp is achieved, and safety is improved and maintenance costs are reduced.

CN119629807AInactive Publication Date: 2025-03-14HANGZHOU ROLEDS TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202510156687.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-13
Publication Date
2025-03-14
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

When existing outdoor lighting fixtures are working abnormally, maintenance personnel cannot know in time, resulting in the inability to predict and deal with possible safety hazards.

Method used

A lamp fault detection chip is set up in the lamp, and it is connected to the lamp controller through a single-line bidirectional communication link. The lamp controller sends control data to the fault detection chip based on the preset private communication protocol to realize real-time control of the lamp.

Benefits of technology

By controlling the lamps in real time, the safety of lamps is improved and the maintenance cost of lamps is reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119629807A_ABST
    Figure CN119629807A_ABST
Patent Text Reader

Abstract

The invention discloses a lamp control method, electronic equipment, a control system and a computer readable medium, a lamp controller is connected with lamp fault detection chips in a plurality of lamps through a single-wire bidirectional communication link, and the single-wire bidirectional communication link transmits data of one bit through one clock pulse. The lamp controller sends lamp control data to the plurality of lamp fault detection chips; wherein the lamp control data comprises a plurality of data units, the types of the data units comprise a reset data group and a control data group, the data group comprises 16 bits of data, the data of a high bit is in front of the data of a low bit, and the reset data group comprises a binary number 0 of 16 bits. The lamp can be controlled in real time, so that the use safety of the lamp is improved, and the maintenance cost of the lamp is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of circuit technology, and in particular, to a lamp control method, an electronic device, a control system and a computer-readable medium. Background Art

[0002] Current outdoor always-on lamps are powered by direct current (DC), and usually work continuously according to pre-designed parameters. However, when the lamps are working abnormally, maintenance personnel cannot be informed in time, and cannot predict and deal with possible safety hazards. Summary of the invention

[0003] The present application aims to solve one of the technical problems in the related art to a certain extent. To this end, the present application provides a lamp control method, an electronic device, a control system and a computer readable medium.

[0004] As a first aspect of the present application, a lamp control method is provided, which is used for a lamp controller, wherein the lamp controller is connected to lamp fault detection chips in a plurality of lamps via a single-line bidirectional communication link, and the single-line bidirectional communication link transmits data of one bit with one clock pulse, and the method comprises: Send lamp control data to multiple lamp fault detection chips; wherein the lamp control data includes multiple data units, and the types of the data units include reset data groups and control data groups, the data groups include 16 bits of data with high-bit data in the front and low-bit data in the back, and the reset data group includes 16 bits of binary digit 0.

[0005] Optionally, the control data group includes a setting data group, the setting data group includes a 1-bit binary number 1 and 15 bits of setting data, and the step of sending the lamp control data to the plurality of lamp fault detection chips includes: According to the identification information of the plurality of lamp fault detection chips, the corresponding setting data groups are respectively sent to the plurality of lamp fault detection chips in sequence, wherein the setting data groups are used to set the internal parameters of the corresponding lamp fault detection chips.

[0006] Optionally, the control data group includes a read command data group, the read command data group includes a preset read command of 16 bits, and after sending the lamp control data to the plurality of lamp fault detection chips, the method further includes: Receive lamp detection data fed back by a plurality of lamp fault detection chips; wherein the lamp detection data includes a plurality of internal data groups, and the internal data group includes 15 bits of internal detection data and 1 bit of binary number 1.

[0007] Optionally, the method further comprises: When it is determined according to the lamp detection data and preset lamp alarm parameters that any of the lamps is in an abnormal working state, alarm information is generated and displayed.

[0008] As a second aspect of the present application, a lamp control method is provided, which is used for a lamp fault detection chip, wherein the lamp fault detection chip is connected to a lamp controller via a single-line bidirectional communication link, and the single-line bidirectional communication link transmits 1 bit of data with 1 clock pulse, and the method comprises: Receive the lamp control data sent by the lamp controller; wherein the lamp control data includes a plurality of data units, the types of the data units include a reset data group and a control data group, the data group includes 16 bits of data and the high bit data is in the front and the low bit data is in the back, and the reset data group includes 16 bits of binary digit 0; Respond to the lighting control data.

[0009] Optionally, the control data group includes a setting data group, the setting data group includes a 1-bit binary number 1 and 15 bits of setting data, and the lamp controller sends the corresponding setting data group to the multiple lamp fault detection chips in sequence according to the identification information of the multiple lamp fault detection chips; The response to the lamp control data includes: The internal parameters of the lamp fault detection chip are set according to the setting data group corresponding to the lamp fault detection chip.

[0010] Optionally, the control data group includes a read command data group, the read command data group includes a preset read command of 16 bits, and the response to the lamp control data includes: An internal data group is fed back to the lamp controller, where the internal data group includes 15 bits of internal detection data and 1 bit of binary number 1.

[0011] As a third aspect of the present application, an electronic device is provided, wherein the electronic device includes: one or more processors; A memory having one or more computer programs stored thereon, when the one or more computer programs are executed by the one or more processors, the one or more processors implement the lamp control method described in the first aspect of the present application.

[0012] As a fourth aspect of the present application, a lamp control system is provided, wherein the lamp control system comprises the electronic device described in the third aspect of the present application and a plurality of lamps, the lamps comprising lamp fault detection chips, and the lamp controller and the lamp fault detection chips in the plurality of lamps are connected via a single-line bidirectional communication link.

[0013] As a fifth aspect of the present application, a computer-readable medium is provided, on which a computer program is stored, wherein when the computer program is executed by a processor, the lamp control method described in the first aspect of the present application is implemented.

[0014] In the lamp control method provided in the embodiment of the present application, the lamp controller is connected to the lamp fault detection chips in the plurality of lamps via a single-line bidirectional communication link, the single-line bidirectional communication link transmits 1 bit of data with 1 clock pulse, and the lamp controller sends lamp control data to the plurality of lamp fault detection chips; wherein the lamp control data includes a plurality of data units, the types of which include a reset data group and a control data group, the data group includes 16 bits of data, wherein the high bit data is in the front and the low bit data is in the back, and the reset data group includes 16 bits of binary digit 0. By setting the lamp fault detection chip in the lamp, connecting the lamp fault detection chip with the lamp controller via a single-line bidirectional communication, and the lamp controller sending the lamp control data to the lamp fault detection chip based on a preset private communication protocol, real-time control of the lamp can be achieved, thereby improving the safety of the lamp and reducing the maintenance cost of the lamp. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] The present application is further described below in conjunction with the accompanying drawings: Figure 1 It is a flow chart of an implementation method of a lamp control method on a lamp controller side provided in an embodiment of the present application; Figure 2a It is a schematic diagram of the architecture of an implementation method of a lighting control system provided in an embodiment of the present application; Figure 2b is a schematic diagram of the data structure of the data group provided in the embodiment of the present application; Figure 3 is a flow chart of another implementation of the lamp control method on the lamp controller side provided in an embodiment of the present application; Figure 4is a flow chart of another implementation of the lamp control method on the lamp controller side provided in an embodiment of the present application; Figure 5 is a flow chart of another implementation of the lamp control method on the lamp controller side provided in an embodiment of the present application; Figure 6 It is a flow chart of an implementation method of a lamp fault detection chip side lamp control method provided in an embodiment of the present application; Figure 7 It is a flow chart of another implementation of the lamp control method on the lamp fault detection chip side provided in the embodiment of the present application; Figure 8 It is a flow chart of another implementation of the lamp control method on the lamp fault detection chip side provided in the embodiment of the present application; Fig. 9 It is a module diagram of an implementation of an electronic device provided in an embodiment of the present application; Fig.10a It is a schematic diagram of the circuit structure of an implementation of the lamp provided in the embodiment of the present application; Fig.10b is a schematic diagram of an implementation of a voltage acquisition circuit provided in an embodiment of the present application; Fig.10c is a schematic diagram of an implementation of a current acquisition circuit provided in an embodiment of the present application; Fig.10d It is a schematic diagram of an implementation of a temperature acquisition circuit provided in an embodiment of the present application; Fig.11 It is a schematic diagram of a computer-readable medium provided in an embodiment of the present application.

[0016] Description of Reference Numerals 101: Processor 102: Memory 103: I / O interface 104: bus DETAILED DESCRIPTION The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements with the same or similar functions. The embodiments based on the embodiments are intended to be used to explain the present application and cannot be understood as limiting the present application.

[0017] References to "one embodiment" or "an example" or "an example" in this specification mean that a particular feature, structure, or characteristic described in conjunction with the embodiment itself may be included in at least one embodiment disclosed in the present application. The appearance of the phrase "in one embodiment" in various places in the specification does not necessarily refer to the same embodiment.

[0018] Current outdoor always-on lamps are powered by DC and usually work continuously according to pre-designed parameters. However, when the lamps are not working properly, maintenance personnel cannot be informed in time, and cannot predict and deal with possible safety hazards.

[0019] In this regard, the applicant of this application proposes that by setting a lamp fault detection chip in the lamp, connecting the lamp fault detection chip with the lamp controller in a single-line two-way communication manner, and the lamp controller sends lamp control data to the lamp fault detection chip based on a preset private communication protocol, real-time control of the lamp can be achieved, thereby improving the safety of the lamp and reducing the maintenance cost of the lamp.

[0020] As a first aspect of an embodiment of the present application, a lamp control method is provided, which is used for a lamp controller, wherein the lamp controller is connected to lamp fault detection chips in a plurality of lamps via a single-line bidirectional communication link, and the single-line bidirectional communication link transmits 1 bit of data with 1 clock pulse, such as Figure 1 As shown, the method may include: In step S110, lamp control data is sent to multiple lamp fault detection chips; wherein the lamp control data includes multiple data units, and the types of the data units include reset data groups and control data groups, the data groups include 16 bits of data with high-bit data in front and low-bit data in the back, and the reset data group includes 16 bits of binary digit 0.

[0021] Among them, Figure 2a As shown, it is a schematic diagram of the architecture of an implementation method of the lighting control system provided by the embodiment of the present application. It can be seen that multiple lamps are connected to the lighting controller via a single-line two-way communication link, multiple lamps are powered by DC, and the controller is responsible for controlling each lamp. In addition, the lighting control system may also include a cloud server that is connected to the lighting controller in communication, and the cloud server is responsible for the overall control of all lamps in the entire lighting control system. It should be noted that Figure 2a The number of cloud servers, the number of lamp controllers, and the number of lamps shown are all exemplary descriptions, and the embodiments of the present application are not limited thereto.

[0022] The lamp controller and the lamp fault detection chip communicate using a preset private communication protocol. According to the preset private communication protocol, a single clock pulse corresponds to a single bit of data, that is, a single-line bidirectional communication link transmits 1 bit of data with 1 clock pulse; every 16 bits of data is a data group, and each data group is a data unit; Figure 2bAs shown, in the data structure of the data group, B15, B14, B13, B12, B11, B10, B9, and B8 are arranged in the front, and B7, B6, ..., B0 are arranged in the back, that is, the high-bit data are in the front and the low-bit data are in the back.

[0023] Among them, each time the lamp controller sends lamp control data to the lamp fault detection chip, it first sends a reset data group. The reset data group is 16 consecutive bits of 0, which is used to reset the data receiving port of the lamp fault detection chip, indicating that the lamp fault detection chip is ready to start receiving new data. Next, the lamp controller will send a control data group to each lamp fault detection chip. The number of control data groups in the embodiment of the present application is not specifically limited and depends on the specific control type.

[0024] In the lamp control method provided in the embodiment of the present application, the lamp controller is connected to the lamp fault detection chips in the plurality of lamps via a single-line bidirectional communication link, the single-line bidirectional communication link transmits 1 bit of data with 1 clock pulse, and the lamp controller sends lamp control data to the plurality of lamp fault detection chips; wherein the lamp control data includes a plurality of data units, the types of which include a reset data group and a control data group, the data group includes 16 bits of data, wherein the high bit data is in the front and the low bit data is in the back, and the reset data group includes 16 bits of binary digit 0. By setting the lamp fault detection chip in the lamp, connecting the lamp fault detection chip with the lamp controller via a single-line bidirectional communication, and the lamp controller sending the lamp control data to the lamp fault detection chip based on a preset private communication protocol, real-time control of the lamp can be achieved, thereby improving the safety of the lamp and reducing the maintenance cost of the lamp.

[0025] The applicant of the present application further proposes that when the control type is specifically to set the internal parameters of the lamp fault detection chip, the setting data group can be sent to each of them in sequence according to the identification information of each lamp fault detection chip. Accordingly, in some embodiments, the control data group includes a setting data group, and the setting data group includes a 1-bit binary number 1 and 15 bits of setting data. In the step of sending the lamp control data to the plurality of lamp fault detection chips (i.e., step S110), as Figure 3 As shown, it may include: In step S210, the corresponding setting data groups are sent to the multiple lamp fault detection chips in sequence according to the identification information of the multiple lamp fault detection chips, wherein the setting data groups are used to set the internal parameters of the corresponding lamp fault detection chips.

[0026] Among them, according to the private communication protocol preset in the embodiment of the present application, assuming that there are N lamp fault detection chips in total, the lamp controller will send a reset data group, a setting data group for the first lamp fault detection chip, a setting data group for the second lamp fault detection chip, ..., a setting data group for the Nth lamp fault detection chip in sequence, and each setting data group includes a continuous 1-bit binary digit 1 and 15 bits of setting data. After a lamp fault detection chip receives its own setting data group, it will set its own internal parameters according to the last 15 bits of setting data.

[0027] The applicant of the present application also proposes that when the control type is specifically to read the lamp detection data, a read command data group can also be uniformly sent to each lamp fault detection chip. Accordingly, in some embodiments, the control data group includes a read command data group, and the read command data group includes a 16-bit preset read command. After sending the lamp control data to the plurality of lamp fault detection chips (i.e., step S110), as Figure 4 As shown, it may include: In step S120, lamp detection data fed back by a plurality of lamp fault detection chips are received; wherein the lamp detection data includes a plurality of internal data groups, and the internal data group includes 15 bits of internal detection data and 1 bit of binary number 1.

[0028] Among them, according to the private communication protocol preset in the embodiment of the present application, the lamp controller will send a reset data group and a read command data group in sequence, and each read command data group includes a preset read command of 16 consecutive bits. After each lamp fault detection chip receives the read command data group, it will feedback its own internal data group to the lamp controller, and each internal data group includes 15 consecutive bits of internal detection data and 1 bit of binary number 1. The lamp controller will further control the corresponding lamp according to the first 15 bits of internal detection data.

[0029] Among them, the embodiment of the present application does not make any specific limitation on the preset read command of 16 bits. For example, the preset read command may be "F0AC", that is, "1111000010101100".

[0030] Among them, for the situation where the control type includes both setting the internal parameters of the lamp fault detection chip and reading the lamp detection data, the embodiment of the present application does not make any special limitation. For example, the lamp controller can send a reset data group, a setting data group for the first lamp fault detection chip, a setting data group for the second lamp fault detection chip, ..., a setting data group for the Nth lamp fault detection chip, and a read command data group in sequence.

[0031] The applicant of the present application further proposes that the lamp controller can also preset lamp alarm parameters, identify the abnormal working state of the lamp based on the lamp alarm parameters and the internal data group fed back by the lamp fault detection chip, and issue an alarm when it is determined that the lamp is in an abnormal working state, so as to further improve the safety of the lamp. Figure 5 As shown, the method may also include: In step S130, when it is determined that any of the lamps is in an abnormal working state according to the lamp detection data and preset lamp alarm parameters, an alarm message is generated and displayed.

[0032] Among them, the embodiments of the present application do not make any special limitations on the information specifically represented by the internal data group. For example, in addition to integrating DC high-voltage power supply input and single-line two-way communication link, the lamp fault detection chip can also integrate temperature acquisition circuit, voltage acquisition circuit and current acquisition circuit, so as to respectively detect the temperature information, voltage information and current information in the lamp. The internal data group is used to represent the temperature information, voltage information and current information detected by the lamp fault detection chip. The lamp controller can further calculate the power information in the lamp based on the internal data group, and preset lamp alarm parameters such as temperature alarm parameters, voltage alarm parameters, current alarm parameters and power alarm parameters, and compare the detected information with the corresponding alarm parameters to identify the abnormal working state of the lamp.

[0033] Accordingly, as a second aspect of the embodiment of the present application, a lamp control method is also provided, which is used for a lamp fault detection chip, wherein the lamp fault detection chip is connected to the lamp controller via a single-line bidirectional communication link, and the single-line bidirectional communication link transmits 1 bit of data with 1 clock pulse, such as Figure 6 As shown, the method may include: In step S310, the lamp control data sent by the lamp controller is received; wherein the lamp control data includes a plurality of data units, the types of the data units include a reset data group and a control data group, the data group includes 16 bits of data and the high bit data is in the front and the low bit data is in the back, and the reset data group includes 16 bits of binary digit 0; In step S320, respond to the lamp control data.

[0034] Among them, the lamp control method executed by the lamp fault detection chip side provided in the embodiment of the present application has been described in detail above, and will not be repeated here.

[0035] In the lamp control method provided in the embodiment of the present application, the lamp controller is connected to the lamp fault detection chips in the plurality of lamps through a single-line bidirectional communication link, the single-line bidirectional communication link transmits 1 bit of data with 1 clock pulse, and the lamp controller sends lamp control data to the plurality of lamp fault detection chips; wherein the lamp control data includes a plurality of data units, the types of which include a reset data group and a control data group, the data group includes 16 bits of data, wherein the high bit data is in the front and the low bit data is in the back, and the reset data group includes 16 bits of binary digit 0. After receiving the lamp control data, the lamp fault detection chip responds to the lamp control data. By setting the lamp fault detection chip in the lamp, the lamp fault detection chip is connected to the lamp controller through a single-line bidirectional communication, the lamp controller sends the lamp control data to the lamp fault detection chip based on a preset private communication protocol, and the lamp fault detection chip responds. The real-time control of the lamp can be realized, thereby improving the safety of the lamp and reducing the maintenance cost of the lamp.

[0036] In some embodiments, the control data group includes a setting data group, the setting data group includes a 1-bit binary number 1 and 15 bits of setting data, and the lamp controller sends the corresponding setting data group to the multiple lamp fault detection chips in sequence according to the identification information of the multiple lamp fault detection chips; like Figure 7 As shown, the responding to the lamp control data (ie, step S320) may include: In step S321, the internal parameters of the lamp fault detection chip are set according to the setting data group corresponding to the lamp fault detection chip.

[0037] In some embodiments, the control data group includes a read command data group, and the read command data group includes a 16-bit preset read command, such as Figure 8 As shown, the responding to the lamp control data (ie, step S320) may include: In step S322, an internal data group is fed back to the lamp controller, where the internal data group includes 15 bits of internal detection data and 1 bit of binary number 1.

[0038] Accordingly, as a third aspect of the embodiments of the present application, an electronic device is also provided, wherein: Fig. 9 As shown, the electronic device includes: One or more processors 101; The memory 102 stores one or more computer programs. When the one or more computer programs are executed by the one or more processors 101, the one or more processors 101 implement the lamp control method provided in the first aspect of the embodiment of the present application.

[0039] The electronic device may further include one or more I / O interfaces 103 connected between the processor 101 and the memory 102 and configured to implement information interaction between the processor 101 and the memory 102 .

[0040] Among them, the processor 101 is a device with data processing capabilities, including but not limited to a central processing unit (CPU), etc.; the memory 102 is a device with data storage capabilities, including but not limited to random access memory (RAM, more specifically SDRAM, DDR, etc.), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory (FLASH); the I / O interface (read-write interface) is connected between the processor and the memory, and can realize information exchange between the processor and the memory, including but not limited to a data bus (Bus), etc.

[0041] In some embodiments, the processor 101 , the memory 102 , and the I / O interface 103 are connected to each other via a bus 104 , and further connected to other components of the computing device.

[0042] Correspondingly, as the fourth aspect of the embodiment of the present application, a lamp control system is also provided, characterized in that the lamp control system includes the electronic device provided by the third aspect of the embodiment of the present application and a plurality of lamps, the lamps include lamp fault detection chips, and the lamp controller is connected to the lamp fault detection chips in the plurality of lamps via a single-line bidirectional communication link.

[0043] The embodiment of the present application does not specifically limit the specific structure of the lamp. For example, the lamp fault detection chip may be an LED (Light Emitting Diode) light emitting chip, and the lamp includes the lamp fault detection chip and its matching circuit. Fig.10aAs shown, it is a schematic diagram of the circuit structure of an implementation method of the lamp provided in an embodiment of the present application, wherein the chip matching circuit includes a rectifier diode D1 (model SK56), a fuse P1 (7A / 60V), a resistor R1 (220Ω), a voltage regulator diode D2 (model TCS36A), a capacitor C1 (0.1μF), a capacitor C2 (100μF), a capacitor C3 (100μF) and a capacitor C4 (0.1μF); the positive electrode of the rectifier diode D1 is connected to the voltage input end, and the negative electrode of the rectifier diode D1 is connected to one end of the fuse P1; the other end of the fuse P1 is connected to one end of the resistor R1 and the negative electrode of the voltage regulator diode D2; the positive electrode of the voltage regulator diode D2 is grounded; the other end of the resistor R1 is connected to one end of the capacitor C1 and the capacitor C2 and the lamp fault detection chip; one end of the capacitor C3 and the capacitor C4 is connected to the lamp fault detection chip; the other ends of the capacitors C1, C2, C3 and C4 are grounded. The input voltage VIN is rectified by the rectifier diode D1, then passes through the fuse P1, and then stabilized by the voltage regulator diode D2. The resistor R1 plays a role of current limiting or voltage dividing. After that, it is filtered by capacitors C1, C2, C3 and C4 to filter out high-frequency and low-frequency noise, and finally a relatively stable + 5V voltage is obtained to provide power for the subsequent lamp fault detection chip.

[0044] Among them, RS07 is a lamp fault detection chip with a total of 24 pins (marked from 1 to 24), including power input and ground pins (VIN, GND), input and output pins (P1.7, P2.1, P2.0, P0.7 / RXD0, P0.6 / TXD0, P0.5, P1.5, P1.4, P1.3, P1.2, P1.1 / AN0 TIM3_A PWM / P0.1, P0.0, etc.), and other pins (P0.2 / TCK / RXDI, 5V, VDD, TCK, RXD1, P1.6 / TDI / TXDI, etc.). ADC_CUR, ADC_VOL, and ADC_TMP are connected to the current acquisition circuit, voltage acquisition circuit, and temperature acquisition circuit respectively, and P0.7 / RXD0 and P0.6 / TXD0 are connected to resistors R3 (1KΩ) and R2 (1KΩ) respectively, and then connected to PIO2 and PIO1 through resistors R3 and R2. PIO2 and PIO1 are single-wire and dual-wire signal transmission pins, and are both located in a single-wire bidirectional communication link. The clock test (TCK) pin 14 is connected to resistor R4 (1KΩ), and then connected to the pulse width modulation (PWM) signal end through resistor R4.

[0045] like Fig.10bAs shown, it is a schematic diagram of an implementation method of the voltage acquisition circuit provided in an embodiment of the present application, and the voltage acquisition circuit includes a resistor R9 (10KΩ), a resistor R10 (100KΩ), a resistor R11 (3KΩ), and a capacitor C6 (nominal value 225); one end of the resistor R10 is connected to the 36V + voltage input terminal, and the other end of the resistor R10 is connected to one end of the resistor R9 and one end of the resistor R11; the other end of the resistor R9 is connected to the voltage digital-to-analog conversion port, that is, the ADC_VOL pin; the other end of the resistor R11 is grounded; one end of the capacitor C6 is connected to the voltage digital-to-analog conversion port, and the other end of the capacitor C6 is grounded; the resistor R10 and the resistor R11 collect the input voltage signal of the lamp through the resistor voltage divider, and the resistor R9 and the capacitor C6 filter the input voltage signal to generate a filtered input voltage signal and input it to the voltage digital-to-analog conversion port; finally, the voltage digital-to-analog conversion port outputs the detected voltage information.

[0046] like Fig.10c As shown, it is a schematic diagram of an implementation method of the current acquisition circuit provided in an embodiment of the present application, and the current acquisition circuit includes a resistor R5 (10KΩ), a resistor R6 (4KΩ), a resistor R7 (4KΩ), a resistor R8 (4KΩ), and a capacitor C5 (nominal value 225); the resistance values ​​of the resistors R6, R7, and R8 are less than the preset resistance threshold; one end of the resistors R6, R7, and R8 are connected to the DC-DC ground input port and one end of the resistor R5, and the other ends of the resistors R6, R7, and R8 are grounded; the other end of the resistor R5 is connected to the current digital-to-analog conversion port, that is, the ADC_CUR pin; one end of the capacitor C5 is connected to the current digital-to-analog conversion port, and the other end of the capacitor C5 is grounded; the resistors R6, R7, and R8 collect the current signal of the lamp, and the resistor R5 and the capacitor C5 are used to filter the current signal to generate a filtered current signal to be input to the circuit digital-to-analog conversion port; finally, the current digital-to-analog conversion port outputs the detected current information.

[0047] like Fig.10dAs shown, it is a schematic diagram of an implementation method of a temperature acquisition circuit provided in an embodiment of the present application, and the temperature acquisition circuit includes a resistor R12 (10KΩ), a resistor R13 (100KΩ), a resistor R14 (10KΩ), and a capacitor C7 (nominal value 225); the resistor R14 is a negative temperature coefficient (NTC) thermistor; one end of the resistor R13 is connected to the voltage input end, and the other end of the resistor R13 is connected to one end of the resistor R12 and one end of the resistor R14; the other end of the resistor R12 is connected to the temperature digital-to-analog conversion port, that is, the ADC_TMP pin; the other end of the resistor R14 is grounded; one end of the capacitor C7 is connected to the temperature digital-to-analog conversion port, and the other end of the capacitor C7 is grounded; the resistor R13 and the resistor R14 collect the temperature-dependent voltage signal of the lamp through the resistor voltage divider, and the resistor R12 and the capacitor C7 filter the temperature-dependent voltage signal to generate a filtered temperature-dependent voltage signal and input it to the temperature digital-to-analog conversion port; finally, the temperature digital-to-analog conversion port outputs the detected current information.

[0048] The lamp structure including the lamp fault detection chip and its matching circuit provided in the embodiment of the present application has a simple circuit structure and is easily compatible with the circuit architecture of the always-on LED lamp. No additional wiring is required during actual engineering wiring. Fault detection and real-time control of multiple lamps can be achieved at a relatively low cost, effectively improving the safety of lamp use and reducing the maintenance cost of the lamp.

[0049] It should be noted that if Figures 10a-10d The circuit structure and various parameters (such as the resistance value of the resistor, the capacitance value of the capacitor, the voltage value, etc.) shown are only exemplary descriptions, and the embodiments of the present application are not limited thereto. Any lamp fault detection chip that can detect the working parameters of the lamp can be used.

[0050] As a fifth aspect of the embodiment of the present application, Fig.11 As shown, a computer readable medium is provided, on which a computer program is stored, wherein when the computer program is executed by a processor, the lamp control method provided in the first aspect of the embodiment of the present application is implemented.

[0051] It will be understood by those skilled in the art that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program. Accordingly, the computer program can be stored in a non-volatile computer-readable storage medium, and the computer program can implement the method of any of the above-mentioned embodiments when executed. Among them, any reference to memory, storage, database or other media used in the embodiments provided in the embodiments of the present application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0052] The above are only specific embodiments of the present application, but the protection scope of the present application is not limited thereto. Those skilled in the art should understand that the present application includes but is not limited to the contents described in the drawings and the above specific embodiments. Any modification that does not deviate from the functional and structural principles of the present application will be included in the scope of the claims.

Claims

1. A lamp control method, used in a lamp controller, characterized in that: The lamp controller is connected to the lamp fault detection chips in the plurality of lamps via a single-line bidirectional communication link, the single-line bidirectional communication link transmits one bit of data with one clock pulse, and the method comprises: Send lamp control data to multiple lamp fault detection chips; wherein the lamp control data includes multiple data units, and the types of the data units include reset data groups and control data groups, the data groups include 16 bits of data with high-bit data in the front and low-bit data in the back, and the reset data group includes 16 bits of binary digit 0.

2. The method according to claim 1, characterized in that The control data group includes a setting data group, and the setting data group includes a 1-bit binary number 1 and 15 bits of setting data. In the step of sending the lamp control data to the plurality of lamp fault detection chips, the step includes: According to the identification information of the plurality of lamp fault detection chips, the corresponding setting data groups are respectively sent to the plurality of lamp fault detection chips in sequence, wherein the setting data groups are used to set the internal parameters of the corresponding lamp fault detection chips.

3. The method according to claim 1, characterized in that The control data group includes a read command data group, and the read command data group includes a preset read command of 16 bits. After sending the lamp control data to the plurality of lamp fault detection chips, the method further includes: Receive lamp detection data fed back by a plurality of lamp fault detection chips; wherein the lamp detection data includes a plurality of internal data groups, and the internal data group includes 15 bits of internal detection data and 1 bit of binary number 1.

4. The method according to claim 3, characterized in that The method further comprises: When it is determined according to the lamp detection data and preset lamp alarm parameters that any of the lamps is in an abnormal working state, an alarm message is generated and displayed.

5. A lamp control method for a lamp fault detection chip, characterized in that: The lamp fault detection chip is connected to the lamp controller via a single-line bidirectional communication link, and the single-line bidirectional communication link transmits one bit of data with one clock pulse. The method includes: Receive the lamp control data sent by the lamp controller; wherein the lamp control data includes a plurality of data units, the types of the data units include a reset data group and a control data group, the data group includes 16 bits of data and the high bit data is in the front and the low bit data is in the back, and the reset data group includes 16 bits of binary digit 0; Respond to the lighting control data.

6. The method according to claim 5, characterized in that The control data group includes a setting data group, the setting data group includes a 1-bit binary number 1 and 15 bits of setting data, and the lamp controller sends the corresponding setting data group to the multiple lamp fault detection chips in sequence according to the identification information of the multiple lamp fault detection chips; The response to the lamp control data includes: The internal parameters of the lamp fault detection chip are set according to the setting data group corresponding to the lamp fault detection chip.

7. The method according to claim 5, characterized in that The control data group includes a read command data group, the read command data group includes a 16-bit preset read command, and the response to the lamp control data includes: An internal data group is fed back to the lamp controller, where the internal data group includes 15 bits of internal detection data and 1 bit of binary number 1.

8. An electronic device, characterized in that: The electronic device comprises: one or more processors; A memory having one or more computer programs stored thereon, wherein when the one or more computer programs are executed by the one or more processors, the one or more processors implement the lamp control method according to any one of claims 1-7.

9. A lighting control system, characterized in that: The lamp control system comprises the electronic device according to claim 8 and a plurality of lamps, wherein the lamps comprise lamp fault detection chips, and the lamp controller is connected to the lamp fault detection chips in the plurality of lamps via a single-line bidirectional communication link.

10. A computer readable medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the lamp control method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Self-power-supply-based carrier wave wireless dual mode communication tunnel illumination control system

    CN108174500A

  • Illumination monitoring method and device

    CN112638017A

  • Lamp control method, device and system and storage medium

    CN115002973A

  • LED lamp fault processing method based on RDM protocol, computer device and computer readable storage medium

    CN116234106A

  • LED constant current driving chip having fault retransmission function

    CN201191496Y