Shared vehicle state acquisition method and device, computer device, and storage medium
By acquiring and managing the status of shared vehicles in real time through the server, the problem of vehicles being occupied when users arrive at their destination is solved, improving user experience and vehicle management efficiency.
Patent Information
- Application Number
- CN202210154784.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-21
- Publication Date
- 2025-11-04
- Estimated Expiration
- 2042-02-21
AI Technical Summary
When users move to the location of a shared vehicle, they may find that the vehicle has already been used by someone else, which requires them to check nearby vehicles again, affecting the user experience.
The server responds to the user terminal's vehicle attention request, determines the attention period and the vehicle, obtains the vehicle status in real time, and when the status is updated to occupied, sends a prompt message to the user terminal according to the attention period to sever the association and avoid repeated prompts.
Users can be informed of changes in vehicle status in a timely manner, reducing unnecessary notifications, improving the user experience, and optimizing vehicle dispatching and parking spot utilization.
Smart Images

Figure CN114529028B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of vehicles, in particular to a shared vehicle state acquisition method and device, computer equipment and a storage medium. BACKGROUND
[0002] Commonly, when a user wants to travel by a shared vehicle, the user will check a nearby shared vehicle to be used on a terminal, and then move to the location of the shared vehicle to perform unlocking for use.
[0003] However, when the user moves to the location of the shared vehicle, the shared vehicle may have been used by others, causing the user to have to check other nearby available shared vehicles on the terminal again, affecting the user's vehicle use experience. SUMMARY
[0004] Therefore, the present application provides a shared vehicle state acquisition method and device, computer equipment and a storage medium to improve the current situation that when a user moves to the location of a shared vehicle, the shared vehicle has been used by others, causing the user to have to check other nearby available shared vehicles on the terminal again.
[0005] In a first aspect, the present application provides a shared vehicle state acquisition method applied to a server, the state of the shared vehicle including occupation and non-occupation, and the method comprising:
[0006] In response to a vehicle attention request sent by a user terminal, determining an attention time period and at least one attention vehicle corresponding to the vehicle attention request, wherein the state of the attention vehicle is non-occupation;
[0007] Associating the user terminal with all the attention vehicles;
[0008] Acquiring a current time and the state of each of the attention vehicles;
[0009] When the state of the attention vehicle is updated to the occupation, acquiring the time of the state update;
[0010] If the time of the state update is before the attention time period, then when the current time reaches the attention time period, the association between the user terminal and the attention vehicle is removed, and vehicle state update prompt information is sent to the user terminal;
[0011] If the current time and the time of the state update are both within the attention time period, then the association between the user terminal and the attention vehicle is removed, and the vehicle state update prompt information is sent to the user terminal;
[0012] When the current time is after the attention time period, the association between the user terminal and each of the attention vehicles is removed.
[0013] In the method for acquiring the state of the shared vehicle, the server determines the attention time period corresponding to the vehicle attention request and the attention vehicle after receiving the vehicle attention request sent by the terminal, that is, determines which vehicles the user wants to obtain the state change information of in real time in which time period; then, the user terminal is associated with all the attention vehicles, so that the corresponding message is sent to the user terminal associated with the attention vehicle when the state of the attention vehicle changes; then, the current time and the state of each attention vehicle are acquired, and the time of the state update is acquired when the state of the attention vehicle is updated to be occupied; if the time of the state update is before the attention time period, the vehicle state update prompt information is sent to the user terminal when the current time reaches the attention time period, and the association between the user terminal and the attention vehicle is released, so that the corresponding message is not sent to the user terminal when the state of the attention vehicle changes again; if the current time and the time of the state update are both in the attention time period, the association between the user terminal and the attention vehicle is released, and the vehicle state update prompt information is sent to the user terminal; and when the current time is after the attention time period, the association between the user terminal and each attention vehicle is released.
[0014] Therefore, the server sends the vehicle state update prompt information of the attention vehicle to the user terminal in real time in the attention time period, so that the user can determine whether the attention vehicle can be used according to the vehicle state update prompt information, that is, the state is non-occupied; and in the actual application of the embodiment of the application, the user can determine the change of the vehicle state through the terminal, for example, when the state of all the attention vehicles changes from non-occupied to occupied, the user can clearly know that the vehicle viewed previously cannot be used, and then the user can view other shared vehicles or select other transportation tools for travel.
[0015] Optionally, in an embodiment provided by the application, after the user terminal is associated with all the attention vehicles, the method further includes:
[0016] determining the corresponding attention vehicle in all the attention vehicles in response to the vehicle reservation request sent by the user terminal in all the attention vehicles;
[0017] changing the state of the corresponding attention vehicle to be occupied, binding the corresponding attention vehicle with the user terminal, and releasing the association between the user terminal and other attention vehicles.
[0018] In this embodiment, the application has the following beneficial effects: the user can send a vehicle reservation request to the server to reserve the concerned vehicle according to the need, and the normal use of the vehicle is ensured. In addition, after the server completes the vehicle reservation and binds the vehicle with the user terminal, the association between the user terminal and other concerned vehicles is released, so that the server still sends the corresponding information to the user terminal after the state of any concerned vehicle changes, and the disturbance of the server to the user is reduced.
[0019] Optionally, in an embodiment provided by the application, the occupancy includes any one of vehicle unlocking, vehicle failure, low battery of the vehicle, and vehicle reservation.
[0020] Optionally, in an embodiment provided by the application, the method further includes:
[0021] acquiring the information of the concerned vehicle of the plurality of parking points within the determined range, wherein the information of the concerned vehicle includes the number of concerned vehicles and the concerned time period of the concerned vehicle;
[0022] performing priority sorting on the plurality of parking points according to the number of vehicles that can be accommodated by each of the parking points, the number of currently parked vehicles, the number of concerned vehicles, and the concerned time period;
[0023] sending a dispatch notification instruction to the terminal of the staff to make the staff dispatch the vehicle to the parking point with high priority.
[0024] In this embodiment, the application has the following beneficial effects: the staff dispatches the vehicle to the parking point with high priority, so that the vehicle can be placed in the parking point with high vehicle utilization rate, and the situation that the vehicle is in short supply in the parking point is improved.
[0025] Further, in an embodiment provided by the application, the priority sorting on the plurality of parking points according to the number of vehicles that can be accommodated by each of the parking points, the number of currently parked vehicles, the number of concerned vehicles, and the concerned time period includes:
[0026] calculating the parking point value corresponding to each of the parking points according to the number of vehicles that can be accommodated by each of the parking points, the number of currently parked vehicles, the number of concerned vehicles, and the concerned time period based on a preset formula, wherein the preset formula includes:
[0027]
[0028] a+b=1,a>b
[0029] P represents a parking point value corresponding to the parking point, y represents the current number of parked vehicles, x represents the number of vehicles that can be accommodated, represents the vacancy ratio of the parking point, a represents a first weight, and z represents the number of attention vehicles in the attention time period of the parking point, represents the vehicle demand ratio of the parking point, and b represents a second weight.
[0030] The plurality of parking points are prioritized using the parking point value corresponding to each parking point, wherein the larger the parking point value corresponding to the parking point, the higher the priority of the parking point.
[0031] Optionally, in an embodiment provided by the present application, when the state of the attention vehicle is updated to the occupied, the method further comprises:
[0032] When the current time is before the attention period or within the attention period, if the state of each attention vehicle is updated to the occupied, the initial parking point corresponding to each attention vehicle is determined, wherein the initial parking point includes the parking point where the attention vehicle corresponding to the vehicle attention request is located when the server responds to the vehicle attention request.
[0033] If there is a vehicle with the state of non-occupied in the initial parking point, non-occupied vehicle prompt information is generated and sent to the user terminal.
[0034] In this embodiment, the present application achieves the beneficial effects including that when all the vehicles that the user wants to use cannot be used, i.e., the state of all the attention vehicles changes from non-occupied to occupied, the server will humanize to push other available vehicles to the user, thereby improving the user's vehicle experience. Furthermore, since the other available vehicles are located in the initial parking point, the pushed vehicles can meet the user's demand.
[0035] Further, in an embodiment provided by the present application, after the initial parking point corresponding to each attention vehicle is determined when the current time is before the attention period or within the attention period, and if the state of each attention vehicle is updated to the occupied, the method further comprises:
[0036] If there is no vehicle with the state of non-occupied in the initial parking point, each surrounding parking point within a preset range around the initial parking point is searched.
[0037] If the peripheral parking point exists and there is a vehicle in the peripheral parking point with the state of non-occupancy, non-occupancy vehicle prompt information is generated and sent to the user terminal.
[0038] In this embodiment, the application embodiment has the following beneficial effects: even if there is no vehicle in the initial parking point with the state of non-occupancy, the server can still push the vehicle in the peripheral parking point with the state of non-occupancy to the user terminal, so that the user can complete the trip through the vehicle in the peripheral parking point, and the user experience is improved.
[0039] In a second aspect, the application embodiment provides a shared vehicle state acquisition device applied to a server, wherein the state of the shared vehicle includes occupancy and non-occupancy, and the device comprises:
[0040] a response module configured to respond to a vehicle attention request sent by a user terminal, determine an attention time period and at least one attention vehicle corresponding to the vehicle attention request, and wherein the state of the attention vehicle is non-occupancy;
[0041] an association module configured to associate the user terminal with all the attention vehicles;
[0042] an acquisition module configured to acquire a current time and the state of each of the attention vehicles;
[0043] an update time acquisition module configured to acquire a state update time when the state of the attention vehicle is updated to the occupancy;
[0044] a first release module configured to release the association between the user terminal and the attention vehicle when the current time reaches the attention time period if the state update time is before the attention time period, and send vehicle state update prompt information to the user terminal;
[0045] a second release module configured to release the association between the user terminal and the attention vehicle and send the vehicle state update prompt information to the user terminal if the current time and the state update time are both within the attention time period;
[0046] a third release module configured to release the association between the user terminal and each of the attention vehicles when the current time is after the attention time period.
[0047] In a third aspect, the application embodiment provides a computer device comprising a memory and a processor, wherein the memory stores a computer program, and the computer program performs the shared vehicle state acquisition method disclosed in any one of the first aspect when running on the processor.
[0048] In a fourth aspect, an embodiment of the present application provides a computer readable storage medium, and the computer readable storage medium stores a computer program. The computer program is executed on a processor to perform the state acquisition method of the shared vehicle according to any one of the first aspect. BRIEF DESCRIPTION OF DRAWINGS
[0049] In order to more clearly illustrate the technical solutions of the present application, the following will briefly introduce the drawings needed to be used in the embodiments. It should be understood that the following drawings only show some embodiments of the present application, and therefore should not be regarded as a limitation on the protection scope of the present application. In the various drawings, similar components are denoted by similar reference numerals.
[0050] Figure 1 A flowchart of a first state acquisition method of a shared vehicle provided by an embodiment of the present application is shown;
[0051] Figure 2 A flowchart of a second state acquisition method of a shared vehicle provided by an embodiment of the present application is shown;
[0052] Figure 3 A flowchart of a third state acquisition method of a shared vehicle provided by an embodiment of the present application is shown;
[0053] Figure 4 A structural diagram of a state acquisition device of a shared vehicle provided by an embodiment of the present application is shown. DETAILED DESCRIPTION
[0054] The technical solutions in the embodiments of the present application will be described in detail below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, but not all the embodiments of the present application.
[0055] The components of the embodiments of the present application generally described and shown in the drawings herein can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the claimed present application, but only represents selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.
[0056] In the following, the terms "include", "have", and their synonymous words used in various embodiments of the present application are only intended to represent specific features, numbers, steps, operations, elements, components, or combinations of the foregoing, and should not be understood as excluding the existence or possibility of adding one or more features, numbers, steps, operations, elements, components, or combinations of the foregoing.
[0057] In addition, the terms "first", "second", "third" and the like are used only to distinguish descriptions, and cannot be understood as indicating or implying relative importance.
[0058] Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which various embodiments of the present application belong. The terms (such as those defined in commonly used dictionaries) will be interpreted as having a meaning that is the same as the contextual meaning in the relevant technical field and will not be interpreted as having an idealized or overly formal meaning unless clearly defined in various embodiments of the present application.
[0059] To better illustrate the technical solutions proposed by the present application, a brief description of the prior art is first given.
[0060] It can be understood that although the existing shared vehicle service provides a service for viewing vehicles around, that is, users can view shared vehicles in nearby parking points through an electronic map displayed by a terminal, the server for updating the electronic map is usually set to update shared vehicles on the electronic map every preset time interval, such as every 5 minutes. Therefore, when a user views shared vehicles in nearby parking points through a terminal, the situation that the shared vehicle has been used by other users when the user reaches the parking point may occur.
[0061] Further, the existing shared vehicle service also provides a vehicle reservation function, that is, a function of controlling shared vehicles to be used only by a specific user within a preset time period, and other users cannot use it. However, the vehicle reservation function requires the user to unlock and use the reserved vehicle within a short preset reservation time, such as half an hour or ten minutes.
[0062] Therefore, when a user views shared vehicles nearby through a terminal, but needs to reach a parking point after a long time, if the user views shared vehicles nearby on the terminal but cannot make a reservation, the situation that the user reaches the parking point and finds that the shared vehicle previously viewed has been used by others, or that there is no shared vehicle in the parking point, may occur, resulting in the user having to search for other vehicles or even going to other parking points.
[0063] Based on this, the embodiments of the present application propose a shared vehicle state acquisition method, which is described with reference to Figure 1 , Figure 1 A flowchart of a first shared vehicle state acquisition method provided by the embodiments of the present application is shown, and the shared vehicle state acquisition method provided by the embodiments of the present application is applied to a server, and the state of the shared vehicle includes occupation and non-occupation.
[0064] It should be noted that the occupation in the embodiment of the present application means that the vehicle cannot be used by the user due to some reasons, such as the vehicle is used by other users or the vehicle is out of order, and the non-occupation means that the vehicle can be normally used by the user.
[0065] In an embodiment provided by the embodiment of the present application, the occupation includes any one of the vehicle unlocking, the vehicle failure, the vehicle low power and the vehicle being reserved.
[0066] Therefore, the method for acquiring the state of the shared vehicle provided by the embodiment of the present application includes:
[0067] S110, in response to the vehicle attention request sent by the user terminal, determining an attention time period corresponding to the vehicle attention request and at least one attention vehicle, wherein the state of the attention vehicle is non-occupation.
[0068] It should be noted that the server in the embodiment of the present application is used to determine which time period the user wants to obtain the state change information of which vehicles in real time according to the received vehicle attention request, that is, to determine the attention time period corresponding to the vehicle attention request and to determine at least one attention vehicle corresponding to the vehicle attention request.
[0069] It should be further noted that the vehicle attention mentioned in the embodiment of the present application means that the server will acquire the state of the vehicle in real time to inform the user when the state of the vehicle changes, so as to enable the user to confirm whether the vehicle can be used.
[0070] For example, when the server receives the vehicle receiving request corresponding to the attention vehicle, that is, the attention vehicle in the state of non-occupation is about to change to occupation, the server can send the information that the state of the attention vehicle will change to non-occupation to the user terminal to enable the user to confirm.
[0071] It should be understood that the attention time period in the embodiment of the present application is also used to indicate the time when the user wants to receive the related message of the attention vehicle, that is, the server will only send the vehicle state update prompt information of the attention vehicle to the server within the attention time period, so as to avoid disturbing the user in the attention time period.
[0072] In addition, it can be understood that the specific content contained in the vehicle attention request can be set according to actual conditions, such as in a feasible manner, the vehicle attention request received by the server needs to contain the attention time period and the unique identifier of each attention vehicle. Therefore, the user needs to select the attention time period and the attention vehicle through the terminal, so that the terminal encapsulates the attention time period and the unique identifier of the attention vehicle as the vehicle attention request, and sends the vehicle attention request to the server.
[0073] In another possible implementation, the vehicle attention request only contains the unique identifier of each attention vehicle, that is, after the user selects the attention vehicle through the terminal, the terminal encapsulates the unique identifier of the attention vehicle into the vehicle attention request, and the server determines the attention time period and the attention vehicle according to the unique identifier and the preset default attention time period, such as two hours after the current time.
[0074] S120, associating the user terminal with all the attention vehicles.
[0075] It can be understood that after the server associates the attention vehicle with the user terminal, the server will send a corresponding message to the user terminal associated with the attention vehicle when the state of the attention vehicle changes.
[0076] S130, obtaining the current time and the state of each of the attention vehicles.
[0077] That is, after the server determines the attention time period and the attention vehicle, the server obtains the state of each attention vehicle in real time from the current time.
[0078] It can be understood that the manner in which the server obtains the state of the vehicle can be set according to actual conditions, such as in one possible implementation, all vehicles are provided with a state information sending device, which is used to send state change information to the server when the state of the vehicle changes, and then the server obtains the changed state of the vehicle according to the received state change information.
[0079] In another possible implementation, when the server receives a vehicle unlocking, reservation, occupation or the like request of the attention vehicle, the state of the attention vehicle is determined to change from non-occupation to occupation.
[0080] S140, obtaining the time of the state update when the state of the attention vehicle is updated to the occupation.
[0081] That is, when the server determines that the state of the attention vehicle changes from non-occupation to occupation, the time of the state change of the vehicle, that is, the time of the state update, is recorded.
[0082] S150, if the time of the state update is before the attention time period, the association between the user terminal and the attention vehicle is released when the current time reaches the attention time period, and vehicle state update prompt information is sent to the user terminal.
[0083] That is, when the time of the state update of the vehicle is not within the attention time period, the server will not send the information that the state of the attention vehicle changes to the server, but when the current time reaches the attention time period, the information that the state of the attention vehicle changes from non-occupation to occupation, that is, the vehicle state update prompt information, is sent to the user terminal.
[0084] For example, assume that the user sends a vehicle attention request to the server through the terminal at 12:00, the attention time period corresponding to the vehicle attention request is from 14:00 to 16:00, but the state of the attention vehicle corresponding to the vehicle attention request changes to occupied at 13:00. Since 13:00 is not within the attention time period, the server will not send a vehicle state update prompt information to the user terminal, but when the current time reaches 14:00, i.e., reaches the attention time period, the server sends a vehicle state update prompt information to the user terminal.
[0085] It should also be understood that the server also releases the association between the user terminal and the attention vehicle when sending the vehicle state update prompt information to the user terminal. Further, after the association is released, even if the state of the attention vehicle changes again, the server will no longer send corresponding information to the user terminal.
[0086] S160, if the current time and the state update time are both within the attention time period, releasing the association between the user terminal and the attention vehicle, and sending the vehicle state update prompt information to the user terminal.
[0087] For example, assume that the attention time period is from 14:00 to 16:00, and the state update time is 15:00, i.e., the state of the attention vehicle changes when the current time is 15:00. Since the state update time is within the attention time period, i.e., within the time when the user wants to receive the relevant messages of the attention vehicle, the server directly sends a vehicle state update prompt information to the user terminal.
[0088] S170, when the current time is after the attention time period, releasing the association between the user terminal and each of the attention vehicles.
[0089] It can be understood that the attention time period represents the time when the user wants to use the vehicle, and when the current time is after the attention time period, it means that the user may have used the vehicle within the attention time period, and then the server will release the association between the user terminal and the attention vehicle, and will no longer send the vehicle state update prompt information corresponding to the attention vehicle to the user terminal.
[0090] The state acquisition method of the shared vehicle provided in the embodiment of the present application, after the server receives the vehicle attention request sent by the terminal, determines the attention period corresponding to the vehicle attention request and the attention vehicle, that is, determines which period of time the user wants to obtain the state change information of which vehicles in real time; then, the user terminal is associated with all the attention vehicles, so that when the state of the attention vehicle changes, the corresponding message is sent to the user terminal associated with the attention vehicle; then, the current time and the state of each attention vehicle are acquired, and when the state of the attention vehicle is updated to occupied, the time of the state update is acquired; if the time of the state update is before the attention period, the vehicle state update prompt information is sent to the user terminal when the current time reaches the attention period, and the association between the user terminal and the attention vehicle is released, so as to avoid sending the corresponding message to the user terminal again when the state of the attention vehicle changes again; if the current time and the time of the state update are both within the attention period, the association between the user terminal and the attention vehicle is released, and the vehicle state update prompt information is sent to the user terminal; and when the current time is after the attention period, the association between the user terminal and each attention vehicle is released.
[0091] Therefore, in the embodiment of the present application, the server sends the vehicle state update prompt information of the attention vehicle to the user terminal in real time within the attention period, so that the user can determine whether the attention vehicle can be used according to the vehicle state update prompt information, that is, the state is non-occupied; and in the actual application of the embodiment of the present application, after the user determines that the vehicle state changes, for example, after the state of all the attention vehicles changes from non-occupied to occupied, the user can clearly know that the vehicle viewed previously cannot be used, and then can view other shared vehicles or select other transportation tools for travel.
[0092] Optionally, in order to improve the user's vehicle experience, in an embodiment provided by the present application, the method can be specifically referred to as Figure 2 , Figure 2 The flowchart of the second state acquisition method of the shared vehicle provided by the embodiment of the present application is shown, that is, after S120, the method further includes:
[0093] S180, in response to the vehicle reservation request sent by the user terminal in all the attention vehicles, determining the corresponding attention vehicle in all the attention vehicles;
[0094] S190, changing the state of the corresponding attention vehicle to occupied, and binding the corresponding attention vehicle with the user terminal, and releasing the association between the user terminal and other attention vehicles.
[0095] That is, after the user sends a vehicle attention request to the server through the terminal, the server acquires the state of the attention vehicle corresponding to the vehicle attention request in real time, and if the server receives a vehicle reservation request sent by the user through the terminal among all the attention vehicles, it is determined that the user wants to reserve an attention vehicle, that is, the user will complete the trip by the vehicle corresponding to the vehicle reservation request, so the server binds the attention vehicle corresponding to the vehicle reservation request with the user terminal, and the state is changed to occupied.
[0096] Further, after the vehicle is reserved by the user, the state of the vehicle will change to occupied and cannot be changed by other users, so the user can necessarily use the attention vehicle bound with the user terminal and will not use other attention vehicles, so the server will also release the association between the user terminal and other attention vehicles when the attention vehicle is bound with the user terminal and the state is changed to occupied.
[0097] Therefore, the embodiment of the application enables the user to send a vehicle reservation request to the server to reserve an attention vehicle according to needs, thereby ensuring normal use of the vehicle by the user. Moreover, since the server releases the association between the user terminal and other attention vehicles after completing the vehicle reservation, that is, binding the vehicle with the user terminal, the server will not send corresponding information to the user terminal after the state of any attention vehicle is changed, thereby reducing the disturbance of the server to the user.
[0098] In addition, it should be noted that although the flowchart shown in Figure 2 S180 and S190 are executed after S120, in fact, S180 and S190 can be executed at any step after S120, and the embodiment of the application does not limit the relationship between S180 and S190 and any step in S130 to S170.
[0099] Optionally, to improve the efficiency of vehicle management and improve the current situation that vehicles are in short supply in parking points, in an embodiment provided by the application, the specific implementation can refer to Figure 3 , Figure 3 a flowchart of a third state acquisition method of a shared vehicle provided by the embodiment of the application is shown, that is, the method further comprises:
[0100] S200, acquiring information of the attention vehicle in a plurality of parking points in a determined range, wherein the information of the attention vehicle comprises the number of attention vehicles and the attention time period of the attention vehicle;
[0101] S210, performing priority sorting on the plurality of parking points according to the number of vehicles that can be accommodated in each parking point, the number of currently parked vehicles, the number of attention vehicles and the attention time period;
[0102] S220, sending a dispatching notification instruction to the terminal of the staff to make the staff dispatch the vehicle to the parking spot with high priority.
[0103] That is, the server determines the vehicle usage of the plurality of parking spots and performs priority ranking according to the number of vehicles that can be accommodated, the number of currently parked vehicles, the number of concerned vehicles and the concerned time period.
[0104] It should be noted that the information of the concerned vehicles of the parking spot indicates the number of concerned vehicles in the parking spot in the concerned time period corresponding to the vehicle concerned request sent by the terminal for the vehicle in the parking spot.
[0105] It should also be noted that, Figure 4 The execution order of each step provided by the embodiments of the present application is only used for better illustration, and the embodiments of the present application actually do not limit the sequence of any one of S200 to S220 and S110 to S170, and S200 to S220 can be executed before any one of S110 to S170.
[0106] It can be understood that the higher the priority is, the higher the vehicle utilization rate of the parking spot is, and thus the parking spot is more likely to be in short supply.
[0107] Therefore, after the server determines the priority ranking of each parking spot, the server sends a dispatching notification instruction to the terminal of the staff to make the terminal of the staff display the vehicle dispatching task of the parking spot with high priority when displaying the vehicle dispatching task, and thus the staff dispatches the vehicle to the parking spot with high priority.
[0108] Therefore, the embodiments of the present application make the staff dispatch the vehicle to the parking spot with high priority, so that the vehicle can be placed in the parking spot with high vehicle utilization rate in priority, thereby improving the situation of vehicle shortage in the parking spot.
[0109] It can be understood that the way of determining the priority of the parking spot according to the number of vehicles that can be accommodated, the number of currently parked vehicles, the number of concerned vehicles and the concerned time period can be set according to actual conditions. For example, in one possible way, the calculation method of the priority of the parking spot is as follows: calculating the product of the number of vehicles that can be accommodated and a first preset weight to obtain a first value; calculating the product of the number of currently parked vehicles and a second preset weight to obtain a second value; calculating the product of the number of concerned vehicles and a third preset weight to obtain a third value; and obtaining the priority of the parking spot according to the sum of the first value, the second value and the third value.
[0110] In one possible way, the process of determining the priority of the parking spot according to the number of vehicles that can be accommodated, the number of currently parked vehicles, the number of concerned vehicles and the concerned time period, that is, S230, includes:
[0111] based on a preset formula, a parking point value corresponding to each of the parking points is calculated according to the number of vehicles that can be accommodated by each of the parking points, the current number of parked vehicles, the number of the concerned vehicles and the concerned time period, wherein the preset formula comprises:
[0112]
[0113] a+b=1,a>b
[0114] In the formula, P represents the parking point value corresponding to the parking point, y represents the current number of parked vehicles, x represents the number of vehicles that can be accommodated, represents the vacancy ratio of the parking point, a represents the first weight, z represents the number of concerned vehicles in the concerned time period of the parking point, represents the vehicle demand ratio of the parking point, and b represents the second weight.
[0115] The plurality of parking points are prioritized according to the parking point values corresponding to the parking points, wherein the greater the parking point value corresponding to the parking point is, the higher the priority of the parking point is.
[0116] Optionally, to improve the user's vehicle experience, in an embodiment provided by the present application, after S140, the method further comprises:
[0117] When the current time is before the concerned time period or within the concerned time period, if the state of each of the concerned vehicles is updated to the occupied, an initial parking point corresponding to each of the concerned vehicles is determined, wherein the initial parking point includes a parking point in which a concerned vehicle corresponding to a vehicle concerned request is located when the server responds to the vehicle concerned request.
[0118] If there is a vehicle with the state of non-occupied in the initial parking point, non-occupied vehicle prompt information is generated and sent to the user terminal.
[0119] That is, when the server determines that all the concerned vehicles associated with the user terminal cannot be used by the user of the user terminal because they are used by others or are out of order, the initial parking point corresponding to each of the concerned vehicles is determined. The initial parking point includes a parking point in which a concerned vehicle corresponding to a vehicle concerned request is located when the user sends the vehicle concerned request to the server.
[0120] Then, the server searches whether there is a vehicle that can be used by the user in the initial parking point, i.e. a vehicle with the state of non-occupied. If there is, the user is informed that there is another available vehicle in the initial parking point, i.e. non-occupied vehicle prompt information is sent to the user terminal.
[0121] Therefore, when all the vehicles that the user wants to use cannot be used, i.e., the state of all the concerned vehicles is changed from non-occupied to occupied, the server will push other available vehicles to the user in a humanized manner, thereby improving the user's experience of using the vehicle. Moreover, since the other available vehicles are located at the initial parking point, the pushed vehicles can meet the user's demand.
[0122] It can be understood that if there is no vehicle in the initial parking point that can be used by the user, the server can perform steps set according to actual conditions. For example, in one possible manner, the server can send a no-vehicle-available prompt information to the user terminal to inform the user that there is no vehicle in the initial parking point that is in the non-occupied state.
[0123] In one embodiment provided by the present application, if there is no vehicle in the initial parking point that can be used by the user, i.e., when the current time is before or within the concerned time period, if the state of each of the concerned vehicles is updated to the occupied state, after determining the initial parking point corresponding to each of the concerned vehicles, the method further comprises:
[0124] If there is no vehicle in the initial parking point that is in the non-occupied state, searching for each peripheral parking point within a preset range around the initial parking point.
[0125] If there is the peripheral parking point and there is the vehicle in the peripheral parking point that is in the non-occupied state, generating a non-occupied vehicle prompt information and sending the non-occupied vehicle prompt information to the user terminal.
[0126] That is, if there is no vehicle in the initial parking point that can be used by the user, the server searches for the peripheral parking point around the initial parking point. If there is the vehicle in the peripheral parking point that is in the non-occupied state, the server informs the user that the vehicle in the peripheral parking point that is in the non-occupied state can be used, i.e., the non-occupied vehicle prompt information is sent to the user terminal.
[0127] It can be understood that since the peripheral parking point is within the preset range of the initial parking point, the vehicle in the peripheral parking point can also meet the user's demand of using the vehicle.
[0128] Therefore, even if there is no vehicle in the initial parking point that is in the non-occupied state, the server can also push the vehicle in the peripheral parking point that is in the non-occupied state to the user terminal, so that the user can also complete the trip through the vehicle in the peripheral parking point, thereby improving the user experience.
[0129] Optionally, if there is also no vehicle in the peripheral parking point that is in the non-occupied state, the server can send a no-vehicle-available prompt information to the user terminal, so that the user knows that there is no vehicle in the peripheral parking point that is in the non-occupied state.
[0130] Corresponding to the shared vehicle state acquisition method provided by the embodiment of the application, the embodiment of the application further provides a shared vehicle state acquisition device. Figure 4 Figure 4 The structure schematic diagram of the shared vehicle state acquisition device provided by the embodiment of the application is shown, the shared vehicle state acquisition device 300 provided by the embodiment of the application is applied to a server, the state of the shared vehicle includes occupation and non-occupation, and the device comprises:
[0131] A response module 310 is configured to respond to a vehicle attention request sent by a user terminal, determine an attention time period and at least one attention vehicle corresponding to the vehicle attention request, and the state of the attention vehicle is non-occupation.
[0132] An association module 320 is configured to associate the user terminal with all the attention vehicles.
[0133] An acquisition module 330 is configured to acquire a current time and the state of each of the attention vehicles.
[0134] An update time acquisition module 340 is configured to acquire a state update time when the state of the attention vehicle is updated to the occupation.
[0135] A first release module 350 is configured to release the association between the user terminal and the attention vehicle when the current time reaches the attention time period if the state update time is before the attention time period, and send a vehicle state update prompt information to the user terminal.
[0136] A second release module 360 is configured to release the association between the user terminal and the attention vehicle if the current time and the state update time are both within the attention time period, and send the vehicle state update prompt information to the user terminal.
[0137] A third release module 370 is configured to release the association between the user terminal and each of the attention vehicles when the current time is after the attention time period.
[0138] Optionally, in an embodiment provided by the embodiment of the application, the device further comprises:
[0139] A reservation module is configured to respond to a vehicle reservation request sent by the user terminal in all the attention vehicles, and determine a corresponding attention vehicle in all the attention vehicles.
[0140] A binding module is configured to change the state of the corresponding attention vehicle to occupation, bind the corresponding attention vehicle with the user terminal, and release the association between the user terminal and other attention vehicles.
[0141] Optionally, in an embodiment provided by the present application, the occupancy includes any one of vehicle unlocking, vehicle failure, vehicle low power and vehicle reservation.
[0142] Optionally, in an embodiment provided by the present application, the device further comprises:
[0143] an information acquisition module, configured to acquire information of the concerned vehicles at a plurality of parking spots within a determined range, wherein the information of the concerned vehicles includes a number of the concerned vehicles and a concerned time period of the concerned vehicles;
[0144] a sorting module, configured to sort priorities of the plurality of parking spots according to a number of vehicles that can be accommodated by each of the parking spots, a number of currently parked vehicles, the number of the concerned vehicles and the concerned time period of the concerned vehicles;
[0145] an instruction sending module, configured to send a dispatching notification instruction to a terminal of a staff to make the staff dispatch vehicles to the parking spots with high priorities.
[0146] Further, in an embodiment provided by the present application, the sorting module comprises:
[0147] a calculation sub-module, configured to calculate a parking spot value corresponding to each of the parking spots based on a preset formula according to the number of vehicles that can be accommodated by each of the parking spots, the number of currently parked vehicles, the number of the concerned vehicles and the concerned time period of the concerned vehicles, wherein the preset formula comprises:
[0148]
[0149] a+b=1,a>b
[0150] In the formula, P represents the parking spot value corresponding to the parking spot, y represents the number of currently parked vehicles, x represents the number of vehicles that can be accommodated, represents an empty ratio of the parking spot, a represents a first weight, z represents the number of the concerned vehicles in the concerned time period of the parking spot, represents a vehicle demand ratio of the parking spot, and b represents a second weight.
[0151] a priority sorting sub-module, configured to sort priorities of the plurality of parking spots by using the parking spot value corresponding to each of the parking spots, wherein the greater the parking spot value corresponding to the parking spot is, the higher the priority of the parking spot is.
[0152] Further, in an embodiment provided by the present application, the device further comprises:
[0153] An initial parking point determination module is configured to determine an initial parking point corresponding to each of the concerned vehicles if the state of each of the concerned vehicles is updated to the occupancy when the current time is before the concerned time period or within the concerned time period, wherein the initial parking point comprises a parking point where the concerned vehicle corresponding to the vehicle concerned request is located when the server responds to the vehicle concerned request;
[0154] A first information sending module is configured to generate non-occupancy vehicle prompt information if there is a vehicle with the state of non-occupancy in the initial parking point, and send the non-occupancy vehicle prompt information to the user terminal.
[0155] Further, in an embodiment provided by the embodiment of the present application, the device further comprises:
[0156] A peripheral parking point searching module is configured to search for each peripheral parking point within a preset range around the initial parking point if there is no vehicle with the state of non-occupancy in the initial parking point.
[0157] A second information sending module is configured to generate non-occupancy vehicle prompt information if there is the peripheral parking point and there is a vehicle with the state of non-occupancy in the peripheral parking point, and send the non-occupancy vehicle prompt information to the user terminal.
[0158] The state acquisition device of the shared vehicle provided by the embodiment of the present application can realize Figure 1 The processes of the shared vehicle state acquisition method in the disclosed method embodiment are the same as the technical effects, and thus will not be described here.
[0159] The embodiment of the present application further provides a computer device, which comprises a memory and a processor, the memory stores a computer program, and the computer program executes the shared vehicle state acquisition method as Figure 1 the shared vehicle state acquisition method disclosed in the corresponding method embodiment.
[0160] The embodiment of the present application further provides a computer readable storage medium, which stores a computer program, and the computer program executes the shared vehicle state acquisition method as Figure 1 the shared vehicle state acquisition method disclosed in the corresponding method embodiment.
[0161] In several embodiments provided in the present application, it should be understood that the disclosed apparatus and method can also be implemented by other means. The apparatus embodiments described above are only illustrative, for example, the flowcharts and structural diagrams in the drawings show the possible implementation architecture, function and operation of the apparatus, method and computer program product according to the embodiments of the present application. In this regard, each block in the flowchart or block diagram can represent a module, a program segment or a part of code, which contains one or more executable instructions for implementing the specified logic function. It should also be noted that in alternative implementation, the functions noted in the blocks can also occur in different order from that noted in the drawings. For example, two consecutive blocks can actually be executed substantially in parallel, and they can also be executed in reverse order, depending on the functions involved. It should also be noted that each block in the structural diagram and / or flowchart, and the combination of blocks in the structural diagram and / or flowchart, can be implemented by a dedicated hardware-based system that performs the specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.
[0162] In addition, each functional module or unit in the embodiments of the present application can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.
[0163] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer readable storage medium. Based on this understanding, the technical solutions of the present application essentially or the part of the prior art that contributes to the technical solutions or part of the technical solutions can be embodied in the form of a software product, which is stored in a storage medium and includes a number of instructions for causing a computer device (which can be a smart phone, a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in the embodiments of the present application. The aforementioned storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, and various media that can store program codes.
[0164] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto, any person skilled in the art can easily think of changes or replacements within the technical range disclosed in the present application, which should be covered within the protection scope of the present application.
Claims
1. A method for obtaining the status of a shared vehicle, characterized in that, Applied to a server, the shared vehicle's status includes occupied and unoccupied, where occupied includes any one of vehicle unlocking, vehicle malfunction, low battery, and vehicle being reserved; the method includes: In response to a vehicle attention request sent by a user terminal, determine the attention period corresponding to the vehicle attention request and at least one vehicle to be paid attention to, wherein the status of the vehicle to be paid attention to is unoccupied; Associate the user terminal with all the vehicles of interest; Get the current time and the status of each of the vehicles under interest; When the status of the vehicle under surveillance is updated to "occupied", the time of the status update is obtained; If the status update time is before the attention period, then when the current time reaches the attention period, the association between the user terminal and the vehicle being monitored is terminated, and a vehicle status update notification message is sent to the user terminal. If both the current time and the status update time are within the attention period, the association between the user terminal and the vehicle being watched is terminated, and a vehicle status update notification is sent to the user terminal. When the current time is after the period of interest, the association between the user terminal and each of the vehicles under interest is terminated. After associating the user terminal with all the vehicles of interest, the method further includes: In response to a vehicle reservation request sent by the user terminal among all the vehicles being monitored, the corresponding vehicle being monitored is determined from among all the vehicles being monitored. The status of the corresponding vehicle being monitored is changed to occupied, and the corresponding vehicle being monitored is bound to the user terminal, while the user terminal is unlinked from other vehicles being monitored.
2. The method for obtaining the status of shared vehicles according to claim 1, characterized in that, The method further includes: Obtain information about the vehicles of interest from multiple parking spots within a defined range, wherein the information about the vehicles of interest includes the number of vehicles of interest and the time period during which the vehicles of interest are viewed; The parking spots are prioritized based on the number of vehicles each parking spot can accommodate, the number of currently parked vehicles, the number of vehicles of interest, and the time period of interest. Send dispatch notification instructions to staff terminals so that staff can prioritize dispatching vehicles to high-priority parking spots.
3. The method for obtaining the status of shared vehicles according to claim 2, characterized in that, The process of prioritizing the multiple parking spots based on their capacity, current number of parked vehicles, number of vehicles of interest, and time period of interest includes: Based on a preset formula, the parking point value corresponding to each parking point is calculated according to the number of vehicles that can be accommodated at each parking point, the number of currently parked vehicles, the number of vehicles of interest, and the interest period. The preset formula includes: In the formula, P This indicates the numerical value of the parking spot corresponding to the parking spot. y This indicates the number of vehicles currently parked. x This indicates the number of vehicles that can be accommodated. This indicates the vacancy rate of the parking spots. a Indicates the first weight. z This indicates the number of vehicles under observation at the parking spot during the specified observation period. This indicates the vehicle demand ratio at the parking spot. b Indicates the second weight; The parking points are prioritized using the parking point value corresponding to each parking point, wherein the larger the parking point value, the higher the priority of the parking point.
4. The method for obtaining the status of shared vehicles according to claim 1, characterized in that, After obtaining the time of the status update when the status of the vehicle under observation is updated to "occupied", the method further includes: When the current time is before or within the attention period, if the status of each vehicle being monitored is updated to occupied, then the initial parking point corresponding to each vehicle being monitored is determined. The initial parking point includes the parking point where the vehicle being monitored is located when the server responds to the vehicle monitoring request. If there is a vehicle in the initial parking spot that is in an unoccupied state, an unoccupied vehicle notification message is generated and sent to the user terminal.
5. The method for obtaining the status of shared vehicles according to claim 4, characterized in that, When the current time is before or within the attention period, if the status of each vehicle under attention is updated to "occupied", after determining the initial parking point corresponding to each vehicle under attention, the method further includes: If there is no vehicle in the unoccupied state at the initial parking point, then search for each surrounding parking point within a preset range around the initial parking point; If the surrounding parking spots exist, and there are vehicles in the surrounding parking spots whose status is "unoccupied", then an "unoccupied vehicle" notification message is generated and sent to the user terminal.
6. A shared vehicle status acquisition device, characterized in that, Applied to a server, the shared vehicle's status includes occupied and unoccupied, with occupied including any one of vehicle unlocked, vehicle malfunction, vehicle low battery, and vehicle reserved; the device includes: The response module is used to respond to a vehicle attention request sent by a user terminal, determine the attention period corresponding to the vehicle attention request and at least one vehicle to be paid attention to, wherein the status of the vehicle to be paid attention to is unoccupied. The association module is used to associate the user terminal with all the vehicles of interest; The acquisition module is used to acquire the current time and the status of each of the vehicles under interest; The update time acquisition module is used to acquire the time of the status update when the status of the vehicle under interest is updated to "occupied". The first undo module is used to, if the status update time is before the attention period, undo the association between the user terminal and the vehicle in question when the current time reaches the attention period, and send a vehicle status update prompt message to the user terminal. The second unlinking module is used to unlink the user terminal from the vehicle in question if both the current time and the time of the status update are within the period of interest, and to send the vehicle status update notification information to the user terminal. The third deactivation module is used to deactivate the association between the user terminal and each of the vehicles under interest when the current time has passed the period of interest. The device further includes: The reservation module is used to respond to a vehicle reservation request sent by the user terminal among all the vehicles being reserved, and to determine the corresponding vehicle being reserved among all the vehicles being reserved. The binding module is used to change the status of the corresponding vehicle to occupied, bind the corresponding vehicle to the user terminal, and unlink the user terminal from other vehicles.
7. A computer device, characterized in that, The system includes a memory and a processor, wherein the memory stores a computer program that, when executed on the processor, performs the shared vehicle status acquisition method as described in any one of claims 1-5.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed on a processor, performs the shared vehicle status acquisition method as described in any one of claims 1-5.
Citation Information
Patent Citations
Shared vehicle booking method based on internet of things
CN108280526A
Vehicle automatic scheduling control method and device
CN112330956A