A lamp control method, device, system and storage medium
By generating and sending control data to the driving chip of the car light, the problem of insufficient stability of the car light function in the prior art is solved, and intelligent control and stable operation of the car lights are realized.
Patent Information
- Application Number
- CN202210703705.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-21
- Publication Date
- 2025-02-21
- Estimated Expiration
- 2042-06-21
AI Technical Summary
The prior art cannot effectively ensure the stable operation of the vehicle light function, especially in the control of the vehicle light with variable functions.
By generating corresponding control data according to user control instructions and sending these control data to the driver chip of the controlled lamp based on a preset period, the intelligent control and stable operation of the lamp are achieved.
This method improves the stability of the lamp, ensures that the functions are accurately implemented according to the control data, and avoids functional failure caused by driver chip errors or external interference.
Smart Images

Figure CN115002973B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of vehicle technology, and in particular to a lamp control method, device, system and storage medium. Background Art
[0002] With the continuous development of the automotive industry, people's requirements for automotive lighting are getting higher and higher. Car lights are changing day by day, the appearance effects are becoming more and more complex, the driving circuit design inside car lights is becoming more and more complex, and the control method of car lights is gradually becoming more intelligent.
[0003] In the prior art, most of the vehicle light circuit designs are directly powered, and there is no intelligent control system inside the lamp. That is, the lamp can be lit by supplying power to the corresponding function on the vehicle end, and the internal circuit of the lamp is only used to stabilize the driving voltage and adapt to the LED driving circuit.
[0004] With the existing technology, it is impossible to ensure that the control of the headlights with variable functions is applicable, so ensuring the stable operation of the headlight functions has become a problem that needs to be solved urgently. Summary of the invention
[0005] The present invention provides a lamp control method, device, system and storage medium to realize intelligent control of the lamp and ensure stable operation of the vehicle lamp function.
[0006] According to one aspect of the present invention, a lamp control method is provided, wherein the method comprises:
[0007] Generate control data corresponding to at least one type of controlled lamp according to the user control instruction;
[0008] The control data is sent to the driver chip of the controlled lamp based on a preset period to control the controlled lamp to execute the controlled data.
[0009] According to another aspect of the present invention, a lighting control device is provided, wherein the device comprises:
[0010] A control data module, used to generate control data corresponding to at least one type of controlled lamp according to a user control instruction;
[0011] The lamp control module is used to send control data to the driver chip of the controlled lamp based on a preset period to control the controlled lamp to execute the control data.
[0012] According to another aspect of the present invention, a lighting control system is provided, wherein the lighting control system comprises:
[0013] At least one control unit, the control unit comprising: at least one processor; and a memory in communication with the at least one processor; wherein the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the lamp control method of any embodiment of the present invention;
[0014] At least one driving chip is connected to the control unit and is used to drive the controlled lamp according to control data of the control unit.
[0015] According to another aspect of the present invention, a computer-readable storage medium is provided. The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the lamp control method of any embodiment of the present invention when executed.
[0016] The technical solution of the embodiment of the present invention generates control data corresponding to at least one type of controlled lamps according to user control instructions, and sends the control data to the driver chip of the controlled lamps based on a preset period to control the controlled lamps to execute the controlled data, thereby improving the stability of the controlled lamps. It can ensure that the functions are accurately implemented according to the control data, and avoid errors in the driver chip or external interference that affect the data and cause function failure.
[0017] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0019] Figure 1 is a flow chart of a lamp control method provided according to Embodiment 1 of the present invention;
[0020] Figure 2 is a flow chart of a lamp control method provided according to Embodiment 2 of the present invention;
[0021] Figure 3 is a flow chart of a lamp control logic principle provided according to Embodiment 3 of the present invention;
[0022] Figure 4 is a flow chart of a lamp function monitoring and diagnosis provided according to Embodiment 3 of the present invention;
[0023] Figure 5 is a structural schematic diagram of a lamp control device provided according to a fourth embodiment of the present invention;
[0024] Figure 6 It is a structural schematic diagram of a lighting control system implementing an embodiment of the present invention;
[0025] Figure 7 It is a circuit schematic diagram of a lamp control system implementing an embodiment of the present invention. DETAILED DESCRIPTION
[0026] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0027] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0028] Embodiment 1
[0029] Figure 1 A flowchart of a lamp control method is provided for the first embodiment of the present invention. This embodiment is applicable to controlling lamps. The method can be executed by a lamp control device. The lamp control device can be implemented in the form of hardware and / or software. The lamp control device can be configured in a vehicle. Figure 1 As shown, the method includes:
[0030] S110, generating control data corresponding to at least one type of controlled lamps according to a user control instruction.
[0031] Among them, the user control instruction can be an instruction for the user to control the vehicle to operate the lamps. The specific form of the user control instruction can be a language instruction, a button operation instruction, a screen touch instruction, etc.; the controlled lamps can be different types of signal lights configured in the vehicle, for example, they can include position lights, turn signals, reversing lights, brake lights, etc., and the control data of different types of signal lights can be the same or different; the control data can refer to the data for controlling the state of the lamp generated according to the user control instruction. The control data can be of multiple types, and different control data can control different lamp states. The control data can be encapsulated in one or more message transmissions, wherein the type of message may not be limited here, such as an integrated circuit bus message, an Internet Protocol (IP) message, etc.; the lamp state can refer to the lamp display form, which can include the lamp being lit, the lamp being turned off, the lamp being lit in a sequential manner, etc.
[0032] Specifically, the vehicle can obtain the user control instruction triggered by the user through a button or a visual interface, and generate control data corresponding to the controlled lamps according to the user control instruction. Specifically, the control data can be generated after the vehicle microcontroller unit (MCU) performs signal processing on the user control instruction. Different user instructions can correspond to different control data. When the user triggers different user control instructions through a button or a visual interface, corresponding different control data will be generated. For example, when the user triggers the position lights and brake lights to light up through a button or a visual interface, the MCU will perform signal processing on the user control instruction and generate control data corresponding to the control of the position lights and brake lights to light up, wherein the control data can be encapsulated in one or more message transmissions.
[0033] S120, sending control data to a driver chip of the controlled lamp based on a preset period to control the controlled lamp to execute the controlled data.
[0034] Among them, the preset cycle may refer to a preset cycle for sending control data. The vehicle end may send control data at a time length corresponding to the preset cycle. The preset cycle may be pre-configured in the vehicle system by the vehicle manufacturer based on experience; the driving chip may refer to a chip with a driving function, which can amplify the input weak current signal to be strong enough to drive the control lamp to change the display state.
[0035] Specifically, the control data can be sent to the vehicle driver chip in a periodic manner. After the MCU performs signal processing, the control data is transmitted to the driver chip through the corresponding instructions, and then the driver chip controls the controlled lamp to execute the control data sent by the vehicle. Among them, each driver chip is connected to a lamp with a corresponding function, and each driver chip can control the corresponding controlled lamp to execute the control data. For example, the driver chip can drive the lamp to light up, turn off, or light up in a running order. The preset period can be the time set by the vehicle manufacturer based on experience. For example, the preset period stored in the vehicle can be 50 milliseconds, 100 milliseconds, 300 milliseconds, etc. The preset period can also be specifically sending 100 signals within 1 second, sending 200 signals within 1 second, etc.
[0036] The embodiments of the present invention can realize stable control of the lamps by generating control data corresponding to at least one type of controlled lamps according to user control instructions, sending the control data to the driver chip of the controlled lamps according to a preset period, and then controlling the lamps through the driver chip to execute the control data generated according to the user control instructions. The periodic transmission of control data to the driver chip can ensure that the functions are accurately implemented according to the control data, avoid driver chip errors or driver chip data distortion due to external interference that lead to function failure, and improve the stability of controlling the lamps.
[0037] Embodiment 2
[0038] Figure 2 This is a flow chart of a lamp control method provided in Embodiment 2 of the present invention. This embodiment is a specific implementation based on the above embodiment. Figure 2 As shown, the method includes:
[0039] S210: Receive a user control instruction input by a user.
[0040] Furthermore, the user control instruction includes: at least one of a touch instruction, a voice instruction, and a gesture instruction.
[0041] Among them, the touch command can be an instruction command for the user to control the signal light by clicking the touch screen configured in the car; the voice command can be an instruction command for the user to control the signal light through voice signals; the gesture command can be an instruction command for the user to control the signal light through different gestures. Among them, the instruction command can include multiple types, and different forms of different instructions can control different instruction commands.
[0042] In an embodiment of the present invention, a user can input a user control instruction to the vehicle to generate control data for controlling the state change of the signal lights configured in the vehicle, and the vehicle can execute the function of receiving the control data. The vehicle can receive the user control instruction in one or more ways. According to the different forms of the user control instruction, the user control instruction can be received in different ways. For example, when the user control instruction is a touch click signal, the user control instruction can be received by monitoring the interactive controls in the vehicle visualization interface. The vehicle visualization interface can display multiple images, each image can correspond to a lamp. The user clicks one or more images in the visualization interface, and the vehicle can obtain the click as the user control instruction, and can use the identification information of the lamp corresponding to the clicked image as the controlled lamp identification, and can use the lamp control state corresponding to the lamp click as the control state; when the user control instruction is a voice signal, the user control instruction can be collected by a microphone provided in the vehicle, and the microphone provided in the vehicle can receive the user's voice instruction, and the corresponding A voice command package for each user control command, each voice command in the voice command package can correspond to the control state of a lamp. The user speaks one or more voice commands in the voice command package, and the vehicle can obtain the voice command as the user control command, and can use the identification information of the lamp corresponding to the voice-controlled lamp as the identification of the controlled lamp, and can use the control state of the lamp corresponding to the voice control as the control state; when the user control command is a gesture operation signal, the user control command can be collected by the camera set in the vehicle, and the camera configured in the vehicle can collect the user's gesture actions, each gesture action can correspond to a lamp, the user makes one or more gesture actions, and the vehicle can obtain the action as the user control command, and can use the identification information of the lamp corresponding to the gesture as the identification of the controlled lamp, and can use the control state of the lamp corresponding to the gesture action of the lamp as the control state.
[0043] S220: Extract the controlled lamp identification and control status included in the user control instruction.
[0044] Among them, the lamp identification may refer to the expression and indication of the lamp information, and the lamp information may include the name, type and other information of the lamp. The lamp identification may be a sign used to identify the lamp; the control state may refer to the display form of the controlled lamp, for example, it may include controlling the lamp to light up, lighting the lamp in a running sequence, turning off the lamp, etc. The method of extracting the user control instruction may not be limited here, and different methods may be used to extract the user control instruction when receiving different forms of user control instructions. The user control instruction data may be stored in a register, and the user control instruction may be read from the vehicle memory or the MCU register, and the information on the fixed field in the user instruction is extracted as the controlled lamp identification and control state.
[0045] Specifically, the MCU can extract user control instructions, which can include extracting the controlled lamp identification and control status. By extracting the lamp identification, the lamp information can be clarified and the lamp type can be determined; by extracting the control status information, the lamp display status can be clarified. Among them, the lamp types can include signal lights, turn signals, brake lights, reversing lights, etc. Different types of lamps can have different functions.
[0046] S230: Encapsulate the controlled lamp identification and control status into an integrated circuit bus message as control data.
[0047] Among them, the integrated circuit bus message refers to the data unit exchanged and transported in the integrated circuit bus communication protocol network, which is used to exchange information when requesting and responding between various systems. Different fields of the integrated circuit bus message can correspond to the control of different types of lamps, and different controlled lamp identifications and control states can be encapsulated in the same or different integrated circuit bus messages.
[0048] Specifically, the controlled lamp identification and control status can be encapsulated into an integrated circuit bus message, and the controlled lamp identification and control status can be written into different fields of the message. The integrated circuit bus message encapsulating the controlled lamp identification and control status can be used as control data. The integrated circuit bus message can encapsulate one or more sets of controlled lamp identification and control status. Different controlled lamp identifications and control status can be encapsulated in the same integrated circuit bus message. The integrated circuit bus message assumes the function of loading and transporting data, and the integrated circuit bus message can be used as lamp control data.
[0049] S240: If it is determined that the current control data is different from the historical control data transmitted last time, the control data is immediately sent to the driver chip of the controlled lamp so that the controlled lamp immediately executes the current control data.
[0050] Among them, historical control data may refer to the control data written into the driver chip last time or several times before. The historical control data may be stored in a register. The MCU may read and write the data information stored in the register. The MCU may read different values of each bit of the register. The value of each bit may have different control functions, such as controlling the lighting of a lamp or lamp to turn on or off.
[0051] Specifically, the MCU can read and write data information in the register. When the MCU writes the current control data to the register, it can extract the historical control data of the previous transmission and compare it with the current control data. When it is determined that the current control data is different from the historical control data transmitted last time, the current control data can be immediately sent to the driver chip corresponding to the controlled lamp. The driver chip drives the controlled lamp to immediately execute the current control data, and the controlled lamp can immediately change the display status according to the control data.
[0052] S250 , transmitting control data to the driving chip according to the integrated circuit bus communication protocol in each preset cycle.
[0053] Among them, the integrated circuit bus communication protocol is a serial communication bus that uses a multi-master-slave architecture. The integrated circuit bus (Inter-Integrated Circuit, IIC) serial bus generally has two signal lines, one is the bidirectional IIC bus data signal line (Serial Date, SDA), and the other is the clock signal line (Serial clock line, SCL). All serial data SDA connected to the IIC bus devices are connected to the bus SDA, and the clock line SCL of each device is connected to the bus SCL, such as driver chips, MCUs, etc.
[0054] Specifically, the CAN signal at the vehicle end drives the chip to transmit control data according to the preset cycle. The same control data can be transmitted to the driver chip at regular intervals until the MCU generates new control data. Communication transmission can be carried out according to the integrated circuit bus communication protocol. When SCL is at a high level, SDA jumps from a high level to a low level and starts to transmit control data. Among them, the preset cycle can be the time set by the vehicle manufacturer based on experience. For example, the preset cycle stored in the vehicle can be 50 milliseconds, 100 milliseconds, 300 milliseconds, etc. The preset cycle can also be specifically sending 100 signals within 1 second, sending 200 signals within 1 second, etc.
[0055] S260: The control driving chip extracts the control state in the control data according to the controlled lamp identifier of the controlled lamp driven by the control driving chip.
[0056] Specifically, the control data may be control data of multiple controlled lamps. After acquiring the control data, the driver chip may search for the corresponding control state in the control data according to the controlled lamp identification. The driver chip may identify and extract the corresponding field of the integrated circuit bus message in the control data. The driver chip may identify the message field corresponding to the controlled lamp identification driven by it in the control data, and extract the control state of the controlled lamp sent by the MCU according to the controlled lamp identification. The control state may be the lamp on, the lamp off, etc.
[0057] S270, controlling the driving chip to drive the controlled lamp to work according to the control state and the current state of the lamp.
[0058] Specifically, the driver chip can drive the controlled lamp to work, and determine whether to change the working state of the lamp according to the relationship between the control state and the current state of the lamp. The control state and the current state of the lamp can be the same or different. When the control state and the current state of the lamp are the same, the driver chip can control the controlled lamp to maintain the current working state; when the control state and the current state of the lamp are different, the driver chip can control the controlled lamp to change to the working state in the control state.
[0059] S280: Obtain feedback information of the control data corresponding to the driver chip, and detect lamp control failure according to the feedback information.
[0060] Among them, feedback information may refer to status information fed back by the driver chip, or may refer to information received by the driver chip when feeding back control data to the MCU. The status information may identify the execution status of the control data. When the MCU sends control data to the driver chip to drive the controlled lamp to work, the driver chip will send feedback information to the MCU, and may be used to detect lamp control faults. Control faults may refer to faults caused by the lamp failing to execute control data normally. Control faults may be divided into communication faults, lamp faults, etc. according to their types.
[0061] Specifically, the driver chip can realize the transmission and execution of control data between the driver MCU and the lamp. The MCU sends the control data and processes it. When the lamp correctly executes the information instruction corresponding to the transmitted data, the driver chip needs to transmit feedback information to the MCU. The MCU can read the data in the driver chip register and read different values for each bit. The value of each bit can correspond to different functions, and the fault is judged according to the feedback information. If the MCU sends control data to the driver chip but does not receive feedback information from the driver chip, it can be judged as a communication failure; if the working status of the lamp in the feedback information is not executed according to the control data, it can be judged as a lamp failure.
[0062] The embodiments of the present invention can establish a corresponding execution relationship between the lamp and the control data by extracting the lamp identification and control status in the user control instruction, and encapsulating the controlled lamp identification and control status into an integrated circuit bus message as control data. By transmitting the control data to the driver chip according to the integrated circuit bus communication protocol within each preset cycle, the driver chip is controlled to extract the control status in the control data according to the controlled lamp identification of the controlled lamp driven by it, so that the lamp function can be accurately executed according to the control data. By obtaining the feedback information of the corresponding control data of the driver chip and detecting the lamp control fault according to the feedback information, the lamp function can be monitored and diagnosed, and different types of fault information can be discovered in time, thereby ensuring driving safety and improving the user experience.
[0063] Furthermore, the control driving chip drives the controlled lamp to work according to the control state and the current state of the lamp, including:
[0064] The control driver chip maintains the working state of the controlled lamp when the control state is the same as the current state of the lamp.
[0065] The control driving chip changes the working state of the controlled lamp to the control state when the control state is different from the current state of the lamp.
[0066] Specifically, the control state and the current state of the lamp can be the same or different, and the control chip can drive the controlled lamp to work according to the control state and the current state of the lamp. According to the relationship between the control state and the current state of the lamp, the controlled lamp can maintain the original working state or change the working state. When the control state is the same as the current state of the lamp, the driver chip can control the controlled lamp to maintain the working state; when the control state is different from the state of the lamp, the driver chip can control the controlled lamp to change the working state to the control state.
[0067] Further, obtaining feedback information of the control data corresponding to the driver chip, and detecting the lamp control fault according to the feedback information, including:
[0068] Receive feedback information from the driver chip regarding control data.
[0069] When the feedback information includes lamp fault information, it is determined that the lamp control fault is a lamp fault.
[0070] When the feedback information includes communication fault information, it is determined that the lamp control fault is a communication fault.
[0071] Specifically, the MCU can read and receive feedback information from the driver for control data, and different control data can provide different feedback information. The feedback information may include lamp fault information, communication fault information, etc. A lamp control fault may be a fault caused by the lamp not executing the control data normally. The control fault may be divided into communication fault, lamp fault, etc. according to the type. When the feedback information includes lamp fault information, the lamp control fault may be determined to be a lamp fault; when the feedback information includes communication fault information, the lamp control fault may be determined to be a communication fault.
[0072] Embodiment 3
[0073] Figure 3 This is a flow chart of a lamp control logic principle provided according to Embodiment 3 of the present invention.
[0074] like Figure 3 As shown, the lamp control logic includes:
[0075] The CAN signal of the vehicle is sent periodically. The communication between the MCU and the driver chip inside the lamp adopts the IIC communication protocol, and the communication frequency is adapted according to the MCU resources. In order to ensure that the function is accurately implemented according to the CAN signal instruction, and to prevent the IIC communication from being interfered with by other interference sources, the function can be realized by periodically writing data. For example, if the vehicle instruction is to keep the position light on, the lamp will continue to receive CAN instruction information. The traditional practice is that the MCU only sends a write operation to the driver IC once, and the position light can also be kept on. However, in order to avoid the driver IC being affected by external static electricity and other factors, in order to reliably realize the continuous lighting of the position light, the MCU periodically repeats the writing of the position light lighting data to the driver chip, and the cycle time can be adjusted to between 50-300ms according to the MCU performance. When the vehicle sends a function change instruction, such as the position light changes from on to off, the MCU identifies the CAN signal and finds that the function instruction has changed. At this time, the function data is immediately written to the driver chip, and there is no need to wait for the periodic function instruction to be sent, so that the function can be switched in real time without delay.
[0076] Specifically, the vehicle-side CAN signal sends the function control instruction to the MCU, and the MCU determines whether the current function control instruction has changed compared with the historical function control instruction transmitted last time. If it is judged to be yes, it immediately sends the function signal to the driver chip, and the driver chip controls the controlled light-emitting diode (LED) to immediately execute the current function control instruction; if it is judged to be no, it intermittently sends the execution signal to the driver chip, and the driver chip controls the controlled LED to execute the function control instruction according to the execution signal.
[0077] Figure 4 This is a flow chart of a lamp function monitoring and diagnosis provided according to Embodiment 3 of the present invention.
[0078] like Figure 4 As shown, the lamp function monitoring diagnosis includes:
[0079] Since the internal functions of the lamps involve driving safety, it is necessary to perform fault detection on each function while ensuring the realization of each function. It is necessary to handle the fault or alarm as soon as possible, and perform periodic fault detection throughout the entire working period of the lamp. Fault detection is divided into communication fault detection and LED line fault detection.
[0080] The communication fault detection process is to first determine whether there is a communication fault between the MCU and the driver chip, and whether they can communicate normally. If a communication fault is determined to occur, and in order to avoid false alarms, the fault detection cycle is set to more than 3 times to determine that it is a real fault. If a real fault occurs, two processing actions are performed. One is to immediately reset the communication between the MCU and the driver chip. Under some special working conditions, the communication failure caused by some peripheral interference sources can be reset and restored by itself. The second is to report the fault information and notify the user of the fault information. However, if the cumulative communication reset is still unsuccessful 3 times in a short period of time, the MCU reset is executed, which can solve most communication faults by itself.
[0081] The LED fault detection process is to judge based on the LED working status feedback from the driver chip. If fault feedback occurs more than 3 times in a row, the LED fault information will be fed back to the entire vehicle to remind the user that the lamp is damaged and needs to be replaced.
[0082] Embodiment 4
[0083] Figure 5 This is a schematic diagram of the structure of a lighting control device provided by Embodiment 4 of the present invention. Figure 5 As shown, the device includes: a control data module 41 and a lamp control module 42.
[0084] The control data module 41 is used to generate control data corresponding to at least one type of controlled lamps according to user control instructions.
[0085] The lamp control module 42 is used to send control data to the driver chip of the controlled lamp based on a preset period to control the controlled lamp to execute the control data.
[0086] In the embodiment of the present invention, a control data module generates control data corresponding to at least one type of controlled lamps according to user control instructions. The lamp control module sends the control data to the driver chip of the controlled lamp according to a preset period, and then controls the lamp through the driver chip to execute the control data generated according to the user control instructions, thereby realizing stable control of the lamp function. The periodic transmission of control data to the driver chip can ensure that the function is accurately implemented according to the CAN signal instructions, avoid functional failure caused by data distortion caused by the driver chip's own confusion or external interference, and improve the stability of controlling the lamp.
[0087] Furthermore, in the above-mentioned embodiment of the invention, the control data module 41 includes:
[0088] The instruction receiving unit is used to receive a user control instruction input by a user, wherein the user control instruction includes at least one of a touch instruction, a voice instruction, and a gesture instruction.
[0089] The instruction extraction unit is used to extract the controlled lamp identification and control status included in the user control instruction.
[0090] The data encapsulation unit is used to encapsulate the controlled lamp identification and control status into an integrated circuit bus message as control data.
[0091] Furthermore, in the above-mentioned embodiment of the invention, the lamp control module 42 includes:
[0092] The data transmission unit is used to transmit control data to the driver chip according to the integrated circuit bus communication protocol in each preset cycle.
[0093] The state extraction unit is used to control the driving chip to extract the control state in the control data according to the controlled lamp identifier of the controlled lamp driven by the driving chip.
[0094] The lamp control unit is used to control the driver chip to drive the controlled lamp to work according to the control state and the current state of the lamp.
[0095] Furthermore, in the above-mentioned embodiment of the invention, the lamp control unit includes:
[0096] The first lamp control unit is used to control the driving chip to maintain the working state of the controlled lamp when the control state is the same as the current state of the lamp.
[0097] The second lamp control unit is used to control the driving chip to change the working state of the controlled lamp to the control state when the control state is different from the current state of the lamp.
[0098] Furthermore, based on the above-mentioned embodiment of the invention, the lighting control device further includes:
[0099] The fault detection module is used to obtain feedback information of the control data corresponding to the driver chip, and detect the lamp control fault based on the feedback information.
[0100] Furthermore, in the above-mentioned embodiment of the invention, the fault detection module includes:
[0101] The information receiving unit is used to receive feedback information from the driver chip regarding the control data.
[0102] The lamp fault confirmation unit is used to determine that the lamp control fault is a lamp fault when the feedback information includes the lamp fault information.
[0103] The communication fault confirmation unit is used to determine that the lamp control fault is a communication fault when the feedback information includes communication fault information.
[0104] Furthermore, based on the above-mentioned embodiment of the invention, the lighting control device further includes:
[0105] The data execution module is used to determine that the current control data is different from the historical control data transmitted last time, and then immediately send the control data to the driver chip of the controlled lamp so that the controlled lamp immediately executes the current control data.
[0106] A lamp control device provided in an embodiment of the present invention can execute a lamp control method provided in any embodiment of the present invention, and has functional modules and beneficial effects corresponding to the execution method.
[0107] Embodiment 5
[0108] Figure 6 A schematic diagram of a lighting control system that can be used to implement an embodiment of the present invention is shown. The lighting control system is intended to represent various forms of systems for controlling lighting, such as automated lighting control systems, manual lighting control systems, and other similar control devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or claimed herein.
[0109] like Figure 6 As shown, the lighting control system includes at least one control unit 10 and at least one driver chip 20. The control unit 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the lighting control system can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. The input / output (I / O) interface 15 is also connected to the bus 14. The driver chip 20 is connected to the control unit 10 and is used to drive the controlled lamp according to the control data of the control unit 10.
[0110] Multiple components in the lighting control system are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the lighting control system to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0111] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a lamp control method.
[0112] In some embodiments, the lamp control method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the lamp control system via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the lamp control method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute the lamp control method in any other appropriate manner (e.g., by means of firmware).
[0113] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0114] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0115] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0116] To provide interaction with a user, the systems and techniques described herein may be implemented on a lighting control system having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and pointing device (e.g., a mouse or trackball) through which a user can provide input to the lighting control system. Other types of devices may also be used to provide interaction with a user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0117] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0118] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0119] Embodiment 6
[0120] Figure 7 FIG. 1 shows a circuit schematic diagram of a lighting control system that can be used to implement an embodiment of the present invention. Figure 7 As shown, the system includes: CAN transceiver module, MCU main control chip, DCDC voltage regulator module, driver chip, LED light, external interface reserved on the vehicle end, etc.
[0121] Among them, the external reserved interfaces of the vehicle end include KL30, KL15, brake signal, GND, CAN+, and CAN-. KL15 represents the engine ignition signal and the signal for starting the vehicle; KL30 represents the positive pole of the battery, which provides low-voltage power supply for the MCU, usually 11V-15V; the brake signal is in the form of an electrical signal and an air pressure signal, which generates a brake signal to control the increase and decrease of the brake pressure of the electronic control brake system.
[0122] The vehicle-end interface is connected to the reserved external interface of the vehicle port. KL30 is connected to the DCDC voltage regulator module and the MCU power supply module for low-voltage power supply. The voltage regulator module is connected to each signal light to ensure the stable power supply of the signal light. The CAN transceiver module is connected to the MCU to input control data. The MCU can be connected to multiple driver chips, and each driver chip is connected to a lamp with corresponding function.
[0123] The lamp receives the power supply signal and CAN communication signal from the vehicle, and then sends it to the MCU through CAN transceiver. After the MCU processes the signal, it sends the corresponding command to the driver chip, and the driver chip drives the LED light source to light up, turn off, or light up in a running sequence. The lamp is connected to the battery of the vehicle, and the lamp has power input when the vehicle is working or not. At the same time, in order to ensure functional safety, redundant brake light signal lines are added, and the brake light lighting is controlled by dual signals of CAN signal and brake light signal line.
[0124] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0125] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A lamp control method, characterized in that: The method comprises: Generate control data corresponding to at least one type of controlled lamp according to the user control instruction; Sending the control data to the driver chip of the controlled lamp based on a preset period to control the controlled lamp to execute the control data; wherein each of the driver chips is connected to one of the controlled lamps; The step of generating control data corresponding to at least one type of controlled lamp according to the user control instruction includes: Receiving the user control instruction input by the user, wherein the user control instruction includes: at least one of a touch instruction, a voice instruction, and a gesture instruction; Extracting the controlled lamp identification and control status included in the user control instruction; Encapsulating the controlled lamp identification and the control state into an integrated circuit bus message as the control data; The step of sending the control data to the driver chip of the controlled lamp based on a preset period to control the controlled lamp to execute the control data includes: Transmitting the control data to the driver chip according to the integrated circuit bus communication protocol in each of the preset cycles; Control the driving chip to extract the control state in the control data according to the controlled lamp identifier of the controlled lamp driven by the driving chip; Control the driving chip to drive the controlled lamp to work according to the control state and the current state of the lamp; Before sending the control data to the driver chip of the controlled lamp based on a preset period to control the controlled lamp to execute the control data, the method further includes: If it is determined that the current control data is different from the historical control data transmitted last time, the control data is immediately sent to the driving chip of the controlled lamp so that the controlled lamp immediately executes the current control data.
2. The method according to claim 1, characterized in that: Also includes: Acquire feedback information of the driver chip corresponding to the control data, and detect lamp control failure according to the feedback information.
3. The method according to claim 1, characterized in that: The controlling the driving chip to drive the controlled lamp to work according to the control state and the current state of the lamp includes: Control the driving chip to maintain the working state of the controlled lamp when the control state is the same as the current state of the lamp; The driving chip is controlled to change the working state of the controlled lamp to the control state when the control state is different from the current state of the lamp.
4. The method according to claim 2, characterized in that: The obtaining feedback information of the driving chip corresponding to the control data, and detecting a lamp control fault according to the feedback information, includes: receiving feedback information from the driver chip regarding the control data; When the feedback information includes lamp fault information, determining that the lamp control fault is a lamp fault; When the feedback information includes communication fault information, it is determined that the lamp control fault is a communication fault.
5. A lighting control device, characterized in that: The device comprises: A control data module, used to generate control data corresponding to at least one type of controlled lamp according to a user control instruction; wherein each driver chip is connected to one of the controlled lamps; A lamp control module, configured to send the control data to a driver chip of the controlled lamp based on a preset period to control the controlled lamp to execute the control data; Wherein, the control data module includes: An instruction receiving unit, configured to receive the user control instruction input by the user, wherein the user control instruction includes: at least one of a touch instruction, a voice instruction, and a gesture instruction; An instruction extraction unit, used for extracting the controlled lamp identification and control state included in the user control instruction; A data encapsulation unit, used for encapsulating the controlled lamp identification and the control state into an integrated circuit bus message as the control data; Among them, the lighting control module includes: A data transmission unit, used for transmitting the control data to the driving chip according to the integrated circuit bus communication protocol in each preset period; A state extraction unit, used for controlling the driving chip to extract a control state in the control data according to a controlled lamp identifier of the controlled lamp driven by the driving chip; A lamp control unit, used to control the driving chip to drive the controlled lamp to work according to the control state and the current state of the lamp; Wherein, the lighting control device further includes: The data execution module is used to determine that the current control data is different from the historical control data transmitted last time, and then immediately send the control data to the driver chip of the controlled lamp so that the controlled lamp immediately executes the current control data.
6. A lighting control system, characterized in that: The lighting control system comprises: At least one control unit, the control unit comprising: at least one processor; and a memory in communication with the at least one processor; wherein the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the lamp control method according to any one of claims 1 to 4; At least one driving chip, the driving chip is connected to the control unit and is used to drive the controlled lamp according to the control data of the control unit.
7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the lamp control method according to any one of claims 1 to 4 when executed.
Citation Information
Patent Citations
Automobile headlight control system with CAN function and control method thereof
CN107972566A
Light control data scheduling method and system, communication control panel and storage medium
CN111867215A