Shared vehicle light control method and system, electronic device and storage medium

By installing weight sensors in shared vehicles and dynamically adjusting the headlight status based on driving conditions and visibility levels, the problem of high power consumption in shared vehicles has been solved, achieving precise headlight control and cost reduction.

CN117104372BActive Publication Date: 2025-12-16GUANGDONG STARTHING TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311099745.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-08-28
Publication Date
2025-12-16
Estimated Expiration
2043-08-28

AI Technical Summary

Technical Problem

The lights of shared vehicles consume a lot of electricity, and existing technology cannot intelligently adjust them according to the vehicle's status, leading to increased operating costs.

Method used

By using weight sensors installed under the seats of shared vehicles to obtain weight values ​​at startup and during driving, and combining these values ​​with driving status and visibility levels, the vehicle lights are dynamically adjusted to reduce power consumption.

Benefits of technology

It enables precise control of vehicle lights based on vehicle status, reducing power consumption of shared vehicles and lowering operating costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117104372B_ABST
    Figure CN117104372B_ABST
Patent Text Reader

Abstract

The application provides a shared vehicle lamp control method and system, electronic equipment and a storage medium. The method comprises the following steps: acquiring a first weight value of a weight sensor when a shared vehicle starts; acquiring a plurality of second weight values of the weight sensor when a driving speed of the shared vehicle is greater than a preset speed; determining a weight reference value based on the first weight value and the plurality of second weight values; acquiring a third weight value of the weight sensor when the driving speed of the shared vehicle is less than or equal to the preset speed; determining a weight change value based on the weight reference value and the third weight value, determining a driving state of the shared vehicle based on the weight change value and an output value of a power switch; and controlling a lamp state of the shared vehicle based on the driving state. According to the weight values during the start of the shared vehicle and the driving process and the output value of the power switch, the driving state of the shared vehicle is accurately determined, the lamp state of the shared vehicle is controlled according to the vehicle state, and the power consumption of the shared vehicle is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of shared device, and particularly to a shared vehicle light control method and system, an electronic device, and a storage medium. BACKGROUND

[0002] The power of a shared vehicle determines the frequency of its maintenance. When the frequency of power replacement is high, the operating cost will increase. For an electric vehicle, the power consumption of the vehicle light accounts for a large proportion.

[0003] Currently, the brightness of the light of an electric vehicle needs to be configured by a user or automatically adjusted based on a brightness sensor. However, a shared vehicle is generally not allowed to be adjusted by a user due to its public attribute. The existing solution is to be uniformly set by an operator. Therefore, the inventor believes that there is still room for saving power consumption. SUMMARY

[0004] The present application provides a shared vehicle light control method and system, an electronic device, and a storage medium, which aims to control the light state of a shared vehicle based on the vehicle state to reduce the power consumption of the shared vehicle.

[0005] In a first aspect, the present application provides a shared vehicle light control method, comprising:

[0006] obtaining a first weight value of a weight sensor when a shared vehicle is started; the weight sensor is installed below a seat cushion of the shared vehicle;

[0007] obtaining a plurality of second weight values of the weight sensor when a driving speed of the shared vehicle is greater than a preset speed;

[0008] determining a weight reference value based on the first weight value and the plurality of second weight values;

[0009] obtaining a third weight value of the weight sensor when the driving speed of the shared vehicle is less than or equal to the preset speed;

[0010] determining a weight change value based on the weight reference value and the third weight value, and determining a driving state of the shared vehicle based on the weight change value and an output value of a power switch;

[0011] controlling a light state of the shared vehicle based on the driving state.

[0012] In one embodiment, the determination of the weight reference value based on the first weight value and the plurality of second weight values comprises:

[0013] if the first weight value is determined to be 0, the plurality of second weight values are averaged to obtain the weight reference value; or

[0014] if it is determined that the first weight value is not 0, performing mean calculation on the plurality of second weight values to obtain a weight mean value;

[0015] if it is determined that a difference between the first weight value and the weight mean value is less than or equal to a preset value, performing mean calculation on the first weight value and the weight mean value to obtain the weight reference value;

[0016] if it is determined that the difference between the first weight value and the weight mean value is greater than the first preset value, determining the weight mean value as the weight reference value.

[0017] In one embodiment, the determining the driving state of the shared vehicle based on the weight change value and an output value of a power switch comprises:

[0018] if it is determined that the weight change value is greater than a first preset threshold value and the output value is 0, determining that the driving state is a pushing state; the pushing state represents that a user pushes the shared vehicle to move forward; or,

[0019] if it is determined that the weight change value is greater than or equal to a second preset threshold value and less than or equal to the first preset threshold value, and the output value is 0, determining that the driving state is a pedal driving state; the pedal driving state represents that a user steps on a pedal to make the shared vehicle move forward.

[0020] In one embodiment, the controlling the light state of the shared vehicle based on the driving state comprises:

[0021] determining an visibility level of an area where the shared vehicle is located;

[0022] controlling the light state of the shared vehicle based on the visibility level and the driving state.

[0023] In one embodiment, the controlling the light state of the shared vehicle based on the visibility level and the driving state comprises:

[0024] if it is determined that the driving state is the pushing state and the visibility level is a first level, adjusting the brightness of the headlamp of the shared vehicle from a highest gear brightness to a first gear brightness; or,

[0025] if it is determined that the driving state is the pushing state and the visibility level is a second level, adjusting the brightness of the headlamp of the shared vehicle from the highest gear brightness to a second gear brightness, and starting the taillight of the shared vehicle; the second gear brightness is higher than the first gear brightness; the visibility corresponding to the first level is higher than the visibility corresponding to the second level.

[0026] If it is determined that the shared vehicle is equipped with auxiliary lighting, the auxiliary lighting is started.

[0027] In one embodiment, the controlling the light state of the shared vehicle based on the visibility level and the driving state comprises:

[0028] If it is determined that the driving state is the pedaling driving state and the visibility level is the third level, the brightness of the headlamp of the shared vehicle is adjusted from the highest brightness to the second brightness; the visibility corresponding to the third level is higher than the visibility corresponding to the first level; or,

[0029] If it is determined that the driving state is the pedaling driving state and the visibility level is the fourth level, the brightness of the headlamp of the shared vehicle is adjusted from the highest brightness to the third brightness, and the taillight of the shared vehicle is started; the third brightness is higher than the second brightness; the visibility corresponding to the third level is higher than the visibility corresponding to the fourth level.

[0030] If it is determined that the shared vehicle is equipped with auxiliary lighting, the auxiliary lighting is started.

[0031] In one embodiment, the shared vehicle light control method further comprises:

[0032] If it is determined that the output value changes from 0 to a non-0 value, the brightness of the headlamp of the shared vehicle is adjusted to the highest brightness, and the taillight and the auxiliary lighting of the shared vehicle are turned off.

[0033] In a second aspect, the present application provides a shared vehicle light control system, comprising:

[0034] A first acquisition module is configured to acquire a first weight value of a weight sensor when a shared vehicle is started; the weight sensor is installed at a position below a seat cushion of the shared vehicle;

[0035] A second acquisition module is configured to acquire a plurality of second weight values of the weight sensor when a driving speed of the shared vehicle is greater than a preset speed;

[0036] A first determination module is configured to determine a weight reference value based on the first weight value and the plurality of second weight values;

[0037] A third acquisition module is configured to acquire a third weight value of the weight sensor when the driving speed of the shared vehicle is less than or equal to the preset speed;

[0038] A second determination module is configured to determine a weight change value based on the weight reference value and the third weight value, and determine a driving state of the shared vehicle based on the weight change value and an output value of a power switch;

[0039] A vehicle light control module is configured to control a light state of the shared vehicle based on the driving state.

[0040] In a third aspect, the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and capable of running on the processor, wherein the processor implements the shared vehicle light control method of the first aspect when executing the program.

[0041] In a fourth aspect, the present application provides a non-transitory computer readable storage medium, comprising a computer program, wherein the computer program is executed by the processor to implement the shared vehicle light control method of the first aspect.

[0042] In a fifth aspect, the present application provides a computer program product, comprising a computer program, wherein the computer program is executed by the processor to implement the shared vehicle light control method of the first aspect.

[0043] The shared vehicle light control method, system, electronic device, and storage medium provided by the present application obtain a first weight value of a weight sensor when a shared vehicle starts; obtain a plurality of second weight values of the weight sensor when a driving speed of the shared vehicle is greater than a preset speed; determine a weight reference value based on the first weight value and the plurality of second weight values; obtain a third weight value of the weight sensor when the driving speed of the shared vehicle is less than or equal to the preset speed; determine a weight change value based on the weight reference value and the third weight value, and determine a driving state of the shared vehicle based on the weight change value and an output value of a power switch; and control a light state of the shared vehicle based on the driving state. In the process of controlling the light of the shared vehicle, the weight change value is accurately determined according to the weight value when the shared vehicle starts and the weight value during driving, and the driving state of the shared vehicle is accurately determined according to the weight change value and the output value of the power switch, so that the light state of the shared vehicle can be accurately controlled according to the driving state of the shared vehicle, and the power consumption of the shared vehicle is reduced. BRIEF DESCRIPTION OF DRAWINGS

[0044] In order to more clearly illustrate the technical solutions of the present application, the following will briefly introduce the drawings required in the embodiments or prior art description. Obviously, the drawings in the following description are some embodiments of the present application, and other drawings can also be obtained by those skilled in the art without creative labor.

[0045] Figure 1 is a flowchart of the shared vehicle light control method provided by the present application;

[0046] Figure 2is a structural schematic diagram of a shared vehicle lamp control system provided by the present application.

[0047] Figure 3 is a structural schematic diagram of an electronic device provided by the present application. DETAILED DESCRIPTION

[0048] For the purpose, technical solutions and advantages of the present application to be clearer, the technical solutions in the present application will be described clearly and completely below with reference to the drawings in the present application. Obviously, the described embodiments are some of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by a person of ordinary skill in the art without creative labor fall within the scope of protection of the present application.

[0049] Embodiments of a shared vehicle lamp control method are provided in the present application. It should be noted that although a logical sequence is shown in the flowchart, under certain data, the steps shown or described can be completed in an order different from that shown here.

[0050] Reference Figure 1 , Figure 1 is a flowchart of a shared vehicle lamp control method provided by the present application. The shared vehicle lamp control method provided by the embodiments of the present application comprises:

[0051] Step 101, acquiring a first weight value of a weight sensor when a shared vehicle starts;

[0052] Step 102, acquiring a plurality of second weight values of the weight sensor when a driving speed of the shared vehicle is greater than a preset speed;

[0053] Step 103, determining a weight reference value based on the first weight value and the plurality of second weight values;

[0054] Step 104, acquiring a third weight value of the weight sensor when the driving speed of the shared vehicle is less than or equal to the preset speed;

[0055] Step 105, determining a weight change value based on the weight reference value and the third weight value, and determining a driving state of the shared vehicle based on the weight change value and an output value of a power switch;

[0056] Step 106, controlling a lamp state of the shared vehicle based on the driving state.

[0057] It should be noted that the embodiments of the present application take a lamp control system as an execution subject for illustration, but are not limited to the lamp control system.

[0058] Further, when the user needs to ride the shared vehicle, the user needs to scan the two-dimensional code of the shared vehicle, and after determining that the unlocking is successful, the shared vehicle is started successfully, wherein the shared vehicle can be understood as a shared electric vehicle.

[0059] In the process of starting the shared vehicle, the user can stand around the shared vehicle or sit on the seat cushion of the shared vehicle, and it is also possible that the user places a heavy object on the seat cushion, wherein a weight sensor is installed below the seat cushion of the shared vehicle, and the weight sensor is used to detect the force value, i.e., the weight value, on the seat cushion.

[0060] Therefore, the vehicle lamp control system obtains a first weight value of the weight sensor when the shared vehicle is started. After the shared vehicle is started and driven, and when the driving speed of the shared vehicle is greater than a preset speed, the vehicle lamp control system obtains a plurality of second weight values of the weight sensor, wherein the preset speed is set according to actual conditions, and the plurality of second weight values can be a plurality of second weight values in a continuous time or a plurality of second weight values obtained at intervals of a preset time length.

[0061] Further, the vehicle lamp control system determines a weight reference value according to the first weight value and the plurality of second weight values, wherein the weight reference value is the weight value of the user riding the shared vehicle.

[0062] Further, during the driving of the shared vehicle, when it is detected that the driving speed of the shared vehicle is less than or equal to the preset speed, it is indicated that the user is about to end the ride or enter a crowded road section, and at this time, the vehicle lamp control system obtains a third weight value of the weight sensor.

[0063] Further, the vehicle lamp control system determines a weight change value according to the weight reference value and the third weight value, and at this time, the output value of a power switch is obtained. Further, the vehicle lamp control system determines the driving state of the shared vehicle according to the weight change value and the output value of the power switch.

[0064] Further, the vehicle lamp control system controls the state of the vehicle lamp of the shared vehicle according to the driving state.

[0065] The shared vehicle lamp control method provided by the embodiments of the present application comprises the following steps: obtaining a first weight value of a weight sensor when a shared vehicle starts; obtaining a plurality of second weight values of the weight sensor when a driving speed of the shared vehicle is greater than a preset speed; determining a weight reference value based on the first weight value and the plurality of second weight values; obtaining a third weight value of the weight sensor when the driving speed of the shared vehicle is less than or equal to the preset speed; determining a weight change value based on the weight reference value and the third weight value, and determining a driving state of the shared vehicle based on the weight change value and an output value of a power switch; and controlling a lamp state of the shared vehicle based on the driving state. In the process of controlling the shared vehicle lamp, the weight change value is accurately determined according to the weight value when the shared vehicle starts and the weight value in the driving process, and then the driving state of the shared vehicle is accurately determined according to the weight change value and the output value of the power switch, so that the lamp state of the shared vehicle can be accurately controlled according to the driving state of the shared vehicle, and the power consumption of the shared vehicle is reduced.

[0066] In an embodiment, the weight reference value is determined based on the first weight value and the plurality of second weight values, comprising:

[0067] If it is determined that the first weight value is 0, the plurality of second weight values are averaged to obtain the weight reference value; or,

[0068] If it is determined that the first weight value is not 0, the plurality of second weight values are averaged to obtain a weight average value;

[0069] If it is determined that a difference between the first weight value and the weight average value is less than or equal to a preset value, the first weight value and the weight average value are averaged to obtain the weight reference value;

[0070] If it is determined that the difference between the first weight value and the weight average value is greater than the first preset value, the weight average value is determined as the weight reference value.

[0071] Specifically, if it is determined that the first weight value is 0, i.e., in the process of starting the shared vehicle, the user stands around the shared vehicle without sitting on the seat cushion of the shared vehicle, and there is no other heavy object on the seat cushion, the lamp control system directly averages the plurality of second weight values to obtain the weight reference value.

[0072] Further, if it is determined that the first weight value is not 0, i.e., in the process of starting the shared vehicle, the user may sit on the seat cushion of the shared vehicle, or the user may put a heavy object on the seat cushion, the lamp control system first averages the plurality of second weight values to obtain a weight average value.

[0073] Further, if it is determined that the difference between the first weight value and the average weight value is less than or equal to a preset value, i.e., in the process of starting the shared vehicle, the user sits on the seat cushion of the shared vehicle, the car light control system calculates the average of the first weight value and the average weight value to obtain a weight reference value.

[0074] Further, if it is determined that the difference between the first weight value and the average weight value is greater than the first preset value, i.e., in the process of starting the shared vehicle, only the weight is placed on the seat cushion, or the user sits on the seat cushion of the shared vehicle while the weight is placed, the car light control system determines the average of the plurality of second weight values as the weight reference value.

[0075] The embodiments of the present application accurately determine the weight reference value according to the weight value when the shared vehicle starts and the weight value in the driving process, accurately determine the driving state of the shared vehicle according to the weight change value and the output value of the power switch, and accurately control the light state of the shared vehicle according to the driving state of the shared vehicle, thereby reducing the power consumption of the shared vehicle.

[0076] In an embodiment, determining the driving state of the shared vehicle based on the weight change value and the output value of the power switch comprises:

[0077] If it is determined that the weight change value is greater than the first preset threshold value and the output value is 0, it is determined that the driving state is a pushing state; or,

[0078] If it is determined that the weight change value is greater than or equal to the second preset threshold value and less than or equal to the first preset threshold value, and the output value is 0, it is determined that the driving state is a pedaling driving state.

[0079] It should be noted that the driving state includes the pushing state and the pedaling driving state, the pushing state represents that the user pushes the shared vehicle to move forward, and the pedaling driving state represents that the user pedals the pedals to make the shared vehicle move forward. When the user pedals, the weight detected by the weight sensor is reduced by 30% to 70%, wherein the first preset threshold value is 70% of the weight reference value, and the second preset threshold value is 30% of the weight reference value.

[0080] Therefore, if it is determined that the weight change value is greater than the first preset threshold value and the output value is 0, i.e., the degree of change of the user's weight exceeds 70%, and the user does not operate the power switch, the car light control system determines that the driving state is a pushing state.

[0081] Further, if it is determined that the weight change value is greater than or equal to the second preset threshold value and less than or equal to the first preset threshold value, and the output value is 0, i.e., the degree of change of the user's weight is between 30% and 70%, and the user does not operate the power switch, the car light control system determines that the driving state is a pedaling driving state.

[0082] The embodiment of the present application accurately determines the driving state of the shared vehicle according to the weight change value and the output value of the power switch, so that the light state of the shared vehicle can be accurately controlled according to the driving state of the shared vehicle, and the power consumption of the shared vehicle is reduced.

[0083] In an embodiment, the light state of the shared vehicle is controlled based on the driving state, including:

[0084] determining the visibility level of the area where the shared vehicle is located;

[0085] controlling the light state of the shared vehicle based on the visibility level and the driving state.

[0086] Specifically, when it is necessary to control the light state of the shared vehicle, the light control system needs to obtain the visibility level of the area where the shared vehicle is located, wherein the visibility level is determined based on the weather information of the area obtained by the server, and the visibility level reflects the visibility distance, that is, the distance at which the human eye can clearly see an object. Further, the light control system controls the light state of the shared vehicle according to the visibility level and the driving state.

[0087] The embodiment of the present application accurately controls the light state of the shared vehicle according to the visibility level and the driving state, and reduces the power consumption of the shared vehicle.

[0088] In an embodiment, the light state of the shared vehicle is controlled based on the visibility level and the driving state, including:

[0089] if it is determined that the driving state is the pushing state and the visibility level is the first level, the brightness of the headlamp of the shared vehicle is adjusted from the highest brightness to the first brightness; or,

[0090] if it is determined that the driving state is the pushing state and the visibility level is the second level, the brightness of the headlamp of the shared vehicle is adjusted from the highest brightness to the second brightness, and the taillight of the shared vehicle is started;

[0091] if it is determined that the shared vehicle is equipped with an auxiliary lighting lamp, the auxiliary lighting lamp is started.

[0092] It should be noted that the headlamp adjusts the brightness of the lamp by changing the duty cycle of the PWM (Pulse Width Modulation) control signal, and the duty cycle can be set to reduce 50% to 70% when reducing the brightness. Therefore, the first brightness is the highest brightness*50%, the second brightness is the highest brightness*60%, and the third brightness is the highest brightness*70%. Therefore, the second brightness is higher than the first brightness, and the third brightness is higher than the second brightness.

[0093] Specifically, if it is determined that the driving state is the pushing state and the visibility level is the first level, the vehicle light control system adjusts the brightness of the headlamp of the shared vehicle from the highest level to the first level.

[0094] Further, if it is determined that the driving state is the pushing state and the visibility level is the second level, the vehicle light control system adjusts the brightness of the headlamp of the shared vehicle from the highest level to the second level, and starts the tail lamp of the shared vehicle. It should be noted that the visibility corresponding to the first level is higher than the visibility corresponding to the second level.

[0095] At this time, the vehicle light control system detects whether the shared vehicle is equipped with auxiliary lighting.

[0096] If it is determined that the shared vehicle is equipped with auxiliary lighting, the vehicle light control system starts the auxiliary lighting. It should be noted that the auxiliary lighting is used for lighting near the vehicle, such as lighting the ground near the vehicle, lighting the body of the vehicle, and installing on both sides of the basket or the body of the vehicle. The auxiliary lighting has relatively low power, and the auxiliary lighting mainly illuminates the ground.

[0097] The embodiment of the present application accurately controls the light state of the shared vehicle according to the visibility level and the driving state, and reduces the power consumption of the shared vehicle.

[0098] In an embodiment, the light state of the shared vehicle is controlled based on the visibility level and the driving state, including:

[0099] If it is determined that the driving state is the pushing state and the visibility level is the first level, the brightness of the headlamp of the shared vehicle is adjusted from the highest level to the first level.

[0100] If it is determined that the driving state is the pushing state and the visibility level is the second level, the brightness of the headlamp of the shared vehicle is adjusted from the highest level to the second level, and the tail lamp of the shared vehicle is started.

[0101] If it is determined that the shared vehicle is equipped with auxiliary lighting, the auxiliary lighting is started.

[0102] Specifically, if it is determined that the driving state is the pushing state and the visibility level is the first level, the vehicle light control system adjusts the brightness of the headlamp of the shared vehicle from the highest level to the first level.

[0103] Further, if it is determined that the driving state is the pedaling driving state and the visibility level is the fourth level, the vehicle light control system adjusts the brightness of the headlamp of the shared vehicle from the highest level to the third level, and starts the taillight of the shared vehicle, and the visibility corresponding to the third level is higher than the visibility corresponding to the fourth level.

[0104] At this time, the vehicle light control system detects whether the shared vehicle is equipped with an auxiliary light. If it is determined that the shared vehicle is equipped with an auxiliary light, the vehicle light control system starts the auxiliary light.

[0105] The embodiment of the present application accurately controls the light state of the shared vehicle according to the visibility level and the driving state, and reduces the power consumption of the shared vehicle.

[0106] In an embodiment, the shared vehicle light control method further comprises:

[0107] If it is determined that the output value changes from 0 to a non-0 value, the brightness of the headlamp of the shared vehicle is adjusted to the highest level, and the taillight and the auxiliary light of the shared vehicle are turned off.

[0108] Specifically, if it is determined that the output value changes from 0 to a non-0 value, i.e., the user operates the power switch, the vehicle light control system adjusts the brightness of the headlamp of the shared vehicle to the highest level, and turns off the taillight and the auxiliary light of the shared vehicle. It should be noted that the headlamp returns to the highest level, and the taillight and the auxiliary light can be turned off immediately or delayed according to the user's operation.

[0109] Further, the shared vehicle light control system provided by the present application corresponds to the shared vehicle light control method provided by the present application. Figure 2 As shown, Figure 2 is a structural schematic diagram of the shared vehicle light control system provided by the present application, which comprises:

[0110] The first acquisition module 201 is configured to acquire a first weight value of the weight sensor when the shared vehicle is started; the weight sensor is installed at a position below the seat cushion of the shared vehicle;

[0111] The second acquisition module 202 is configured to acquire a plurality of second weight values of the weight sensor when the driving speed of the shared vehicle is greater than a preset speed;

[0112] The first determination module 203 is configured to determine a weight reference value based on the first weight value and the plurality of second weight values;

[0113] The third acquisition module 204 is configured to acquire a third weight value of the weight sensor when the driving speed of the shared vehicle is less than or equal to the preset speed;

[0114] The second determining module 205 is configured to determine a weight change value based on the weight reference value and the third weight value, and determine a driving state of the shared vehicle based on the weight change value and an output value of a power supply switch;

[0115] The car light control module 206 is configured to control a car light state of the shared vehicle based on the driving state.

[0116] The shared vehicle car light control system provided by the embodiments of the present application acquires a first weight value of the weight sensor when the shared vehicle starts; acquires a plurality of second weight values of the weight sensor when the driving speed of the shared vehicle is greater than a preset speed; determines a weight reference value based on the first weight value and the plurality of second weight values; acquires a third weight value of the weight sensor when the driving speed of the shared vehicle is less than or equal to the preset speed; determines a weight change value based on the weight reference value and the third weight value, and determines a driving state of the shared vehicle based on the weight change value and an output value of a power supply switch; and controls a car light state of the shared vehicle based on the driving state. In the process of controlling the car light of the shared vehicle, the weight change value is accurately determined according to the weight value when the shared vehicle starts and the weight value in the driving process, and then the driving state of the shared vehicle is accurately determined according to the weight change value and the output value of the power supply switch, so that the car light state of the shared vehicle can be accurately controlled according to the driving state of the shared vehicle, and the power consumption of the shared vehicle is reduced.

[0117] Further, the first determining module 203 is further configured to:

[0118] if it is determined that the first weight value is 0, the plurality of second weight values are averaged to obtain the weight reference value; or,

[0119] if it is determined that the first weight value is not 0, the plurality of second weight values are averaged to obtain a weight average value;

[0120] if it is determined that the difference between the first weight value and the weight average value is less than or equal to a preset value, the first weight value and the weight average value are averaged to obtain the weight reference value;

[0121] if it is determined that the difference between the first weight value and the weight average value is greater than the first preset value, the weight average value is determined as the weight reference value.

[0122] Further, the second determining module 205 is further configured to:

[0123] if it is determined that the weight change value is greater than a first preset threshold value and the output value is 0, the driving state is determined as a pushing state; the pushing state represents that the user pushes the shared vehicle to move forward; or,

[0124] If it is determined that the weight change value is greater than or equal to a second preset threshold value and less than or equal to the first preset threshold value, and the output value is 0, it is determined that the driving state is a pedaling driving state; the pedaling driving state represents that the user steps on the pedals to make the shared vehicle advance.

[0125] Further, the vehicle light control module 206 is further configured to:

[0126] determine an visibility level of an area where the shared vehicle is located;

[0127] control a light state of the shared vehicle based on the visibility level and the driving state.

[0128] Further, the vehicle light control module 206 is further configured to:

[0129] if it is determined that the driving state is a pushing state and the visibility level is a first level, adjust the brightness of the headlamp of the shared vehicle from a highest gear brightness to a first gear brightness; or,

[0130] if it is determined that the driving state is a pushing state and the visibility level is a second level, adjust the brightness of the headlamp of the shared vehicle from the highest gear brightness to a second gear brightness, and start the taillight of the shared vehicle; the second gear brightness is higher than the first gear brightness; the visibility corresponding to the first level is higher than the visibility corresponding to the second level;

[0131] if it is determined that the shared vehicle is equipped with an auxiliary lighting lamp, start the auxiliary lighting lamp.

[0132] Further, the vehicle light control module 206 is further configured to:

[0133] if it is determined that the driving state is a pedaling driving state and the visibility level is a third level, adjust the brightness of the headlamp of the shared vehicle from a highest gear brightness to a second gear brightness; the visibility corresponding to the third level is higher than the visibility corresponding to the first level; or,

[0134] if it is determined that the driving state is a pedaling driving state and the visibility level is a fourth level, adjust the brightness of the headlamp of the shared vehicle from the highest gear brightness to a third gear brightness, and start the taillight of the shared vehicle; the third gear brightness is higher than the second gear brightness; the visibility corresponding to the third level is higher than the visibility corresponding to the fourth level;

[0135] if it is determined that the shared vehicle is equipped with an auxiliary lighting lamp, start the auxiliary lighting lamp.

[0136] Further, the vehicle light control module 206 is further configured to:

[0137] If it is determined that the output value changes from 0 to a non-0 value, the brightness of the headlamp of the shared vehicle is adjusted to the highest brightness, and the taillight and auxiliary light of the shared vehicle are turned off.

[0138] The specific embodiments of the shared vehicle light control system provided in the present application are basically the same as the embodiments of the shared vehicle light control method, and will not be repeated here.

[0139] Figure 3 An example of an electronic device is shown in the physical structure diagram of the electronic device as shown in Figure 3 The electronic device can include a processor 310, a communications interface 320, a memory 330, and a communications bus 340, wherein the processor 310, the communications interface 320, and the memory 330 communicate with each other through the communications bus 340. The processor 310 can call the logical instructions in the memory 330 to execute the shared vehicle light control method, which includes:

[0140] Obtaining a first weight value of the weight sensor when the shared vehicle starts; the weight sensor is installed below the seat cushion of the shared vehicle;

[0141] Obtaining a plurality of second weight values of the weight sensor when the driving speed of the shared vehicle is greater than the preset speed;

[0142] Determining a weight reference value based on the first weight value and the plurality of second weight values;

[0143] Obtaining a third weight value of the weight sensor when the driving speed of the shared vehicle is less than or equal to the preset speed;

[0144] Determining a weight change value based on the weight reference value and the third weight value, and determining the driving state of the shared vehicle based on the weight change value and the output value of the power switch;

[0145] Controlling the light state of the shared vehicle based on the driving state.

[0146] Further, the logic instructions in the memory 330 described above can be implemented in the form of software functional units and sold or used as independent products, and can be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application essentially or the parts that make contributions to the prior art or parts of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, etc.

[0147] In another aspect, the present application also provides a computer program product, which includes a computer program stored on a non-transitory computer readable storage medium, and the computer program includes program instructions, when the program instructions are executed by a computer, the computer can execute the shared vehicle lamp control method provided by the above-mentioned methods, and the method includes:

[0148] obtaining a first weight value of the weight sensor when the shared vehicle starts; the weight sensor is installed at a position below the seat cushion of the shared vehicle;

[0149] obtaining a plurality of second weight values of the weight sensor when the driving speed of the shared vehicle is greater than a preset speed;

[0150] determining a weight reference value based on the first weight value and the plurality of second weight values;

[0151] obtaining a third weight value of the weight sensor when the driving speed of the shared vehicle is less than or equal to the preset speed;

[0152] determining a weight change value based on the weight reference value and the third weight value, and determining a driving state of the shared vehicle based on the weight change value and an output value of a power switch;

[0153] controlling a lamp state of the shared vehicle based on the driving state.

[0154] In yet another aspect, the present application also provides a non-transitory computer readable storage medium, which stores a computer program, and the computer program is executed by a processor to implement the shared vehicle lamp control method provided by the above-mentioned methods, and the method includes:

[0155] obtaining a first weight value of the weight sensor when the shared vehicle starts; the weight sensor is installed at a position under a seat cushion of the shared vehicle;

[0156] obtaining a plurality of second weight values of the weight sensor when a driving speed of the shared vehicle is greater than a preset speed;

[0157] determining a weight reference value based on the first weight value and the plurality of second weight values;

[0158] obtaining a third weight value of the weight sensor when the driving speed of the shared vehicle is less than or equal to the preset speed;

[0159] determining a weight change value based on the weight reference value and the third weight value, and determining a driving state of the shared vehicle based on the weight change value and an output value of a power switch;

[0160] controlling a light state of the shared vehicle based on the driving state.

[0161] The apparatus embodiments described above are merely illustrative, wherein the units described as separate components can or can not be physically separate, and the components displayed as units can or can not be physical units, i.e., can be located in one place, or can be distributed on multiple network units. Part or all of the modules can be selected to achieve the purpose of the embodiment scheme according to actual needs. Those skilled in the art can understand and implement without creative labor.

[0162] From the above description of the embodiments, those skilled in the art can clearly understand that the embodiments can be realized by means of software plus necessary universal hardware platforms, and of course can also be realized by hardware. Based on such understanding, the above technical solutions can be embodied in the form of software products, which can be stored in a computer readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and include a number of instructions to make a computer device (which can be a personal computer, a server, or a network device, etc.) execute the methods described in each embodiment or some parts of the embodiments.

[0163] Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: it can still modify the technical solutions recorded in the foregoing embodiments, or make equivalent replacement to some technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for controlling the lights of a shared vehicle, characterized in that, include: Acquire the initial weight value from the weight sensor when the shared vehicle starts; The weight sensor is installed under the seat of the shared vehicle; The weight sensor acquires multiple second weight values ​​when the shared vehicle's speed exceeds a preset speed. Based on the first weight value and the plurality of second weight values, a weight reference value is determined; The weight sensor obtains a third weight value when the shared vehicle's speed is less than or equal to a preset speed; The weight change value is determined based on the weight reference value and the third weight value, and the driving status of the shared vehicle is determined based on the weight change value and the output value of the power switch. The vehicle lights of the shared vehicle are controlled based on the driving status.

2. The shared vehicle light control method according to claim 1, characterized in that, The step of determining a weight reference value based on the first weight value and the plurality of second weight values ​​includes: If the first weight value is determined to be 0, then the average of the plurality of second weight values ​​is calculated to obtain the weight reference value; or, If it is determined that the first weight value is not 0, then the average of the plurality of second weight values ​​is calculated to obtain the average weight. If it is determined that the difference between the first weight value and the average weight is less than or equal to a preset value, then the average of the first weight value and the average weight is calculated to obtain the weight reference value. If it is determined that the difference between the first weight value and the average weight is greater than the preset value, then the average weight is determined as the weight reference value.

3. The shared vehicle light control method according to claim 1, characterized in that, Determining the driving status of the shared vehicle based on the weight change value and the power switch output value includes: If the weight change value is determined to be greater than a first preset threshold and the output value is 0, then the driving state is determined to be a pushing state; the pushing state indicates that the user is pushing the shared vehicle forward; or, If the weight change value is determined to be greater than or equal to the second preset threshold and less than or equal to the first preset threshold, and the output value is 0, then the driving state is determined to be a pedaling driving state; the pedaling driving state indicates that the user pedals to make the shared vehicle move forward.

4. The shared vehicle light control method according to claim 3, characterized in that, The control of the shared vehicle's headlight status based on the driving state includes: Determine the visibility level of the area where the shared vehicle is located; The headlight status of the shared vehicle is controlled based on the visibility level and the driving status.

5. The shared vehicle light control method according to claim 4, characterized in that, The method of controlling the headlight status of the shared vehicle based on the visibility level and the driving state includes: If the driving state is determined to be a pushing state, and the visibility level is level one, then the brightness of the headlights of the shared vehicle is adjusted from the highest brightness level to the first brightness level; or, If the driving state is determined to be a pushing state and the visibility level is the second level, then the brightness of the headlights of the shared vehicle is adjusted from the highest brightness level to the second brightness level, and the taillights of the shared vehicle are activated; the second brightness level is higher than the first brightness level; the visibility corresponding to the first level is higher than the visibility corresponding to the second level. If it is determined that the shared vehicle is equipped with auxiliary lighting, then the auxiliary lighting is activated.

6. The shared vehicle light control method according to claim 4, characterized in that, The method of controlling the headlight status of the shared vehicle based on the visibility level and the driving state includes: If the driving state is determined to be pedaling, and the visibility level is level three, then the brightness of the headlights of the shared vehicle is adjusted from the highest brightness level to the second brightness level; the visibility level three corresponds to a higher visibility level than the visibility level one; or, If the driving state is determined to be a pedaling driving state, and the visibility level is level four, then the brightness of the headlights of the shared vehicle is adjusted from the highest brightness level to the third brightness level, and the taillights of the shared vehicle are activated; the third brightness level is higher than the second brightness level; the visibility level corresponding to the third level is higher than the visibility level corresponding to the fourth level. If it is determined that the shared vehicle is equipped with auxiliary lighting, then the auxiliary lighting is activated.

7. The shared vehicle light control method according to any one of claims 1 to 6, characterized in that, The shared vehicle light control method also includes: If the output value changes from 0 to a non-zero value, the brightness of the headlights of the shared vehicle is adjusted to the highest level, and the taillights and auxiliary lights of the shared vehicle are turned off.

8. A shared vehicle lighting control system, characterized in that, include: The first acquisition module is used to acquire the first weight value of the weight sensor when the shared vehicle is started. The weight sensor is installed under the seat of the shared vehicle; The second acquisition module is used to acquire multiple second weight values ​​of the weight sensor when the shared vehicle's driving speed is greater than a preset speed; The first determining module is used to determine a weight reference value based on the first weight value and the plurality of second weight values; The third acquisition module is used to acquire the third weight value of the weight sensor when the speed of the shared vehicle is less than or equal to a preset speed; The second determining module is used to determine the weight change value based on the weight reference value and the third weight value, and to determine the driving status of the shared vehicle based on the weight change value and the output value of the power switch. The vehicle lighting control module is used to control the vehicle lighting status of the shared vehicle based on the driving status.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the shared vehicle light control method according to any one of claims 1 to 7.

10. A non-transitory computer-readable storage medium, the non-transitory computer-readable storage medium comprising a computer program, characterized in that, When the computer program is executed by the processor, it implements the shared vehicle light control method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Lamplight indication method and system of electric motorcycle

    CN116198636A

  • TW2485192U