A safety detection method and system for calling a vehicle lamp service

The safety detection method determines whether the vehicle is in a safe driving state, and ensures that the vehicle is responding to the vehicle height adjustment request under the safety of the vehicle, solving the problem that the existing technology cannot meet the adjustment needs of the third-party application, and achieving the effect of meeting the adjustment needs of the vehicle while ensuring the safety of the vehicle.

CN115179853BActive Publication Date: 2025-06-27VOYAH AUTOMOBILE TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210833467.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-14
Publication Date
2025-06-27
Estimated Expiration
2042-07-14

AI Technical Summary

Technical Problem

The prior art cannot meet the requirements of third-party applications for adjusting the height of the car lights while ensuring vehicle safety.

Method used

By receiving a request for the headlight height adjustment service of a third-party application, the vehicle's current driving status is obtained and a safe driving status is judged based on this information. If the vehicle is in a safe driving state, it will respond to the request to adjust the height of the headlights, and consider the linkage of adjustment amplitude and brightness when adjusting.

Benefits of technology

On the premise of ensuring vehicle safety, it meets the needs of third-party applications for adjusting the height of the car lights, improves the safety of the vehicle under the SOA architecture, and expands the application scope of vehicle safety services.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115179853B_ABST
    Figure CN115179853B_ABST
Patent Text Reader

Abstract

The present invention discloses a safety detection method and system for calling a vehicle lamp service. The method includes: receiving a vehicle lamp height adjustment service request from a third-party application; obtaining the current driving state of the vehicle; based on the vehicle lamp height adjustment service request and the current driving state of the vehicle, determining the safe driving state of the vehicle; if the vehicle is in the safe driving state, adjusting the vehicle lamp height according to the vehicle lamp height adjustment service request.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of vehicle safe driving, and particularly to a safety detection method and system for invoking headlight services. Background Art

[0002] As is well known, the headlight is a very important component in an automobile. In low light conditions, the headlight, as a supplementary light source, can support the driver's safe driving and thus ensure driving safety.

[0003] With the in-depth development of the automotive revolution, the SOA (Service-Oriented Architecture) architecture has brought significant changes to the automotive industry. Automobiles have gradually become a mobile intelligent terminal where data determines the experience and software defines the vehicle, and their intelligent attributes are gradually emerging. For example, a third-party application can remotely request to adjust the headlight height.

[0004] However, since adjusting the headlight will affect driving safety, how to meet the adjustment requirements of third-party applications for the headlight while ensuring vehicle safety is a technical problem that needs to be solved urgently at present. Summary of the Invention

[0005] The present invention provides a safety detection method and system for invoking headlight services to solve or partially solve the technical problem that the prior art cannot meet the adjustment requirements of third-party applications for the headlight while ensuring vehicle safety.

[0006] To solve the above technical problem, in a first aspect of the present invention, a safety detection method for invoking headlight services is disclosed. The method includes:

[0007] Receiving a headlight height adjustment service request from a third-party application;

[0008] Obtaining the current driving state of the vehicle;

[0009] Based on the headlight height adjustment service request and the current driving state of the vehicle, determining the safe driving state of the vehicle;

[0010] If the vehicle is in the safe driving state, adjusting the headlight height according to the headlight height adjustment service request.

[0011] Preferably, after receiving the headlight height adjustment service request from the third-party application, the method further includes:

[0012] Determining whether the request source to which the headlight height adjustment service request belongs exists in the whitelist or the blacklist; wherein, the whitelist configures vehicle trusted request sources, and the blacklist configures other request sources except the vehicle trusted request sources;

[0013] If it exists in the white list, adjusting the headlight height according to the headlight height adjustment service request;

[0014] If it exists in the blacklist, the step of obtaining the current driving status of the vehicle is executed.

[0015] Preferably, the determining of the safe driving state of the current driving state of the vehicle specifically includes:

[0016] Determining a preset vehicle speed threshold corresponding to the headlight height adjustment service based on the headlight height adjustment service corresponding to the headlight height adjustment service request;

[0017] Determining whether the current vehicle speed included in the current driving state of the vehicle is below a preset vehicle speed threshold corresponding to the headlight height adjustment service;

[0018] If so, it indicates that the vehicle is in the safe driving state;

[0019] If not, ignore the headlight height adjustment service request.

[0020] Preferably, if the vehicle is in the safe driving state, the method further comprises:

[0021] Determining whether the adjustment range requested in the headlight height adjustment service request is less than or equal to the safety adjustment range;

[0022] If the adjustment range requested by the headlight height adjustment service request is less than or equal to the safety adjustment range, performing a step of adjusting the headlight height according to the headlight height adjustment service request;

[0023] If the requested adjustment range of the headlight height adjustment service request is greater than the safety adjustment range, the headlight height adjustment service request is ignored.

[0024] Preferably, after adjusting the headlight height according to the headlight height adjustment service request, the method further includes:

[0025] The brightness of the headlights is adjusted in a linked manner according to the headlight height adjustment service request.

[0026] Preferably, the step of adjusting the brightness of the vehicle lights in linkage with the vehicle light height adjustment service request specifically includes:

[0027] If the adjustment direction of the headlight height adjustment service request is downward adjustment, brighten the headlight brightness according to the adjustment range requested in the headlight height adjustment service request;

[0028] If the adjustment direction of the headlight height adjustment service request is upward adjustment, the headlight brightness is dimmed according to the requested adjustment amplitude of the headlight height adjustment service request, or the headlight brightness is not adjusted; wherein the requested adjustment amplitude and the headlight brightness have a mapping relationship.

[0029] Preferably, after adjusting the headlight height according to the headlight height adjustment service request, the method further includes:

[0030] Receiving a reset operation request from the third-party application;

[0031] Based on the reset operation request, resetting the headlight height to the position before adjustment.

[0032] In a second aspect of the present invention, a safety detection system for invoking a headlight service is disclosed, including:

[0033] A receiving module, configured to receive a headlight height adjustment service request from a third-party application;

[0034] An obtaining module, configured to obtain the current driving state of the vehicle;

[0035] A first judgment module, configured to judge the safe driving state of the vehicle based on the headlight height adjustment service request and the current driving state of the vehicle;

[0036] An adjustment module, configured to adjust the headlight height according to the headlight height adjustment service request if the vehicle is in the safe driving state.

[0037] Preferably, the system further includes a second judgment module, configured to:

[0038] Judge whether the request source to which the headlight height adjustment service request belongs exists in the white list or the black list; wherein, the white list configures vehicle credit-granting request sources, and the black list configures other request sources except the vehicle credit-granting request sources;

[0039] If it exists in the white list, adjust the headlight height according to the headlight height adjustment service request;

[0040] If it exists in the black list, execute the step of obtaining the current driving state of the vehicle.

[0041] Preferably, the first judgment module is specifically configured to:

[0042] Based on the headlight adjustment service corresponding to the headlight height adjustment service request, determine a preset vehicle speed threshold corresponding to the headlight height adjustment service;

[0043] Judge whether the current vehicle speed included in the current driving state of the vehicle is below the preset vehicle speed threshold corresponding to the headlight height adjustment service;

[0044] If so, it indicates that the vehicle is in the safe driving state;

[0045] If not, ignore the headlight height adjustment service request.

[0046] Preferably, the system further includes: a third judgment module, configured to:

[0047] Judge whether the application adjustment range of the headlight height adjustment service request is less than or equal to the safety adjustment range;

[0048] If the application adjustment range of the headlight height adjustment service request is less than or equal to the safety adjustment range, execute the step of adjusting the headlight height according to the headlight height adjustment service request;

[0049] If the application adjustment range of the headlight height adjustment service request is greater than the safety adjustment range, ignore the headlight height adjustment service request.

[0050] Preferably, the system further includes: a linkage adjustment module, configured to link and adjust the headlight brightness according to the headlight height adjustment service request.

[0051] Preferably, the linkage adjustment module is specifically configured to:

[0052] If the adjustment direction of the headlight height adjustment service request is downward adjustment, brighten the headlight brightness according to the application adjustment range of the headlight height adjustment service request;

[0053] If the adjustment direction of the headlight height adjustment service request is upward adjustment, dim the headlight brightness according to the application adjustment range of the headlight height adjustment service request, or do not adjust the headlight brightness; wherein, there is a mapping relationship between the application adjustment range and the headlight brightness.

[0054] Preferably, the system further includes a reset module, configured to:

[0055] Receive the reset operation request of the third-party application;

[0056] Based on the reset operation request, reset the headlight height to the position before adjustment.

[0057] In a third aspect of the present invention, a computer-readable storage medium is disclosed, on which a computer program is stored, and when the program is executed by a processor, the steps of the above method are implemented.

[0058] In a fourth aspect of the present invention, a vehicle is disclosed, including a memory, a processor, and a computer program stored on the memory and executable on the processor, and when the processor executes the program, the steps of the above method are implemented.

[0059] Through one or more technical solutions of the present invention, the present invention has the following beneficial effects or advantages:

[0060] The present invention discloses a safety detection method and system for calling headlight services. First, a headlight height adjustment service request from a third-party application is received, and the current driving state of the vehicle is obtained. Then, by judging the safe driving state of the vehicle's current driving state, it is detected whether the vehicle is in the safe driving state, and the headlight height is adjusted in response to the third-party application only when the vehicle is in the safe driving state, so as to meet the adjustment requirement of the third-party application for the headlight height on the premise of ensuring vehicle safety, and to meet the requirements for vehicle safety under the SOA architecture.

[0061] Furthermore, since the present invention adds a safety judgment mechanism when vehicle services are opened to third-party applications, it ensures that the third-party application will not affect the driving safety of the vehicle when it is installed on the vehicle. Moreover, on the premise of ensuring the safety attributes of the vehicle, it can also expand the application of vehicle safety services in headlight height adjustment, thus contributing to the development of software-defined vehicles in terms of headlight height adjustment.

[0062] The above description is only an overview of the technical solution of the present invention. In order to be able to understand the technical means of the present invention more clearly, it can be implemented according to the content of the specification. And in order to make the above and other purposes, features and advantages of the present invention more obvious and understandable, the following specifically illustrates the embodiments of the present invention. Brief Description of the Drawings

[0063] By reading the following detailed description of the preferred embodiments, various other advantages and benefits will become clear to those of ordinary skill in the art. The drawings are only for the purpose of showing the preferred embodiments and are not considered to be a limitation of the present invention. Moreover, throughout the drawings, the same reference numerals are used to represent the same components.

[0064] In the drawings:

[0065] Figure 1 It shows a flowchart of a safety detection method for calling headlight services according to an embodiment of the present invention;

[0066] Figure 2 It shows a schematic diagram of a safety detection system for calling headlight services according to an embodiment of the present invention. Detailed Embodiments

[0067] The exemplary embodiments of the present invention will be described in more detail below with reference to the drawings. Although the exemplary embodiments of the present invention are shown in the drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present invention and to fully convey the scope of the present invention to those skilled in the art.

[0068] The embodiment of the present invention discloses a safety detection method and system for calling a car light service. The method is applied in the SOA architecture. First, a car light height adjustment service request from a third-party application is received, and the current driving state of the vehicle is obtained. Then, by judging the safe driving state of the current driving state of the vehicle, it is detected whether the vehicle is in a safe driving state, and the third-party application is responded to adjust the height of the car light only when the vehicle is in a safe driving state, thereby satisfying the third-party application's demand for adjusting the height of the car light while ensuring the safety of the vehicle, and meeting the requirements for vehicle safety under the SOA architecture.

[0069] like Figure 1 As shown, the method comprises the following steps:

[0070] Step 101: Receive a headlight height adjustment service request from a third-party application.

[0071] In this embodiment, since the present invention is applied to the SOA architecture, the vehicle light function is provided to the third-party application in the form of an adjustment service. Taking the headlight height adjustment service as an example, the headlight height adjustment service with several different items includes: headlight height upward adjustment service and headlight height downward adjustment service. The third-party application can be installed on a mobile terminal, such as a mobile phone; it can also be installed on a vehicle-mounted device. The third-party application initiates an adjustment request to the vehicle based on the headlight height adjustment service provided by the vehicle, and the vehicle makes corresponding adjustments based on the adjustment request.

[0072] Among them, the headlight height upward adjustment service refers to controlling the upward adjustment of the headlight along the axis from the front to the rear of the vehicle within the range of headlight adjustment. The headlight height downward adjustment service refers to controlling the downward adjustment of the headlight along the axis from the front to the rear of the vehicle within the range of headlight adjustment.

[0073] Furthermore, the headlight height adjustment service request of the third-party application includes: a headlight height upward adjustment request and a headlight height downward adjustment request. Since the headlight height upward adjustment or the headlight height downward adjustment can only be adjusted in one direction, the headlight height adjustment service request of the third-party application only initiates an adjustment request for one of the headlight height adjustment services, for example: a request to adjust the headlight height upward, or a request to adjust the headlight height downward.

[0074] In some optional implementations, in order to further ensure the security of headlight height adjustment under the SOA architecture, after receiving a headlight height adjustment service request from a third-party application, it is determined whether the request source to which the headlight height adjustment service request belongs is a vehicle credit request source.

[0075] Specifically, in actual situations, the request source of the headlight height adjustment service request may come from the vehicle itself and be generated directly by the driver driving the vehicle; it may also come from a third-party application (for example, the headlight height adjustment service request in this embodiment is sent by a third-party application). The vehicle credit request source refers to the request source before the vehicle is opened to third-party applications after mass production, that is: the vehicle credit request source is the vehicle itself, and the third-party application is regarded as a misoperation behavior, and then the subsequent safety judgment mechanism is started. The headlight height adjustment service requests generated by the driver controlling the vehicle include: the headlight height upward adjustment switch request and the headlight height downward adjustment switch request. The request sources of these switch requests are all the vehicle itself, representing the driver's direct driving behavior. Therefore, if the request source of the headlight height adjustment service request is the vehicle credit request source, it means that the request is generated by the driver driving the vehicle, and the headlight height adjustment service request can be directly executed to adjust the vehicle end height according to the headlight height adjustment service request to respond to the driver's adjustment operation. If the request source of the headlight height adjustment service request is not the credit request source of the headlight height adjustment service, for example, the headlight height adjustment service request is generated by a third party, it means that the safety judgment mechanism needs to be started, and the current driving state of the vehicle is obtained and the subsequent safety judgment mechanism is executed.

[0076] Further, the request source of the headlight height adjustment service request can be judged in the form of a black and white list. For example, the credit request source of the headlight height adjustment service is configured in the white list, and other request sources other than the vehicle credit request source (referred to as untrusted request sources in this embodiment) are configured in the black list. After receiving the headlight height adjustment service request from a third-party application, it is judged whether the request source of the headlight height adjustment service request exists in the white list or the black list. If it exists in the white list, the headlight height adjustment service request can be directly executed to adjust the headlight height according to the headlight height adjustment service request. If it exists in the black list, it means that the safety judgment mechanism needs to be started, and the current driving state of the vehicle is obtained and the subsequent safety judgment mechanism is executed.

[0077] Step 102, obtain the current driving state of the vehicle.

[0078] In this embodiment, the current driving state of the vehicle mainly includes the current vehicle speed. Since the headlight height adjustment service is affected by the current vehicle speed of the vehicle. For example, when the vehicle speed is relatively high (vehicle speed > 5 km / h), adjusting the headlight height will affect the driver's driving operation and cause a safety accident. Therefore, this embodiment mainly uses the vehicle speed as the judgment standard for the safe driving state, and thus will select to collect the current vehicle speed as the parameter for detecting the current driving state of the vehicle. Further, the current vehicle speed is collected by a vehicle speed sensor.

[0079] Step 103, based on the headlight height adjustment service request and the current driving state of the vehicle, judge the safe driving state of the vehicle.

[0080] Since different headlight height adjustment services correspond to different preset vehicle speed thresholds. For example, the preset vehicle speed threshold corresponding to the headlight height upward adjustment service is different from the preset vehicle speed threshold corresponding to the headlight height downward adjustment service. Therefore, in the specific judgment process, based on the headlight height adjustment service requested by the headlight height adjustment service request, determine the preset vehicle speed threshold corresponding to the headlight height adjustment service; judge whether the current vehicle speed included in the current driving state of the vehicle is below the preset vehicle speed threshold corresponding to the headlight height adjustment service; if so, it means that the vehicle is in a safe driving state; if not, ignore the headlight height adjustment service request. For example, the preset vehicle speed threshold corresponding to the headlight height downward adjustment service is 5 km / h. If the current vehicle speed is below 5 km / h, it means that the vehicle is in a safe driving state, and step 104 is executed. If the current vehicle speed is greater than 5 km / h, it means that the vehicle is not in a safe driving state, and downward adjusting the headlight height will cause a safety accident, so the headlight height adjustment service request is ignored.

[0081] Step 104, if the vehicle is in a safe driving state, adjust the headlight height according to the headlight height adjustment service request.

[0082] In this embodiment, if the vehicle is in a safe driving state, it means that adjusting the headlight height is allowed. Therefore, the vehicle will respond to the requirements of the third-party application and adjust the headlight height according to the headlight height adjustment service request. Thus, it can be seen that this embodiment responds to the third-party application to adjust the headlight height only when the vehicle is in a safe driving state, so as to meet the adjustment requirements of the third-party application for the headlight height on the premise of ensuring vehicle safety, and can meet the requirements for vehicle safety under the SOA architecture.

[0083] In some alternative embodiments, the adjustment range of the headlight height adjustment service request (referred to as the requested adjustment service in this embodiment) also affects driving safety. Therefore, in order to meet the requirements for vehicle safety under the SOA architecture, the adjustment range of the headlight height adjustment service request will be restricted. Therefore, if the vehicle is in a safe driving state, a safety adjustment range judgment will be further made on the headlight height adjustment service request.

[0084] Among them, different adjustment services correspond to different safety adjustment ranges. That is: for the headlight height adjustment service request, if the requested adjustment service item is different, the range limit for the adjustment service item is also different. For example, the safety adjustment range corresponding to the headlight height upward adjustment service is different from the safety adjustment range corresponding to the headlight height downward adjustment service.

[0085] Specifically, it is determined whether the application adjustment range of the headlight height adjustment service request is less than or equal to the safety adjustment range. Among them, the application adjustment range of the headlight height adjustment service request is determined by a third-party application. The safety adjustment range is determined by the system or the user himself. The safety adjustment range of this embodiment is determined by the adjustment service item of the headlight height adjustment service request. For example, the headlight height adjustment service request is: headlight height upward adjustment service, then the safety adjustment range corresponding to the headlight height upward adjustment service is determined based on this, and is used to judge the application adjustment range of the headlight height upward adjustment service.

[0086] If the adjustment range requested by the headlight height adjustment service request is less than or equal to the safety adjustment range, it means that adjusting the headlight height will not affect driving safety, and the steps of adjusting the headlight height according to the headlight height adjustment service request are performed. If the adjustment range requested by the headlight height adjustment service request is greater than the safety adjustment range, it means that adjusting the headlight height will affect driving safety, and the headlight height adjustment service request is ignored.

[0087] In this embodiment, by limiting the adjustment range of the headlight height adjustment service request accordingly, the vehicle safety requirements under the SOA architecture can be met while meeting the headlight height adjustment requirements of the third-party application.

[0088] In some optional implementations, the height adjustment of the headlights will affect the effective range of the vehicle. For example, when the headlights are adjusted downward, the effective range of the vehicle will be reduced, thereby reducing the effective field of vision of the driver, causing the driver to fail to pay attention to the vehicle ahead and thus causing a safety accident.

[0089] In order to solve the driving safety problem caused by the headlight height adjustment, in this embodiment, the headlight brightness is adjusted in conjunction with the headlight height adjustment service request.

[0090] Specifically, if the headlight height adjustment service request is a headlight height downward adjustment request, the headlight brightness is brightened according to the adjustment range requested in the headlight height adjustment service request. If the headlight height adjustment service request is a headlight height upward adjustment request, the headlight brightness is dimmed according to the adjustment range requested in the headlight height adjustment service request, or the headlight brightness is not adjusted.

[0091] Specifically, there is a mapping relationship between the application adjustment range and the headlight brightness. Taking the headlight height upward adjustment service and the headlight brightness adjustment as an example, if the headlight height adjustment service request is a headlight height upward adjustment request, then there is a mapping relationship between the application adjustment range for upward adjustment and the headlight brightness. Specifically, in this embodiment, the adjustment range of the application adjustment range for the headlight height upward adjustment request is: 0° to +3°. At this time, the "+" in the headlight height indicates upward. The headlight brightness is divided according to the brightness level, such as -1, -2, -3 levels. At this time, the "-" in the headlight brightness indicates dimming. The 3rd level brightness > the 2nd level brightness > the 1st level brightness. If the application adjustment range is adjusted upward by 1°, the brightness is dimmed by 1 level; if the application adjustment range is adjusted upward by 2°, the brightness is dimmed by 2 levels; if the application adjustment range is adjusted upward by 3°, the brightness is dimmed by 3 levels, so as to adapt to the headlight height adjustment. Of course, this example is only for illustration and is not a limitation description of this application.

[0092] During specific adjustment, according to the application adjustment range included in the headlight height adjustment service request, the brightness linkage adjustment range corresponding to the headlight brightness is determined from the mapping relationship, and the headlight brightness is adjusted based on the brightness linkage adjustment range. For example, if the application adjustment range is adjusted by 1°, the brightness linkage adjustment range is determined to be: dimmed by 1 level, and the headlight brightness is adjusted accordingly.

[0093] Of course, since the irradiation range increases when the headlight height is adjusted upward, the headlight brightness can be dimmed, or the headlight brightness can be not adjusted.

[0094] If the headlight height adjustment service request is a headlight height downward adjustment request, then there is a mapping relationship between the application adjustment range for downward adjustment and the headlight brightness.

[0095] Specifically, in this embodiment, the adjustment range of the application adjustment range for the headlight height downward adjustment request is: -3° to 0°. At this time, the "-" in the headlight height indicates downward. The headlight brightness is divided according to the brightness level, such as +1, +2, +3 levels. At this time, the "+" in the headlight brightness indicates brightening. The 3rd level brightness > the 2nd level brightness > the 1st level brightness. If the application adjustment range is adjusted downward by 1°, the brightness is adjusted to +1 level (i.e., brightened by 1 level); if the application adjustment range is adjusted downward by 2°, the brightness is brightened by 2 levels; if the application adjustment range is adjusted downward by 3°, the brightness is brightened by 3 levels, so as to adapt to the headlight height adjustment. Of course, this example is only for illustration and is not a limitation description of this application.

[0096] In this embodiment, by adjusting the headlight brightness in linkage after the headlight height is adjusted, the headlight brightness is adapted to the adjusted headlight height, thereby solving the problem of safe driving caused by the change in the irradiation range brought about by the headlight height adjustment to ensure driving safety.

[0097] Furthermore, in this embodiment, the headlight height and brightness are controlled by the same headlight height adjustment service request, enabling the effect of one-key linkage adjustment.

[0098] In some alternative embodiments, after adjusting the headlight height according to the headlight height adjustment service request, to implement the reset function, the headlight height is restored to the position before adjustment. Specifically, a reset operation request from a third-party application is received; based on the reset operation request, the headlight height is reset to the position before adjustment.

[0099] In the specific implementation process, after receiving the reset operation request from the third-party application, it is also determined whether the request source to which the reset operation request belongs is a vehicle credit request source;

[0100] If so, based on the reset operation request, the headlight height is reset to the position before adjustment;

[0101] If not, the current driving state of the vehicle is obtained, and it is determined whether the current vehicle speed included in the current driving state of the vehicle is below the preset vehicle speed threshold corresponding to the safe driving state; if so, it means the vehicle is in a safe driving state, then based on the reset operation request, the headlight height is reset to the position before adjustment. If not, the reset operation request is ignored.

[0102] This embodiment responds to the reset operation request of the third-party application only when the vehicle is in a safe driving state, thereby meeting the reset requirement of the third-party application for the headlight height while ensuring vehicle safety, and being able to meet the requirements for vehicle safety under the SOA architecture.

[0103] Based on the same inventive concept as in the foregoing embodiments, an embodiment of the present invention also discloses a safety detection system for invoking headlight services. Refer to Figure 2 , including:

[0104] A receiving module 201, configured to receive a headlight height adjustment service request from a third-party application;

[0105] An obtaining module 202, configured to obtain the current driving state of the vehicle;

[0106] A first judgment module 203, configured to judge the safe driving state of the vehicle based on the headlight height adjustment service request and the current driving state of the vehicle;

[0107] An adjustment module 204, configured to adjust the headlight height according to the headlight height adjustment service request if the vehicle is in the safe driving state.

[0108] Preferably, the system further includes a second judgment module, configured to:

[0109] Determine whether the request source to which the headlight height adjustment service request belongs exists in the whitelist or the blacklist; wherein, the whitelist configures vehicle credit request sources, and the blacklist configures other request sources except the vehicle credit request sources;

[0110] If it exists in the whitelist, adjust the headlight height according to the headlight height adjustment service request;

[0111] If it exists in the blacklist, perform the step of obtaining the current driving state of the vehicle.

[0112] Preferably, the first judgment module 203 is specifically configured to:

[0113] Judge whether the current vehicle speed included in the current driving state of the vehicle is below the preset vehicle speed threshold corresponding to the safe driving state;

[0114] If so, it means that the vehicle is in the safe driving state;

[0115] If not, ignore the headlight height adjustment service request.

[0116] Preferably, the system further includes: a third judgment module, which is used for:

[0117] Based on the headlight adjustment service corresponding to the headlight height adjustment service request, determine the preset vehicle speed threshold corresponding to the headlight height adjustment service;

[0118] Judge whether the current vehicle speed included in the current driving state of the vehicle is below the preset vehicle speed threshold corresponding to the headlight height adjustment service;

[0119] If the requested adjustment amplitude of the headlight height adjustment service is less than or equal to the safe adjustment amplitude, perform the step of adjusting the headlight height according to the headlight height adjustment service request;

[0120] If the requested adjustment amplitude of the headlight height adjustment service is greater than the safe adjustment amplitude, ignore the headlight height adjustment service request.

[0121] Preferably, the system further includes: a linkage adjustment module, which is used to link and adjust the headlight brightness according to the headlight height adjustment service request.

[0122] Preferably, the linkage adjustment module is specifically configured to:

[0123] If the adjustment direction of the headlight height adjustment service request is downward adjustment, brighten the headlight brightness according to the requested adjustment amplitude of the headlight height adjustment service request;

[0124] If the adjustment direction of the headlight height adjustment service request is upward adjustment, dim the headlight brightness according to the applied adjustment range of the headlight height adjustment service request, or do not adjust the headlight brightness; wherein, there is a mapping relationship between the applied adjustment range and the headlight brightness.

[0125] Preferably, the system further includes a reset module for:

[0126] Receiving a reset operation request from the third-party application;

[0127] Based on the reset operation request, reset the headlight height to the position before adjustment.

[0128] Based on the same inventive concept as in the foregoing embodiments, an embodiment of the present invention also discloses a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the steps of any of the foregoing methods are implemented.

[0129] Based on the same inventive concept as in the foregoing embodiments, an embodiment of the present invention also discloses a vehicle, including a memory, a processor, and a computer program stored on the memory and executable on the processor, and when the processor executes the program, the steps of any of the foregoing methods are implemented.

[0130] Through one or more embodiments of the present invention, the present invention has the following beneficial effects or advantages:

[0131] The present invention discloses a safety detection method and system for calling headlight services. First, it receives a headlight height adjustment service request from a third-party application and obtains the current driving state of the vehicle. Then, by judging the safe driving state of the current driving state of the vehicle, it detects whether the vehicle is in the safe driving state, and only responds to the third-party application to adjust the headlight height when the vehicle is in the safe driving state, so as to meet the adjustment requirement of the third-party application for the headlight height on the premise of ensuring vehicle safety, and can meet the requirements for vehicle safety under the SOA architecture.

[0132] Furthermore, since the present invention adds a safety judgment mechanism when the vehicle service is open to third-party applications, it ensures that the third-party application will not affect the driving safety of the vehicle when it is installed on the vehicle, and on the premise of ensuring the safety attributes of the vehicle, it can also expand the application of vehicle safety services in terms of headlight height adjustment, thus contributing to the development of software-defined vehicles in terms of headlight height adjustment.

[0133] The algorithms and displays provided herein are not inherently related to any particular computer, virtual system, or other apparatus. Various general-purpose systems may also be used in conjunction with the teachings based hereon. The structure required to construct such systems will be apparent from the above description. In addition, the present invention is not directed to any particular programming language. It should be appreciated that the present invention as described herein can be implemented in various programming languages, and the description of specific languages above is for the purpose of disclosing the best mode of the present invention.

[0134] In the specification provided herein, numerous specific details are set forth. However, it can be understood that embodiments of the present invention may be practiced without these specific details. In some instances, well-known methods, structures, and techniques have not been shown in detail so as not to obscure the understanding of this specification.

[0135] Similarly, it should be understood that in order to streamline the present invention and assist in understanding one or more of the various inventive aspects, in the above description of the exemplary embodiments of the present invention, the various features of the present invention are sometimes grouped together in a single embodiment, figure, or description thereof. However, the disclosed method should not be construed as reflecting an intention that the claimed invention requires more features than are expressly recited in each claim. Rather, as reflected in the following claims, the inventive aspects lie in less than all the features of the single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into the detailed description, with each claim standing on its own as a separate embodiment of the present invention.

[0136] Those skilled in the art will appreciate that the modules in the devices in the embodiments can be adaptively changed and disposed in one or more devices different from the embodiments. The modules or units or components in the embodiments can be combined into one module or unit or component, and in addition, they can be divided into multiple sub-modules or sub-units or sub-components. Except that at least some of such features and / or processes or units are mutually exclusive, any combination can be used to combine all the features disclosed in this specification (including the accompanying claims, abstract, and drawings) and all the processes or units of any method or device so disclosed. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstract, and drawings) can be replaced by an alternative feature providing the same, equivalent, or similar purpose.

[0137] In addition, those skilled in the art can understand that although some embodiments herein include certain features included in other embodiments rather than other features, the combination of features of different embodiments means that it is within the scope of the present invention and forms different embodiments. For example, in the following claims, any one of the claimed embodiments can be used in any combination.

[0138] Each component embodiment of the present invention can be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art should understand that a microprocessor or a digital signal processor (DSP) can be used in practice to implement some or all of the functions of some or all of the components of the gateway, proxy server, and system according to the embodiments of the present invention. The present invention can also be implemented as a device or apparatus program (for example, a computer program and a computer program product) for executing part or all of the methods described herein. Such a program implementing the present invention can be stored on a computer-readable medium, or can be in the form of one or more signals. Such signals can be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.

[0139] It should be noted that the above embodiments illustrate the present invention rather than limit the present invention, and those skilled in the art can design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in the claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present invention can be implemented by means of hardware including several different elements and by means of a suitably programmed computer. In the unit claims listing several devices, several of these devices can be embodied by the same item of hardware. The use of the words first, second, and third, etc. does not denote any order. These words can be interpreted as names.

Claims

1. A safety detection method for calling a vehicle lamp service, characterized in that, The method includes: Receiving a headlight height adjustment service request from a third-party application; Determining whether the request source to which the headlight height adjustment service request belongs exists in the whitelist or the blacklist; wherein, the whitelist configures vehicle credit request sources, and the blacklist configures other request sources except the vehicle credit request sources; If it exists in the whitelist, adjusting the headlight height according to the headlight height adjustment service request; If it exists in the blacklist, obtaining the current driving state of the vehicle; Based on the headlight height adjustment service request and the current driving state of the vehicle, making a safe driving state judgment on the vehicle; If the vehicle is in the safe driving state, adjusting the headlight height according to the headlight height adjustment service request.

2. The method according to claim 1, wherein The making a safe driving state judgment on the vehicle based on the headlight height adjustment service request and the current driving state of the vehicle specifically includes: Based on the headlight adjustment service corresponding to the headlight height adjustment service request, determining a preset vehicle speed threshold corresponding to the headlight height adjustment service; Judging whether the current vehicle speed included in the current driving state of the vehicle is below the preset vehicle speed threshold corresponding to the headlight height adjustment service; If so, indicating that the vehicle is in the safe driving state; If not, ignoring the headlight height adjustment service request.

3. The method according to claim 1, wherein If the vehicle is in the safe driving state, the method further includes: Judging whether the requested adjustment range of the headlight height adjustment service is less than or equal to the safe adjustment range; If the requested adjustment range of the headlight height adjustment service is less than or equal to the safe adjustment range, performing the step of adjusting the headlight height according to the headlight height adjustment service request; If the requested adjustment range of the headlight height adjustment service is greater than the safe adjustment range, ignoring the headlight height adjustment service request.

4. The method according to claim 1, characterized in that After adjusting the headlight height according to the headlight height adjustment service request, the method further includes: Linking and adjusting the headlight brightness according to the headlight height adjustment service request.

5. The method according to claim 4, characterized in that, The linking and adjusting the headlight brightness according to the headlight height adjustment service request specifically includes: If the adjustment direction of the headlight height adjustment service request is downward adjustment, brightening the headlight brightness according to the requested adjustment range of the headlight height adjustment service request; If the adjustment direction of the headlight height adjustment service request is upward adjustment, dimming the headlight brightness according to the requested adjustment range of the headlight height adjustment service request, or not adjusting the headlight brightness; wherein, there is a mapping relationship between the requested adjustment range and the headlight brightness.

6. The method according to claim 1, characterized in that After adjusting the headlight height according to the headlight height adjustment service request, the method further includes: Receiving a reset operation request from the third-party application; Based on the reset operation request, resetting the headlight height to the position before adjustment.

7. A safety detection system for calling a vehicle lamp service, characterized in that, Includes: A receiving module, configured to receive a headlight height adjustment service request from a third-party application; A second judgment module, configured to: determine whether the request source to which the headlight height adjustment service request belongs exists in the whitelist or the blacklist; wherein, the whitelist configures vehicle credit request sources, and the blacklist configures other request sources except the vehicle credit request sources; if it exists in the whitelist, adjusting the headlight height according to the headlight height adjustment service request; An acquisition module, configured to acquire the current driving state of the vehicle if it exists in the blacklist; A first judgment module, configured to judge the safe driving state of the vehicle based on the headlight height adjustment service request and the current driving state of the vehicle; An adjustment module, configured to adjust the headlight height according to the headlight height adjustment service request if the vehicle is in the safe driving state.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by a processor, the steps of the method according to any one of claims 1-6 are implemented.

9. A vehicle, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, When the processor executes the program, the steps of the method according to any one of claims 1-6 are implemented.

Citation Information

Patent Citations

  • Service interface system of auxiliary driving assembly, control method and equipment thereof

    CN114301934A

  • DIMMABLE EXTERNAL VEHICLE LIGHTING AND METHOD OF USE

    DE102021101075A1