Disclosure of Invention
The embodiment of the invention provides a method, a device and a system for managing parking spaces, which can fully and reasonably utilize a plurality of parking lot resources.
The embodiment of the invention provides a method for managing parking spaces, which comprises the following steps:
the parking cloud server receives the pre-occupation request from the terminal, pre-occupies the parking space of the first parking lot for the user through the first server corresponding to the pre-occupied first parking lot, and charges the user through the second server corresponding to the second parking lot registered by the user.
Optionally, the pre-occupying the parking space of the first parking lot for the user by the first server corresponding to the pre-occupied first parking lot includes:
the parking cloud server sends a parking space reservation request to the first server;
and the parking cloud server receives a parking space reservation response from the first server and returns a reservation response to the terminal.
Optionally, the charging the user through a second server corresponding to a second parking lot registered by the user includes:
the parking cloud server sends a charging request to the second server;
the parking cloud server receives a billing response from the second server.
Optionally, the method further includes:
and the parking cloud server receives the parking space reservation refusing response from the first server and returns the reservation refusing response to the terminal.
Optionally, the method comprises:
the parking cloud server receives the query request from the terminal, searches parking lot information corresponding to the position information near the target position in the query request in a second corresponding relation between the preset position information and the parking lot information, and sends one or more pieces of the searched parking lot information to the terminal.
Optionally, the method further includes:
the parking cloud server receives a parking space state updating request from the first server, and updates parking lot information of the first parking lot in a second corresponding relation between preset position information and parking lot information according to the parking space state updating request.
Optionally, the preemption request includes any one or more of the following: the user identification, the license plate number, the predicted approach time and the second parking lot identification registered by the user;
further comprising:
the parking cloud server stores a fourth corresponding relationship between the first parking lot identifier and the pre-occupied parking space identifier, and any one or more of the following relationships:
and the user identifier, the license plate number, the predicted approach time and the second parking lot identifier in the preemption request.
Optionally, the method further includes:
and the parking cloud server predicts a first preset time before the entrance time in the fourth corresponding relation and sends an expiration reminder to the terminal.
Optionally, the method further includes:
the parking cloud server receives a renewal request from the terminal, updates the expected approach time in the fourth corresponding relation according to the new expected approach time in the renewal request, and sends a charging updating request comprising the new expected approach time to the second server;
and the parking cloud server receives the charging updating response from the second server and sends a renewal response to the terminal.
Optionally, the method further includes:
the parking cloud server judges that the vehicle corresponding to the license plate number in the fourth corresponding relation still does not reach the first parking lot within a preset time after the pre-occupation starting time, or receives a pre-occupation canceling request from the terminal, and sends a fee deduction request to the second server;
the parking cloud server receives a fee deduction response from the second server and sends a parking space release request to the first server;
the parking cloud server receives a parking space release response from the first server.
The embodiment of the invention also provides a method for managing the parking space, which comprises the following steps:
the first server receives a parking space reservation request from the parking cloud server, reserves a parking space for a user, and sends a parking space reservation response to the parking cloud server.
Optionally, pre-occupying parking spaces for users comprises:
and the first server judges that the state of the parking place identifier pre-occupied by the user is idle, and changes the state of the pre-occupied parking place identifier into the pre-occupied state.
Optionally, the parking space reservation request includes a reserved parking space identifier;
the first server judges that the state of the parking space identifier pre-occupied by the user is idle, and the judging step comprises the following steps:
and the first server searches a state corresponding to the pre-occupied parking space identifier in a third corresponding relation between the preset parking space identifier and the state, and judges that the searched state is idle.
Optionally, the determining, by the first server, that the status of the parking space identifier pre-occupied by the user is idle includes:
the first server finds the parking space identifier corresponding to the idle state in a preset third corresponding relation between the parking space identifier and the state;
the changing the state of the pre-empted parking space identifier to be pre-empted comprises: changing the corresponding state of one searched parking space identifier into pre-occupation;
the parking space reservation response and the preemption response include one of the found parking space identifications.
Optionally, the third corresponding relationship further includes: a parking space type;
the found parking space identifier corresponding to the idle state comprises the following steps:
and finding out the parking space identifier corresponding to the vacant parking space type and state in the parking space reservation request.
Optionally, the method further includes:
and when the first server judges that the state of the pre-occupied parking space identifier is not idle, the first server sends a parking space reservation refusing response to the parking cloud server.
Optionally, the method further includes:
the first server sends a parking space state updating request to the parking cloud server when the parking lot information of the first parking lot changes.
Optionally, the method further includes:
and the first server changes the state of the pre-occupied parking space identifier into the pre-occupied state and then closes the parking space lock on the pre-occupied parking space.
Optionally, the method further includes:
the first server receives a parking space release request from the parking cloud server, changes the state of a parking space identifier in the parking space release request into an idle state, and sends a parking space release response to the parking cloud server.
Optionally, when the first server receives a charging request from the parking cloud server, the method further includes:
and the first server stores a first corresponding relation among the user identification or the license plate number, the pre-occupation request time, the estimated approach time and the rate in the charging request and returns a charging response to the parking cloud server.
Optionally, when the first server receives a charging update request including a new expected near field time from the parking cloud, the method further includes:
and the first server updates the estimated approach time in the first corresponding relation according to the new estimated approach time.
Optionally, when the first server receives the deduction request from the parking cloud server, the method further includes:
and the first server calculates the fee according to the user identification or the license plate number in the fee deduction request, deducts the fee and returns a fee deduction response to the parking cloud server.
The embodiment of the invention also provides a method for managing the parking space, which comprises the following steps:
the parking space server receives a pre-occupied vehicle entrance request from a first server corresponding to a first parking lot, stores entrance time and rate in the pre-occupied vehicle entrance request into a fourth corresponding relation corresponding to a license plate number reaching an entrance of the first parking lot, and sends a charging updating request comprising the entrance time to a second server;
and the parking cloud server receives the charging updating response from the second server and returns the pre-occupied vehicle driving response to the first server.
The embodiment of the invention also provides a method for managing the parking space, which comprises the following steps:
a first server corresponding to the first parking lot judges that the detected license plate number arriving at the entrance of the first parking lot preempts the parking space of the first parking lot, and sends a vehicle pre-emption entrance request to a parking cloud server;
and the first server receives the pre-occupied vehicle driving response from the parking cloud server and starts an entrance gate of the first parking lot.
Optionally, the method further includes:
the first server detects that the vehicle corresponding to the license plate number reaches the vicinity of the pre-occupied parking space, and opens a parking space lock on the pre-occupied parking space;
and the first server detects that the vehicle corresponding to the license plate number is parked into the pre-occupied parking space, and changes the state of the pre-occupied parking space identifier into the parked state.
Optionally, when the first server receives a charging update request including the entry time from the parking cloud server, the method further includes:
and the first server stores the entering time in the charging updating request to the first corresponding relation corresponding to the user identification in the charging updating request, and returns a charging updating response to the parking cloud server.
The embodiment of the invention also provides a method for managing the parking space, which comprises the following steps:
the parking cloud server receives a request for leaving the pre-occupied vehicle from the first server and sends a fee deduction request to the second server;
the parking cloud server receives the fee deduction response from the second server, deletes the fourth corresponding relation corresponding to the license plate number, and sends the pre-occupied vehicle driving-out response to the first server;
wherein the fourth correspondence is a correspondence between any one or more of the following first parking lot identifier and the pre-occupied parking space identifier:
and the user identifier, the license plate number, the predicted approach time and the second parking lot identifier in the preemption request.
The embodiment of the invention also provides a method for managing the parking space, which comprises the following steps:
the method comprises the steps that a first server corresponding to a first parking lot detects that a vehicle corresponding to a license plate number reaches an exit of the first parking lot, and sends a pre-occupied vehicle exit request to a parking cloud server;
the first server receives the pre-occupied vehicle exit response from the parking cloud server, starts an exit gate and changes the state of the pre-occupied parking space identifier into an idle state.
Optionally, the method further includes:
the first server receives a fee deduction request from the parking cloud server, calculates parking fees according to the exit time in the fee deduction request, deducts fees according to the calculated parking fees, and sends fee deduction responses to the parking cloud server.
The embodiment of the invention also provides a parking cloud server, which comprises:
the first receiving module is used for receiving a pre-occupation request from a terminal;
the first processing module is used for pre-occupying the parking space of the first parking lot for the user through a first server corresponding to the pre-occupied first parking lot and charging the user through a second server corresponding to a second parking lot registered by the user.
Optionally, the first receiving module is further configured to:
receiving a query request from the terminal;
the first processing module is further configured to:
and in a second corresponding relation between the preset position information and the parking lot information, searching the parking lot information corresponding to the position information near the target position in the query request, and sending one or more pieces of the searched parking lot information to the terminal.
Optionally, the preemption request includes any one or more of the following: the user identification, the license plate number, the predicted approach time and the second parking lot identification registered by the user;
further comprising:
a first storage module, configured to store a fourth correspondence relationship between any one or more of the following first parking lot identifiers and the pre-occupied parking space identifiers:
and the user identifier, the license plate number, the predicted approach time and the second parking lot identifier in the preemption request.
The embodiment of the present invention further provides a first server, including:
the second receiving module is used for receiving a parking space reservation request from the parking cloud server;
and the second processing module is used for pre-occupying the parking space for the user and sending a parking space reservation response to the parking cloud server.
Optionally, the second processing module is further configured to:
and changing the state of the pre-occupied parking space identifier into the pre-occupied state, and closing the parking space lock on the pre-occupied parking space.
Optionally, the second receiving module is further configured to:
receiving a charging request from a parking cloud server;
the second processing module is further configured to:
and storing a first corresponding relation among the user identification or the license plate number, the pre-occupation request time, the predicted approach time and the rate in the charging request, and returning a charging response to the parking cloud server.
Optionally, the second receiving module is further configured to:
receiving a billing update request from the parking cloud including a new projected near field time;
the second processing module is further configured to:
and updating the predicted approach time in the first corresponding relation according to the new predicted approach time.
Optionally, the second receiving module is further configured to:
receiving a fee deduction request from the parking cloud server;
the second processing module is further configured to:
and calculating the fee according to the user identification or the license plate number in the fee deduction request, deducting the fee, and returning a fee deduction response to the parking cloud server.
The embodiment of the invention also provides a parking cloud server, which comprises:
the third receiving module is used for receiving a pre-occupied vehicle driving request from a first server corresponding to the first parking lot; receiving a charging update response from the second server;
the third processing module is used for storing the entrance time and the rate in the pre-occupied vehicle entrance request into a fourth corresponding relation corresponding to the license plate number reaching the entrance of the first parking lot and sending a charging updating request comprising the entrance time to the second server; and returning a pre-occupied vehicle driving response to the first server.
The embodiment of the present invention further provides a first server, including:
the first judgment module is used for judging that the detected license plate number reaching the entrance of the first parking lot preempts the parking space of the first parking lot and sending a preempted vehicle entrance request to the parking cloud server;
and the fourth receiving module is used for receiving a pre-occupied vehicle driving-in response from the parking cloud server and starting an entrance gate of the first parking lot.
Optionally, the fourth receiving module is further configured to:
detecting that the vehicle corresponding to the license plate number reaches the vicinity of the pre-occupied parking space, and opening a parking space lock on the pre-occupied parking space; and detecting that the vehicle corresponding to the license plate number is parked into the pre-occupied parking space, and changing the state of the pre-occupied parking space identifier into the parked state.
Optionally, the fourth receiving module is further configured to:
and receiving a charging updating request including the entering time from the parking cloud server, storing the entering time in the charging updating request into a first corresponding relation corresponding to the user identification in the charging updating request, and returning a charging updating response to the parking cloud server.
The embodiment of the invention also provides a parking cloud server, which comprises:
the fifth receiving module is used for receiving a request for leaving the pre-occupied vehicle from the first server; receiving a deduction response from the second server;
the fifth processing module is used for sending a fee deduction request to the second server; deleting the fourth corresponding relation corresponding to the license plate number, and sending a pre-occupied vehicle driving-out response to the first server;
wherein the fourth correspondence is a correspondence between any one or more of the following first parking lot identifier and the pre-occupied parking space identifier:
and the user identifier, the license plate number, the predicted approach time and the second parking lot identifier in the preemption request.
The embodiment of the present invention further provides a first server, including:
the second judgment module is used for sending a pre-occupied vehicle exit request to the parking cloud server when detecting that the vehicle corresponding to the license plate number reaches the first parking lot exit;
and the sixth receiving module is used for receiving the pre-occupied vehicle exit response from the parking cloud server, starting the exit gate and changing the state of the pre-occupied parking space identifier into idle state.
Optionally, the sixth receiving module is further configured to:
receiving a fee deduction request from the parking cloud server, calculating parking fee according to the exit time in the fee deduction request, deducting fee according to the calculated parking fee, and sending a fee deduction response to the parking cloud server.
The embodiment of the invention also provides a system for managing the parking space, which comprises the following components:
the parking cloud server is used for receiving a pre-occupation request from a terminal and sending a parking space reservation request to the first server; receiving a parking space reservation response from the first server, and returning a preemption response to the terminal; sending a charging request to the second server; receiving a charging response from the second server;
the parking space reservation system comprises a first server, a parking cloud server and a parking space reservation server, wherein the first server is used for receiving a parking space reservation request from the parking cloud server, pre-occupying a parking space for a user and sending a parking space reservation response to the parking cloud server;
and the second server is used for receiving the charging request from the parking cloud server, storing a first corresponding relation among the user identification or the license plate number, the pre-occupation request time, the estimated approach time and the rate in the charging request, and returning a charging response to the parking cloud server.
Compared with the related art, the technical scheme of the embodiment of the invention comprises the following steps: the parking cloud server receives the pre-occupation request from the terminal, pre-occupies the parking space of the first parking lot for the user through the first server corresponding to the pre-occupied first parking lot, and charges the user through the second server corresponding to the second parking lot registered by the user. According to the scheme of the embodiment of the invention, the parking cloud server is used for realizing the pre-occupation of different parking lots, so that the reasonable utilization of a plurality of parking lot resources is realized.
Detailed Description
The following further description of the present invention, in order to facilitate understanding of those skilled in the art, is provided in conjunction with the accompanying drawings and is not intended to limit the scope of the present invention. In the present application, the embodiments and various aspects of the embodiments may be combined with each other without conflict.
Referring to fig. 1, an embodiment of the present invention provides a method for managing a parking space, including:
step 101, a parking cloud server receives a preemption request from a terminal, a parking space of a first parking lot is preempted for a user through a first server corresponding to the preempted first parking lot, and charging is started for the user through a second server corresponding to a second parking lot registered by the user.
In this step, the first server that corresponds through the first parking area of preoccupying includes for the parking stall of user preoccupying first parking area:
the parking cloud server sends a parking space reservation request to the first server; and the parking cloud server receives the parking space reservation response from the first server and returns the reservation response to the terminal.
The preemption request may include a preempted parking space identifier or may not include the preempted parking space identifier.
When the pre-occupation request comprises the pre-occupation parking space identifier, the parking space reservation request comprises the pre-occupation parking space identifier, and the parking space reservation response and the pre-occupation response do not comprise the pre-occupation parking space identifier.
When the pre-occupation request does not include the pre-occupation parking space identifier, the parking space reservation request does not include the pre-occupation parking space identifier, and the parking space reservation response and the pre-occupation response include the pre-occupation parking space identifier.
In this step, charging the user through the second server corresponding to the second parking lot registered by the user includes:
the parking cloud server sends a charging request to a second server; the parking cloud server receives a billing response from the second server.
In this step, the preemption request includes a user identifier, a first parking lot identifier to be preempted, and a predicted approach time, and may further include one or more of the following: pre-occupied parking space identification, parking space type and license plate number.
In this step, the parking space reservation request includes the user identifier, and may further include a pre-occupied parking space identifier, and/or a parking space type, and/or a license plate number.
Optionally, the method further includes:
and the parking cloud server receives the parking space reservation refusing response from the first server and returns the reservation refusing response to the terminal.
Optionally, the method comprises:
step 100, the parking cloud server receives an inquiry request from the terminal, searches parking lot information corresponding to position information near a target position in the inquiry request in a preset second corresponding relation between the position information and the parking lot information, and sends one or more of the searched parking lot information to the terminal.
Wherein, the query request includes: user identification and location information of the target location.
The location information may refer to longitude and latitude information or a building name.
The position information near the target position may refer to position information whose distance to the target position is less than or equal to a preset distance, and specifically, the distance to the target position may be calculated by using a technique known to those skilled in the art, which is not used to limit the protection scope of the present invention and is not described herein again.
Wherein the parking lot information includes any one or more of:
the parking lot identification, each parking space identification, the state of each parking space identification, the number of the idle parking spaces, the parking space distribution map, the rate, the position information of the parking lot, the operator of the parking lot and the like.
Optionally, the method further includes:
and the parking cloud server receives the parking space state updating request from the first server, and updates the parking lot information of the first parking lot in the preset second corresponding relation between the position information and the parking lot information according to the parking space state updating request.
Optionally, the method further includes:
the parking cloud server stores a fourth corresponding relation among any one or more of the following first parking lot identifications, the pre-occupied parking space identifications:
the user identification, license plate number, predicted approach time and second parking lot identification in the preemption request.
Optionally, the method further includes:
and the parking cloud server predicts a first preset time before the entrance time starts in the fourth corresponding relation and sends an expiration reminder to the terminal.
Optionally, the method further includes:
the parking cloud server receives the renewal request from the terminal, updates the expected approach time in the fourth corresponding relation according to the new expected approach time in the renewal request, and sends a charging updating request comprising the new expected approach time to the second server; and the parking cloud server receives the charging updating response from the second server and sends a renewal response to the terminal.
Wherein the renewal request includes the user identification and/or license plate number, the new estimated time of approach.
Optionally, the method further includes:
the parking cloud server judges that the vehicle corresponding to the license plate number in the fourth corresponding relation still does not reach the first parking lot within the preset time after the pre-occupation starting time, or receives a pre-occupation canceling request from the terminal, and sends a fee deduction request to the second server; the parking cloud server receives a fee deduction response from the second server and sends a parking space release request to the first server; the parking cloud server receives a parking space release response from the first server.
The parking cloud server can judge whether a vehicle corresponding to the pre-occupied license plate number reaches a first parking lot within the preset time after the expected entrance time according to whether a pre-occupied vehicle entrance request containing the pre-occupied license plate number or the user identification is received from the first server within the preset time after the expected entrance time, and if the pre-occupied vehicle entrance request is received, the pre-occupied vehicle reaches the first parking lot; and if the pre-occupied vehicle driving-in request is not received, indicating that the pre-occupied vehicle does not reach the first parking lot.
And the parking space release request comprises a parking space identifier to be released.
Referring to fig. 2, an embodiment of the present invention further provides a method for managing a parking space, including:
step 200, the first server receives a parking space reservation request from a parking cloud server.
Step 201, the first server preempts a parking space for the user and sends a parking space reservation response to the parking cloud server.
In this step, first server includes for the user occupies the parking stall:
the first server judges that the state of the parking place identifier pre-occupied by the user is idle, and changes the state of the pre-occupied parking place identifier into pre-occupied state.
Wherein, the first server judges that the state of the parking space identifier pre-occupied by the user is idle and comprises the following steps:
and the first server searches the state corresponding to the pre-occupied parking space identifier in a third corresponding relation between the preset parking space identifier and the state, and judges that the searched state is idle.
Or,
the first server finds the parking space identifier corresponding to the idle state in a preset third corresponding relation between the parking space identifier and the state; accordingly, the number of the first and second electrodes,
changing the state of the preempted parking space indicator to preempted includes: changing the corresponding state of one searched parking space identifier into pre-occupation; accordingly, the number of the first and second electrodes,
the parking space reservation response and the preemption response include one of the found parking space identifications.
Wherein, the third corresponding relationship may further include a parking space type, and accordingly,
the state corresponding to the preempted parking space identifier is searched for and comprises the following steps: searching for the state corresponding to the pre-occupied parking space identifier and the parking space type;
or,
the step of finding the parking space identifier corresponding to the idle state comprises the following steps: and finding out the parking space identifier corresponding to the vacant parking space type and state in the parking space reservation request.
Optionally, the method further includes:
and when the first server judges that the state of the pre-occupied parking space identifier is not idle, the first server sends a parking space reservation refusing response to the parking cloud server.
The preemption rejection response may include a rejection reason, which may be that the parking space is full, etc.
Wherein, the first server judges that the state of the parking space identifier of the pre-occupation is not idle and comprises:
and the first server searches a state corresponding to the pre-occupied parking space identifier in a third corresponding relation between the pre-set parking space identifier and the state, and judges that the searched state is not idle (for example, the searched state is occupied or parked).
Or,
and the first server cannot find the parking space identifier corresponding to the idle state in a preset third corresponding relation between the parking space identifier and the state.
Optionally, the method further comprises:
the first server sends a parking space state updating request to the parking cloud server when the parking lot information of the first parking lot changes.
The change of the parking lot information of the first parking lot may be a change of any one or more pieces of information in the parking lot information of the first parking lot, for example, a change of a state of a certain parking space identifier.
Wherein the parking space status update request includes updated parking lot information.
Optionally, the method further includes:
and the first server changes the state of the pre-occupied parking space identifier into the pre-occupied state and closes the parking space lock on the pre-occupied parking space.
Specifically, how to close the parking space lock on the pre-occupied parking space may be implemented by using a known technology of a person skilled in the art, and is not used for limiting the protection scope of the present invention, and details are not described herein.
Optionally, the method further includes:
the first server receives a parking space release request from the parking cloud server, changes the state of a parking space identifier in the parking space release request into an idle state, and sends a parking space release response to the parking cloud server.
Wherein, first server can also add 1 with the number in idle parking stall.
Optionally, when the first server receives a charging request from the parking cloud server, the method further includes:
and the first server stores the first corresponding relation among the user identification or the license plate number, the pre-occupation request time, the predicted approach time and the rate in the charging request and returns a charging response to the parking cloud server.
Optionally, when the first server receives a charging update request including a new expected near field time from the parking cloud, the method further includes:
and the first server updates the estimated approach time in the first corresponding relation according to the new estimated approach time.
Optionally, when the first server receives the fee deduction request from the parking cloud server, the method further includes:
and the first server calculates the fee according to the user identification or the license plate number in the fee deduction request, deducts the fee and returns fee deduction response to the parking cloud server.
The first server searches for the preemption request time corresponding to the license plate number in the deduction request in the first corresponding relationship, calculates the fee according to the searched preemption request time, and specifically how to calculate the fee can be realized by adopting a technology well known by a person skilled in the art, and is not used for limiting the protection scope of the present invention, and is not described herein again.
The specific manner of deducting fees can be realized by techniques known to those skilled in the art, and is not used to limit the protection scope of the present invention, and will not be described herein.
Referring to fig. 3, an embodiment of the present invention further provides a method for managing a parking space, including:
and step 300, the parking cloud server receives a pre-occupied vehicle driving-in request from the first server.
In this step, the preempting vehicle drive-in request includes: user identification, license plate number, driving time, rate, etc.
Step 301, the parking cloud server stores the entry time and the rate in the pre-occupied vehicle entry request into a fourth corresponding relation corresponding to the license plate number arriving at the first parking lot entrance, and sends a charging update request to the second server.
In this step, the charging update request includes: the user identifies or arrives at the first parking lot entrance's license plate number, and the time and rate of entry.
And step 302, the parking cloud server receives the charging updating response from the second server and returns the pre-occupied vehicle driving response to the first server.
Referring to fig. 4, an embodiment of the present invention further provides a method for managing a parking space, including:
step 400, the first server judges that the detected license plate number reaching the entrance of the first parking lot preempts the parking space of the first parking lot, and sends a vehicle pre-emption entrance request to the parking cloud server.
In this step, the first server may detect the number plate arriving at the entrance of the first parking lot by using an image recognition technology.
In this step, the first server may determine whether the detected license plate number arriving at the first parking lot entrance pre-occupies the parking space of the first parking lot by sending an inquiry request to the parking cloud server, the parking cloud server searches the first parking lot identifier corresponding to the detected license plate number in the fourth corresponding relationship, determines that the found first parking lot identifier is the same as the identifier of the arriving first parking lot, indicates pre-occupied, and determines that the found first parking lot identifier is different from the identifier of the arriving first parking lot, indicates non-pre-occupied.
The first server may also add the license plate number of the pre-occupied parking space in the fourth corresponding relationship. In this way, the first server may also determine whether the detected license plate number arriving at the entrance of the first parking lot has preempted the parking space of the first parking lot according to the fourth corresponding relationship.
Step 401, the first server receives a pre-occupied vehicle driving response from the parking cloud server, and starts an entrance gate of the first parking lot.
Optionally, the method further includes:
the first server detects that a vehicle corresponding to the license plate number reaches the vicinity of the pre-occupied parking space, and opens a parking space lock on the pre-occupied parking space; the first server detects that the vehicle corresponding to the license plate number is parked into the pre-occupied parking space, and changes the state of the pre-occupied parking space identification into the parked state.
The first server specifically detects whether the vehicle corresponding to the license plate number reaches the vicinity of the pre-occupied parking space, and specifically detects whether the vehicle corresponding to the license plate number is parked in the pre-occupied parking space by adopting a technology well known by a person skilled in the art, which is not used for limiting the protection scope of the present invention and is not described herein again.
Optionally, when the first server receives a charging update request including the entry time from the parking cloud server, the method further includes:
and the first server stores the entering time in the charging updating request to the first corresponding relation corresponding to the user identification in the charging updating request, and returns a charging updating response to the parking cloud server.
Referring to fig. 5, an embodiment of the present invention further provides a method for managing a parking space, including:
step 500, the parking cloud server receives the request for leaving the pre-occupied vehicle from the first server, and sends a fee deduction request to the second server.
Step 501, the parking cloud server receives a fee deduction response from the second server, deletes a fourth corresponding relation corresponding to the license plate number, and sends a pre-occupied vehicle driving-out response to the first server.
In this step, the fourth correspondence is a fourth correspondence between any one or more of the following first parking lot identifiers and the parking space identifier to be preempted:
user identification, license plate number, predicted approach time, second parking lot identification in preemption request
Referring to fig. 6, an embodiment of the present invention further provides a method for managing a parking space, including:
step 600, the first server detects that a vehicle corresponding to the license plate number reaches a first parking lot exit, and sends a pre-occupied vehicle exit request to the parking cloud server.
Step 601, the first server receives a pre-occupied vehicle exit response from the parking cloud server, starts an exit gate, and changes the state of the pre-occupied parking space identifier to be idle.
Optionally, the method further includes:
the first server receives a fee deduction request from the parking cloud server, calculates parking fees according to the exit time in the fee deduction request, deducts fees according to the calculated parking fees, and sends fee deduction responses to the parking cloud server.
The first server calculates the parking fee according to the departure time in the deduction request, the estimated entrance time in the fourth corresponding relationship, the departure time, and the fee rate, and may specifically use a method known by those skilled in the art to calculate the parking fee, which is not used to limit the protection scope of the present invention and will not be described herein again.
The specific manner of deducting fees can be implemented by using techniques known to those skilled in the art, and is not used to limit the protection scope of the present invention, and will not be described herein.
Referring to fig. 7, an embodiment of the present invention further provides a parking cloud server, including:
the first receiving module is used for receiving a pre-occupation request from a terminal;
the first processing module is used for pre-occupying the parking space of the first parking lot for the user through a first server corresponding to the pre-occupied first parking lot and charging the user through a second server corresponding to a second parking lot registered by the user.
In the parking cloud server of the present invention, the first receiving module is further configured to:
receiving a query request from a terminal;
the first processing module is further configured to:
and in a second corresponding relation between the preset position information and the parking lot information, searching the parking lot information corresponding to the position information near the target position in the query request, and sending one or more pieces of the searched parking lot information to the terminal.
In the parking cloud server of the present invention, the preemption request includes any one or more of the following: the user identification, the license plate number, the predicted approach time and the second parking lot identification registered by the user;
further comprising:
the first storage module is used for storing a fourth corresponding relation among any one or more of the following first parking lot identifications and the pre-occupied parking space identifications:
the user identification, license plate number, predicted approach time and second parking lot identification in the preemption request.
Referring to fig. 8, an embodiment of the present invention further provides a first server, including:
the second receiving module is used for receiving a parking space reservation request from the parking cloud server;
and the second processing module is used for pre-occupying the parking space for the user and sending a parking space reservation response to the parking cloud server.
In the first server of the embodiment of the present invention, the second processing module is further configured to:
and changing the state of the pre-occupied parking space identifier into the pre-occupied state, and closing the parking space lock on the pre-occupied parking space.
In the first server of the embodiment of the present invention, the second receiving module is further configured to:
receiving a charging request from a parking cloud server;
the second processing module is further configured to:
and storing a first corresponding relation among the user identification or the license plate number, the pre-occupation request time, the predicted approach time and the rate in the charging request, and returning a charging response to the parking cloud server.
In the first server of the embodiment of the present invention, the second receiving module is further configured to:
receiving a billing update request including a new projected near field time from the parking cloud;
the second processing module is further configured to:
and updating the predicted approach time in the first corresponding relation according to the new predicted approach time.
In the first server of the embodiment of the present invention, the second receiving module is further configured to:
receiving a fee deduction request from a parking cloud server;
the second processing module is further configured to:
and calculating the fee according to the user identification or the license plate number in the fee deduction request, deducting the fee, and returning fee deduction response to the parking cloud server.
Referring to fig. 9, an embodiment of the present invention further provides a parking cloud server, including:
the third receiving module is used for receiving a pre-occupied vehicle driving request from a first server corresponding to the first parking lot; receiving a charging update response from the second server;
the third processing module is used for storing the entrance time and the rate in the pre-occupied vehicle entrance request into a fourth corresponding relation corresponding to the license plate number reaching the entrance of the first parking lot and sending a charging updating request comprising the entrance time to the second server; and returning a pre-occupied vehicle driving response to the first server.
Referring to fig. 10, an embodiment of the present invention further provides a first server, including:
the first judgment module is used for judging that the detected license plate number reaching the entrance of the first parking lot preempts the parking space of the first parking lot and sending a preempted vehicle entrance request to the parking cloud server;
and the fourth receiving module is used for receiving a pre-occupied vehicle driving-in response from the parking cloud server and starting an entrance gate of the first parking lot.
In the first server of the embodiment of the present invention, the fourth receiving module is further configured to:
detecting that a vehicle corresponding to the license plate number reaches the vicinity of the pre-occupied parking space, and opening a parking space lock on the pre-occupied parking space; and detecting that the vehicle corresponding to the license plate number is parked into the pre-occupied parking space, and changing the state of the pre-occupied parking space identifier into the parked state.
In the first server of the embodiment of the present invention, the fourth receiving module is further configured to:
and receiving a charging updating request including the entrance time from the parking cloud server, storing the entrance time in the charging updating request into a first corresponding relation corresponding to the user identification in the charging updating request, and returning a charging updating response to the parking cloud server.
Referring to fig. 11, an embodiment of the present invention further provides a parking cloud server, including:
the fifth receiving module is used for receiving a request for leaving the pre-occupied vehicle from the first server; receiving a deduction response from the second server;
the fifth processing module is used for sending a fee deduction request to the second server; deleting the fourth corresponding relation corresponding to the license plate number, and sending a pre-occupied vehicle driving-out response to the first server;
the fourth corresponding relation is the corresponding relation among any one or more of the following first parking lot identifications, the pre-occupied parking space identifications:
the user identification, license plate number, predicted approach time and second parking lot identification in the preemption request.
Referring to fig. 12, an embodiment of the present invention further provides a first server, including:
the second judgment module is used for sending a pre-occupied vehicle exit request to the parking cloud server when detecting that the vehicle corresponding to the license plate number reaches the first parking lot exit;
and the sixth receiving module is used for receiving the pre-occupied vehicle exit response from the parking cloud server, starting the exit gate and changing the state of the pre-occupied parking space identifier into idle state.
In the first server of the embodiment of the present invention, the sixth receiving module is further configured to:
receiving a fee deduction request from the parking cloud server, calculating parking fee according to the exit time in the fee deduction request, deducting fee according to the calculated parking fee, and sending a fee deduction response to the parking cloud server.
Referring to fig. 13, an embodiment of the present invention further provides a system for managing parking spaces, including:
the parking cloud server is used for receiving the pre-occupation request from the terminal and sending a parking space reservation request to the first server; receiving a parking space reservation response from the first server, and returning a reservation response to the terminal; sending a charging request to a second server; receiving a charging response from the second server;
the parking space reservation system comprises a first server, a parking cloud server and a parking space reservation server, wherein the first server is used for receiving a parking space reservation request from the parking cloud server, pre-occupying a parking space for a user and sending a parking space reservation response to the parking cloud server;
and the second server is used for receiving the charging request from the parking cloud server, storing a first corresponding relation among the user identification or the license plate number, the pre-occupation request time, the estimated approach time and the rate in the charging request, and returning a charging response to the parking cloud server.
It should be noted that the above-mentioned embodiments are only for facilitating the understanding of those skilled in the art, and are not intended to limit the scope of the present invention, and any obvious substitutions, modifications, etc. made by those skilled in the art without departing from the inventive concept of the present invention are within the scope of the present invention.