Vehicle lamp control method and device, vehicle and storage medium
By detecting the relative position of the vehicle and mobile devices, the lighting parameters and combination of the headlights are dynamically adjusted, solving the problem of the single operating mode of the headlights and realizing the diversity of headlights and improving the display effect.
Patent Information
- Application Number
- CN202410774013.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-14
- Publication Date
- 2025-11-07
- Estimated Expiration
- 2044-06-14
AI Technical Summary
The existing vehicle lights operate in a rather simplistic way, resulting in poor visual effects.
By detecting the relative position between the vehicle and the mobile device, the lighting parameters and combination of the headlights are dynamically adjusted to achieve diversified operation of the headlights.
It has improved the diversity and display effect of vehicle lights, and enhanced the personalization and applicability of vehicle light operation.
Smart Images

Figure CN118683440B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of vehicles, and more particularly, to a vehicle light control method and device, a vehicle, and a computer readable storage medium. BACKGROUND
[0002] At present, with the development of vehicle technology, vehicle lights are increasingly diversified. Users can configure different light driving information for different vehicle light scenes based on requirements, and then the user can select a set vehicle light scene in the set vehicle light scene, and the vehicle can control the vehicle light to operate according to the light driving information configured by the selected vehicle light scene.
[0003] However, the existing vehicle light operation mode is relatively single, and the vehicle light display effect is poor. SUMMARY
[0004] The present application provides a vehicle light control method, device, vehicle and computer readable storage medium to improve the above-mentioned defects.
[0005] In a first aspect, the embodiments of the present application provide a vehicle light control method, which comprises:
[0006] In response to detecting that the relative position of the mobile device matched with the vehicle relative to the vehicle is a first relative position, driving a first light;
[0007] In response to detecting that the relative position of the mobile device matched with the vehicle relative to the vehicle is a second relative position, driving a second light; the first relative position and the second relative position are not matched, and the first light and the second light are different.
[0008] In a second aspect, the embodiments of the present application also provide a vehicle light control device, which comprises:
[0009] A first response module, configured to drive a first light in response to detecting that the relative position of the mobile device matched with the vehicle relative to the vehicle is a first relative position;
[0010] A second response module, configured to drive a second light in response to detecting that the relative position of the mobile device matched with the vehicle relative to the vehicle is a second relative position; the first relative position and the second relative position are not matched, and the first light and the second light are different.
[0011] In a third aspect, the embodiments of the present application also provide a vehicle, which comprises: one or more processors; a memory; and one or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute the above-mentioned method.
[0012] In a fourth aspect, the embodiments of the present application further provide a computer readable storage medium, which stores a program code executable by a processor, and the program code, when executed by the processor, causes the processor to perform the method described above.
[0013] The vehicle lamp control method, device, vehicle and computer readable storage medium provided in the present application, in the present application, in response to detecting that the relative position of the mobile device matched with the vehicle relative to the vehicle is a first relative position, driving a first light; in response to detecting that the relative position of the mobile device matched with the vehicle relative to the vehicle is a second relative position, driving a second light; wherein the first light and the second light are different when the first relative position and the second relative position do not match, realizing that the first light driving information changes when the first relative position of the mobile device relative to the vehicle changes, and then making the vehicle lamp operating state also change, improving the diversity of the vehicle lamp operation, and improving the display effect of the vehicle lamp.
[0014] Other features and advantages of the embodiments of the present application will be described in the following description, and some will become apparent from the description, or will be understood through implementation of the embodiments of the present application. The purpose and other advantages of the embodiments of the present application can be achieved and obtained through the structures specifically pointed out in the written description and the accompanying drawings. BRIEF DESCRIPTION OF DRAWINGS
[0015] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed in the embodiment description will be briefly introduced as follows. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor on the basis of these drawings.
[0016] Figure 1 A vehicle lamp control method flow chart according to one embodiment of the present application is shown.
[0017] Figure 2 A vehicle lamp control method flow chart according to another embodiment of the present application is shown.
[0018] Figure 3 A schematic diagram of a plurality of regions in the embodiments of the present application is shown.
[0019] Figure 4 A vehicle lamp control method flow chart according to another embodiment of the present application is shown.
[0020] Figure 5 A schematic diagram of a vehicle lamp control process in the embodiments of the present application is shown.
[0021] Figure 6A structural block diagram of a vehicle lamp control device is shown.
[0022] Figure 7 A structural block diagram of a vehicle is shown. DETAILED DESCRIPTION
[0023] In order to enable those skilled in the art to better understand the scheme of the present application, the technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, but not all the embodiments. The components of the embodiments of the present application described and shown in the accompanying drawings can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the claimed present application, but only represents selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.
[0024] It should be noted that: similar reference numbers and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. At the same time, in the description of the present application, the terms "first", "second" and the like are only used to distinguish the description, and cannot be understood as indicating or implying relative importance.
[0025] Please refer to Figure 1 , Figure 1 A flow chart of a vehicle lamp control method is shown in an embodiment of the present application, and the method comprises:
[0026] S101, in response to detecting that the relative position of the mobile device matched with the vehicle relative to the vehicle is a first relative position, driving the first light.
[0027] In the present application, the vehicle can be an electric vehicle or a fuel vehicle, and can also be a car, an SUV, a bus, a truck, etc. The vehicle can be installed with a vehicle lamp, which includes a basic vehicle lamp and different styles of atmosphere lamps. The basic vehicle lamp can refer to the fog lamp, the turn signal lamp, the illuminating headlamp, etc. of the vehicle. The vehicle lamp inside the vehicle can include the atmosphere lamp front and rear roof lamp, the makeup mirror lamp, the trunk lamp, the reading lamp, etc.
[0028] The light refers to the light of the vehicle lamp in the vehicle: the light emitted by each vehicle lamp according to different light parameters (the light parameters can include the on-off, flashing time, brightness, color of the vehicle lamp, etc.) and the light emitted by multiple vehicle lamps according to different combination forms is the light in the present application. The same vehicle lamp emits light according to different light parameters, and the light is different, for example, the light emitted by the headlamp for 10s and the light emitted by the headlamp for 20s are different lights; the light emitted by different combinations of different vehicle lamps is also different; for example, the light emitted by the combination of the headlamp and the turn signal lamp is different from the light emitted by the combination of the headlamp and the fog lamp.
[0029] The mobile device matched with the vehicle can refer to the vehicle key of the vehicle, the mobile terminal paired with the vehicle, etc. Among them, the mobile terminal paired with the vehicle can be paired with the vehicle through Bluetooth, infrared and mobile network.
[0030] In order to improve the communication ability between the vehicle and the matched mobile device, the mobile device can be installed with an ultra wide band (UWB) communication device, and the vehicle is also installed with an ultra wide band communication device, so as to facilitate the communication connection between the vehicle and the mobile device through the ultra wide band protocol, and improve the communication stability and communication efficiency.
[0031] In the present application, the relative position of the vehicle and the mobile device can include the relative distance and the relative angle. The vehicle can communicate with the mobile device, determine the relative distance of the mobile device relative to the vehicle through the signal transmission time between the two, obtain the direction of the signal (or the return signal based on the signal returned by the vehicle) received by the vehicle and actively sent by the mobile device as the relative direction of the mobile device relative to the vehicle, and determine the relative position of the mobile device relative to the vehicle according to the relative direction and the relative distance.
[0032] In some embodiments, before S101, the method can further include: in response to the time length of the distance from the previous sending of the historical request signal reaching the target time length, sending the request signal; if the response signal to the request signal is received, obtaining the relative position of the signal source of the response signal relative to the vehicle as the first relative position of the mobile device relative to the vehicle. The target time length can be set based on demand, for example, 200ms. The historical communication signal refers to the communication signal around the vehicle collected last time.
[0033] The vehicle polls once every target time length, and each time the vehicle sends a request signal to the surrounding environment of the vehicle. If the mobile device receives the request signal, the mobile device will return a response signal according to the request signal, the position of the signal source of the response signal is the position of the mobile device, and the relative position of the signal source of the response signal relative to the vehicle is obtained as the first relative position of the mobile device relative to the vehicle.
[0034] In the embodiment, the response signal is acquired by polling, and the vehicle does not need to be in a state of monitoring the position of the mobile device all the time, thereby effectively reducing the energy consumption of the vehicle and improving the energy utilization rate of the vehicle.
[0035] In order to avoid that the response signal is returned by a mobile device not matched with the vehicle, the response signal returned by the mobile device can carry the vehicle identifier of the vehicle or the device identifier of the mobile device returning the response signal, so that the vehicle determines that the response signal is returned by the mobile device matched with the vehicle according to the vehicle identifier in the response signal, or determines that the response signal is returned by the mobile device matched with the vehicle when the device identifier in the response signal is consistent with the device identifier of the mobile device matched with the vehicle.
[0036] In some embodiments, the response signal returned by the mobile device can include an identifier field matched with the device identifier of the mobile device returning the response signal (for example, the identifier field is part of the device identifier of the mobile device returning the response signal or is the result of encoding the device identifier of the mobile device returning the response signal, for example, the encoding method can be a hash operation), if the identifier field in the response signal is matched with the device identifier of the aforementioned mobile device matched with the vehicle, it is determined that the received response signal is the signal returned by the mobile device, at this time, the position of the signal source of the response signal can be determined as the position of the mobile device matched with the vehicle, and the relative position of the signal source of the response signal relative to the vehicle is acquired as the first relative position of the mobile device relative to the vehicle.
[0037] In the present application, in order to improve safety, the identifier field can also be encrypted, and the encrypted identifier field is decrypted by the vehicle, and it is determined whether the decrypted identifier field is matched with the device identifier of the mobile device. Wherein, the encryption means here can be symmetric encryption algorithm or asymmetric encryption algorithm, which will not be described here.
[0038] In the present application, a light can be set for each relative position, so that after the first relative position is determined, the light corresponding to the first relative position is acquired as the first light, and the first light is controlled to operate.
[0039] It can be understood that in the present application, a light can be set for each relative position, and the lights corresponding to different relative positions are different; or a light can be set for different relative positions in the same region, and the lights in the same region are the same, and the lights in different regions are different.
[0040] In the embodiment, the relative positions with the same relative angle can be divided into a region, or the relative positions with the same relative distance can be divided into a region.
[0041] S102, in response to detecting that the relative position of the mobile device matched with the vehicle relative to the vehicle is a second relative position, driving the second light.
[0042] Wherein, when the first relative position and the second relative position do not match, the first light and the second light are different. The relative positions do not match can mean that the relative positions are different, or the relative positions are no longer in the same area.
[0043] In this application, the relative position can include at least one of the relative distance and the relative angle, at this time, the first relative position and the second relative position include the relative distance and / or the relative angle relative to the vehicle.
[0044] In an embodiment, if one relative position corresponds to one light, and the lights corresponding to different relative positions are different, determining that the relative positions do not match means that the relative positions are different.
[0045] In another embodiment, if different relative positions in the same area correspond to the same light, then the relative positions do not match means that the relative positions are in different areas.
[0046] The second relative position is obtained by referring to the first relative position, which will not be repeated here.
[0047] In this embodiment, in response to detecting that the relative position of the mobile device matched with the vehicle relative to the vehicle is a first relative position, driving the first light; in response to detecting that the relative position of the mobile device matched with the vehicle relative to the vehicle is a second relative position, driving the second light; wherein, when the first relative position and the second relative position do not match, the first light and the second light are different, realizing that the first light driving information changes when the first relative position of the mobile device relative to the vehicle changes, and then making the vehicle light operating state also change, improving the diversity of the vehicle light operation, and improving the display effect of the vehicle light.
[0048] Please refer to Figure 2 , Figure 2 An embodiment of the application shows a flow chart of a vehicle light control method for a vehicle, the method comprising:
[0049] S201, in response to detecting that the relative position of the mobile device matched with the vehicle relative to the vehicle is a first relative position, determining the first light driving information matched with the first relative position from a plurality of light driving information.
[0050] The one relative position corresponds to one light driving information. The light driving information refers to information for controlling the light operation of the vehicle. Each light driving information can include light parameters of at least one vehicle light. The vehicle controls the operation of each vehicle light according to the light parameters of each vehicle light in the light driving information, so as to achieve the purpose of driving the light.
[0051] In the present application, at least one vehicle light can be selected based on the demand, and light parameters are configured for the selected vehicle light to obtain one light driving information. After multiple adjustment operations, multiple light driving information are obtained.
[0052] In the present embodiment, each relative position corresponds to one light driving information, and the light driving information corresponding to different relative positions is different, so that the light corresponding to different relative positions is different. One light driving information can also be set for different relative positions in the same region. The light driving information of different relative positions in the same region is the same, so that the light of different relative positions in the same region is the same. The light driving information of different regions is different, so that the light of different regions is different.
[0053] If one relative position corresponds to one light driving information, the light driving information corresponding to the first relative position is directly obtained as the first light driving information. If different positions in the same region correspond to the same light driving information, the light driving information corresponding to the region where the first relative position is located is determined as the first light driving information.
[0054] In some embodiments, determining the first light driving information matching the first relative position from the multiple light driving information includes: determining the first region where the mobile device is located from the multiple regions according to the first relative position; the multiple regions are obtained by dividing the environment region around the vehicle and the region where the vehicle is located; and determining the first light driving information corresponding to the first region from the multiple light driving information according to the correspondence between the regions and the light driving information. The multiple regions are obtained by dividing the environment region around the vehicle and the region where the vehicle is located.
[0055] In the present application, the communication link between the mobile device and the vehicle is usually a wireless communication connection. The communication distance between the two is limited. The environment region around the vehicle refers to the region around the vehicle within the communicable range.
[0056] The environment region around the vehicle and the region where the vehicle is located can be divided based on the demand to obtain multiple regions. For example, as shown in FIG. 2, the environment region around the vehicle and the region where the vehicle is located are divided into multiple regions. Figure 3As shown, the environmental area around the vehicle is a circular area centered on the vehicle. The environmental area around the vehicle can be divided into 24 areas, and the area where the vehicle is located can be divided into 2 areas, resulting in 26 areas. The number in each area is used to indicate the area number. For example, the area containing the number 1 is area number 1.
[0057] The region where the mobile device is located can be determined from multiple regions based on the first relative position, and designated as the first region. For example, such as... Figure 3 Among the multiple areas shown, based on the first relative position—5m away from the vehicle at a direction 30° to the left of the vehicle—the area where the mobile device is located is determined to be area 10, which is designated as the first area.
[0058] There is a correspondence between regions and lighting drive information. Based on this correspondence, the first lighting drive information corresponding to the first region can be determined from multiple lighting drive information sets. For example, ... Figure 3 The lighting drive information corresponding to the 26 regions shown are dq1, dq2, ..., dq25 and dq26 respectively. After determining that region 10 is the first region, the lighting drive information dq10 corresponding to region 10 is obtained as the first lighting drive information.
[0059] In this embodiment, the process of establishing the correspondence may include: dividing the environmental area around the vehicle and the area where the vehicle is located into multiple areas; assigning a light driving information to each area; and establishing a correspondence between each area and the corresponding assigned light driving information.
[0060] Multiple light driver information can be set based on requirements, and then one light driver information can be assigned to each area. After that, the correspondence between each area and the corresponding assigned light driver information can be directly established.
[0061] For example, such as Figure 3 In the 26 areas shown, the vehicle manufacturer designs 24 exterior lighting drive information and 6 interior lighting drive information. Then, a first lighting drive information is assigned to each of the 24 exterior areas (this can be a random assignment of one exterior lighting drive information to each area, or it can be selected based on requirements). The first lighting drive information assigned to each of the 24 areas is different. Two interior lighting drive information are selected from the 6 interior lighting drive information (this can be a random selection of two interior lighting drive information, or it can be two interior lighting drive information selected separately for two interior areas based on requirements) and assigned to the two interior areas. After completing the assignment of lighting drive information to each of the 26 areas, the correspondence between each area and the corresponding assigned lighting drive information can be established.
[0062] In some embodiments, before determining the first region where the mobile device is located from the plurality of regions according to the first relative position, the method can further comprise: displaying the plurality of regions and the initial light driving information assigned to each region through the screen of the vehicle; in response to an adjustment operation for a second region in the plurality of regions, adjusting the initial light driving information assigned to the second region to obtain second light driving information assigned to the second region; establishing a correspondence between the second region and the corresponding assigned second light driving information, and establishing a correspondence between a third region and the corresponding assigned initial light driving information to obtain a correspondence between regions and light driving information; the third region being other regions in the plurality of regions except the second region.
[0063] The plurality of regions and the initial light driving information can be displayed through a display interface of the screen of the vehicle, and each initial light driving information can include a plurality of light parameters of at least one vehicle light. The user sends an adjustment operation for the second region with respect to the displayed plurality of regions and initial light driving information, so as to adjust the light parameters in the initial light driving information corresponding to the second region to obtain adjusted initial light driving information as the second light driving information assigned to the second region.
[0064] The adjustment operation can be manual adjustment of the light parameters or selection of one of a plurality of preset light parameters.
[0065] For example, the initial light driving parameters of the second region include light parameters cd11 of vehicle light cd1, light parameters cd22 of vehicle light cd2, and light parameters cd33 of cd3. According to the adjustment operation, the light parameters of vehicle light cd1 are adjusted to cd12, the light parameters of vehicle light cd2 are adjusted to cd21, and the light parameters of cd3 are adjusted to cd31. At this time, the second light driving information corresponding to the second region is obtained as the light parameters cd12 of vehicle light cd1, the light parameters cd21 of vehicle light cd2, and the light parameters cd31 of cd3.
[0066] For another example, for example, the initial light driving parameters of the second region include light parameters cd11 of vehicle light cd1, light parameters cd22 of vehicle light cd2, and light parameters cd33 of cd3. The preset light parameters of vehicle light cd1 include cd11, cd12, and cd13. The preset light parameters of vehicle light cd2 include cd22, cd21, and cd23. The preset light parameters of cd3 include cd33, cd31, and cd32. The adjustment operation is to select cd11, cd22, and cd32. At this time, the second light driving information corresponding to the second region is obtained as the light parameters cd11 of vehicle light cd1, the light parameters cd22 of vehicle light cd2, and the light parameters cd32 of cd3.
[0067] It is worth mentioning that the vehicle manufacturer can configure the initial light driving information for each region, and if no adjustment operation is sent for the region, the region is the third region, and the light driving information of the third region remains the initial light driving information.
[0068] Then, the correspondence between the second region and the corresponding allocated second light driving information is directly established, and the correspondence between the third region and the corresponding allocated initial light driving information is established to obtain the correspondence between the region and the light driving information.
[0069] In some embodiments, before establishing the correspondence between the second region and the corresponding allocated second light driving information, the method further comprises: in response to a preview operation for the second light driving information, driving the third light according to the second light driving information; accordingly, establishing the correspondence between each second region and the corresponding allocated second light driving information comprises: in response to a determination operation for the second light driving information, controlling the third light to stop running, and establishing the correspondence between each second region and the corresponding allocated second light driving information.
[0070] After allocating the second light driving information for a second region, the third vehicle light can be driven according to the second light driving information corresponding to the second region in response to a preview operation for the second light driving information corresponding to the second region, so as to preview the running effect of the second light driving information allocated for the second region.
[0071] Among them, the display interface of the vehicle screen can include a preview control, and the preview operation for the second region can be determined in response to the triggering operation (such as single click, double click or long press, etc.) of the preview control after the triggering operation (such as single click, double click or long press, etc.) of the second region.
[0072] During the preview of the running effect of the second light driving information corresponding to the second region, the second light driving information allocated for the second region can be selected in response to a determination operation for the second light driving information allocated for the second region, and the correspondence between the second region and the corresponding allocated second light driving information is established.
[0073] The initial light driving information allocated for the second region can also be selected in response to a cancel operation for the second light driving information allocated for the second region, and the correspondence between the second region and the corresponding allocated initial light driving information is established. Among them, the display interface can have a determination control and a cancel control, the triggering operation for the determination control is the determination operation, and the triggering operation for the cancel control is the cancel operation.
[0074] The second light driving information of the second region can be adjusted to obtain new second light driving information corresponding to the second region in response to a readjustment operation of the second region after the cancel operation of the light driving information allocated to the second region. After the new second light driving information of the second region is obtained, the preview of the new second light driving information of the second region can be performed according to the foregoing process.
[0075] In the embodiment, the foregoing multiple regions and the light parameters in the multiple light driving information can be packaged as a light SOA service, and the light SOA service can be displayed on the screen of the vehicle. The SOA service refers to a service-oriented architecture, which is a component model that connects different functional units (referred to as services) of an application program through well-defined interfaces and contracts between the services. The interface is defined in a neutral manner, which should be independent of the hardware platform, operating system and programming language for implementing the service. This enables services built in various such systems to interact in a unified and universal manner.
[0076] S202, driving the first light according to the first light driving information.
[0077] After the first light driving information is obtained, the first light can be driven according to the first light driving information.
[0078] In some embodiments, before S202, the method can include: generating a dot file according to the first region and the first light driving information; and correspondingly, S202 includes: driving the first light according to the first light driving information in the dot file.
[0079] After the first light driving information is obtained, the first region and the first light driving information can be summarized into a file to obtain a dot file, and then the dot file is sent to the light driving module of the vehicle. The light driving module of the vehicle controls the first light of the vehicle to operate according to the first light driving information in the dot file.
[0080] S203, driving the second light in response to detecting that the relative position of the mobile device matched with the vehicle relative to the vehicle is a second relative position.
[0081] The driving process of the second light can refer to the driving process of the first light in S201-S202, which will not be described here.
[0082] In the embodiment, the correspondence between the multiple regions and the multiple light driving information is established, and through the correspondence, the light driving information corresponding to the region where the mobile device is located is quickly determined, and the vehicle light driving efficiency is improved. At the same time, the effect of customizing different light driving information for different regions is realized, and the first light driving information is determined through the correspondence based on the first relative position, so that the determined light driving information is more diversified, and the light driving information can change with the change of the position of the mobile device, thereby improving the vehicle light display effect when the vehicle drives the vehicle light according to the light driving information.
[0083] In addition, the user can manually configure the second light driving information for the second region, realize personalized customization of the light driving information, make the vehicle light run according to the customized light driving information more in line with the user's needs, and improve the applicability of the light driving information and the user's satisfaction.
[0084] In the embodiment, the running effect of the light driving information can be intuitively and quickly perceived by previewing the running effect of the light driving information.
[0085] Please refer to Figure 4 , Figure 4 A flow chart of a vehicle light control method according to another embodiment of the application is shown, and the method comprises the following steps:
[0086] S301, in response to detecting that the relative position of the mobile device matched with the vehicle relative to the vehicle is a first relative position, sending the first relative position to the first processor, so that the first processor determines the first region where the mobile device is located from the multiple regions according to the first relative position; and determines the first light driving information corresponding to the first region from the multiple light driving information according to the correspondence between the region and the light driving information; and generates a dot file according to the first region and the first light driving information.
[0087] In the embodiment, the vehicle includes a first processor and a second processor, the data processing performance of the first processor is higher than that of the second processor, and the data transmission performance of the second processor is higher than that of the first processor. For example, the first processor of the vehicle can be an A core in the S32G series chip of NXP, and the second processor can be an M core in the S32G series chip of NXP. The A core supports QNX or LINUX open source system development, mainly undertakes high computing power application development demand, and has high computing power. The M core supports the development of traditional RTOS, can meet the high real-time requirement of automotive electronics, and has high real-time transmission capability.
[0088] The steps of determining the first light driving information and generating the dot file can be performed by the first processor, so as to achieve the purpose of quickly determining the first light driving information and generating the dot file, and improve the light control efficiency.
[0089] S302, in response to the light control command sent by the second processor based on the dot file, drive the first light; the second processor sends the light control command based on the first light drive information in the dot file sent by the first processor.
[0090] After the first processor obtains the tracking file, it can send the tracking file to the second processor through inter-core communication. The second processor then generates lighting control commands based on the first lighting drive information in the tracking file, and the vehicle controls the headlights based on the lighting control commands.
[0091] The second processor executes the sending of control commands, which improves the transmission efficiency of control commands and thus improves the efficiency of lighting control.
[0092] S303. In response to detecting that the relative position of the mobile device matched with the vehicle is a second relative position, the second relative position is sent to the first processor, so that the first processor determines the fourth region where the mobile device is located from multiple regions based on the second relative position; and determines the third lighting drive information corresponding to the fourth region from multiple lighting drive information based on the correspondence between the region and the lighting drive information; and generates a new dot file based on the fourth region and the third lighting drive information.
[0093] S304. In response to a new lighting control command sent by the second processor based on a new dot file, drive the second light; the second processor sends a new lighting control command based on the third light driving information in the new dot file sent by the first processor.
[0094] Among them, the fourth region is the region where the mobile device is located when the relative position is the second relative position, and the third light driving information is the light driving information corresponding to the fourth region.
[0095] For example, the mobile device serves as the vehicle's UWB key, which communicates and connects to the vehicle via the UWB protocol. Figure 5 As shown, the vehicle's UWB key positioning controller polls every 200ms. Each time it polls, the vehicle's UWB key positioning controller sends a request signal to the surrounding environment. When the UWB key is within the UWB protocol range, after receiving the request signal, the UWB key returns a response signal. Based on the received response signal, the vehicle's UWB key positioning controller determines the three-dimensional coordinates of the UWB key relative to the vehicle as the first relative position. The vehicle then uses an algorithm to convert the first relative position into a CAN (Controller Area Network) protocol transmission signal and transmits this signal to the vehicle's multi-core heterogeneous controller.
[0096] The vehicle's multi-core heterogeneous controller can be NXP's S32G series chip, which can include A-cores with high computing power and M-cores with high real-time performance. The A-core supports QNX or LINUX open-source system development and mainly undertakes the development needs of high computing power applications; the M-core supports the development of traditional RTOS and can meet the high real-time requirements of automotive electronics.
[0097] The vehicle itself also stores multiple lighting drive information and multiple regions. The vehicle's multi-core heterogeneous controller can encapsulate multiple initial lighting drive information and multiple regions into independent lighting SOA services. The lighting SOA services are sent to the vehicle's screen via the SomeIP protocol, so that the vehicle's screen can display multiple initial lighting drive information and multiple regions. This allows users to configure second lighting drive information for the second region in the multiple regions based on the displayed initial lighting drive information and multiple regions. For the third region other than the second region in the multiple regions, the assigned initial lighting drive information is maintained. After assigning a lighting drive information to each region, the correspondence between each region and the lighting drive information is established.
[0098] The A core in the vehicle's multi-core heterogeneous controller processes the aforementioned transmission signal to obtain the first relative position of the UWB key relative to the vehicle. Based on the first relative position, it determines the first area where the UWB key is located. Through the correspondence, it determines the first lighting drive information corresponding to the first area and summarizes the first area and the lighting drive information into a point file. Then, the M core in the multi-core heterogeneous controller sends the point file to the lighting drive module based on the LIN (Local Interconnect Network, Universal Asynchronous Receiver / Serial Communication Interface) protocol, so that the lighting drive module drives the vehicle's lights according to the first lighting drive information in the point file.
[0099] In this embodiment, the first light driving information and the point file are determined by a high-performance first processor, which improves the efficiency of determining the first light driving information and generating the point file, thus improving the light control efficiency. At the same time, the light control commands are sent by a high-performance second processor, which improves the transmission efficiency of the control commands, further enhancing the light control efficiency.
[0100] See appendix Figure 6 , Figure 6 This diagram illustrates a structural block diagram of a vehicle lighting control device according to an embodiment of this application. The device 1200 includes:
[0101] The first response module 1210 is used to drive the first light in response to detecting that the relative position of the mobile device matched with the vehicle relative to the vehicle is a first relative position;
[0102] The second response module 1220 is configured to drive the second light in response to detecting that the relative position of the mobile device matched with the vehicle relative to the vehicle is a second relative position, the first relative position being different from the second relative position.
[0103] Optionally, the first response module 1210 is further configured to, in response to detecting that the relative position of the mobile device matched with the vehicle relative to the vehicle is a first relative position, determine, from the plurality of light driving information, first light driving information matched with the first relative position, one relative position corresponding to one light driving information, and drive the first light according to the first light driving information.
[0104] Optionally, the first response module 1210 is further configured to determine, according to the first relative position, a first region in which the mobile device is located from a plurality of regions, the plurality of regions being regions obtained by dividing an environment region around the vehicle and a region in which the vehicle is located, and determine, from the plurality of light driving information, first light driving information corresponding to the first region according to a correspondence between the regions and the light driving information.
[0105] Optionally, the apparatus further includes a configuration module configured to display, through a screen of the vehicle, the plurality of regions and initial light driving information allocated to each region, in response to an adjustment operation on a second region in the plurality of regions, adjust the initial light driving information allocated to the second region to obtain second light driving information allocated to the second region, establish a correspondence between the second region and the corresponding allocated second light driving information, and establish a correspondence between a third region and the corresponding allocated initial light driving information to obtain the correspondence between the regions and the light driving information, the third region being a region other than the second region in the plurality of regions.
[0106] Optionally, the configuration module is further configured to, in response to a preview operation on the second light driving information, drive a third light according to the second light driving information, and in response to a determination operation on the second light driving information, control the third light to stop running and establish the correspondence between each second region and the corresponding allocated second light driving information.
[0107] Optionally, the first response module 1210 is further configured to generate a dot file according to the first region and the first light driving information, and drive the first light according to the first light driving information in the dot file.
[0108] Optionally, the apparatus is used for a vehicle, the vehicle comprising a first processor and a second processor, the data processing performance of the first processor being higher than that of the second processor, and the data transmission performance of the second processor being higher than that of the first processor; the first response module 1210 is further configured to send the first relative position to the first processor, so that the first processor determines a first region in which the mobile device is located from the plurality of regions according to the first relative position, and determines first light driving information corresponding to the first region from the plurality of light driving information according to a correspondence between the regions and the light driving information, and generates a dot file according to the first region and the first light driving information; and drive the first light in response to a light control instruction sent by the second processor based on the dot file.
[0109] Optionally, the first response module 1210 is further configured to send the request signal in response to a time length from a previous sending of a history request signal reaching a target time length, and acquire a relative position of a signal source of a response signal relative to the vehicle as the first relative position of the mobile device relative to the vehicle if the response signal to the request signal is received.
[0110] Please refer to Figure 7 which shows a structural block diagram of a vehicle 900 provided by an embodiment of the present application. The vehicle 900 can be a vehicle or a part of a vehicle used to implement a data marking method of an embodiment of the present application. The vehicle 900 in the present application can include one or more of the following components: a processor 910, a memory 920, and one or more application programs, wherein the one or more application programs can be stored in the memory 920 and configured to be executed by the one or more processors 910, and the one or more programs are configured to perform the method as described in the foregoing method embodiments.
[0111] The processor 910 can include one or more processing cores. The processor 910 connects various parts in the vehicle 900 through various interfaces and lines, and performs various functions of the vehicle 900 and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 920, and calling data stored in the memory 920. Optionally, the processor 910 can be implemented in at least one of a hardware form of a digital signal processing (DSP), a field-programmable gate array (FPGA), and a programmable logic array (PLA). The processor 910 can integrate a combination of one or more of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. Among them, the CPU mainly processes operating systems, user interfaces, and application programs; the GPU is responsible for rendering and drawing the content to be displayed; and the modem is used for processing wireless communication. It can be understood that the above-mentioned modem can also not be integrated into the processor 910, but can be realized by a separate communication chip.
[0112] The memory 920 can include a random access memory (RAM) and can also include a read-only memory (ROM). The memory 920 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 920 can include a program storage area and a data storage area, wherein the program storage area can store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing each method embodiment described below, etc. The data storage area can also store data created by the vehicle 900 in use (such as a phone book, audio and video data, chat record data, etc.).
[0113] In several embodiments provided in the present application, the coupling between the modules can be electrical, mechanical or other forms of coupling.
[0114] In addition, each functional module in each embodiment of the present application can be integrated into one processing module, or each module can exist physically independently, or two or more modules can be integrated into one module. The integrated module can be realized in the form of hardware or in the form of a software functional module.
[0115] In another aspect, the present application also provides a computer readable storage medium, which stores program codes, and the program codes can be invoked by a processor to execute the method described in the above method embodiments.
[0116] The computer readable storage medium can be an electronic storage such as a flash memory, an EEPROM (Electrically Erasable Programmable Read-Only Memory), an EPROM, a hard disk, or a ROM. Alternatively, the computer readable storage medium comprises a non-transitory computer readable storage medium. The computer readable storage medium has a storage space for program codes to execute any of the method steps described above. The program codes can be read from or written into one or more computer program products. The program codes can be compressed in a suitable form, for example.
[0117] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than limit the same; even though the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions recorded in the foregoing embodiments, or make equivalent replacements to some of the technical features; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A vehicle lamp control method characterized by, A method for a vehicle, the vehicle comprising a first processor and a second processor, the first processor having a higher data processing performance than the second processor, and the second processor having a higher data transmission performance than the first processor; the method comprising: in response to detecting that a relative position of a mobile device matching the vehicle relative to the vehicle is a first relative position, sending the first relative position to the first processor to cause the first processor to determine, according to the first relative position, a first region in which the mobile device is located from a plurality of regions, and determine, according to a correspondence between regions and light driving information, first light driving information corresponding to the first region from a plurality of light driving information, and generate a dot file according to the first region and the first light driving information; in response to a light control instruction sent by the second processor based on the dot file, driving the first light; the second processor sends the light control instruction based on the first light driving information in the dot file sent by the first processor; in response to detecting that a relative position of a mobile device matching the vehicle relative to the vehicle is a second relative position, driving a second light; the first light and the second light are different when the first relative position and the second relative position do not match.
2. The method of claim 1, wherein, One relative position corresponds to one light driving information.
3. The method of claim 2, wherein, The plurality of regions are divided from an environment region around the vehicle and a region in which the vehicle is located.
4. The method of claim 3, wherein, Before determining, according to the first relative position, a first region in which the mobile device is located from a plurality of regions, the method further comprises: displaying the plurality of regions and initial light driving information allocated to each of the regions through a screen of the vehicle; in response to an adjustment operation for a second region in the plurality of regions, adjusting the initial light driving information allocated to the second region to obtain second light driving information allocated to the second region; establishing a correspondence between the second region and the corresponding allocated second light driving information, and establishing a correspondence between a third region and the corresponding allocated initial light driving information to obtain a correspondence between regions and light driving information; the third region is other than the second region in the plurality of regions.
5. The method of claim 4, wherein, Before establishing the correspondence between the second region and the corresponding allocated second light driving information, the method further comprises: in response to a preview operation for the second light driving information, driving a third light according to the second light driving information; establishing the correspondence between each of the second region and the corresponding allocated second light driving information comprises: in response to a determination operation for the second light driving information, controlling the third light to stop running, and establishing the correspondence between each of the second region and the corresponding allocated second light driving information.
6. The method of claim 1, wherein, Before sending the first relative position to the first processor in response to detecting that a relative position of a mobile device matching the vehicle relative to the vehicle is a first relative position, the method further comprises: in response to a time length from a previous sending of a history request signal reaching a target time length, sending a request signal; if a response signal to the request signal is received, obtaining a relative position of a signal source of the response signal relative to the vehicle as a first relative position of the mobile device relative to the vehicle.
7. The method according to any one of claims 1 to 6, characterized in that, The first relative position and the second relative position include a relative distance and / or a relative angle relative to the vehicle.
8. A vehicle lamp control device characterized by comprising: A device for a vehicle, the vehicle including a first processor and a second processor, the first processor having a higher data processing performance than the second processor, and the second processor having a higher data transmission performance than the first processor; the device including: a first response module configured to, in response to detecting that a relative position of a mobile device matched with the vehicle relative to the vehicle is a first relative position, send the first relative position to the first processor, so that the first processor determines a first region in which the mobile device is located from a plurality of regions according to the first relative position, and determines first light driving information corresponding to the first region from a plurality of light driving information according to a correspondence relationship between regions and light driving information, and generates a dotting file according to the first region and the first light driving information; and in response to a light control instruction sent by the second processor based on the dotting file, drive the first light; the second processor sends the light control instruction based on the first light driving information in the dotting file sent by the first processor; a second response module configured to, in response to detecting that a relative position of a mobile device matched with the vehicle relative to the vehicle is a second relative position, drive a second light; the first light and the second light being different when the first relative position and the second relative position do not match.
9. A vehicle characterized by comprising: comprising: one or more processors; a memory; one or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, and the one or more application programs are configured to perform the method of any one of claims 1-7.
10. A computer-readable storage medium, characterized in that, The computer readable storage medium stores processor executable program code, and the program code is executed by the processor to make the processor perform the method of any one of claims 1-7.
Citation Information
Patent Citations
Vehicle lamp control method, electronic equipment and vehicle
CN116456552A
Vehicle atmosphere lamp control method and device, electronic equipment, storage medium and vehicle
CN117341571A