Low beam control method and device, computer device, storage medium and product
Patent Information
- Application Number
- CN202310986363.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-07
- Publication Date
- 2026-10-30
- Estimated Expiration
- 2043-08-07
AI Technical Summary
然而,这种方法需要在玻璃厂家出厂之前就粘贴光线传感器,容易造成生产工艺成本的增加
[0031]上述近光灯控制方法、装置、计算机设备、存储介质和计算机程序产品,通过光线传感器获取光线信号,并根据光线信号,生成第一近光灯控制指令和灯光命令报文,将灯光命令报文发送至车载终端,指示车载终端返回近光灯控制报文,在近光灯控制报文满足连续帧要求条件的情况下,根据第一近光灯控制指令和近光灯控制报文携带的第二近光灯控制指令,控制近光灯继电器执行相应的操作,以控制近光灯,能够实现近光灯的自动控制,同时降低生产成本。
Smart Images

Figure CN117022099B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of commercial vehicle control technology, and in particular to a low beam headlight control method, device, computer equipment, storage medium, and computer program product. Background Technology
[0002] During the operation of commercial vehicles, the headlight indicator information is crucial for safe operation and normal driving by the driver. For commercial vehicles equipped with daytime running lights, the body controller usually turns on the low beam headlights based on the headlight indicator information when driving at night or entering tunnels.
[0003] Traditionally, a light sensor is attached to the windshield of a commercial vehicle to collect light signals. When a decrease in light intensity is detected, the daytime running lights are automatically activated. However, this method requires the light sensor to be attached before the glass leaves the factory, which can easily increase production costs. Summary of the Invention
[0004] Therefore, it is necessary to provide a method, apparatus, computer equipment, computer-readable storage medium, and computer program product for controlling low beam headlights that can reduce production costs, in response to the aforementioned technical problems.
[0005] In a first aspect, this application provides a low beam headlight control method, the method comprising:
[0006] Light signals are acquired via a light sensor, which is located on the dashboard.
[0007] Based on the light signal, generate the first low beam headlight control command;
[0008] A light command message is generated based on the light signal and sent to the vehicle terminal. The light command message is used to instruct the vehicle terminal to return a low beam control message. The low beam control message carries a second low beam control instruction.
[0009] When the low beam headlight control message meets the continuous frame requirement, the low beam headlight relay is controlled to perform the corresponding operation according to the first low beam headlight control command and the second low beam headlight control command, so as to control the low beam headlight.
[0010] In one embodiment, the light sensor includes a sunlight sensor and an ambient light sensor; correspondingly, the light signal includes a sunlight signal and a visible light signal; wherein the visible light wavelength is different from the sunlight wavelength.
[0011] In one embodiment, the light signal is a level signal; the step of generating a first low beam control command based on the light signal includes:
[0012] The level signal is converted into a driving current, and a first low beam control command is generated based on the driving current. The driving current is used to drive the low beam relay.
[0013] In one embodiment, the step of controlling the low beam relay to perform corresponding operations according to the first low beam control command and the second low beam control command includes:
[0014] When both the first low beam headlight control command and the second low beam headlight control command are to turn on the low beam headlights, the low beam headlight relay is activated.
[0015] When both the first low beam headlight control command and the second low beam headlight control command are to turn off the low beam headlights, the low beam headlight relay is turned off.
[0016] If either the first low beam control command or the second low beam control command is to turn on the low beam, return to the step of generating a light command message based on the light signal and continue execution.
[0017] In one embodiment, the method further includes:
[0018] If the low beam control message does not meet the continuous frame requirement, return to the step of generating a lighting command message based on the light signal and continue execution.
[0019] In one embodiment, the method further includes:
[0020] Obtain user voice information; user voice information carries voice control commands;
[0021] The vehicle terminal generates voice control messages based on voice control commands.
[0022] It receives voice control messages sent by the vehicle terminal and controls the low beam relay to perform corresponding operations according to the voice control messages in order to control the low beam lights.
[0023] Secondly, this application also provides a low beam headlight control device, the device comprising:
[0024] The signal acquisition module is used to acquire light signals through a light sensor, which is located on the dashboard.
[0025] The instruction generation module is used to generate the first low beam headlight control instruction based on the light signal;
[0026] The message generation module is used to generate a light command message based on the light signal and send the light command message to the vehicle terminal. The light command message is used to instruct the vehicle terminal to return a low beam control message. The low beam control message carries a second low beam control instruction.
[0027] The low beam control module is used to control the low beam relay to perform corresponding operations to control the low beams, based on the first low beam control command and the second low beam control command, when the low beam control message meets the continuous frame requirement.
[0028] Thirdly, this application also provides a computer device including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the method steps of any one of the first aspects.
[0029] Fourthly, this application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method steps of any one of the first aspects.
[0030] Fifthly, this application also provides a computer program product, which includes a computer program that, when executed by a processor, implements the method steps of any one of the first aspects.
[0031] The aforementioned low beam headlight control method, device, computer equipment, storage medium, and computer program product acquire light signals through a light sensor and generate a first low beam headlight control command and a light command message based on the light signals. The light command message is sent to the vehicle terminal, instructing the vehicle terminal to return a low beam headlight control message. When the low beam headlight control message meets the continuous frame requirement, the low beam headlight relay is controlled to perform corresponding operations according to the first low beam headlight control command and the second low beam headlight control command carried in the low beam headlight control message, thereby controlling the low beam headlights. This enables automatic control of the low beam headlights while reducing production costs. Attached Figure Description
[0032] Figure 1 This is an application environment diagram of the low beam headlight control method in one embodiment;
[0033] Figure 2 This is a flowchart illustrating a low beam headlight control method in one embodiment;
[0034] Figure 3 This is a flowchart illustrating a low beam headlight control method in one embodiment;
[0035] Figure 4 This is a flowchart illustrating a low beam headlight control method in one embodiment;
[0036] Figure 5 This is a structural block diagram of the low beam headlight control device in one embodiment;
[0037] Figure 6 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation
[0038] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0039] The low beam headlight control method provided in this application embodiment can be applied to, for example... Figure 1 In the application environment shown, the body controller 102 is electrically connected to the light sensor 104. The body controller 102 communicates with the vehicle terminal 106 via a network. The body controller 102 is also electrically connected to the low beam relay 108. The body controller 102 acquires light signals through the light sensor, generates a first low beam control command based on the light signals, generates a lighting command message based on the light signals, and sends the lighting command message to the vehicle terminal 106 to instruct the vehicle terminal 106 to return a low beam control message carrying a second low beam control command. If the low beam control message meets the continuous frame requirement, the body controller 102 controls the low beam relay 108 to perform corresponding operations to control the low beams based on the first and second low beam control commands. The body controller 102 is a vehicle controller. The light sensor 104 can be a light sensor without a communication module.
[0040] In one embodiment, such as Figure 2 As shown, a low beam headlight control method is provided, which is applied to... Figure 1 Taking the body controller 102 as an example, the following steps are included:
[0041] S202: Acquire light signals via a light sensor located on the dashboard.
[0042] Light sensors operate based on the photoelectric effect, which refers to the phenomenon where certain substances absorb light and convert it into electrical energy. The photoelectric effect can be divided into two types: external photoelectric effect and internal photoelectric effect. The external photoelectric effect refers to the emission of electrons from the interior of a material under light irradiation, generating an electrical current. Phototubes and photomultiplier tubes are components based on the external photoelectric effect. Conversely, the internal photoelectric effect occurs within the material itself. When light shines on a material, it changes its internal resistivity, thereby generating an electromotive force. Photoresistors and photovoltaic cells are photoelectric components based on the internal photoelectric effect.
[0043] Among them, the light sensor is a device that generates an external photoelectric effect. When a vehicle equipped with daytime running lights enters a tunnel or drives at night, the light sensor can collect light signals in real time and convert them into electrical signals, so that the vehicle body controller can automatically control the low beam headlights to turn on or off based on the electrical signals.
[0044] Typically, to facilitate light signal acquisition, light sensors are installed on the windshield before the vehicle leaves the factory. However, due to the difficulty of wiring on the windshield, light sensors with communication modules are usually chosen to transmit signals to the body controller wirelessly, significantly increasing production costs. Therefore, this embodiment provides a low-beam headlight control method that installs the light sensor on the dashboard. This method is applicable to various vehicle types and does not require factory installation. While ensuring effective light signal acquisition, it allows direct electrical connection to the body controller via the dashboard's internal circuitry, effectively reducing production costs.
[0045] S204: Generate the first low beam headlight control command based on the light signal.
[0046] Among them, the light signal is the wavelength signal of visible light. Under normal circumstances, sunlight is infrared light, and the wavelength range of infrared light is 0.75 to 1100 nm, while the wavelength range of other visible light in the environment is 400 to 760 nm. The vehicle controller determines whether the low beam headlights need to be turned on at this time based on the wavelengths of sunlight and visible light in the collected light signal, and generates the corresponding first low beam headlight control command. When the low beam headlights need to be turned on, the vehicle controller converts the light signal into the corresponding drive current. The drive current is used to drive the low beam headlight relay to turn on, conduct the low beam headlight circuit, and realize the low beam headlights.
[0047] S206: Generate a light command message based on the light signal and send the light command message to the vehicle terminal. The light command message is used to instruct the vehicle terminal to return a low beam control message. The low beam control message carries a second low beam control instruction.
[0048] To improve the reliability of the first low beam control command generated by the body controller, the body controller simultaneously generates a light command message based on the light signal. This light command message is a CAN message, which the body controller sends to the on-board terminal via CAN communication. Upon receiving the light command message, the on-board terminal continuously returns low beam control messages to the body controller, achieving redundant control of the low beams and increasing the reliability of the body controller. The low beam control message carries a second low beam control command as a supplement to the light sensor's level signal input, allowing the body controller to combine the first and second low beam control commands to control the low beams' on / off state.
[0049] S208: When the low beam headlight control message meets the continuous frame requirement, the low beam headlight relay is controlled to perform the corresponding operation according to the first low beam headlight control command and the second low beam headlight control command, so as to control the low beam headlight.
[0050] To improve the reliability of the second low beam control command sent by the vehicle terminal, the vehicle terminal is required to send three consecutive frames of low beam control messages. The body controller only controls the low beams if the low beam control messages meet the consecutive frame requirement. Specifically, when both the first and second low beam control commands are to turn on the low beams, the body controller generates a drive current to activate the low beam relay, thus turning on the low beams.
[0051] The low beam relay is an electrical control device that causes a predetermined step change in the controlled variable in the electrical output circuit when the change in the input quantity (excitation quantity) reaches a specified requirement. It has an interactive relationship between the control system (also known as the input circuit) and the controlled system (also known as the output circuit). It is commonly used in automated control circuits and is essentially an "automatic switch" that uses a small current to control a large current. When the low beam relay receives the drive current generated by the vehicle controller, it is equivalent to "turning on the switch," activating the low beam circuit and turning on the low beam headlights.
[0052] In the aforementioned low beam headlight control method, a light signal is acquired through a light sensor, and a first low beam headlight control command and a light command message are generated based on the light signal. The light command message is sent to the vehicle terminal, instructing the vehicle terminal to return a low beam headlight control message. If the low beam headlight control message meets the continuous frame requirement, the low beam headlight relay is controlled to perform corresponding operations according to the first low beam headlight control command and the second low beam headlight control command carried in the low beam headlight control message, thereby controlling the low beam headlights. This method enables automatic control of the low beam headlights while reducing production costs.
[0053] In one embodiment, the light sensor includes a sunlight sensor and an ambient light sensor; correspondingly, the light signal includes a sunlight signal and a visible light signal; wherein the visible light wavelength is different from the sunlight wavelength.
[0054] The light sensor integrates a sunlight sensor and an ambient light sensor. The sunlight sensor detects sunlight and is sensitive to infrared light. Infrared light wavelengths range from 0.75 to 1100 nm; therefore, a silicon photodiode with a peak wavelength between 700 and 1000 nm should be selected. The ambient light sensor detects visible light, which has a wavelength range of 400 to 760 nm. Therefore, the peak wavelength of the selected photodiode should also be within this range.
[0055] In this embodiment, the accuracy of the light signal can be improved by using a sunlight sensor and an ambient light sensor to sense sunlight and visible light respectively.
[0056] In one embodiment, the light signal is a level signal; the step of generating a first low beam control command based on the light signal includes: converting the level signal into a drive current, and generating a first low beam control command based on the drive current, wherein the drive current is used to drive the low beam relay.
[0057] The light sensor transmits a level signal to the body controller. When the body controller receives the light signal, it determines whether the low beam headlights need to be turned on based on the wavelengths of visible light and sunlight. If the low beam headlights need to be turned on, the body controller converts the level signal into a low-voltage drive current (e.g., 200mA) to drive the low beam headlight relay. If the low beam headlights do not need to be turned on, the body controller does not perform level signal conversion.
[0058] In this embodiment, by converting the level signal into a driving current and generating a first low beam control command based on the driving current, the low beam can be automatically turned on when the light intensity is low.
[0059] In one embodiment, the step of controlling the low beam relay to perform corresponding operations according to the first low beam control command and the second low beam control command includes: driving the low beam relay to start when both the first low beam control command and the second low beam control command are to turn on the low beam; turning off the low beam relay when both the first low beam control command and the second low beam control command are to turn off the low beam; and returning to the step of generating a light command message based on the light signal and continuing execution when either the first low beam control command or the second low beam control command is to turn on the low beam.
[0060] Specifically, when both the first and second low beam headlight control commands are to turn on the low beam headlights, the body controller activates the low beam headlight relay via a low-voltage drive current to turn on the low beam headlights. When both commands are to turn off the low beam headlights, the body controller deactivates the low beam headlight relay to turn off the low beam headlights. If either the first or second command turns on the low beam headlights, it indicates a malfunction in the light sensor or an error in the command generated by the onboard terminal. In this case, the body controller regenerates the headlight command message and resends it to the onboard terminal to receive the low beam headlight control message returned by the onboard terminal, thus achieving redundant control of the low beam headlights.
[0061] In this embodiment, by executing corresponding low beam control operations under various indications of the first low beam control command and the second low beam control command, automatic control of the low beam can be achieved, while reducing production costs.
[0062] In one embodiment, the method further includes: if the low beam control message does not meet the continuous frame requirement, returning to the step of generating a light command message based on the light signal and continuing execution.
[0063] In cases where the low beam headlight control message returned by the vehicle terminal does not meet the continuous frame requirement, it indicates that the message sent by the vehicle terminal is questionable and may contain errors, or that the headlight command message sent by the body controller is incorrect, causing the vehicle terminal to return an erroneous message. Therefore, the body controller regenerates the headlight command message and sends it to the vehicle terminal again to receive the low beam headlight control message returned by the vehicle terminal, thereby achieving redundant control of the low beam headlights.
[0064] In this embodiment, by returning to regenerate the lighting command message based on the light signal when the low beam control message does not meet the continuous frame requirement, the accuracy of low beam control can be improved.
[0065] In one embodiment, such as Figure 3 As shown, the method also includes the following steps:
[0066] S302: Obtain user voice information; the user voice information carries voice control commands.
[0067] In the process of the body controller automatically controlling the low beam headlights to turn on or off, the body controller can also control the low beam headlights according to the user's voice commands. Specifically, the body controller obtains the user's voice information, such as the voice control commands input by the user to the vehicle terminal.
[0068] S304: Generates voice control messages based on voice control commands via the vehicle terminal.
[0069] After receiving the user's voice control command, the vehicle terminal generates a corresponding voice control message based on the voice control command and sends the voice control message to the body controller.
[0070] S306: Receives voice control messages sent by the vehicle terminal and controls the low beam relay to perform corresponding operations according to the voice control messages in order to control the low beam lights.
[0071] When the body controller receives a voice control message, it extracts the voice control command from the message and executes the corresponding operation to control the low beam relay to turn on or off, thereby controlling the low beam headlights to turn on or off.
[0072] In this embodiment, by acquiring user voice information, which carries voice control commands, the vehicle terminal generates voice control messages based on the voice control commands, receives the voice control messages sent by the vehicle terminal, and controls the low beam relay to perform corresponding operations based on the voice control messages, thereby controlling the low beam lights. This can meet the user's needs in different situations and improve the accuracy of low beam light control.
[0073] In one embodiment, such as Figure 4 As shown, a low beam headlight control method is provided, which includes the following steps:
[0074] S402: Acquire light signals via a light sensor located on the dashboard; the light sensor includes a sunlight sensor and an ambient light sensor; correspondingly, the light signals include sunlight signals and visible light signals; wherein the wavelength of visible light is different from that of sunlight.
[0075] S404: Converts the level signal into a drive current and generates a first low beam control command based on the drive current. The drive current is used to drive the low beam relay.
[0076] S406: Generate a light command message based on the light signal and send the light command message to the vehicle terminal. The light command message is used to instruct the vehicle terminal to return a low beam control message. The low beam control message carries a second low beam control instruction.
[0077] S408: If the low beam control message meets the continuous frame requirement, and both the first low beam control command and the second low beam control command are to turn on the low beam, drive the low beam relay to start; if both the first low beam control command and the second low beam control command are to turn off the low beam, turn off the low beam relay; if either the first low beam control command or the second low beam control command is to turn on the low beam, return to the step of generating a light command message based on the light signal and continue execution.
[0078] S410: If the low beam control message does not meet the continuous frame requirement, return to the step of generating a lighting command message based on the light signal and continue execution.
[0079] S412: Obtain user voice information; the user voice information carries voice control commands; generate voice control messages through the vehicle terminal according to the voice control commands; receive the voice control messages sent by the vehicle terminal, and control the low beam relay to perform corresponding operations according to the voice control messages to control the low beam lights.
[0080] In this embodiment, a light sensor acquires a light signal, and based on the light signal, a first low beam headlight control command and a light command message are generated. The light command message is sent to the vehicle terminal, instructing the vehicle terminal to return a low beam headlight control message. If the low beam headlight control message meets the continuous frame requirement, the low beam headlight relay is controlled to perform corresponding operations according to the first low beam headlight control command and the second low beam headlight control command carried in the low beam headlight control message, so as to control the low beam headlight. This enables automatic control of the low beam headlight and reduces production costs.
[0081] It should be understood that although the steps in the flowcharts of the above embodiments are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the above embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.
[0082] Based on the same inventive concept, this application also provides a low beam headlight control device for implementing the aforementioned low beam headlight control method. The solution provided by this device is similar to the solution described in the above method; therefore, the specific limitations in one or more embodiments of the low beam headlight control device provided below can be found in the limitations of the low beam headlight control method described above, and will not be repeated here.
[0083] In one embodiment, such as Figure 5 As shown, a low beam headlight control device is provided, including: a signal acquisition module 10, an instruction generation module 20, a message generation module 30, and a low beam headlight control module 40, wherein:
[0084] The signal acquisition module 10 is used to acquire light signals through a light sensor, which is located on the dashboard.
[0085] The instruction generation module 20 is used to generate a first low beam headlight control instruction based on the light signal.
[0086] The message generation module 30 is used to generate a light command message based on the light signal and send the light command message to the vehicle terminal. The light command message is used to instruct the vehicle terminal to return a low beam control message. The low beam control message carries a second low beam control instruction.
[0087] The low beam control module 40 is used to control the low beam relay to perform corresponding operations to control the low beam when the low beam control message meets the continuous frame requirement, according to the first low beam control command and the second low beam control command.
[0088] In one embodiment, the light sensor includes a sunlight sensor and an ambient light sensor; correspondingly, the light signal includes a sunlight signal and a visible light signal; wherein the visible light wavelength is different from the sunlight wavelength.
[0089] In one embodiment, the light signal is a level signal; the instruction generation module 20 is also used to convert the level signal into a drive current and generate a first low beam control instruction based on the drive current, the drive current being used to drive the low beam relay.
[0090] In one embodiment, the low beam control module 40 is further configured to: drive the low beam relay to start when both the first low beam control command and the second low beam control command are to turn on the low beam; turn off the low beam relay when both the first low beam control command and the second low beam control command are to turn off the low beam; and return to the step of generating a light command message based on the light signal and continue execution when both the first low beam control command and the second low beam control command are to turn on the low beam.
[0091] In one embodiment, the low beam control module 40 is further configured to return to the step of generating a light command message based on the light signal and continue execution if the low beam control message does not meet the continuous frame requirement.
[0092] In one embodiment, the low beam headlight control module 40 is further configured to acquire user voice information; the user voice information carries voice control instructions; generate a voice control message through the vehicle terminal according to the voice control instructions; receive the voice control message sent by the vehicle terminal, and control the low beam headlight relay to perform corresponding operations according to the voice control message to control the low beam headlights.
[0093] The modules in the aforementioned low beam headlight control device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of a computer device in hardware form or independent of it, or stored in the memory of a computer device in software form, so that the processor can call and execute the corresponding operations of each module.
[0094] In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 6As shown, the computer device includes a processor, memory, input / output interface, communication interface, display unit, and input device. The processor, memory, and input / output interface are connected via a system bus, and the communication interface, display unit, and input device are also connected to the system bus via the input / output interface. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The input / output interface is used for exchanging information between the processor and external devices. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, NFC (Near Field Communication), or other technologies. When the computer program is executed by the processor, it implements a low-beam headlight control method. The display unit is used to form a visually visible image and can be a display screen, projection device, or virtual reality imaging device. The display screen can be an LCD screen or an e-ink screen. The input device of the computer device can be a touch layer covering the display screen, or buttons, trackballs, or touchpads set on the casing of the computer device, or external keyboards, touchpads, or mice, etc.
[0095] Those skilled in the art will understand that Figure 6 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0096] In one embodiment, a computer device is provided, including a memory and a processor. The memory stores a computer program, and the processor executes the computer program to perform the following steps: acquiring a light signal via a light sensor located on the dashboard; generating a first low beam headlight control command based on the light signal; generating a light command message based on the light signal and sending the light command message to an on-board terminal, the light command message instructing the on-board terminal to return a low beam headlight control message, the low beam headlight control message carrying a second low beam headlight control command; and, if the low beam headlight control message meets the continuous frame requirement, controlling a low beam headlight relay to perform corresponding operations to control the low beam headlights based on the first low beam headlight control command and the second low beam headlight control command.
[0097] In one embodiment, the light sensors involved when the processor executes a computer program include a sunlight sensor and an ambient light sensor; correspondingly, the light signals include sunlight signals and visible light signals; wherein the wavelength of visible light is different from the wavelength of sunlight.
[0098] In one embodiment, the light signal is a level signal; the process of generating a first low beam control instruction based on the light signal when the processor executes the computer program includes: converting the level signal into a drive current, and generating the first low beam control instruction based on the drive current, wherein the drive current is used to drive the low beam relay.
[0099] In one embodiment, when the processor executes the computer program, the operation of controlling the low beam relay to perform corresponding operations according to the first low beam control command and the second low beam control command includes: driving the low beam relay to start when both the first low beam control command and the second low beam control command are to turn on the low beam; turning off the low beam relay when both the first low beam control command and the second low beam control command are to turn off the low beam; and returning to the step of generating a light command message based on the light signal and continuing execution when either the first low beam control command or the second low beam control command is to turn on the low beam.
[0100] In one embodiment, when the processor executes the computer program, it further performs the following steps: if the low beam control message does not meet the continuous frame requirement, it returns to the step of generating a light command message based on the light signal and continues execution.
[0101] In one embodiment, when the processor executes the computer program, it also performs the following steps: acquiring user voice information; the user voice information carrying voice control instructions; generating a voice control message through the vehicle terminal according to the voice control instructions; receiving the voice control message sent by the vehicle terminal, and controlling the low beam relay to perform corresponding operations according to the voice control message to control the low beam.
[0102] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, it performs the following steps: acquiring a light signal via a light sensor located on the dashboard; generating a first low beam headlight control command based on the light signal; generating a light command message based on the light signal and sending the light command message to an on-board terminal, the light command message instructing the on-board terminal to return a low beam headlight control message, the low beam headlight control message carrying a second low beam headlight control command; and, if the low beam headlight control message meets the continuous frame requirement, controlling a low beam headlight relay to perform corresponding operations to control the low beam headlights based on the first low beam headlight control command and the second low beam headlight control command.
[0103] In one embodiment, the light sensors involved when the computer program is executed by the processor include a sunlight sensor and an ambient light sensor; correspondingly, the light signals include sunlight signals and visible light signals; wherein the wavelength of visible light is different from the wavelength of sunlight.
[0104] In one embodiment, the light signal is a level signal; when the computer program is executed by the processor, the generation of a first low beam control instruction based on the light signal includes: converting the level signal into a drive current, and generating the first low beam control instruction based on the drive current, wherein the drive current is used to drive the low beam relay.
[0105] In one embodiment, when the computer program is executed by the processor, it involves controlling the low beam relay to perform corresponding operations according to the first low beam control command and the second low beam control command, including: driving the low beam relay to start when both the first low beam control command and the second low beam control command are to turn on the low beam; turning off the low beam relay when both the first low beam control command and the second low beam control command are to turn off the low beam; and returning to the step of generating a light command message based on the light signal and continuing execution when either the first low beam control command or the second low beam control command is to turn on the low beam.
[0106] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: if the low beam control message does not meet the continuous frame requirement, it returns to the step of generating a light command message based on the light signal and continues execution.
[0107] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: acquiring user voice information; the user voice information carrying voice control instructions; generating a voice control message through the vehicle terminal according to the voice control instructions; receiving the voice control message sent by the vehicle terminal, and controlling the low beam relay to perform corresponding operations according to the voice control message to control the low beam lights.
[0108] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, performs the following steps: acquiring a light signal via a light sensor located on the dashboard; generating a first low beam headlight control command based on the light signal; generating a light command message based on the light signal and sending the light command message to an in-vehicle terminal, the light command message instructing the in-vehicle terminal to return a low beam headlight control message, the low beam headlight control message carrying a second low beam headlight control command; and, if the low beam headlight control message meets the continuous frame requirement, controlling a low beam headlight relay to perform corresponding operations to control the low beam headlights based on the first low beam headlight control command and the second low beam headlight control command.
[0109] In one embodiment, the light sensors involved when the computer program is executed by the processor include a sunlight sensor and an ambient light sensor; correspondingly, the light signals include sunlight signals and visible light signals; wherein the wavelength of visible light is different from the wavelength of sunlight.
[0110] In one embodiment, the light signal is a level signal; when the computer program is executed by the processor, the generation of a first low beam control instruction based on the light signal includes: converting the level signal into a drive current, and generating the first low beam control instruction based on the drive current, wherein the drive current is used to drive the low beam relay.
[0111] In one embodiment, when the computer program is executed by the processor, it involves controlling the low beam relay to perform corresponding operations according to the first low beam control command and the second low beam control command, including: driving the low beam relay to start when both the first low beam control command and the second low beam control command are to turn on the low beam; turning off the low beam relay when both the first low beam control command and the second low beam control command are to turn off the low beam; and returning to the step of generating a light command message based on the light signal and continuing execution when either the first low beam control command or the second low beam control command is to turn on the low beam.
[0112] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: if the low beam control message does not meet the continuous frame requirement, it returns to the step of generating a light command message based on the light signal and continues execution.
[0113] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: acquiring user voice information; the user voice information carrying voice control instructions; generating a voice control message through the vehicle terminal according to the voice control instructions; receiving the voice control message sent by the vehicle terminal, and controlling the low beam relay to perform corresponding operations according to the voice control message to control the low beam lights.
[0114] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.
[0115] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0116] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A method for controlling low beam headlights, characterized in that, The method includes: A light sensor is used to acquire light signals, and the light sensor is located on the dashboard; the light sensor includes a sunlight sensor and an ambient light sensor; the light signals include sunlight signals and visible light signals; the light signal output by the light sensor is a level signal; The vehicle body controller converts the level signal into a drive current and generates a first low beam headlight control command based on the drive current. The drive current is used to drive the low beam headlight relay. The vehicle controller generates a lighting command message based on the light signal and sends the lighting command message to the vehicle terminal. The lighting command message is used to instruct the vehicle terminal to continuously return low beam control messages to the vehicle controller. The low beam control message carries a second low beam control command as a supplement to the light sensor level signal input. If the low beam control message meets the continuous frame requirement, and both the first low beam control command and the second low beam control command are to turn on the low beam, the low beam relay is activated; the continuous frame requirement is to send three consecutive frames of low beam control messages. When both the first low beam control command and the second low beam control command are to turn off the low beam, the low beam relay is turned off; If the low beam control message does not meet the continuous frame requirement, return to the step of generating a light command message based on the light signal and continue execution.
2. The method according to claim 1, characterized in that, The method further includes: Obtain user voice information; the user voice information carries voice control commands; The vehicle terminal generates a voice control message based on the voice control command. The system receives voice control messages sent by the vehicle terminal and controls the low beam relay to perform corresponding operations based on the voice control messages in order to control the low beam.
3. A low beam headlight control device, characterized in that, The device includes: A signal acquisition module is used to acquire light signals through a light sensor, which is located on the dashboard; the light sensor includes a sunlight sensor and an ambient light sensor; the light signals include sunlight signals and visible light signals; the light signals output by the light sensor are level signals. The instruction generation module is used to convert the level signal into a drive current through the body controller, and generate a first low beam headlight control instruction based on the drive current, wherein the drive current is used to drive the low beam headlight relay. The message generation module is used to generate a light command message based on the light signal through the body controller, and send the light command message to the vehicle terminal. The light command message is used to instruct the vehicle terminal to continuously return low beam control messages to the body controller. The low beam control message carries a second low beam control command as a supplement to the light sensor level signal input. The low beam control module is configured to, when the low beam control message meets the continuous frame requirement, and both the first low beam control command and the second low beam control command are to turn on the low beam, drive the low beam relay to start; the continuous frame requirement is to send three consecutive frames of low beam control messages; when both the first low beam control command and the second low beam control command are to turn off the low beam, turn off the low beam relay; and when the low beam control message does not meet the continuous frame requirement, return to the step of generating a light command message based on the light signal and continue execution.
4. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 2.
5. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 2.
6. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 2.
Citation Information
Patent Citations
Aircraft control system, flight control method and storage medium
CN116243594A
Automatic light control ware
CN204506691U
