A shared vehicle automatic locking method, device, system and equipment

By obtaining the order status and GPS information of shared vehicles, the system determines the vehicle status and sends a locking command, thus solving the security risk of vehicles not being locked after the user leaves, achieving automatic locking, and improving the security of shared vehicles.

CN117649724BActive Publication Date: 2026-03-31GUANGDONG STARTHING TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-19
Publication Date
2026-03-31

AI Technical Summary

Technical Problem

If shared vehicles are not locked after the user leaves, it may lead to safety hazards, such as being pushed away, stolen, or sliding out of control.

Method used

By obtaining the order status and GPS information from the vehicle, the system determines the vehicle's current status and sends a locking command when the preset locking conditions are met. This includes comparing cached values, judging the maintenance lock status, and handling temporary lock timeouts to ensure that the vehicle is automatically locked.

Benefits of technology

It enables automatic locking of unlocked vehicles, avoiding safety hazards and improving the security of shared vehicles.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117649724B_ABST
    Figure CN117649724B_ABST
Patent Text Reader

Abstract

The application relates to the field of shared vehicle automatic control technology, and provides a shared vehicle automatic locking method, device, system and equipment, wherein an order associated with a vehicle end is acquired, the state of the order and the locking state of the associated vehicle end are listened to, in the case that the order is in an execution state and the associated vehicle end is in a non-temporary locking state, GPS information of the associated vehicle end is acquired, the vehicle end state is judged based on the GPS information, in the case that the vehicle end state meets preset locking conditions, a locking instruction is sent to the vehicle end, the state of an unlocked vehicle is judged based on vehicle GPS information, and the vehicle meeting locking conditions is automatically locked based on the temporary locking timeout of the vehicle, the vehicle meeting locking conditions can also be automatically locked in the case that the order has ended but the vehicle is not locked, and the vehicle meets locking conditions, the situation that the unlocked vehicle may be pushed away, stolen, and out of control is avoided, and the safety of the shared vehicle is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of automatic control technology for shared vehicles, and in particular to a method, device, system and equipment for automatically locking shared vehicles. Background Technology

[0002] With the increasing popularity of shared vehicles such as shared bicycles and shared electric bikes, more and more people are choosing shared vehicles as a means of short-distance travel.

[0003] During the use of shared vehicles, users often forget to lock the vehicle after arriving at their destination and leave immediately. Furthermore, due to signal transmission and reception issues, shared vehicles frequently fail to correctly receive locking commands, meaning the vehicle is actually parked and returned, but not locked. In such situations, the vehicle may be unsafe, such as being pushed away, stolen, or becoming uncontrollable. Therefore, for any situation where users leave the vehicle unlocked for various reasons, automatic locking is necessary. Summary of the Invention

[0004] This invention provides a method, apparatus, system, and device for automatically locking shared vehicles, which solves the problem in the prior art where the vehicle may encounter unexpected situations when the user leaves the vehicle but the vehicle is not locked, and achieves automatic locking of the vehicle.

[0005] This invention provides a method for automatically locking shared vehicles, comprising:

[0006] Retrieve orders associated with the vehicle;

[0007] Monitor the status of the order and the locking status of the vehicle associated with the order;

[0008] When the order is in execution state and the vehicle associated with the order is not in a temporary locked state, the GPS information of the vehicle associated with the order is obtained. Based on the GPS information, the current state of the vehicle is determined. If the current state of the vehicle meets the preset locking conditions, a locking command is sent to the vehicle.

[0009] According to a method for automatically locking a shared vehicle provided by the present invention, the method involves obtaining GPS information of the vehicle associated with the order, determining the current state of the vehicle based on the GPS information, and sending a locking command to the vehicle if the current state of the vehicle meets preset locking conditions. The method includes:

[0010] Set the initial cache;

[0011] Obtain the current first GPS information of the vehicle associated with the order;

[0012] After a preset first time interval, the current second GPS information of the vehicle is obtained;

[0013] If the distance between the location pointed to by the second GPS information and the location pointed to by the first GPS information is less than a preset distance limit, the cached value is compared with the preset limit; if the cached value does not exceed the preset limit, the cached value is incremented by one, and the process proceeds to the step of obtaining the current first GPS information of the vehicle associated with the order; if the cached value is greater than the preset limit, it is determined that the vehicle meets the locking conditions, and a locking command is sent to the vehicle.

[0014] According to a method for automatically locking a shared vehicle provided by the present invention, before comparing the cached value with the preset limit when the distance between the location pointed to by the second GPS information and the location pointed to by the first GPS information is less than a preset distance limit, the method further includes:

[0015] Obtain the maintenance lock status of the vehicle terminal; if the maintenance lock is activated, end the process; if the maintenance lock is not activated, obtain the vehicle terminal status information within the preset first time interval and determine the movement status of the vehicle terminal; if it is determined that the vehicle terminal has moved, initialize the cache; if it is determined that the vehicle terminal has not moved, proceed to the step of comparing the cached value with a preset limit value.

[0016] According to the present invention, a method for automatically locking a shared vehicle includes acquiring the vehicle's status information within a preset first time interval and determining the vehicle's movement status, comprising:

[0017] The vehicle's speed information within the preset first time interval is obtained, and if the speed is greater than a preset speed threshold, it is determined that the vehicle has moved.

[0018] And / or, obtain the wheel movement value of the vehicle end within the preset first time interval, and determine that the vehicle end has moved if the wheel movement value is greater than the preset wheel movement threshold.

[0019] According to a method for automatically locking a shared vehicle provided by the present invention, the method involves obtaining GPS information of the vehicle associated with the order, determining the current state of the vehicle based on the GPS information, and sending a locking command to the vehicle if the current state of the vehicle meets preset locking conditions. The method includes:

[0020] Obtain the current first GPS information of the vehicle associated with the order;

[0021] If no new GPS information is obtained within a preset time period, it is determined that the vehicle meets the locking conditions, and a locking command is sent to the vehicle to lock it.

[0022] According to a method for automatically locking a shared vehicle provided by the present invention, after monitoring the status of the order and the locking status of the vehicle associated with the order, the method further includes:

[0023] If the order is in an execution state and the vehicle associated with the order is in a temporary lock state, obtain the start time of the temporary lock.

[0024] Calculate the duration of the temporary vehicle lock based on the start time of the temporary lock and the current time;

[0025] If the duration of the temporary vehicle lock exceeds a preset time limit, the vehicle terminal is determined to meet the locking conditions, and a locking command is sent to the vehicle terminal.

[0026] According to a method for automatically locking a shared vehicle provided by the present invention, after monitoring the status of the order and the locking status of the vehicle associated with the order, the method further includes:

[0027] When an order has been completed and the vehicle associated with the order is unlocked, the order is added to a monitoring list. At a preset second time interval, a locking command is sent to each vehicle associated with the order in the monitoring list. After obtaining the locking information of the vehicle, the order associated with the vehicle is removed from the monitoring list.

[0028] The present invention also provides an automatic locking device for shared vehicles, comprising:

[0029] The information acquisition module is used to acquire orders associated with the vehicle.

[0030] The monitoring module is used to monitor the status of the order and the locking status of the vehicle associated with the order;

[0031] The judgment and execution module is used to obtain the GPS information of the vehicle associated with the order when the order is in an execution state and the vehicle associated with the order is in a non-temporary locked state, determine the current state of the vehicle based on the GPS information, and send a locking command to the vehicle if the current state of the vehicle meets the preset locking conditions.

[0032] The present invention also provides an automatic locking system for shared vehicles, including a user terminal, a gateway, a monitor, a message processing component, a vehicle terminal, and a database;

[0033] The user terminal is used to create orders, send unlocking or locking commands to the vehicle terminal, and receive unlocking or locking information sent by the vehicle terminal, or receive locking information sent by the message processing component.

[0034] The gateway is used to receive GPS information sent by the vehicle and send the GPS information to the message processing component;

[0035] The monitor is used to listen to the message processing component, obtain orders associated with the vehicle, listen to the status of the orders and the locking status of the vehicle associated with the orders, and when the order is in an execution state and the vehicle associated with the order is in a non-temporary locking state, obtain the GPS information of the vehicle associated with the order, determine the current status of the vehicle based on the GPS information, and when the current status of the vehicle meets the preset locking conditions, send a locking command to the vehicle through the message processing component.

[0036] The message processing component is used to obtain the car rental information or car locking information sent by the vehicle terminal, and to send a car locking command to the vehicle terminal. It is also used to send the car rental information, the car locking information and the GPS information to the database for storage.

[0037] The vehicle terminal is used to send vehicle borrowing information and vehicle locking information to the message processing component or the user terminal.

[0038] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the automatic locking method for shared vehicles as described above.

[0039] The present invention provides a method, apparatus, system, and device for automatically locking shared vehicles. By acquiring orders associated with the vehicle, monitoring the order status and the locking status of the vehicle associated with the order, and when the order is in an executing state and the vehicle associated with the order is not in a temporary locking state, the GPS information of the vehicle associated with the order is acquired. Based on the GPS information, the current status of the vehicle is determined. If the current status of the vehicle meets the preset locking conditions, a locking command is sent to the vehicle. This realizes the determination of the status of unlocked vehicles based on the vehicle's GPS information and the automatic locking of vehicles that meet the locking conditions, avoiding situations such as unlocked vehicles being pushed away, stolen, or losing control due to slippage, thus improving the security of shared vehicles. Attached Figure Description

[0040] To more clearly illustrate the technical solutions in this invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0041] Figure 1 This is a flowchart illustrating the automatic locking method for shared vehicles provided by the present invention;

[0042] Figure 2 This is a schematic diagram illustrating the determination of whether the vehicle locking conditions are met based on GPS information in an embodiment of the present invention;

[0043] Figure 3 This is a schematic diagram of the structure of the automatic locking device for shared vehicles provided by the present invention;

[0044] Figure 4 This is a schematic diagram of the workflow of the automatic locking system for shared vehicles provided by the present invention;

[0045] Figure 5 This is a schematic diagram of the structure of the electronic device provided by the present invention.

[0046] Figure label:

[0047] 31: Information acquisition module; 32: Listening module; 33: Judgment and execution module; 41: User terminal; 42: Gateway; 43: Monitor; 44: Message processing component; 45: Vehicle terminal; 46: Database. Detailed Implementation

[0048] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.

[0049] The following is combined Figure 1 and Figure 2 The present invention describes a method for automatically locking shared vehicles.

[0050] like Figure 1 As shown, the automatic locking method for shared vehicles provided by the present invention includes the following steps:

[0051] S1. Obtain the orders associated with the vehicle.

[0052] Before a user can use a shared vehicle (including but not limited to shared bicycles and shared electric bikes), they need to create an order on their mobile device (usually a mobile phone). Once the vehicle receives the order, it sends the rental information (including the rental time) to a message processing component. The message processing component uses the order ID as the key and stores the rental time in the database. A monitor can listen to the message processing component to obtain orders associated with the vehicle, as well as information such as the vehicle's lock status and time.

[0053] S2. Monitor the status of the order and the locking status of the vehicle associated with the order.

[0054] After the monitor learns through the message processing component that the vehicle has been unlocked, it can perform relevant monitoring tasks on the orders associated with the vehicle. The order status includes the order's progress status and the locking status of the associated vehicle. It should be understood that the order status in this invention includes, but is not limited to, being in an executing state and the associated vehicle is in a non-temporary locked state, being in an executing state and the associated vehicle is in a temporary locked state, being completed and the associated vehicle is in a locked state, and being completed and the associated vehicle is in a locked state.

[0055] S3. When the order is in the execution state and the vehicle associated with the order is not in a temporary locked state, obtain the GPS information of the vehicle associated with the order, determine the current state of the vehicle based on the GPS information, and send a locking command to the vehicle if the current state of the vehicle meets the preset locking conditions.

[0056] In an optional embodiment of the present invention, GPS information of the vehicle associated with the order is obtained, and the current status of the vehicle is determined based on the GPS information. If the current status of the vehicle meets preset locking conditions, a locking command is sent to the vehicle, including the following steps:

[0057] S311, Set the initial cache;

[0058] S312. Obtain the current first GPS information of the vehicle associated with the order;

[0059] S313. After a preset first time interval, obtain the current second GPS information of the vehicle.

[0060] S314. If the distance between the location pointed to by the second GPS information and the location pointed to by the first GPS information is less than a preset distance limit, the cached value is compared with the preset limit. If the cached value does not exceed the preset limit, the cached value is incremented by one, and the process proceeds to the step of obtaining the current first GPS information of the vehicle associated with the order. If the cached value is greater than the preset limit, the vehicle is determined to meet the locking conditions, and a locking command is sent to the vehicle.

[0061] Specifically, such as Figure 2As shown, this invention uses the cached value as the basis for determining whether the vehicle meets the locking conditions. For example, the initial cached value can be set to 1. Since GPS reporting is done at a fixed frequency, it can actually be converted into time. The vehicle sends GPS information to the gateway, which then sends it to the message processing component. The message processing component stores the GPS information in the database using the order ID as the key. The monitor can obtain the GPS information from the message processing component, which contains location information. After obtaining the current first GPS information sent by the vehicle associated with the order, the current second GPS information sent by the vehicle is obtained at a preset first time interval. It should be understood that the first and second GPS information in this invention are two consecutively obtained GPS information, not specific fixed GPS information. The acquisition time of the second GPS information is later than the acquisition time of the first GPS information. For example, if the acquisition interval is 1 minute, at 1 minute, the first GPS information is the GPS information at 0 minutes, and the second GPS information is the GPS information at 1 minute; at 2 minutes, the first GPS information is the GPS information at 1 minute, and the second GPS information is the GPS information at 2 minutes. The location information pointed to by the first GPS information is compared with the location information pointed to by the second GPS information. If the distance between the two location information is greater than or equal to a preset distance limit, it indicates that the vehicle has moved within the first time interval, and locking the vehicle is not required. If the distance between the location information pointed to by the second GPS information and the location information pointed to by the first GPS information is less than the preset distance limit, it indicates that the vehicle has not moved within the first time interval, and further determination is required. It should be understood that this application does not limit the detailed value of the preset distance limit, which can be set according to the actual situation. At this time, the cached value is compared with the preset limit. If the cached value is greater than the preset limit, it indicates that the time during which the vehicle has not moved has exceeded the limit. This situation may be due to the user leaving without locking the vehicle, and locking the vehicle is required. At this time, the monitor sends a locking command to the vehicle. For example, assuming the preset first time interval is 1 minute, the initial cache value is 1, and the preset limit is 5, then when the cache value is 6, it exceeds the preset limit of 5. At this point, 5 first time intervals have elapsed, meaning the vehicle has not moved for 5 minutes. Therefore, it is necessary to lock the vehicle and send a lock command to the vehicle terminal. If the cache value does not exceed the preset limit, it indicates that the total time the vehicle has not moved has not reached the preset time length (e.g., less than 5 minutes). Therefore, it is not necessary to lock the vehicle terminal, and the current second GPS information sent by the vehicle terminal continues to be acquired at the preset first time interval, i.e., continuous monitoring. It should be understood that the preset first time interval, the initial cache value, and the preset limit can be set according to actual conditions, and this invention does not impose any restrictions on this.

[0062] If a vehicle does not move within a certain period, it may be due to maintenance work being performed on it. Therefore, in an optional embodiment of the present invention, if the distance between the location information pointed to by the second GPS information and the location information pointed to by the first GPS information is less than a preset distance limit, before comparing the cached value with the preset limit, it is necessary to obtain and determine the activation status of the vehicle's maintenance lock. If the maintenance lock is activated, it indicates that maintenance work is being performed on the vehicle, and there is no need to automatically lock the vehicle, thus ending the process. If the maintenance lock is not activated, to avoid the situation where the distance between the location information pointed to by the second GPS information and the location information pointed to by the first GPS information is less than the preset distance limit due to GPS information lag or other reasons, and to further improve the accuracy of determining whether the vehicle has moved, it is also necessary to obtain the vehicle's status information within a preset first time interval and determine the vehicle's movement status. If it is determined that the vehicle has moved, the cache is initialized; if it is determined that the vehicle has not moved, the step of comparing the cached value with the preset limit is initiated. Specifically, obtaining the vehicle's status information within a preset first time interval and determining the vehicle's movement status includes:

[0063] Obtain the vehicle's speed information within a preset first time interval, and determine that the vehicle has moved if the speed is greater than a speed threshold.

[0064] And / or, obtain the wheel movement value of the vehicle end within a preset first time interval, and determine that the vehicle end has moved if the wheel movement value is greater than the wheel movement threshold.

[0065] By determining whether the vehicle has moved based on the vehicle's speed information and / or wheel movement value within the first time interval, it is possible to effectively avoid the distance between the location information pointed to by the second GPS information and the location information pointed to by the first GPS information being less than a preset distance limit due to a failure of the vehicle's GPS module.

[0066] In a scenario where an order is in progress and new GPS information from the vehicle cannot be obtained (due to GPS or communication failures, etc.), in an optional embodiment of the present invention, the GPS information of the vehicle associated with the order is obtained. Based on the GPS information, the current status of the vehicle is determined. If the current status of the vehicle meets preset locking conditions, a locking command is sent to the vehicle, including the following steps:

[0067] S321. Obtain the current first GPS information of the vehicle associated with the order;

[0068] S322. If no new GPS information is obtained within the preset time period, determine that the vehicle meets the locking conditions and send a locking command to the vehicle to lock it.

[0069] It should be understood that the preset time period can be set according to the actual situation, and the present invention does not limit it.

[0070] In an optional embodiment of the present invention, after the user temporarily locks the vehicle while an order is in progress, but subsequently forgets to close the order, following step S2 which involves monitoring the order status and the vehicle's locking status associated with the order, the following further step is added:

[0071] If the order is in the execution state and the vehicle associated with the order is in a temporary lock state, obtain the start time of the temporary lock.

[0072] Calculate the duration of the temporary vehicle lock based on the start time of the temporary lock and the current time;

[0073] If the temporary vehicle lock duration exceeds the preset duration limit, the vehicle terminal is determined to meet the locking conditions, and a vehicle lock command is sent to the vehicle terminal.

[0074] Specifically, the monitor can obtain the temporary vehicle lock notification time stored in the database, calculate the lock duration based on the current time and the temporary lock start time, and if the lock duration exceeds a preset limit, it indicates that the user is unlikely to use the vehicle again, and therefore a lock command is sent to the vehicle. It should be understood that the preset duration limit can be set according to actual conditions, such as 20 minutes or 30 minutes; this invention does not impose any limitations on this.

[0075] To further ensure that completed orders do not have any vehicles associated with those orders that are not locked, in an optional embodiment of the present invention, after step S1 of monitoring the status of the order and the locking status of the vehicle associated with the order, the following steps are also included:

[0076] If an order has been completed and the vehicle associated with the order is unlocked, add the order to the monitoring list;

[0077] According to the preset second time interval, a vehicle locking command is sent to the vehicle associated with each order in the monitoring list;

[0078] After obtaining the vehicle's locking information, the orders associated with the vehicle are removed from the monitoring list.

[0079] Specifically, at the end of each order, the order can be added to the monitoring list, or at a preset second time interval (e.g., 10 minutes), information on orders that ended within that time interval can be obtained and added to the monitoring list. For orders in the monitoring list, if the locking information of the vehicle associated with the order cannot be obtained, the monitor sends a locking command to the vehicle associated with the order at fixed time intervals; after obtaining the locking information of the vehicle associated with the order, the order is removed from the monitoring list. This method ensures that closed orders do not result in unlocked vehicles, improving the security of shared vehicles. It should be understood that the preset second time interval can be set according to actual conditions, and this invention does not limit it.

[0080] In summary, the automatic locking method for shared vehicles provided by this invention obtains orders associated with the vehicle, monitors the order status and the locking status of the vehicle associated with the order, and obtains the GPS information of the vehicle associated with the order when the order is in an execution state and the vehicle associated with the order is not in a temporary locking state. Based on the GPS information, the current status of the vehicle is determined, and if the current status of the vehicle meets the preset locking conditions, a locking command is sent to the vehicle. This realizes the determination of the status of unlocked vehicles based on the vehicle's GPS information, and the automatic locking of vehicles that meet the locking conditions based on the vehicle's temporary locking timeout. It can also automatically lock vehicles that have completed their orders but have not been locked and meet the locking conditions, thus avoiding situations such as unlocked vehicles being pushed away, stolen, or losing control due to slippage, thereby improving the security of shared vehicles.

[0081] Based on the same inventive concept, the present invention also provides an automatic locking device for shared vehicles. The automatic locking device for shared vehicles provided by the present invention is described below. The automatic locking device for shared vehicles described below can be referred to in correspondence with the automatic locking method for shared vehicles described above.

[0082] like Figure 3 As shown, the automatic locking device for shared vehicles provided by the present invention includes an information acquisition module 31, a monitoring module 32, and a judgment and execution module 33.

[0083] Information acquisition module 31 is used to acquire orders associated with the vehicle.

[0084] The listening module 32 is used to monitor the status of the order and the locking status of the vehicle associated with the order;

[0085] The judgment and execution module 33 is used to obtain the GPS information of the vehicle associated with the order when the order is in the execution state and the vehicle associated with the order is in a non-temporary locked state. Based on the GPS information, it judges the current state of the vehicle and sends a locking command to the vehicle if the current state of the vehicle meets the preset locking conditions.

[0086] like Figure 4 As shown, based on the same inventive concept, the present invention also provides a shared vehicle automatic locking system, including a user terminal 41, a gateway 42, a monitor 43, a message processing component 44, a vehicle terminal 45, and a database 46.

[0087] User terminal 41 is used to create orders, send unlocking or locking commands to vehicle terminal 45, and receive unlocking or locking information sent by vehicle terminal 45, or receive locking information sent by message processing component 44.

[0088] Gateway 42 is used to receive GPS information sent by vehicle terminal 45 and send the GPS information to message processing component 44;

[0089] Monitor 43 is used to listen to message processing component 44, obtain orders associated with vehicle terminal 45, listen to the status of the orders and the locking status of vehicle terminal 45 associated with the orders, and obtain the GPS information of vehicle terminal 45 associated with the orders when the orders are in the execution state and vehicle terminal 45 associated with the orders is in a non-temporary locking state. Based on the GPS information, the current status of vehicle terminal 45 is determined. When the current status of vehicle terminal 45 meets the preset locking conditions, a locking command is sent to vehicle terminal 45 through message processing component 44.

[0090] The message processing component 44 is used to obtain the car borrowing information or car locking information sent by the vehicle terminal 45, and to send the car locking command to the vehicle terminal 45. It is also used to send the car borrowing information, car locking information and GPS information to the database 46 for storage.

[0091] The vehicle terminal 45 is used to send vehicle borrowing information and vehicle locking information to the message processing component 44 or the user terminal 41.

[0092] Preferably, the user terminal 41 in this invention includes, but is not limited to, APP, mini-program, web, etc.; the message processing component 44 adopts Kafka, and the database 46 adopts Redis.

[0093] In this system, vehicle terminal 45 reports GPS information to gateway 42, which then sends the GPS information to Kafka. Kafka messages are subscribed to and consumed by monitor 43. In this workflow, when a user temporarily locks the vehicle, the client sends a temporary lock command to vehicle terminal 45. The vehicle writes the lock time to Redis, which is associated with the user's order ID. Upon successful temporary locking, the vehicle also returns the lock time to user terminal 41. Monitor 43 can listen to Kafka and determine whether locking the vehicle is necessary based on certain conditions.

[0094] like Figure 4 As shown, in the entire business process, user terminal 41 creates a new order and unlocks vehicle terminal 45. Then, vehicle terminal 45 sends the car rental information to the Kafka message queue subscribed to by monitor 43. At this time, monitor 43 knows through Kafka that vehicle terminal 45 has unlocked. Related monitoring tasks can be performed on the orders associated with vehicle terminal 45. Simultaneously, monitor 43 records the car rental time in a Redis database with the order ID as the key. When the user finishes using the vehicle, vehicle terminal 45 confirms locking the car, also sending a message through Kafka. Monitor 43 can determine that the vehicle has been locked through the Kafka message and write the locking information to Redis.

[0095] Figure 4 The process involves three loop-like steps. In the first loop, from top to bottom, the vehicle terminal 45 periodically reports GPS information to the gateway 42. The gateway 42 sends the information to Kafka, and the monitor 43 consumes the Kafka messages to obtain the relevant GPS information. At the same time, it records the update time in Redis based on the obtained GPS information, using the order ID as the association.

[0096] For orders that are in progress and cannot obtain new GPS information from the vehicle (due to GPS failure or communication failure, etc.), based on the aforementioned GPS information update time, the third loop periodically retrieves orders whose GPS information has not been updated for more than a preset value (such as 10 minutes) from Redis and executes the vehicle locking task.

[0097] In the event that an order is in progress and the vehicle 45 has not moved for more than the preset time limit (usually when the user leaves the car and forgets to lock it), the monitor 43 can periodically determine whether the relevant automatic locking conditions are met, as shown in the second loop. If the conditions are met, the locking task is executed.

[0098] If a user temporarily locks their vehicle while an order is in progress, but then forgets to close the order, the temporary locking time can be recorded. Then, the system can determine whether the preset temporary locking time has been exceeded based on the temporary locking time. If so, the vehicle can be locked.

[0099] For orders that have ended but whose associated vehicles (45) have not been locked, monitor 43 can detect orders that have ended but whose vehicles have not reported locking information. In this case, monitor 43 can periodically retrieve the vehicles associated with the aforementioned orders and issue locking commands until the vehicle locking command is completed.

[0100] Figure 5 An example is a schematic diagram of the physical structure of an electronic device, such as... Figure 5 As shown, the electronic device may include: a processor 510, a communication interface 520, a memory 530, and a communication bus 540, wherein the processor 510, the communication interface 520, and the memory 530 communicate with each other through the communication bus 540. The processor 510 can call logical instructions in the memory 530 to execute the shared vehicle automatic locking method provided by the above methods, which includes:

[0101] Retrieve orders associated with the vehicle.

[0102] Monitor the status of the order and the locking status of the vehicle associated with the order.

[0103] When the order is in execution state and the vehicle associated with the order is not in a temporary locked state, the GPS information of the vehicle associated with the order is obtained. Based on the GPS information, the current state of the vehicle is determined. If the current state of the vehicle meets the preset locking conditions, a locking command is sent to the vehicle.

[0104] Furthermore, the logical instructions in the aforementioned memory 530 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable system. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a system and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned system includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0105] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.

[0106] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable system, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.

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

Claims

1. A method for automatically locking a shared vehicle, characterized by, The method comprises the following steps: acquiring an order associated with a vehicle end; monitoring the state of the order and the lock state of the vehicle end associated with the order; in the case that the order is in an execution state and the vehicle end associated with the order is in a non-temporary lock state, acquiring GPS information of the vehicle end associated with the order, determining the current state of the vehicle end based on the GPS information, and sending a lock instruction to the vehicle end in the case that the current state of the vehicle end meets a preset lock condition; wherein the step of acquiring the GPS information of the vehicle end associated with the order, determining the current state of the vehicle end based on the GPS information, and sending a lock instruction to the vehicle end in the case that the current state of the vehicle end meets a preset lock condition comprises the following steps: setting an initialized cache; acquiring the current first GPS information of the vehicle end associated with the order; acquiring the current second GPS information of the vehicle end after a preset first time interval; in the case that the distance between the position pointed to by the second GPS information and the position pointed to by the first GPS information is less than a preset distance limit value, comparing the value of the cache with a preset limit value; in the case that the value of the cache does not exceed the preset limit value, increasing the value of the cache by one and entering the step of acquiring the current first GPS information of the vehicle end associated with the order; in the case that the value of the cache is greater than the preset limit value, determining that the vehicle end meets the lock condition and sending a lock instruction to the vehicle end; and, before the step of comparing the value of the cache with the preset limit value in the case that the distance between the position pointed to by the second GPS information and the position pointed to by the first GPS information is less than a preset distance limit value, further comprising the following steps: acquiring the operation and maintenance lock state of the vehicle end; and ending the process in the case that the operation and maintenance lock is started.

2. The shared vehicle automatic lock method according to claim 1, wherein in the case that the operation and maintenance lock is not started, acquiring the state information of the vehicle end within the preset first time interval and determining the moving state of the vehicle end; in the case that it is determined that the vehicle end has moved, initializing the cache; in the case that it is determined that the vehicle end has not moved, entering the step of comparing the value of the cache with the preset limit value.

3. The shared vehicle automatic lock method according to claim 2, wherein the step of acquiring the state information of the vehicle end within the preset first time interval and determining the moving state of the vehicle end comprises the following steps: acquiring the speed information of the vehicle end within the preset first time interval, and determining that the vehicle end has moved in the case that the speed is greater than a preset speed threshold value; and / or, acquiring the wheel motion value of the vehicle end within the preset first time interval, and determining that the vehicle end has moved in the case that the wheel motion value is greater than a preset wheel motion threshold value.

4. The shared vehicle automatic lock method of claim 1, wherein, the step of acquiring the GPS information of the vehicle end associated with the order, determining the current state of the vehicle end based on the GPS information, and sending a lock instruction to the vehicle end in the case that the current state of the vehicle end meets a preset lock condition comprises the following steps: acquiring the current first GPS information of the vehicle end associated with the order; In a case that no new GPS information is obtained within a preset time period, it is determined that the vehicle end meets a lock vehicle condition, and a lock vehicle instruction is sent to the vehicle end to lock the vehicle.

5. The shared vehicle automatic lock method of claim 1, wherein, After listening to the state of the order and the lock vehicle state of the vehicle end associated with the order, the method further comprises: In a case that the order is in an executing state and the vehicle end associated with the order is in a temporary lock vehicle state, a starting time of temporary lock vehicle is obtained; According to the starting time of temporary lock vehicle and a current time, a duration of temporary lock vehicle is calculated; In a case that the duration of temporary lock vehicle exceeds a preset duration limit value, it is determined that the vehicle end meets a lock vehicle condition, and a lock vehicle instruction is sent to the vehicle end.

6. The method of claim 1-5, wherein, After listening to the state of the order and the lock vehicle state of the vehicle end associated with the order, the method further comprises: In a case that the order has ended and the vehicle end associated with the order is in an unlocked state, the order is added to a monitoring list, a lock vehicle instruction is sent to each vehicle end associated with the order in the monitoring list at a preset second time interval, and after lock vehicle information of the vehicle end is obtained, the order associated with the vehicle end is removed from the monitoring list.

7. A shared vehicle automatic locking device, characterized by, The method comprises: An information obtaining module is configured to obtain an order associated with a vehicle end; A listening module is configured to listen to the state of the order and the lock vehicle state of the vehicle end associated with the order; A determining and executing module is configured to, in a case that the order is in an executing state and the vehicle end associated with the order is in a non-temporary lock vehicle state, obtain GPS information of the vehicle end associated with the order, determine a current state of the vehicle end based on the GPS information, and in a case that the current state of the vehicle end meets a preset lock vehicle condition, send a lock vehicle instruction to the vehicle end. The determining and executing module is specifically configured to: Set an initialized cache; Obtain first GPS information of the vehicle end associated with the order; After a preset first time interval, obtain second GPS information of the vehicle end; In a case that a distance between a position pointed to by the second GPS information and a position pointed to by the first GPS information is less than a preset distance limit value, compare a value of the cache with a preset limit value; In a case that the value of the cache does not exceed the preset limit value, increase the value of the cache by one, and enter the step of obtaining the first GPS information of the vehicle end associated with the order, and in a case that the value of the cache is greater than the preset limit value, it is determined that the vehicle end meets a lock vehicle condition, and a lock vehicle instruction is sent to the vehicle end. Further, before comparing the value of the cache with the preset limit value in a case that the distance between the position pointed to by the second GPS information and the position pointed to by the first GPS information is less than the preset distance limit value, the method further comprises obtaining a maintenance lock state of the vehicle end; In a case that the maintenance lock is started, the process is ended.

8. A shared vehicle automatic lock system, characterized by, The system comprises a user end, a gateway, a monitor, a message processing component, a vehicle end and a database. The user terminal is configured to create an order, send an unlocking instruction or a locking instruction to the vehicle terminal, and receive unlocking information or locking information sent by the vehicle terminal or locking information sent by the message processing component; The gateway is configured to receive GPS information sent by the vehicle terminal and send the GPS information to the message processing component; The monitor is configured to monitor the message processing component, acquire an order associated with the vehicle terminal, monitor a state of the order and a locking state of the vehicle terminal associated with the order, acquire GPS information of the vehicle terminal associated with the order in a case where the order is in an execution state and the vehicle terminal associated with the order is in a non-temporary locking state, determine a current state of the vehicle terminal based on the GPS information, and send a locking instruction to the vehicle terminal through the message processing component in a case where the current state of the vehicle terminal meets a preset locking condition; The message processing component is configured to acquire borrowing information or locking information sent by the vehicle terminal and send a locking instruction to the vehicle terminal, and send the borrowing information, the locking information and the GPS information to the database for storage; The vehicle terminal is configured to send borrowing information and locking information to the message processing component or the user terminal; The method comprises the following steps: setting an initialized cache; acquiring first GPS information of the vehicle terminal associated with the order; acquiring second GPS information of the vehicle terminal after a preset first time interval; comparing a value of the cache with a preset limit value in a case where a distance between a position pointed to by the second GPS information and a position pointed to by the first GPS information is less than a preset distance limit value; in a case where the value of the cache does not exceed the preset limit value, increasing the value of the cache by one and entering the step of acquiring the first GPS information of the vehicle terminal associated with the order, and in a case where the value of the cache is greater than the preset limit value, determining that the vehicle terminal meets a locking condition and sending a locking instruction to the vehicle terminal; and, before comparing the value of the cache with the preset limit value in the case where the distance between the position pointed to by the second GPS information and the position pointed to by the first GPS information is less than the preset distance limit value, the method further comprises the following steps: acquiring an operation and maintenance locking state of the vehicle terminal; and ending the process in a case where the operation and maintenance locking is started.

9. An electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, The processor executes the program to implement the shared vehicle automatic locking method according to any one of claims 1 to 6. The processor executes the program to implement the shared vehicle automatic locking method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Shared vehicle non-normal use management method and system and vehicle ordering client side

    CN106911798A

  • Automatic locking system and locking method for shared bicycle

    CN106926815A