Disclosure of Invention
The invention mainly aims to provide an electric vehicle parking method, an electric vehicle parking device, an electric vehicle and a storage medium, and aims to solve the technical problems that in the prior art, the parking of the electric vehicle is not standard, so that traffic jam is caused, and the urban image is influenced by the disordered parking and the disordered placement of the electric vehicle.
In order to achieve the above object, the present invention provides an electric vehicle parking method, including the steps of:
judging whether the target electric vehicle is positioned in a preset parking area or not according to GPS positioning information of a global positioning system;
when the target electric vehicle is located in the preset parking area, acquiring the current parking direction of the target electric vehicle, and comparing the current parking direction with the preset parking direction to generate a comparison result;
and when the comparison result is that the current parking direction is consistent with the preset parking direction, carrying out a vehicle returning process on the target electric vehicle.
Preferably, when the target electric vehicle is located in the preset parking area, the current parking direction of the target electric vehicle is obtained, and the current parking direction is compared with the preset parking direction to generate a comparison result, which specifically includes:
when the target electric vehicle is located in the preset parking area, acquiring the direction of a gyroscope of the target electric vehicle;
determining the current parking direction of the target electric vehicle according to the gyroscope direction;
and comparing the current parking direction with a preset parking direction to generate a comparison result.
Preferably, before the acquiring the gyroscope direction of the target electric vehicle when the target electric vehicle is located in the preset parking area, the electric vehicle parking method further includes:
when the target electric vehicle is detected to be in a riding state, acquiring the GPS direction of the target electric vehicle and the initial direction of a gyroscope;
and calibrating the initial direction according to the GPS direction, and taking the calibrated direction as the direction of the gyroscope of the target electric vehicle.
Preferably, the comparing the current parking direction with a preset parking direction to generate a comparison result specifically includes:
obtaining a direction included angle between the current parking direction and a preset parking direction, and comparing the direction included angle with a preset deviation angle;
when the direction included angle is larger than or equal to the preset deviation angle, judging that the comparison result is that the current parking direction is inconsistent with the preset parking direction;
and when the direction included angle is smaller than the preset deviation angle, judging that the comparison result is that the current parking direction is consistent with the preset parking direction.
Preferably, when the comparison result is that the current parking direction is consistent with the preset parking direction, the returning process of the target electric vehicle is performed, and the method specifically includes:
when the comparison result is that the current parking direction is consistent with a preset parking direction, pushing returning inquiry information to a current user terminal corresponding to the target electric vehicle;
after receiving the information of confirming returning the vehicle, generating a motor control signal and a vehicle lock control signal;
and sending the motor control signal and the vehicle lock control signal to a target electric vehicle so that the target electric vehicle cuts off the power of the motor according to the motor control signal and locks the vehicle lock according to the vehicle lock control signal.
Preferably, the determining whether the target electric vehicle is located in the preset parking area according to the GPS positioning information of the global positioning system specifically includes:
acquiring the GPS signal intensity of the current running environment of the target electric vehicle;
when the GPS signal intensity is greater than the preset signal intensity, acquiring the GPS positioning information of the target electric vehicle;
acquiring a position coverage range of a preset parking area;
determining the current position of the target electric vehicle according to the GPS positioning information, and matching the current position with the position coverage range;
when the current position is matched with the position coverage range, the target electric vehicle is judged to be positioned in the preset parking area;
and when the current position is not matched with the position coverage range, judging that the target electric vehicle is not in the preset parking area.
Preferably, after the obtaining of the GPS signal strength of the current driving environment of the target electric vehicle, the electric vehicle parking method further includes:
searching whether a parking electric vehicle exists in a target range, wherein the parking electric vehicle is an electric vehicle which is parked in a preset parking area;
when the parking electric vehicle exists in the target range, acquiring the vehicle distance between the parking electric vehicle and the target electric vehicle;
and judging whether the target electric vehicle is positioned in a preset parking area corresponding to the parking electric vehicle or not according to the vehicle distance.
In addition, to achieve the above object, the present invention also provides an electric vehicle including: an electric vehicle body, a memory, a processor and an electric vehicle parking program stored on the memory and executable on the processor, the electric vehicle parking program being configured to implement the steps of the electric vehicle parking method as described above.
In addition, to achieve the above object, the present invention further provides a storage medium having an electric vehicle parking program stored thereon, which when executed by a processor implements the steps of the electric vehicle parking method as described above.
In addition, to achieve the above object, the present invention also provides an electric vehicle parking apparatus including:
the judging module is used for judging whether the target electric vehicle is positioned in a preset parking area according to the GPS positioning information of the global positioning system;
the comparison module is used for acquiring the current parking direction of the target electric vehicle when the target electric vehicle is positioned in the preset parking area, and comparing the current parking direction with the preset parking direction to generate a comparison result;
and the vehicle returning module is used for carrying out a vehicle returning process on the target electric vehicle when the comparison result is that the current parking direction is consistent with the preset parking direction.
The electric vehicle parking method provided by the invention judges whether the target electric vehicle is positioned in a preset parking area or not through GPS positioning information; when the target electric vehicle is located in the preset parking area, acquiring the current parking direction of the target electric vehicle, and comparing the current parking direction with the preset parking direction to generate a comparison result; the comparison result is that when the current parking direction is consistent with the preset parking direction, the target electric vehicle returns to the parking process, the target electric vehicle can be normally parked when the parking direction is consistent with the preset parking direction, the standard degree and the accuracy of parking of the target electric vehicle are improved, the pressure of electric vehicle management is reduced, the risk of traffic jam is reduced, and the phenomenon that the electric vehicle is randomly parked and randomly placed is improved.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The solution of the embodiment of the invention is mainly as follows: the method comprises the steps of judging whether a target electric vehicle is located in a preset parking area or not through GPS positioning information; when the target electric vehicle is located in the preset parking area, acquiring the current parking direction of the target electric vehicle, and comparing the current parking direction with the preset parking direction to generate a comparison result; the comparison result does when current parking direction is unanimous with predetermineeing the parking direction, it is right the target electric motor car flow of returning the car, can realize the standard parking of target electric motor car when the parking direction is unanimous with predetermineeing the parking direction, improved the standardization and the precision that the target electric motor car parkked, alleviateed the pressure of electric motor car management, reduced the risk that the traffic jam, improved the electric motor car and randomly stopped the phenomenon of putting, solved among the prior art electric motor car and stopped not standardizedly, lead to the traffic jam and the electric motor car is randomly stopped and randomly put the technical problem that influences the urban image.
Referring to fig. 1, fig. 1 is a schematic structural diagram of an electric vehicle in a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 1, the electric vehicle may include: the electric vehicle body, the processor 1001, such as a Central Processing Unit (CPU), the communication bus 1002, the user interface 1003, the network interface 1004, and the memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a Wireless interface (e.g., a Wireless-Fidelity (Wi-Fi) interface). The Memory 1005 may be a Random Access Memory (RAM) Memory or a Non-volatile Memory (NVM), such as a disk Memory. The memory 1005 may alternatively be a storage device separate from the processor 1001; the processor 1001, the communication bus 1002, the user interface 1003, the network interface 1004, and the memory 1005 may be disposed inside the electric vehicle body or disposed outside the electric vehicle body, which is not limited in this embodiment.
Those skilled in the art will appreciate that the electric vehicle configuration shown in fig. 1 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005 as a storage medium may include an operating system, a network communication module, a user side interface module, and an electric vehicle parking program.
The electric vehicle of the present invention calls the electric vehicle parking program stored in the memory 1005 through the processor 1001, and performs the following operations:
judging whether the target electric vehicle is positioned in a preset parking area or not according to GPS positioning information of a global positioning system;
when the target electric vehicle is located in the preset parking area, acquiring the current parking direction of the target electric vehicle, and comparing the current parking direction with the preset parking direction to generate a comparison result;
and when the comparison result is that the current parking direction is consistent with the preset parking direction, carrying out a vehicle returning process on the target electric vehicle.
Further, the processor 1001 may call the electric vehicle parking program stored in the memory 1005, and also perform the following operations:
when the target electric vehicle is located in the preset parking area, acquiring the direction of a gyroscope of the target electric vehicle;
determining the current parking direction of the target electric vehicle according to the gyroscope direction;
and comparing the current parking direction with a preset parking direction to generate a comparison result.
Further, the processor 1001 may call the electric vehicle parking program stored in the memory 1005, and also perform the following operations:
when the target electric vehicle is detected to be in a riding state, acquiring the GPS direction of the target electric vehicle and the initial direction of a gyroscope;
and calibrating the initial direction according to the GPS direction, and taking the calibrated direction as the direction of the gyroscope of the target electric vehicle.
Further, the processor 1001 may call the electric vehicle parking program stored in the memory 1005, and also perform the following operations:
obtaining a direction included angle between the current parking direction and a preset parking direction, and comparing the direction included angle with a preset deviation angle;
when the direction included angle is larger than or equal to the preset deviation angle, judging that the comparison result is that the current parking direction is inconsistent with the preset parking direction;
and when the direction included angle is smaller than the preset deviation angle, judging that the comparison result is that the current parking direction is consistent with the preset parking direction.
Further, the processor 1001 may call the electric vehicle parking program stored in the memory 1005, and also perform the following operations:
when the comparison result is that the current parking direction is consistent with a preset parking direction, pushing returning inquiry information to a current user terminal corresponding to the target electric vehicle;
after receiving the information of confirming returning the vehicle, generating a motor control signal and a vehicle lock control signal;
and sending the motor control signal and the vehicle lock control signal to a target electric vehicle so that the target electric vehicle cuts off the power of the motor according to the motor control signal and locks the vehicle lock according to the vehicle lock control signal.
Further, the processor 1001 may call the electric vehicle parking program stored in the memory 1005, and also perform the following operations:
acquiring the GPS signal intensity of the current running environment of the target electric vehicle;
when the GPS signal intensity is greater than the preset signal intensity, acquiring the GPS positioning information of the target electric vehicle;
acquiring a position coverage range of a preset parking area;
determining the current position of the target electric vehicle according to the GPS positioning information, and matching the current position with the position coverage range;
when the current position is matched with the position coverage range, the target electric vehicle is judged to be positioned in the preset parking area;
and when the current position is not matched with the position coverage range, judging that the target electric vehicle is not in the preset parking area.
Further, the processor 1001 may call the electric vehicle parking program stored in the memory 1005, and also perform the following operations:
searching whether a parking electric vehicle exists in a target range, wherein the parking electric vehicle is an electric vehicle which is parked in a preset parking area;
when the parking electric vehicle exists in the target range, acquiring the vehicle distance between the parking electric vehicle and the target electric vehicle;
and judging whether the target electric vehicle is positioned in a preset parking area corresponding to the parking electric vehicle or not according to the vehicle distance.
According to the scheme, whether the target electric vehicle is located in the preset parking area is judged through the GPS positioning information; when the target electric vehicle is located in the preset parking area, acquiring the current parking direction of the target electric vehicle, and comparing the current parking direction with the preset parking direction to generate a comparison result; the comparison result is that when the current parking direction is consistent with the preset parking direction, the target electric vehicle returns to the parking process, the target electric vehicle can be normally parked when the parking direction is consistent with the preset parking direction, the standard degree and the accuracy of parking of the target electric vehicle are improved, the pressure of electric vehicle management is reduced, the risk of traffic jam is reduced, and the phenomenon that the electric vehicle is randomly parked and randomly placed is improved.
Based on the hardware structure, the embodiment of the electric vehicle parking method is provided.
Referring to fig. 2, fig. 2 is a flowchart illustrating a parking method of an electric vehicle according to a first embodiment of the present invention.
In a first embodiment, the electric vehicle parking method includes the steps of:
and step S10, judging whether the target electric vehicle is located in the preset parking area according to the GPS positioning information of the global positioning system.
It should be noted that the Positioning information is determined by data acquired through a Global Positioning System (GPS), and whether the target electric vehicle is in a preset parking area may be determined according to the GPS Positioning information, that is, whether the target electric vehicle is in the preset parking area is determined, where the preset parking area is a preset area for parking the electric vehicle, and the size of the preset parking area may be variable according to different geographic locations of the terrain, or may be fixed, which is not limited in this embodiment.
Step S20, when the target electric vehicle is located in the preset parking area, acquiring the current parking direction of the target electric vehicle, and comparing the current parking direction with the preset parking direction to generate a comparison result.
It can be understood that the current parking direction is a parking direction of the target electric vehicle determined after the target electric vehicle reaches the preset parking area and performs a parking operation, and the current parking direction is generally based on an orientation of a head of the target electric vehicle, and certainly may also be based on an orientation of a tail of the target electric vehicle, which is not limited in this embodiment; by comparing the current parking direction with a preset parking direction, whether the current parking direction of the target electric vehicle is consistent with the preset parking direction or not can be determined according to a comparison result, the preset parking direction is a preset direction for performing standard parking in the preset parking area, the preset parking direction can be a parking direction set according to different geographical position environments, can also be a fixed parking direction relative to the preset parking area, and can also be a parking direction determined by other modes, which is not limited in this embodiment.
And step S30, when the comparison result is that the current parking direction is consistent with the preset parking direction, carrying out a returning process on the target electric vehicle.
It should be understood that the car returning process is a preset car returning program, and when the current parking direction is consistent with the preset parking direction, it is determined that the target electric car meets the car returning condition, and then the car returning process is performed on the target electric car until the car returning is finished.
Further, the step S30 specifically includes the following steps:
when the comparison result is that the current parking direction is consistent with a preset parking direction, pushing returning inquiry information to a current user terminal corresponding to the target electric vehicle;
after receiving the information of confirming returning the vehicle, generating a motor control signal and a vehicle lock control signal;
and sending the motor control signal and the vehicle lock control signal to a target electric vehicle so that the target electric vehicle cuts off the power of the motor according to the motor control signal and locks the vehicle lock according to the vehicle lock control signal.
It can be understood that the car returning inquiry information is preset inquiry information, and the format and content of the car returning inquiry information can be adjusted according to different car returning scenes, which is not limited in this embodiment; through motor control signal can break off the power supply of electric motor car storage battery to the motor, through lock control signal can lock the lock and then make the target electric motor car can't be dragged away and remove, has improved the standardization that the electric motor car parkked, guarantees the property safety of user or electric motor car enterprise.
According to the scheme, whether the target electric vehicle is located in the preset parking area is judged through the GPS positioning information; when the target electric vehicle is located in the preset parking area, acquiring the current parking direction of the target electric vehicle, and comparing the current parking direction with the preset parking direction to generate a comparison result; the comparison result is that when the current parking direction is consistent with the preset parking direction, the target electric vehicle returns to the parking process, the target electric vehicle can be normally parked when the parking direction is consistent with the preset parking direction, the standard degree and the accuracy of parking of the target electric vehicle are improved, the pressure of electric vehicle management is reduced, the risk of traffic jam is reduced, and the phenomenon that the electric vehicle is randomly parked and randomly placed is improved.
Further, fig. 3 is a schematic flowchart of a second embodiment of the electric vehicle parking method according to the present invention, and as shown in fig. 3, the second embodiment of the electric vehicle parking method according to the present invention is proposed based on the first embodiment, in this embodiment, the step S20 specifically includes the following steps:
and step S21, acquiring the direction of the gyroscope of the target electric vehicle when the target electric vehicle is located in the preset parking area.
It should be noted that, due to the characteristic of GPS positioning, the direction of the GPS is easy to determine when the target electric vehicle is traveling at a high speed, but the direction of the GPS is difficult to determine when the target electric vehicle is traveling at a low speed or turning, and at this time, the direction of the target electric vehicle may be accurately determined by acquiring direction data of a gyroscope of the target electric vehicle, and the gyroscope data may be acquired by a gyroscope outside the target electric vehicle, or may be acquired by a gyroscope provided in the target electric vehicle, which is not limited in this embodiment.
Further, before the step S21, the electric vehicle parking method further includes the steps of:
when the target electric vehicle is detected to be in a riding state, acquiring the GPS direction of the target electric vehicle and the initial direction of a gyroscope;
and calibrating the initial direction according to the GPS direction, and taking the calibrated direction as the direction of the gyroscope of the target electric vehicle.
It will be appreciated that the directions in the GPS data are accurate during riding, but the directions in the stationary state are not trusted; the direction data of the gyroscope is accumulated with errors in a static state, namely the absolute direction is not credible, but the relative direction is accurate when the gyroscope is turned; calibrating the initial direction of the gyroscope by using the accurate GPS direction in the riding process, wherein the direction of the gyroscope after calibration is accurate when the vehicle is finally returned; and when the target electric vehicle returns, the calibrated gyroscope direction data is used for carrying out logic judgment, namely the initial direction is calibrated through the GPS direction, and the calibrated direction can be used as the gyroscope direction of the target electric vehicle.
And step S22, determining the current parking direction of the target electric vehicle according to the gyroscope direction.
It should be understood that by analyzing the data of the gyroscope, the gyroscope direction of the target electric vehicle can be obtained, and calibrating the initial direction of the gyroscope by using the GPS direction can enable the target electric vehicle to use the calibrated initial direction as a more accurate current parking direction when parking.
And step S23, comparing the current parking direction with a preset parking direction to generate a comparison result.
It can be understood that the corresponding comparison result can be obtained by comparing the current parking direction with the preset parking direction, and the comparison result is used as a basis for judging whether the target electric vehicle can be normally returned or not.
Further, the step S23 specifically includes the following steps:
obtaining a direction included angle between the current parking direction and a preset parking direction, and comparing the direction included angle with a preset deviation angle;
when the direction included angle is larger than or equal to the preset deviation angle, judging that the comparison result is that the current parking direction is inconsistent with the preset parking direction;
and when the direction included angle is smaller than the preset deviation angle, judging that the comparison result is that the current parking direction is consistent with the preset parking direction.
It should be understood that, by comparing the direction included angle between the current parking direction and the preset parking direction with the preset deviation angle, it can be determined whether the current parking direction is consistent with the preset parking direction.
According to the scheme, the gyroscope data of the target electric vehicle is acquired when the target electric vehicle is located in the preset parking area; determining the current parking direction of the target electric vehicle according to the gyroscope data; will current parking direction compares with predetermineeing the parking direction, generates the comparison result, can confirm through gyroscope data avoid the parking direction of electric motor car, improve the accuracy that the parking direction was confirmed, improved the standardization and the precision that target electric motor car parkked, alleviateed the pressure of electric motor car management, reduced the risk that the traffic jams, improved the electric motor car and randomly stopped the phenomenon of putting.
Further, fig. 4 is a flowchart illustrating a third embodiment of the electric vehicle parking method according to the present invention, and as shown in fig. 4, the third embodiment of the electric vehicle parking method according to the present invention is proposed based on the second embodiment, in this embodiment, the step S10 includes the following steps:
and step S11, acquiring the GPS signal intensity of the current running environment of the target electric vehicle.
It should be noted that the GPS signal strength is obtained by a GPS signal transceiver mounted on the target electric vehicle, and it can be determined to some extent whether GPS positioning is accurate through the GPS signal strength.
Further, the step S11 is followed by the following steps:
when the current vehicle speed is less than the preset vehicle speed or the GPS signal intensity is less than or equal to the preset signal intensity, starting a Bluetooth switch of the target electric vehicle;
searching whether a parking electric vehicle exists in a target range according to the Bluetooth switch, wherein the parking electric vehicle is an electric vehicle which is parked in a preset parking area;
when the parking electric vehicle exists in the target range, acquiring the vehicle distance between the parking electric vehicle and the target electric vehicle;
and judging whether the target electric vehicle is positioned in a preset parking area corresponding to the parking electric vehicle or not according to the vehicle distance.
It should be understood that when the current speed of the target electric vehicle is less than a preset speed or when the GPS signal strength is less than or equal to the preset signal strength, it indicates that the positioning information of the target electric vehicle is obtained only by the GPS and is not accurate enough, and at this time, a vehicle that has been parked nearby, that is, the parked electric vehicle, may be searched by turning on a bluetooth switch of the target electric vehicle, where the parked electric vehicle is an electric vehicle that has been parked in a preset parking area; and then calculating the vehicle distance between the parking electric vehicle and the target electric vehicle, and determining whether the target electric vehicle is located in a preset parking area corresponding to the parking electric vehicle according to the vehicle distance, so that the specific position of the target electric vehicle is determined more accurately, the accuracy of standard parking is improved, the correct returning process is ensured to be started, and the normal returning operation of the electric vehicle is ensured in a place with poor GPS signals.
Further, the step of judging whether the target electric vehicle is located in a preset parking area corresponding to the parking electric vehicle according to the vehicle distance specifically comprises the following steps:
acquiring the current parking position of the parking electric vehicle;
determining the relative distance between the parking electric vehicle and the edge of a preset parking area in a target direction according to the current parking position, wherein the target direction is the direction of the target electric vehicle relative to the current parking position;
when the distance is smaller than the relative distance, determining that the target electric vehicle is located in the preset parking area;
and when the distance is greater than or equal to the relative distance, determining that the target electric vehicle is not located in the preset parking area.
It can be understood that the distance between the parking electric vehicle and the edge of the preset parking area is calculated, and compared with the relative distance of the target electric vehicle, whether the target electric vehicle is in the preset parking area can be determined, so that the accuracy of position judgment of the target electric vehicle is improved, and the target electric vehicle is used as a judgment basis for subsequent returning operation.
And step S12, when the GPS signal intensity is greater than the preset signal intensity, acquiring the GPS positioning information of the target electric vehicle.
It can be understood that when the GPS signal strength is greater than the preset signal strength, it indicates that the positioning information corresponding to the GPS signal is relatively accurate, and the GPS positioning information of the target electric vehicle can be determined through the acquired GPS data.
And step S13, acquiring the position coverage of the preset parking area.
It will be appreciated that the element parking area will correspond to a range of corresponding size, i.e. location coverage.
And step S14, determining the current position of the target electric vehicle according to the GPS positioning information, and matching the current position with the position coverage range.
It should be understood that the current position of the target electric vehicle can be determined through the GPS positioning information, and whether the target electric vehicle is located in the preset parking area is determined by matching the current position with the position coverage, that is, by checking whether the current position is within the position coverage.
And step S15, when the current position is matched with the position coverage range, determining that the target electric vehicle is located in the preset parking area.
And step S16, when the current position is not matched with the position coverage range, judging that the target electric vehicle is not in the preset parking area.
It can be understood that when the current position matches the position coverage, that is, the target electric vehicle has entered a preset parking area, it is determined that the target electric vehicle is located in the preset parking area, and when the current position does not match the position coverage, that is, the target electric vehicle has not entered the preset parking area, it is determined that the target electric vehicle is not located in the preset parking area.
According to the scheme, the GPS signal intensity of the current running environment of the target electric vehicle is acquired; when the GPS signal intensity is greater than the preset signal intensity, acquiring the GPS positioning information of the target electric vehicle; acquiring a position coverage range of a preset parking area; determining the current position of the target electric vehicle according to the GPS positioning information, and matching the current position with the position coverage range; when the current position is matched with the position coverage range, the target electric vehicle is judged to be positioned in the preset parking area; when the current position is not matched with the position coverage range, judging that the target electric vehicle is not in the preset parking area; the specific position of the target electric vehicle can be accurately determined, the accuracy rate of standard parking is improved, the correct returning process is guaranteed to be started, the returning operation of the electric vehicle is guaranteed to be normally carried out in a place with poor GPS signals, the pressure of electric vehicle management is reduced, the risk of traffic jam is reduced, and the phenomenon that the electric vehicle is randomly stopped and placed is improved.
Based on the embodiment of the electric vehicle parking method, the invention further provides an electric vehicle parking device.
Referring to fig. 5, fig. 5 is a functional block diagram of a parking apparatus for an electric vehicle according to a first embodiment of the present invention.
In a first embodiment of the electric vehicle parking apparatus of the present invention, the electric vehicle parking apparatus includes:
the judging module 10 is configured to judge whether the target electric vehicle is located in a preset parking area according to GPS positioning information of a global positioning system.
It should be noted that the Positioning information is determined by data acquired through a Global Positioning System (GPS), and whether the target electric vehicle is in a preset parking area may be determined according to the GPS Positioning information, that is, whether the target electric vehicle is in the preset parking area is determined, where the preset parking area is a preset area for parking the electric vehicle, and the size of the preset parking area may be variable according to different geographic locations of the terrain, or may be fixed, which is not limited in this embodiment.
And the comparison module 20 is configured to, when the target electric vehicle is located in the preset parking area, acquire a current parking direction of the target electric vehicle, compare the current parking direction with the preset parking direction, and generate a comparison result.
It can be understood that the current parking direction is a parking direction of the target electric vehicle determined after the target electric vehicle reaches the preset parking area and performs a parking operation, and the current parking direction is generally based on an orientation of a head of the target electric vehicle, and certainly may also be based on an orientation of a tail of the target electric vehicle, which is not limited in this embodiment; by comparing the current parking direction with a preset parking direction, whether the current parking direction of the target electric vehicle is consistent with the preset parking direction or not can be determined according to a comparison result, the preset parking direction is a preset direction for performing standard parking in the preset parking area, the preset parking direction can be a parking direction set according to different geographical position environments, can also be a fixed parking direction relative to the preset parking area, and can also be a parking direction determined by other modes, which is not limited in this embodiment.
And the returning module 30 is configured to perform a returning process on the target electric vehicle when the comparison result is that the current parking direction is consistent with the preset parking direction.
It should be understood that the car returning process is a preset car returning program, and when the current parking direction is consistent with the preset parking direction, it is determined that the target electric car meets the car returning condition, and then the car returning process is performed on the target electric car until the car returning is finished.
The steps implemented by each functional module of the electric vehicle parking device can refer to each embodiment of the electric vehicle parking method of the present invention, and are not described herein again.
In addition, an embodiment of the present invention further provides a storage medium, where the storage medium stores an electric vehicle parking program, and the electric vehicle parking program, when executed by a processor, implements the following operations:
judging whether the target electric vehicle is positioned in a preset parking area or not according to GPS positioning information of a global positioning system;
when the target electric vehicle is located in the preset parking area, acquiring the current parking direction of the target electric vehicle, and comparing the current parking direction with the preset parking direction to generate a comparison result;
and when the comparison result is that the current parking direction is consistent with the preset parking direction, carrying out a vehicle returning process on the target electric vehicle.
Further, the electric vehicle parking program when executed by the processor further implements the following operations:
when the target electric vehicle is located in the preset parking area, acquiring gyroscope data of the target electric vehicle;
determining the current parking direction of the target electric vehicle according to the gyroscope data;
and comparing the current parking direction with a preset parking direction to generate a comparison result.
Further, the electric vehicle parking program when executed by the processor further implements the following operations:
obtaining a direction included angle between the current parking direction and a preset parking direction, and comparing the direction included angle with a preset deviation angle;
when the direction included angle is larger than or equal to the preset deviation angle, judging that the comparison result is that the current parking direction is inconsistent with the preset parking direction;
and when the direction included angle is smaller than the preset deviation angle, judging that the comparison result is that the current parking direction is consistent with the preset parking direction.
Further, the electric vehicle parking program when executed by the processor further implements the following operations:
when the comparison result is that the current parking direction is consistent with a preset parking direction, pushing returning inquiry information to a current user terminal corresponding to the target electric vehicle;
after receiving the information of confirming returning the vehicle, generating a motor control signal and a vehicle lock control signal;
and sending the motor control signal and the vehicle lock control signal to a target electric vehicle so that the target electric vehicle cuts off the power of the motor according to the motor control signal and locks the vehicle lock according to the vehicle lock control signal.
Further, the electric vehicle parking program when executed by the processor further implements the following operations:
acquiring the GPS signal intensity of the current running environment of the target electric vehicle;
when the GPS signal intensity is greater than the preset signal intensity, acquiring the GPS positioning information of the target electric vehicle;
acquiring a position coverage range of a preset parking area;
determining the current position of the target electric vehicle according to the GPS positioning information, and matching the current position with the position coverage range;
when the current position is matched with the position coverage range, the target electric vehicle is judged to be positioned in the preset parking area;
and when the current position is not matched with the position coverage range, judging that the target electric vehicle is not in the preset parking area.
Further, the electric vehicle parking program when executed by the processor further implements the following operations:
when the current vehicle speed is less than the preset vehicle speed or the GPS signal intensity is less than or equal to the preset signal intensity, starting a Bluetooth switch of the target electric vehicle;
searching whether a parking electric vehicle exists in a target range according to the Bluetooth switch, wherein the parking electric vehicle is an electric vehicle which is parked in a preset parking area;
when the parking electric vehicle exists in the target range, acquiring the vehicle distance between the parking electric vehicle and the target electric vehicle;
and judging whether the target electric vehicle is positioned in a preset parking area corresponding to the parking electric vehicle or not according to the vehicle distance.
Further, the electric vehicle parking program when executed by the processor further implements the following operations:
acquiring the current parking position of the parking electric vehicle;
determining the relative distance between the parking electric vehicle and the edge of a preset parking area in a target direction according to the current parking position, wherein the target direction is the direction of the target electric vehicle relative to the current parking position;
when the distance is smaller than the relative distance, determining that the target electric vehicle is located in the preset parking area;
and when the distance is greater than or equal to the relative distance, determining that the target electric vehicle is not located in the preset parking area.
According to the scheme, whether the target electric vehicle is located in the preset parking area is judged through the GPS positioning information; when the target electric vehicle is located in the preset parking area, acquiring the current parking direction of the target electric vehicle, and comparing the current parking direction with the preset parking direction to generate a comparison result; the comparison result is that when the current parking direction is consistent with the preset parking direction, the target electric vehicle returns to the parking process, the target electric vehicle can be normally parked when the parking direction is consistent with the preset parking direction, the standard degree and the accuracy of parking of the target electric vehicle are improved, the pressure of electric vehicle management is reduced, the risk of traffic jam is reduced, and the phenomenon that the electric vehicle is randomly parked and randomly placed is improved.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.