Vehicle lamp control method, device and equipment and medium
By combining GPRS positioning and cross-verification of driving cameras, the problem of accuracy in adjusting the vehicle's headlight pattern between different steering areas is solved, automatic adjustment of vehicle lights in compliance with regulations and fault warnings are achieved, improving driving safety.
Patent Information
- Application Number
- CN202511012092.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-22
- Publication Date
- 2025-09-16
AI Technical Summary
When a vehicle travels between different steering areas, existing technologies make it difficult to accurately adjust the headlight pattern, resulting in violations of local regulations or glare. Single positioning systems or camera recognition are susceptible to errors, leading to erroneous switching.
The dual data sources of the GPRS positioning system and the driving camera are combined for cross-verification. By identifying the area type and driving direction, the headlight pattern is adjusted after ensuring the vehicle position is accurate. Otherwise, the position is verified and the light pattern is adjusted.
It improves the accuracy of vehicle lighting compliance with regulations in different regions, reduces the risk of misjudgment, implements system fault warnings and driving regulations prompts, and ensures that lighting meets local requirements.
Smart Images

Figure CN120645812A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of automobile technology, and in particular to a method, device, equipment and medium for controlling vehicle lights. Background Art
[0002] With the increasing frequency of cross-border and interregional driving, vehicles often need to travel between areas with different steering directions (such as left-hand drive and right-hand drive). This difference in steering direction leads to different regulations for headlight beam patterns: vehicles in left-hand drive areas must limit headlight illumination to the left side, while vehicles in right-hand drive areas must limit headlight illumination to the right side. When a vehicle enters a right-hand drive area from a left-hand drive area (or vice versa), if the headlight pattern is not adjusted accordingly, it not only violates local regulations but also causes severe glare, endangering driving safety.
[0003] Relying solely on positioning systems (such as GPS / GPRS) to determine regional steering direction is susceptible to misjudgment due to signal accuracy, map data latency, or blurred boundaries. Relying solely on cameras to identify actual driving direction is prone to errors due to road conditions, weather, or algorithmic limitations. Failure of any of these systems alone can lead to automatic switching errors. Therefore, there is room for improvement. Summary of the Invention
[0004] The present invention provides a method, device, equipment and medium for controlling vehicle lights, which can automatically switch the light type of the lights when the area type changes.
[0005] The present invention provides a method for controlling vehicle lights, comprising:
[0006] Collect vehicle positioning information and identify the area type;
[0007] When the area type changes, collecting image information of the road and identifying the direction of vehicle travel;
[0008] Detect the changed area type and driving direction to determine the vehicle's accurate position:
[0009] When the vehicle position is determined to be accurate, the light pattern of the vehicle lights is adjusted accordingly according to the changed area type;
[0010] Otherwise, the vehicle position is verified, and the light pattern of the vehicle lights is adjusted accordingly according to the area type corresponding to the verified vehicle position.
[0011] In one embodiment of the present invention, the step of detecting the changed area type and the driving direction to determine the accurate location of the vehicle includes:
[0012] Determine the changed area type and the driving direction:
[0013] When the changed area type is a right-hand drive area and the driving direction is left-hand driving, or when the changed area type is a left-hand drive area and the driving direction is right-hand driving, determining that the vehicle position is accurate;
[0014] Otherwise, the vehicle position is determined to be inaccurate.
[0015] In one embodiment of the present invention, the step of adjusting the light pattern of the vehicle headlights according to the changed region type includes:
[0016] Determine the region type after the change:
[0017] When the changed area type is a right-hand drive area, adjusting the light pattern of the headlights to a right-hand drive light pattern;
[0018] When the changed area type is a left-hand drive area, the light pattern of the vehicle lights is adjusted to a left-hand drive light pattern.
[0019] In one embodiment of the present invention, the step of verifying the vehicle location includes:
[0020] When it is determined that the vehicle position is inaccurate, a corresponding error message is generated and sent;
[0021] receiving a fault selection instruction input by a driver according to the error information;
[0022] The region type corresponding to the vehicle location is verified according to the fault selection instruction.
[0023] In one embodiment of the present invention, the step of verifying the region type corresponding to the vehicle location according to the fault selection instruction includes:
[0024] Determine the fault type corresponding to the fault selection instruction:
[0025] When the fault type is a system fault, generating and sending corresponding fault information, and verifying the area type corresponding to the vehicle location according to the fault information;
[0026] When the fault type is illegal driving, corresponding violation information is generated and sent, and the area type corresponding to the vehicle position is verified based on the violation information.
[0027] In one embodiment of the present invention, the step of verifying the region type corresponding to the vehicle location according to the fault information includes:
[0028] receiving a region selection instruction input by a driver according to the fault information;
[0029] The region type corresponding to the vehicle location is determined according to the fault selection instruction.
[0030] In one embodiment of the present invention, the step of verifying the area type corresponding to the vehicle location based on the violation information includes:
[0031] The area type corresponding to the vehicle location is determined to be the changed area type according to the violation information.
[0032] The present invention also provides a control device for a vehicle lamp, comprising:
[0033] Positioning module, used to collect vehicle positioning information and identify the type of area it belongs to;
[0034] The recognition module is used to collect image information of the road and identify the direction of vehicle travel when the area type changes;
[0035] The detection module is used to detect the changed area type and driving direction to determine the accuracy of the vehicle position: when the vehicle position is determined to be correct, the light pattern of the headlights is adjusted accordingly according to the changed area type; otherwise, the vehicle position is verified and the light pattern of the headlights is adjusted accordingly according to the area type corresponding to the verified vehicle position.
[0036] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of the vehicle light control method are implemented.
[0037] The present invention also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps of the vehicle light control method are implemented.
[0038] The beneficial effects of the present invention: by combining the dual data sources of the GPRS positioning system and the driving camera for cross-verification, the accuracy and reliability of the judgment of the actual driving steering area of the vehicle are significantly improved, and the risk of misjudgment caused by signal errors, map delays, road interference or algorithm limitations of a single system (relying only on GPS / GPRS or only on the camera) is effectively solved. When the recognition results of the two are inconsistent, the location verification process is automatically triggered, which can not only timely discover potential faults of the positioning module or camera module at the system level, but also prompt the driver to correct possible illegal driving behaviors, realizing the dual functions of system fault warning and driving regulations prompts. Finally, the headlight pattern is adjusted by accurately determining or verifying the area type to ensure that the vehicle's lights meet local regulations regardless of whether it is traveling across countries or regions. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] The accompanying drawings are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present application, and together with the specification, are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be derived from these drawings without inventive effort.
[0040] In the attached figure:
[0041] Figure 1 A flow chart of a method for controlling vehicle lights according to an embodiment of the present invention;
[0042] Figure 2 A schematic diagram of a left-hand steering light pattern in a method for controlling vehicle lights provided in one embodiment of the present invention;
[0043] Figure 3 A schematic diagram of a right-hand steering light pattern in a method for controlling vehicle lights provided in one embodiment of the present invention;
[0044] Figure 4 is a schematic diagram of a vehicle light control device provided in one embodiment of the present invention;
[0045] Figure 5 A schematic diagram of an electronic device provided in one embodiment of the present invention.
[0046] The reference numerals are as follows: 1, left-rudder light type; 2, right-rudder light type; 100, positioning module; 200, identification module; 300, detection module; 10, electronic device; 11, memory; 12, processor. DETAILED DESCRIPTION
[0047] The following describes the embodiments of the present invention through specific examples. Those skilled in the art will readily understand the other advantages and benefits of the present invention from the disclosure herein. The present invention may also be implemented or applied through various other specific embodiments. The details in this specification may be modified or altered based on different viewpoints and applications without departing from the spirit of the present invention. The following embodiments and features therein may be combined with one another without conflict.
[0048] It should be noted that the illustrations provided in the following embodiments are merely schematic illustrations of the basic concept of the present invention. The drawings only show components related to the present invention and are not drawn according to the number, shape, and size of components in actual implementation. In actual implementation, the type, quantity, and proportion of each component may be changed arbitrarily, and the component layout may also be more complex.
[0049] In the following description, numerous details are discussed to provide a more thorough explanation of the embodiments of the present invention. However, it will be apparent to those skilled in the art that the embodiments of the present invention may be practiced without these specific details. In other embodiments, well-known structures and devices are shown in block diagram form rather than in detail to avoid obscuring the embodiments of the present invention.
[0050] See also Figure 1 The present invention discloses a method for controlling vehicle lights, which can automatically switch the light pattern of the lights according to the vehicle's location. The control method may include the following steps: Step S10, collecting the vehicle's location information and identifying the type of area it belongs to.
[0051] In some embodiments, the vehicle's GPRS positioning system can operate continuously or periodically, receiving signals from multiple GPS satellites and using trilateration to calculate the vehicle's current longitude and latitude coordinates. This coordinate information represents the vehicle's specific geographic location on the Earth's surface.
[0052] In some embodiments, the GPRS positioning system transmits coordinate information as raw positioning data via an in-vehicle network (e.g., CAN bus or Ethernet) to the vehicle's entertainment information host (DHU). Upon receiving the raw latitude and longitude coordinates from the GPRS positioning system, the DHU does not directly perform complex regional determination processing. Instead, it acts as an information relay, forwarding the original, unaltered vehicle location data (i.e., latitude and longitude coordinates) intactly and accurately to the vehicle's body domain controller (CDM).
[0053] In some embodiments, the vehicle domain controller (CDM) pre-stores a detailed global geographic information database and a left-hand drive or right-hand drive region mapping table. The region mapping table details the legal traffic regulation steering direction corresponding to different geographical regions around the world (e.g., divided by national borders, administrative divisions, or known special areas) (i.e., whether the region is a left-hand drive or right-hand drive vehicle driving area).
[0054] In some embodiments, upon receiving the vehicle's current latitude and longitude coordinates forwarded from the entertainment information host DHU, the body domain controller (CDM) immediately queries its internally stored region mapping table based on these coordinates. Through coordinate matching calculations (e.g., determining within which defined geographic region the current latitude and longitude coordinates fall), the body domain controller (CDM) can accurately identify and determine which predefined region block the vehicle's current specific geographic location belongs to. Next, the body domain controller (CDM) queries the attributes marked in the region block in its internal mapping table to ultimately determine and identify the legal vehicle steering type corresponding to the geographic location (i.e., left-hand drive or right-hand drive).
[0055] In some embodiments, the control method may further include the following steps: Step S20: When the area type changes, image information of the road is collected and the vehicle driving direction is identified.
[0056] In some embodiments, the body domain controller (CDM) continuously monitors for critical changes in the vehicle's steering type within the region. Specifically, the CDM compares the vehicle's currently identified steering type (left-hand drive or right-hand drive) with the steering type it identified a moment ago. Through this continuous comparison and judgment logic, the CDM can accurately detect whether the vehicle has just crossed from a left-hand drive region to a right-hand drive region, or vice versa.
[0057] In some embodiments, when the body domain controller CDM confirms that the vehicle has indeed undergone a change in the steering type of the region (for example, from a left-hand drive region to a right-hand drive region, or vice versa) based on the comparison results of the region type at the current moment and the previous moment, that is, when it determines that a change in region type has occurred, the body domain controller CDM will actively generate and send a driving direction identification request instruction to the intelligent driving control unit ADCU. The core purpose of this instruction is to request the start of the visual confirmation process of the driving direction.
[0058] In some embodiments, after the intelligent driving control unit ADCU receives the driving direction recognition request instruction from the vehicle body domain controller CDM, it will immediately activate the vehicle's front camera. The front camera starts to collect continuous image frame information or video stream information of the road scene in front of the vehicle. The intelligent driving control unit ADCU has built-in machine vision image processing algorithms and lane line recognition modules. These algorithms and modules can be used to perform real-time processing and analysis on the current road image or video frame collected by the camera. The core goal of the intelligent driving control unit ADCU's processing is to identify key visual clues in the road environment, especially the positional relationship of the vehicle relative to the road lane lines.
[0059] In some embodiments, by accurately identifying the position, shape, and relative geometric relationship of the lane line with the vehicle itself, the intelligent driving control unit ADCU can determine the actual driving direction of the vehicle on the current road: that is, whether the vehicle follows the left direction (the main body of the vehicle is on the right side of the center line of the lane, preparing to drive to the left or is in the lane driving on the left), or follows the right direction (the main body of the vehicle is on the left side of the center line of the lane, preparing to drive to the right or is in the lane driving on the right). The intelligent driving control unit ADCU forwards the vehicle driving direction information obtained by this identification, which represents the current actual driving trajectory of the vehicle, to the body domain controller CDM through the internal high-speed communication network of the vehicle (such as Ethernet). At this point, the body domain controller CDM, based on the knowledge of the change in the steering type in the area, has obtained important real-time information on the actual driving direction status of the vehicle in the new area.
[0060] In some embodiments, the control method may further include the following steps: Step S30, detecting the changed area type and driving direction to determine the accuracy of the vehicle position.
[0061] In some embodiments, step S30 may include the following steps: determining the changed area type and driving direction: when the changed area type is a right-hand drive area and the driving direction is left-hand driving, or when the changed area type is a left-hand drive area and the driving direction is right-hand driving, determining that the vehicle position is accurate; otherwise, determining that the vehicle position is inaccurate.
[0062] In some embodiments, the CDM can directly compare and logically associate the changed region type with the driving direction. Specifically, the CDM does not simply compare two values for equality (e.g., comparing the characters "left rudder" and "keep left"), but rather identifies a logical correspondence between these two pieces of information: that is, whether the legal steering direction matches the actual driving direction to be followed in the region.
[0063] In some embodiments, if the changed region type is identified as a right-hand drive region (indicating that regulations in the region require vehicles to drive on the left), and the driving direction is also identified as driving on the left (indicating that the vehicle is actually complying with the driving regulations in the right-hand drive region), the body domain controller (CDM) determines that the changed region type and driving direction information are logically consistent and mutually confirm each other, and comply with the regulations of the right-hand drive region (right-hand drive vehicles should drive on the left). The body domain controller (CDM) determines that the vehicle position is accurate.
[0064] In some embodiments, if the changed region type is identified as a left-hand drive region (indicating that regulations in the region require vehicles to drive on the right), and the driving direction is also identified as driving on the right (indicating that the vehicle is actually complying with the driving regulations in the left-hand drive region), the body domain controller (CDM) determines that the changed region type and driving direction information are logically consistent and mutually confirm each other, complying with the regulations for the left-hand drive region (left-hand drive vehicles should drive on the right). The body domain controller (CDM) determines that the vehicle position is accurate.
[0065] In some embodiments, if the changed area type is identified as a right-hand drive area, but the driving direction is identified as right-hand driving (i.e., the vehicle is driving on the right in an area where it should be driving on the left), or if the changed area type is identified as a left-hand drive area, but the driving direction is identified as left-hand driving (i.e., the vehicle is driving on the left in an area where it should be driving on the right), the body domain controller CDM determines that the vehicle position is inaccurate. That is, there is a logical conflict and obvious inconsistency between the target steering area (right or left) determined based on the GPRS positioning information and the actual driving direction of the vehicle (right or left) observed by the camera on the road.
[0066] In some embodiments, when the body domain controller CDM determines that the vehicle position is inaccurate, the inaccuracy may be caused by a variety of reasons. For example, when the GPRS positioning is misjudged, the vehicle may not actually cross the steering area (for example, positioning drift near the boundary, map data error), and the body domain controller CDM mistakenly believes that it has entered the right-hand / left-hand steering area. For another example, when visual recognition is wrong, factors such as bad weather, strong light, blurred or covered road markings, temporary lane changes, etc. may cause the intelligent driving control unit ADCU to make major errors in identifying the direction of travel (for example, mistakenly identifying the left as the right). For another example, when the driver makes an error in operation, the vehicle has indeed entered the new steering area, but the driver is negligent or violates the rules and fails to adjust to the correct driving direction in time (for example, still driving on the right in a right-hand steering area).
[0067] In some embodiments, the control method may further include the following steps: Step S40: when it is determined that the vehicle position is accurate, the light pattern of the vehicle lights is adjusted accordingly according to the changed area type.
[0068] In some embodiments, step S40 may include the following steps: determining the type of area after the change: when the area type after the change is a right-hand drive area, adjusting the light pattern of the headlights to a right-hand drive light pattern; when the area type after the change is a left-hand drive area, adjusting the light pattern of the headlights to a left-hand drive light pattern.
[0069] In some embodiments, after the vehicle position has been accurately determined, the body domain controller CDM may determine the changed region type and determine whether the legal steering area currently located by the vehicle is a right-hand drive area or a left-hand drive area.
[0070] In some embodiments, when the body domain controller CDM identifies that the changed area type is a right-hand drive area, the headlight light pattern switching stage can be entered. As a central control unit, the body domain controller CDM can immediately generate a clear headlight light pattern switching instruction, which specifically includes the requirement to switch to the right-hand drive light pattern. The headlight light pattern switching instruction can be sent simultaneously and synchronously to the independent control modules of the left and right headlights of the vehicle: the left headlight control module HCML and the right headlight control module HCMR via the vehicle's internal high-speed on-board communication network (such as CANFD or automotive Ethernet). After receiving the clear instruction from the body domain controller CDM to switch to the right-hand drive light pattern, the two control modules (HCML and HCMR) immediately respond and start their respective execution programs.
[0071] In some embodiments, the left headlight control module HCML and the right headlight control module HCMR both store detailed configuration data of the vehicle lighting system, including preset current parameters for different light types (right-hand steering light type, left-hand steering light type, etc.) (used to accurately control the brightness of each light-emitting unit in the LED or laser module) and preset motor position parameters (used to control the precise position of actuators such as the dimming motor and horizontal rotation motor in the optical component).
[0072] See also Figure 2 and Figure 3 In some embodiments, both the left and right headlight control modules (HCML and HCMR) utilize pre-stored configuration parameters for right-hand steering beam patterns. Based on these preset parameters, the left headlight control module (HCML) precisely controls the output current of each relevant channel within the left headlight to the set current values, while simultaneously driving the height adjustment motor and / or horizontal rotation motor to the precise angular position required for right-hand steering beam pattern 2. Similarly, the right headlight control module (HCMR) independently and precisely controls the current and motor position of each light-emitting channel within the right headlight based on the exact same preset right-hand steering beam pattern parameters. The left and right headlights synchronously and coordinately perform a series of physical and optical adjustments (such as adjusting the light spot shape and the inclination angle of the cutoff line) to jointly and synchronously transform the vehicle's light pattern from its current state (e.g., left-hand steering beam pattern 1) to right-hand steering beam pattern 2, which complies with regulations in right-hand steering regions. After the adjustments are complete, the left and right headlights enter and maintain right-hand steering beam pattern 2.
[0073] In some embodiments, when the vehicle body domain controller CDM identifies the changed area type as a left-hand drive area, it can enter the light pattern switching stage of the vehicle lights. The specific process of this light pattern switching stage can be similar to the specific process of the light pattern switching stage described above and will not be repeated here.
[0074] In some embodiments, the control method may further include the following steps: Step S50, otherwise, verify the vehicle position, and adjust the light pattern of the vehicle lights according to the area type corresponding to the verified vehicle position.
[0075] In some embodiments, after the body domain controller CDM determines that the vehicle position is inaccurate, its core task can be transformed into starting a "position verification and recovery mechanism". The goal of this mechanism is to ultimately verify the legal steering type (left-hand drive area or right-hand drive area) corresponding to the vehicle's actual geographical location, and based on this verified and reliable information, perform corresponding headlight pattern adjustments (switch to left-hand drive light type or right-hand drive light type).
[0076] In some embodiments, in step S50 , verifying the vehicle position may include the following steps: Step S51 , when it is determined that the vehicle position is inaccurate, generating and sending a corresponding error message.
[0077] In some embodiments, when the body domain controller CDM concludes that the vehicle position is inaccurate, it will generate a specific error message. The content of this error message is a comprehensive conflict detection result, that is, the left and right steering area identification fault information. The fault information indicates that the body domain controller CDM detects that the GPRS positioning information and the driving direction information recognized by the camera are inconsistent in the steering rules. The body domain controller CDM then sends this left and right steering area identification fault information to the vehicle display and host unit DHU through the vehicle network (such as high-speed CAN or Ethernet, etc.). As the hub of in-vehicle infotainment and human-computer interaction, the vehicle display and host unit DHU is responsible for receiving this fault information and preparing to present it to the driver.
[0078] In some embodiments, verifying the vehicle position may further include the following steps: Step S52, receiving a fault selection instruction input by the driver according to the error information.
[0079] In some embodiments, after receiving left and right steering wheel zone identification fault information from the vehicle domain controller (CDM), the vehicle display and head unit (DHU) can forward this information to the driver's human-machine interface (HMI), such as a graphical user interface (HMI) integrated into the central control screen or digital instrument panel. Upon receiving the information, the HMI can immediately generate and display a pop-up notification.
[0080] In some embodiments, a pop-up prompt may include a problem description and an option request. The problem description may be used to clearly inform the driver that there is a left-hand or right-hand drive zone identification error. This error may be caused by the following reasons: a malfunction or inaccurate identification of the vehicle's GPS positioning system (GPRS) or camera system, or the vehicle is currently driving on the wrong side of the lane (driving on the right in a right-hand drive zone or on the left in a left-hand drive zone). The option request may be used to provide two clear option buttons for the driver to choose: GPRS or camera system failure and wrong driving side of the road.
[0081] In some embodiments, the driver, provided that driving safety permits (e.g., the driver needs to stop in a safe area before operating), observes the pop-up prompt information, understands the possible reasons described, and clicks one of the option buttons based on his or her own judgment of the current actual situation (e.g., do you feel that you are driving in accordance with regulations? Is the vehicle near the border? Is there reason to suspect that the positioning or camera is being interfered with?). After detecting the driver's click operation, the graphical user interface module HMI captures the result of the driver's selection as a clear fault selection instruction (the content corresponds to "system failure" or "illegal driving"). The graphical user interface module HMI transmits this fault selection instruction back to the body domain controller CDM through the on-board display and the host unit DHU.
[0082] In some embodiments, verifying the vehicle location may further include the following steps: Step S53, verifying the area type corresponding to the vehicle location according to the fault selection instruction.
[0083] In some embodiments, step S53 may include the following steps: Step S531 , determining the fault type corresponding to the fault selection instruction.
[0084] In some embodiments, if the fault selection instruction contains the same content as the "GPRS or camera system fault" option selected by the driver on the HMI interface, the vehicle body domain controller (CDM) determines that the fault type corresponding to this instruction is a system fault. If the fault selection instruction contains the same content as the "road driving side error" option selected by the driver on the HMI interface, the vehicle body domain controller (CDM) determines that the fault type corresponding to this instruction is a driving violation.
[0085] In some embodiments, step S53 may further include the following steps: Step S532, when the fault type is a system fault, generating and sending corresponding fault information, and verifying the area type corresponding to the vehicle location based on the fault information.
[0086] In some embodiments, step S532 may include the following steps: receiving a region selection instruction input by the driver according to the fault information; and determining the region type corresponding to the vehicle location according to the fault selection instruction.
[0087] In some embodiments, after determining the fault type is a system fault, the vehicle domain controller (CDM) first generates a detailed fault message. This fault message may include specific warnings and operational instructions, prompting the driver to visit a repair shop to inspect the vehicle's GPS positioning system (GPRS) or camera system. Furthermore, the CDM may further guide the driver in providing location information by generating a region type request with two options: current left-hand drive region or current right-hand drive region. The CDM transmits this fault message, including the repair prompt and option request, to the graphical user interface module (HMI) via the vehicle's onboard display and the head unit (DHU). The HMI displays a pop-up window informing the driver that system maintenance is required and provides two option buttons: "Current left-hand drive region" and "Current right-hand drive region." The driver selects one of the option buttons based on their knowledge of the traffic rules of the country / region they are in, their observation of road signs, or other information. The HMI captures the selection result and generates the corresponding region selection instruction ("Left-hand drive region" or "Right-hand drive region").
[0088] In some embodiments, the region selection instruction can be transmitted back to the vehicle domain controller CDM via the vehicle display and the host unit DHU. After receiving the region selection instruction, the vehicle domain controller CDM can parse its content. If the instruction content of the region selection instruction is "left-hand drive region", the vehicle domain controller CDM verifies that the region type corresponding to the vehicle position is a left-hand drive region. If the instruction content of the region selection instruction is "right-hand drive region", the vehicle domain controller CDM verifies that the region type corresponding to the vehicle position is a right-hand drive region. Based on the direct input of the driver, the vehicle domain controller CDM finally determines the region type for light pattern switching.
[0089] In some embodiments, step S53 may further include the following steps: Step S533, when the fault type is illegal driving, generating and sending corresponding violation information, and verifying the area type corresponding to the vehicle location based on the violation information.
[0090] In some embodiments, step S533 may include the following steps: determining, based on the violation information, that the area type corresponding to the vehicle location is the changed area type.
[0091] In some embodiments, when the fault type is determined to be a driving violation, the vehicle domain controller (CDM) first generates a clear violation message. The key content of this violation message is to prompt the driver to immediately correct the vehicle's roadside direction. Specifically, if the GPRS positioning determines that the vehicle is in a right-hand drive area, the driver is instructed to immediately keep left; if the GPRS positioning determines that the vehicle is in a left-hand drive area, the driver is instructed to immediately keep right.
[0092] In some embodiments, the body domain controller CDM can continue to send GPRS positioning determination of the changed area type information (regardless of whether the original positioning is left-hand drive to right-hand drive or right-hand drive to left-hand drive). The body domain controller CDM sends this violation information to the graphical user interface module HMI through the vehicle display and the host unit DHU. The graphical user interface module HMI displays a pop-up window: informing the driver that he is currently driving on the wrong lane side, and requires him to immediately correct to the correct lane side (such as displaying "You are driving on the wrong lane side, please drive to the left immediately" or "Please drive to the right immediately"). After seeing the prompt, the driver should immediately adjust the vehicle to the correct lane side required by the prompt information while ensuring safety. For example, if the prompt is to drive on the left, the driver will drive on the left; if the prompt is to drive on the right, the driver will drive on the right.
[0093] In some embodiments, after the driver completes the corrective action, the vehicle's location is determined by the vehicle's vehicle domain controller (CDM) based on the violation information. The location type is then directly adopted as the changed location type previously determined by GPRS positioning. If the initial GPRS determination indicates a change from a left-hand drive area to a right-hand drive area, the location type corresponding to the verified vehicle's location is a right-hand drive area. If the initial GPRS determination indicates a change from a right-hand drive area to a left-hand drive area, the location type corresponding to the verified vehicle's location is a left-hand drive area.
[0094] In some embodiments, within the vehicle's infotainment or vehicle settings menu, the graphical user interface module (HMI) provides the driver with two control mode options for switching between left-hand and right-hand drive headlight patterns. The first option is automatic adjustment of the left-hand and right-hand drive light patterns, which is set as the system's default mode. The second option is manual setting of the left-hand and right-hand drive light patterns. The driver can see these two clear mode options within the system's settings interface. Unless the driver actively selects and confirms the setting to manual setting of the left-hand and right-hand drive light patterns, the system will always operate in the automatic adjustment mode for the left-hand and right-hand drive light patterns. When the system is in the automatic adjustment mode for the left-hand and right-hand drive light patterns, it will operate according to the complete process described in the aforementioned embodiments, i.e., utilizing GPRS positioning and camera recognition for automatic judgment, and initiating a verification process if the position judgment is inaccurate to ultimately determine and execute the correct light pattern switching.
[0095] In some embodiments, if the driver does not want the system to automatically determine the light pattern switching and instead wishes to manually control the currently active steering light pattern, the driver can access the relevant vehicle settings interface through the graphical user interface module (HMI), locate the option for manually setting the left and right steering light patterns, and actively select and confirm the activation of this mode by clicking or touching. Upon detecting the driver's confirmation of the selection of the manual setting mode for the left and right steering light patterns, the graphical user interface module (HMI) records this setting, indicating that the system will then exit the automatic adjustment mode and switch to the manual setting mode, awaiting the driver's input of the steering pattern.
[0096] In some embodiments, after the driver successfully enables the manual setting mode of the left and right steering light types, the graphical user interface module HMI immediately generates and displays a pop-up prompt (or presents it in the manual setting sub-page). The core content of the pop-up window is to require the driver to directly specify the type of legal steering area where the vehicle is currently located, and provide two clear option buttons for the driver to choose: the current left-hand steering area and the current right-hand steering area. The driver observes the pop-up window options and clicks one of the option buttons (left-hand steering area or right-hand steering area) based on his understanding and judgment of the traffic rules of the current geographical location (for example, regulations of the country / region, road sign information, etc.). After detecting the driver's click operation, the graphical user interface module HMI captures the specific result of the driver's selection as a clear steering setting instruction (the content is "left-hand steering area" or "right-hand steering area").
[0097] In some embodiments, after the graphical user interface module HMI generates a steering direction setting instruction ("left-hand drive area" or "right-hand drive area") representing the driver's selection, it sends the instruction to the on-board display and host unit DHU via the vehicle's internal communication network (such as a high-speed CAN bus). After receiving the steering direction setting instruction from the HMI, the on-board display and host unit DHU forward it to the body domain controller CDM. The body domain controller CDM receives the steering direction setting instruction forwarded by the on-board display and host unit DHU. Based on the specific content of the instruction ("left-hand drive area" or "right-hand drive area"), the body domain controller CDM generates a corresponding light pattern switching instruction. The light pattern switching instruction indicates to which light pattern the left and right headlights of the vehicle need to be switched: if the instruction is "left-hand drive area", an instruction to switch to the left-hand drive light pattern is generated; if the instruction is "right-hand drive area", an instruction to switch to the right-hand drive light pattern is generated. The body domain controller (CDM) sends the generated command to switch to the left-hand steering beam type or the command to switch to the right-hand steering beam type via the vehicle's internal communication network to the headlight control module (HCML) that controls the left headlight and the headlight control module (HCMR) that controls the right headlight. The headlight control module (HCML) and the headlight control module (HCMR) each receive the command to switch to the left-hand steering beam type or the command to switch to the right-hand steering beam type from the body domain controller (CDM).
[0098] In some embodiments, upon receiving a command from the vehicle body domain controller (CDM) to switch to a left-hand drive or right-hand drive light pattern, the headlight control module (HCML) and the headlight control module (HCMR) immediately interpret the command and, based on the target light pattern (left-hand drive or right-hand drive) specified in the command, retrieve and load the preset detailed configuration parameters for that light pattern. The headlight control module (HCML) and the headlight control module (HCMR) each drive their internal circuits and motors, precisely controlling the current output of each lighting channel based on the retrieved set current parameters. Simultaneously, they control the height adjustment motor and horizontal rotation motor to their designated positions based on their target position parameters. By completing these current and motor position adjustments, the left and right headlight light patterns (including beam shape, brightness distribution, and cutoff angle) are accurately switched and set to the left-hand drive or right-hand drive light pattern selected by the driver in manual mode.
[0099] As can be seen, in the above solution, first, by combining the dual data sources of the GPRS positioning system (region type identification) and the driving camera (driving direction identification) for cross-verification, the accuracy and reliability of the vehicle's actual driving direction zone are significantly improved, effectively mitigating the risk of misjudgment caused by signal errors, map delays, road interference, or algorithm limitations of a single system (relying solely on GPS / GPRS or cameras). Secondly, when the two recognition results disagree, the location verification process is automatically triggered. This not only promptly detects potential faults in the positioning module or camera module at the system level (the single point of failure risk mentioned in the technical issue), but also prompts the driver to correct possible driving violations (such as keeping to the right in right-hand drive areas), achieving the dual functions of system fault warning and driving regulations reminder. Finally, the headlight pattern is adjusted based on the accurately determined or verified region type, ensuring that the vehicle's lighting complies with local regulations regardless of whether it is traveling across countries or regions.
[0100] See also Figure 4 The present invention also discloses a vehicle lamp control device, in which the above control method can be applied. The control device can include: a positioning module 100, an identification module 200, and a detection module 300.
[0101] In some embodiments, the positioning module 100 may be used to collect the positioning information of the vehicle and identify the type of region to which it belongs.
[0102] In some embodiments, the recognition module 200 may be used to collect image information of the road and identify the direction of vehicle travel when the area type changes.
[0103] In some embodiments, the detection module 300 can be used to detect the changed area type and driving direction to determine whether the vehicle position is accurate: when the vehicle position is determined to be accurate, the light pattern of the headlights is adjusted accordingly according to the changed area type; otherwise, the vehicle position is verified, and the light pattern of the headlights is adjusted accordingly according to the area type corresponding to the verified vehicle position.
[0104] For the specific definition of the control device, please refer to the definition of the control method above and will not be repeated here. Each module in the above-mentioned control device can be implemented in whole or in part by software, hardware, or a combination thereof. Each of the above-mentioned modules can be embedded in or independent of the memory of the electronic device in the form of hardware, or can be stored in the memory of the electronic device in the form of software so that the memory can call and execute the operations corresponding to each of the above modules.
[0105] See also Figure 5 In some embodiments, the electronic device 10 may include a memory 11, a processor 12, and a bus, and may also include a computer program stored in the memory 11 and executable on the processor 12, such as a program for a method of controlling vehicle lights.
[0106] In some embodiments, the memory 11 includes at least one type of readable storage medium, and the readable storage medium includes a flash memory, a mobile hard disk, a multimedia card, a card-type memory (for example, an SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disk, etc. In some embodiments, the memory 11 can be an internal storage unit of the electronic device 10, such as a mobile hard disk of the electronic device 10. In other embodiments, the memory 11 can also be an external storage device of the electronic device 10, such as a plug-in mobile hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card, etc. equipped on the electronic device 10. Furthermore, the memory 11 can also include both an internal storage unit of the electronic device 10 and an external storage device. The memory 11 can not only be used to store application software and various types of data installed in the electronic device 10, such as the code of the vehicle headlight control method, but can also be used to temporarily store data that has been output or is to be output.
[0107] In some embodiments, the processor 12 may be comprised of an integrated circuit, such as a single packaged integrated circuit or a plurality of packaged integrated circuits with the same or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and a combination of various control chips. The processor 12 is the control core (Control Unit) of the electronic device 10, connecting the various components of the entire electronic device 10 using various interfaces and circuits. It executes or runs programs or modules stored in the memory 11 (e.g., a program for controlling vehicle lights), and calls data stored in the memory 11 to execute various functions of the electronic device 10 and process data.
[0108] In some embodiments, the processor 12 executes the operating system and various installed applications of the electronic device 10. The processor 12 executes the applications to implement the steps in the above-mentioned vehicle light control method.
[0109] In some embodiments, the computer program may be divided into one or more modules, one or more of which are stored in the memory 11 and executed by the processor 12 to implement the present application. One or more modules may be a series of computer program instruction segments capable of performing specific functions, and the instruction segments are used to describe the execution process of the computer program in the electronic device 10. For example, the computer program may be divided into: a positioning module 100, an identification module 200, a detection module 300, etc.
[0110] The above embodiments are merely illustrative of the principles and effects of the present invention and are not intended to limit the present invention. Anyone skilled in the art may modify or alter the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or alterations made by one of ordinary skill in the art without departing from the spirit and technical principles disclosed herein are intended to be covered by the claims of the present invention.
Claims
1. A method for controlling vehicle lights, characterized in that: include: Collect vehicle positioning information and identify the area type; When the area type changes, collecting image information of the road and identifying the direction of vehicle travel; Detect the changed area type and driving direction to determine the vehicle's accurate position: When the vehicle position is determined to be accurate, the light pattern of the vehicle lights is adjusted accordingly according to the changed area type; Otherwise, the vehicle position is verified, and the light pattern of the vehicle lights is adjusted accordingly according to the area type corresponding to the verified vehicle position.
2. The method for controlling a vehicle lamp according to claim 1, wherein: The step of detecting the changed area type and the driving direction to accurately determine the vehicle position includes: Determine the changed area type and the driving direction: When the changed area type is a right-hand drive area and the driving direction is left-hand driving, or when the changed area type is a left-hand drive area and the driving direction is right-hand driving, determining that the vehicle position is accurate; Otherwise, the vehicle position is determined to be inaccurate.
3. The method for controlling a vehicle lamp according to claim 1, wherein: The step of adjusting the light pattern of the vehicle lights according to the changed area type includes: Determine the region type after the change: When the changed area type is a right-hand drive area, adjusting the light pattern of the headlights to a right-hand drive light pattern; When the changed area type is a left-hand drive area, the light pattern of the vehicle lights is adjusted to a left-hand drive light pattern.
4. The method for controlling a vehicle lamp according to claim 1, wherein: The step of verifying the vehicle location comprises: When it is determined that the vehicle position is inaccurate, a corresponding error message is generated and sent; receiving a fault selection instruction input by a driver according to the error information; The region type corresponding to the vehicle location is verified according to the fault selection instruction.
5. The method for controlling a vehicle lamp according to claim 4, characterized in that: The step of verifying the region type corresponding to the vehicle location according to the fault selection instruction includes: Determine the fault type corresponding to the fault selection instruction: When the fault type is a system fault, generating and sending corresponding fault information, and verifying the area type corresponding to the vehicle location according to the fault information; When the fault type is illegal driving, corresponding violation information is generated and sent, and the area type corresponding to the vehicle position is verified based on the violation information.
6. The method for controlling a vehicle lamp according to claim 5, characterized in that: The step of verifying the region type corresponding to the vehicle location according to the fault information includes: receiving a region selection instruction input by a driver according to the fault information; The region type corresponding to the vehicle location is determined according to the fault selection instruction.
7. The method for controlling a vehicle lamp according to claim 5, characterized in that: The step of verifying the area type corresponding to the vehicle location according to the violation information includes: The area type corresponding to the vehicle location is determined to be the changed area type according to the violation information.
8. A vehicle lamp control device, characterized in that: include: Positioning module, used to collect vehicle positioning information and identify the type of area it belongs to; The recognition module is used to collect image information of the road and identify the direction of vehicle travel when the area type changes; The detection module is used to detect the changed area type and driving direction to determine the correct position of the vehicle. When the vehicle position is correct, the light pattern of the headlights is adjusted accordingly according to the changed area type. Otherwise, the vehicle position is verified, and the light pattern of the vehicle lights is adjusted accordingly according to the area type corresponding to the verified vehicle position.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the steps of the vehicle lamp control method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the vehicle lamp control method according to any one of claims 1 to 7 are implemented.