Disclosure of Invention
In view of the foregoing, it is desirable to provide an accurate method, apparatus, computer device, storage medium, and computer program product for presenting a shared bicycle return to the vehicle.
In a first aspect, the application provides a method for prompting returning of a sharing bicycle. The method comprises the following steps:
uploading a vehicle returning judging request to a background server, wherein the vehicle returning judging request carries a vehicle positioning position;
Broadcasting a networking request when receiving a vehicle returning failure message, wherein the vehicle returning failure message is generated when the background server judges that the vehicle is not in a vehicle returning station according to the vehicle positioning position;
When receiving the position information fed back by the vehicles in the different vehicle returning stations in response to the broadcast networking request, acquiring the distance between the vehicles in the different vehicle returning stations;
selecting the nearest returning station point as a target returning station point according to the distances between the nearest returning station point and vehicles in different returning stations;
And correcting the position of the vehicle according to the position of the vehicle in the target vehicle returning station, uploading the position to the background server, and sending a vehicle returning prompt message to the user terminal by the background server.
In one embodiment, the method for prompting the return of the shared bicycle further includes:
when the distances between the vehicles in the stations and the vehicles in different stations are all larger than the preset distance upper limit value, pushing a movement prompting message to the user terminal, wherein the movement prompting message is used for prompting that the vehicles need to be moved by the preset distance;
And when the distance between the vehicle and the vehicle in the different vehicle returning station is not greater than the preset distance upper limit value, entering the step of selecting the nearest vehicle returning station as the target vehicle returning station according to the distance between the vehicle in the different vehicle returning station.
In one embodiment, the selecting the nearest return station point as the target return station point according to the distances from the vehicles in the different return stations includes:
Collecting the distances between the vehicles in each returning station and the current vehicle to obtain a distance set of a plurality of different returning stations;
a weighted averaging mode based on the input operation time is adopted for the distance set of the single vehicle returning station to obtain a distance average value corresponding to each vehicle returning station;
and selecting the nearest returning station point as the target returning station point based on the distance average value.
In one embodiment, the method for prompting the return of the shared bicycle further includes:
When receiving a vehicle returning failure message, pushing a Bluetooth spike positioning request;
When Bluetooth spike positioning data are received, correcting the position of the vehicle according to the Bluetooth spike positioning data;
And broadcasting a networking request when the Bluetooth spike positioning data is not received.
In one embodiment, when receiving the return failure message, broadcasting the networking request includes:
when receiving a vehicle returning failure message, synchronously acquiring networking broadcasting request power data issued by the background server;
And broadcasting a networking request according to the networking broadcasting request power data.
In one embodiment, the correcting the position of the own vehicle according to the position of the vehicle in the target vehicle returning station includes:
acquiring sensing data of a vehicle acceleration sensor;
determining the relative position relation with the vehicle in the target vehicle returning station through the sensing data;
and correcting the vehicle positioning position based on the relative position relation and the position of the vehicle in the target vehicle returning station.
In a second aspect, a device for prompting a shared bicycle to return, the device comprising:
the request uploading module is used for uploading a vehicle returning judging request to the background server, wherein the vehicle returning judging request carries the vehicle positioning position;
The broadcasting networking module is used for broadcasting a networking request when receiving a vehicle returning failure message, wherein the vehicle returning failure message is generated when the background server judges that the vehicle is not in a vehicle returning station according to the vehicle positioning position;
The distance acquisition module is used for acquiring the distance between the vehicle and the vehicle in the different vehicle returning stations when receiving the position information fed back by the vehicle in the different vehicle returning stations in response to the broadcast networking request;
the returning station point selection module is used for selecting the nearest returning station point as a target returning station point according to the distances between the returning station point and vehicles in different returning stations;
and the prompt module is used for correcting the position of the vehicle according to the position of the vehicle in the target vehicle returning station, uploading the position of the vehicle to the background server, and sending a vehicle returning prompt message to the user terminal by the background server.
In a third aspect, the present application also provides a computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
uploading a vehicle returning judging request to a background server, wherein the vehicle returning judging request carries a vehicle positioning position;
Broadcasting a networking request when receiving a vehicle returning failure message, wherein the vehicle returning failure message is generated when the background server judges that the vehicle is not in a vehicle returning station according to the vehicle positioning position;
When receiving the position information fed back by the vehicles in the different vehicle returning stations in response to the broadcast networking request, acquiring the distance between the vehicles in the different vehicle returning stations;
selecting the nearest returning station point as a target returning station point according to the distances between the nearest returning station point and vehicles in different returning stations;
And correcting the position of the vehicle according to the position of the vehicle in the target vehicle returning station, uploading the position to the background server, and sending a vehicle returning prompt message to the user terminal by the background server.
In a fourth aspect, the present application also provides a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
uploading a vehicle returning judging request to a background server, wherein the vehicle returning judging request carries a vehicle positioning position;
Broadcasting a networking request when receiving a vehicle returning failure message, wherein the vehicle returning failure message is generated when the background server judges that the vehicle is not in a vehicle returning station according to the vehicle positioning position;
When receiving the position information fed back by the vehicles in the different vehicle returning stations in response to the broadcast networking request, acquiring the distance between the vehicles in the different vehicle returning stations;
selecting the nearest returning station point as a target returning station point according to the distances between the nearest returning station point and vehicles in different returning stations;
And correcting the position of the vehicle according to the position of the vehicle in the target vehicle returning station, uploading the position to the background server, and sending a vehicle returning prompt message to the user terminal by the background server.
In a fifth aspect, the present application also provides a computer program product. The computer program product comprises a computer program which, when executed by a processor, implements the steps of:
uploading a vehicle returning judging request to a background server, wherein the vehicle returning judging request carries a vehicle positioning position;
Broadcasting a networking request when receiving a vehicle returning failure message, wherein the vehicle returning failure message is generated when the background server judges that the vehicle is not in a vehicle returning station according to the vehicle positioning position;
When receiving the position information fed back by the vehicles in the different vehicle returning stations in response to the broadcast networking request, acquiring the distance between the vehicles in the different vehicle returning stations;
selecting the nearest returning station point as a target returning station point according to the distances between the nearest returning station point and vehicles in different returning stations;
And correcting the position of the vehicle according to the position of the vehicle in the target vehicle returning station, uploading the position to the background server, and sending a vehicle returning prompt message to the user terminal by the background server.
The method for prompting the returning of the shared single vehicle comprises the steps of uploading a returning judging request to a background server, broadcasting a networking request when a returning failure message is received, acquiring distances from vehicles in different returning stations when position information fed back by the vehicles in different returning stations in response to the broadcasting networking request is received, selecting the nearest returning station as a target returning station according to the distances from the vehicles in the different returning stations, correcting the position of the vehicle according to the position of the vehicle in the target returning station, uploading the position to the background server, and issuing a returning prompting message to a user terminal by the background server. In the whole process, when the vehicle returning fails, the distance of the vehicle in the nearby vehicle returning station is acquired through broadcasting a networking request, then the nearest target vehicle returning station is screened out, the position of the vehicle is corrected based on the position of the vehicle in the target vehicle returning station, the accurate correction of the self-position can be realized, and the accurate sharing of the vehicle returning prompt can be realized on the premise of accurate position positioning.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
The method for prompting the return of the shared bicycle provided by the embodiment of the application can be applied to an application environment shown in fig. 1. Wherein the sharing bicycle 102 communicates with the background server 104 via a network. The data storage system may store data that the backend server 104 needs to process. The data storage system may be integrated on the server 104 or may be located on a cloud or other network server. The user operates on the side of the sharing bicycle 102, and clicks a bicycle returning button (the button can be a button on the sharing bicycle or a virtual button on a user terminal wirelessly connected with the sharing bicycle) when the user needs to return, at this time, the sharing bicycle 102 uploads a bicycle returning judging request to the background server 104, when a bicycle returning failure message is received, a networking request is broadcasted to the sharing bicycles of different surrounding bicycle returning stations, position information fed back by the vehicles in the different bicycle returning stations in response to the broadcasting networking request is received, distances between the vehicles in the different bicycle returning stations are obtained, the nearest bicycle returning station is selected as a target bicycle returning station according to the distances between the vehicles in the different bicycle returning stations, the position of the vehicle in the target bicycle returning station is corrected, the vehicle is uploaded to the background server, and a bicycle returning prompt message is issued to the user terminal by the background server. The background server 104 may be implemented as a stand-alone server or as a server cluster comprising a plurality of servers.
As shown in FIG. 2, the application provides a method for prompting the return of a shared bicycle. The method comprises the following steps:
And S100, uploading a vehicle returning judging request to a background server, wherein the vehicle returning judging request carries the vehicle positioning position.
When the user needs to return, the user can operate on the current vehicle or operate on the user terminal, and click a return button, at the moment, the user terminal is in close range communication with the shared bicycle, and the shared bicycle uploads a return judgment request to the background server to request the background server to judge whether the current vehicle can be returned normally, namely, whether the current user has parked the shared bicycle to a return station (area). The shared bicycle positioning position is carried in the bicycle returning judging request, namely the positioning position of the vehicle based on the self positioning function/tool is carried.
And 200, broadcasting a networking request when receiving a vehicle returning failure message, wherein the vehicle returning failure message is generated when the background server judges that the vehicle is not in a vehicle returning station according to the vehicle positioning position.
The background server extracts the positioning position of the shared bicycle from the bicycle returning judging request after receiving the bicycle returning judging request, judges whether the shared bicycle is parked to a preset bicycle returning area (a bicycle returning station point) or not based on the positioning position, if so, issues a bicycle returning success message, and if not, issues a bicycle returning failure message. In practical application, the user may get in danger and click the car returning button when the user does not arrive at the car returning station, or the car returning station is not marked clearly and cannot be determined, or the positioning position is inaccurate due to abnormal positioning function of the vehicle, and finally the address uploaded to the background server is inaccurate and the car returning fails. On the shared bicycle side, when receiving a return failure message, the shared bicycle will broadcast a networking request to request networking with other vehicles (other shared bicycles) parked around, which may specifically be vehicles at a plurality of different return stations. The networking request is a request for requesting to form a local area network with other vehicles parked around, the networking request can be a networking request of various types of close-range communication, such as a Bluetooth networking request, a radio frequency networking request, a near field communication networking request and the like, and a specific networking request communication mode can be selected based on actual application conditions (mainly considering distance factors).
And S300, when receiving the position information fed back by the vehicles in the different vehicle returning stations in response to the broadcast networking request, acquiring the distance between the vehicles in the different vehicle returning stations.
There may be a plurality of different stations around the current vehicle, in which a plurality of sharing bicycles, collectively referred to as neighboring vehicles, are respectively parked, and these neighboring vehicles establish a communication network with the current vehicle after receiving the networking request, i.e., these neighboring vehicles may perform data transmission with the current vehicle. At this time, the adjacent vehicles feed back the self-locating positions to the current vehicle, and because the adjacent vehicles are vehicles which have normally been successfully returned to the vehicle, the locating functions of the adjacent vehicles are normally normal, so that the correction of the current vehicle locating positions by the aid of the adjacent vehicle positions can be considered. Specifically, the distance between the vehicle and the vehicle in the different vehicle returning stations is acquired first, and the distance detection can be obtained by detecting based on the Bluetooth networking ranging mode. Further, distances of vehicles in the same return station may be collected for subsequent further data processing.
S400, selecting the nearest returning station point as a target returning station point according to the distances between the nearest returning station point and vehicles in different returning stations.
According to the distances between the current vehicle and the vehicles in different vehicle returning stations, the distance between the current vehicle and each vehicle returning station is further determined, and the vehicle returning station closest to the current vehicle is selected as the target vehicle returning station. Further, for the same return station, the distance from the return station can be determined by taking an average value. Taking the returning station point A as an example, assuming that the parked vehicle comprises a shared bicycle A1, a shared bicycle A2, a shared bicycle A3 and a shared bicycle A4, the distances between the parked vehicle and the current vehicle are d1, d2, d3 and d4 respectively, calculating the average value of the distances of d1, d2, d3 and d4 to obtain the distance between the parked vehicle and the returning station point A, calculating the distance between the parked vehicle and the returning station point B, the changing station point C and the like based on the same mode, and selecting the nearest returning station point as the target returning station point. In practical application, taking a certain sharing bicycle as an example, determining that the distance between the current vehicle and the A return station is 2 meters according to the distance between the current vehicle and the vehicle in the A return station, and selecting the A return station as a target return station if the distance between the current vehicle and the B return station is 18 meters according to the distance between the current vehicle and the vehicle in the B return station.
S500, correcting the position of the vehicle according to the position of the vehicle in the target vehicle returning station, uploading the position to a background server, and sending a vehicle returning prompt message to the user terminal by the background server.
As already mentioned above, the vehicles in the station for changing vehicles are generally shared vehicles that are successful in returning and have a high probability of normal positioning function, and therefore, the own vehicle position of the current vehicle can be corrected based on these shared vehicles. Specifically, a single vehicle may be arbitrarily selected from the destination return station as the destination vehicle, and the own vehicle position may be corrected based on the destination vehicle position based on the relative positional relationship between the own vehicle and the destination vehicle and the distance parameter to the destination vehicle acquired previously, to obtain the corrected current vehicle position. The current vehicle uploads the corrected current vehicle position to a background server, at this time, the background server obtains the accurate current vehicle position, and the background server can issue a vehicle returning prompt message to the user terminal, wherein the prompt message can carry the corrected current vehicle position and navigation information generated based on the current vehicle position and reaching a target vehicle returning point, for example, 3 meters in front, for example, 15 degrees in the upper left corner, 5 meters in front and the like, so as to accurately prompt the user to return the vehicle to the vehicle returning station, and bring good experience to the user.
The method for prompting the sharing of the single vehicle to return to the bus comprises the steps of uploading a returning judging request to a background server, broadcasting a networking request when a returning failure message is received, obtaining distances between vehicles in different returning stations when position information fed back by the vehicles in different returning stations in response to the broadcasting networking request is received, selecting the nearest returning station as a target returning station according to the distances between the vehicles in the different returning stations, correcting the position of the vehicle according to the position of the vehicle in the target returning station, uploading the corrected vehicle to the background server, and transmitting a returning prompting message to a user terminal by the background server. In the whole process, when the vehicle returning fails, the distance of the vehicle in the nearby vehicle returning station is acquired through broadcasting a networking request, then the nearest target vehicle returning station is screened out, the position of the vehicle is corrected based on the position of the vehicle in the target vehicle returning station, the accurate correction of the self-position can be realized, and the accurate sharing of the vehicle returning prompt can be realized on the premise of accurate position positioning.
In one embodiment, the method for prompting the return of the shared bicycle further includes:
When the distance between the vehicle and the vehicle in the different vehicle returning stations is not greater than the preset distance upper limit value, the step of selecting the nearest vehicle returning station as the target vehicle returning station according to the distance between the vehicle in the different vehicle returning stations is entered.
The preset distance threshold value is used for representing the maximum distance value of the allowable offset when the upper limit value of the distance is preset, and on the basis of exceeding the distance, accurate vehicle returning prompt service is not provided, so that a user needs to be prompted to move the vehicle a certain distance so as to be closer to any one vehicle returning station point. Specifically, the preset distance upper limit value may be 20 meters. In practical application, when the distance between the current vehicle and the vehicle in the different vehicle-returning stations is greater than 20 meters, the current vehicle pushes a movement prompt message to the user terminal to prompt the user to retry the movement of the vehicle by a certain distance, for example, retry the movement by 20 meters, and when the distance between the current vehicle and the vehicle in the different vehicle-returning stations is not greater than 20 meters, the next step is carried out to select the nearest vehicle-returning station as the target vehicle-returning station according to the distance between the current vehicle and the vehicle in the different vehicle-returning stations.
As shown in fig. 3, in one embodiment, S400 includes:
S420, collecting the distances between the vehicles in each returning station and the current vehicle to obtain a distance set of a plurality of different returning stations;
S440, aiming at a distance set of a single station, adopting a weighted averaging mode based on the input operation time to obtain a distance average value corresponding to each station;
s460, selecting the nearest return station point as the target return station point based on the distance average value.
And respectively collecting the distances between the vehicle and the current vehicle according to the return stops to which the vehicle belongs, so as to obtain distance sets of a plurality of different return stops. The method comprises the steps of calculating the distance average value corresponding to each returning station point of the current vehicle by adopting a weighting averaging mode based on confidence coefficient for each distance set, wherein in the weighting averaging process, the weighting is generated based on the time of operation, namely, the longer the time of operation is, the smaller the corresponding weighting is, the shorter the time of operation is, the larger the corresponding weighting is, the specific time of operation can be counted in month units, and the year units can also be counted. The data of the specific operation time of the vehicle can be fed back to the current vehicle together when the vehicle feeds back the position information to the current vehicle, for example, the data is fed back that the vehicle is currently operated for 3 months, 6 months, 9 months, etc. And distributing corresponding weight coefficients based on the vehicle feedback input operation time of the current vehicle in different vehicle returning points, and obtaining the distance average value corresponding to each vehicle returning point by adopting a weighted averaging mode. In this embodiment, a weighted average method based on the input operation time is adopted to calculate the sum distance average value corresponding to each vehicle-changing station, and the influence of different input operation times on the vehicle distance positioning accuracy is fully considered, so that a more accurate distance average value corresponding to each vehicle-changing station can be obtained.
In one embodiment, the method for prompting the return of the shared bicycle further includes:
when receiving the failure message of returning to the vehicle, pushing a Bluetooth spike positioning request, when receiving the Bluetooth spike positioning data, correcting the position of the vehicle according to the Bluetooth spike positioning data, and when not receiving the Bluetooth spike positioning data, broadcasting a networking request.
When the current vehicle receives the vehicle returning failure message, as the current vehicle is near the vehicle returning station, a Bluetooth spike used for assisting in accurate positioning may exist around the vehicle, at this time, the current vehicle may push the Bluetooth spike positioning request in an attempt mode, if the Bluetooth spike exists around, the auxiliary accurate positioning can be realized through the Bluetooth spike, at this time, the Bluetooth spike positioning data is received, the position of the vehicle is corrected according to the Bluetooth spike positioning data, when the Bluetooth spike positioning data is not received, the situation that the Bluetooth spike exists around is indicated, the current vehicle cannot realize the auxiliary accurate positioning based on the Bluetooth spike, at this time, the networking request is broadcasted, and the positioning of the vehicle is realized through the networking auxiliary positioning mode of the adjacent vehicle.
As shown in fig. 4, in one embodiment, S200 includes:
S220, synchronously acquiring networking broadcast request power data issued by a background server when receiving a vehicle returning failure message;
S240, broadcasting the networking request according to the networking broadcasting request power data.
In this embodiment, when the current vehicle receives the failure message of returning to the vehicle, the current vehicle also synchronously receives the networking broadcast request power data issued by the background server, the networking broadcast request power data directly affects (controls) the radius of the current vehicle broadcast networking request, when the networking broadcast request power data represents larger power, the coverage area of the networking request is larger, at this time, the current vehicle can receive the position information fed back by more adjacent vehicles, more diversified selections can be made, and when the networking broadcast request power data represents smaller power, the coverage area of the networking request is smaller. The specific networking broadcast request power data may be determined based on a maximum distance between adjacent return station points in the shared bicycle operation networking, where the maximum distance between adjacent return station points is determined based on an actual operation plan, and may be, for example, 20 meters, 50 meters, and the like.
In one embodiment, correcting the position of the own vehicle according to the position of the vehicle in the target return station includes:
The method comprises the steps of acquiring sensing data of a vehicle acceleration sensor, determining the relative position relation between the vehicle acceleration sensor and a vehicle in a target vehicle returning station through the sensing data, and correcting the vehicle positioning position based on the relative position relation and the position of the vehicle in the target vehicle returning station.
The sensing data of the vehicle acceleration sensor refers to a sensor of the acceleration sensor carried by the sharing bicycle, and the current movement state of the sharing bicycle, including movement direction, movement speed and the like, can be perceived based on the sensing data. The relative motion state of the shared bicycle relative to the vehicle in the target returning station can be detected on the basis of sensing the current motion state of the shared bicycle, and then the relative position relation between the current vehicle and the vehicle in the target returning station is determined. Since the vehicle in the target returning station is a normal vehicle and the positioning function is normal in general, the positioning position of the current vehicle can be considered to be corrected based on the positioning position of the vehicle in the target returning station, and the specific correction is performed based on the obtained relative position relationship and the position of the vehicle in the target returning station, so that the accurate positioning position of the current vehicle can be obtained.
Further, acquiring the sensing data of the vehicle acceleration sensor includes acquiring sensing data of a six-axis acceleration sensor of the vehicle. In the embodiment, the sensor of the six-axis acceleration sensor of the vehicle is obtained to sense the motion state of the shared bicycle, so that the motion state of the shared bicycle can be detected and sensed more accurately, and the subsequent more accurate correction of the positioning position of the vehicle is supported.
It should be understood that, although the steps in the flowcharts described above are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described above may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily sequential, and may be performed in turn or alternately with at least some of the other steps or stages.
As shown in fig. 5, the present application further provides a device for prompting a sharing bicycle to return, where the device includes:
the request uploading module 100 is configured to upload a vehicle returning determination request to the background server, where the vehicle returning determination request carries a vehicle positioning position;
the broadcast networking module 200 is configured to broadcast a networking request when receiving a vehicle returning failure message, where the vehicle returning failure message is generated when the background server determines that the vehicle is not in the vehicle returning station according to the vehicle positioning position;
the distance acquisition module 300 is configured to acquire distances between the vehicle in different vehicle returning stations and the vehicle in different vehicle returning stations when receiving the position information fed back by the vehicle response broadcast networking request in the different vehicle returning stations;
a returning station point selection module 400, configured to select a nearest returning station point as a target returning station point according to distances from vehicles in different returning stations;
The prompt module 500 is configured to correct the position of the vehicle according to the position of the vehicle in the target vehicle returning station, upload the corrected position of the vehicle to the background server, and send a vehicle returning prompt message to the user terminal from the background server.
The sharing single vehicle returning prompting device uploads a returning judging request to a background server, broadcasts a networking request when receiving a returning failure message, acquires distances from vehicles in different returning stations when receiving position information fed back by vehicles in different returning stations in response to the broadcasting networking request, selects the nearest returning station as a target returning station according to the distances from the vehicles in the different returning stations, corrects the position of the vehicle according to the position of the vehicle in the target returning station, uploads the corrected vehicle to the background server, and sends a returning prompting message to a user terminal by the background server. In the whole process, when the vehicle returning fails, the distance of the vehicle in the nearby vehicle returning station is acquired through broadcasting a networking request, then the nearest target vehicle returning station is screened out, the position of the vehicle is corrected based on the position of the vehicle in the target vehicle returning station, the accurate correction of the self-position can be realized, and the accurate sharing of the vehicle returning prompt can be realized on the premise of accurate position positioning.
In one embodiment, the stop-return point selection module 400 is further configured to push a movement prompting message to the user terminal when the distances between the stop-return point selection module and the vehicle in the different stop-return stations are all greater than the preset distance upper limit value, and the movement prompting message is used for prompting that the vehicle needs to move by the preset distance, and select the nearest stop-return point as the target stop-return point according to the distances between the stop-return points and the vehicle in the different stop-return stations when the distances between the stop-return points and the vehicle in the different stop-return stations are not greater than the preset distance upper limit value.
In one embodiment, the station point selection module 400 is further configured to gather distances between vehicles in each station point and a current vehicle to obtain a distance set of a plurality of different station points, perform weighted averaging on the distance set of a single station point based on the input operation time to obtain a distance average value corresponding to each station point, and select the nearest station point as the target station point based on the distance average value.
In one embodiment, the broadcast networking module 200 is further configured to push a bluetooth spike positioning request when a vehicle returning failure message is received, correct a position of a vehicle according to the bluetooth spike positioning data when the bluetooth spike positioning data is received, and broadcast the networking request when the bluetooth spike positioning data is not received.
In one embodiment, the broadcast networking module 200 is further configured to, when receiving the vehicle returning failure message, synchronously acquire networking broadcast request power data issued by the background server, and broadcast a networking request according to the networking broadcast request power data.
In one embodiment, the prompting module 500 is further configured to obtain sensing data of a vehicle acceleration sensor, determine a relative positional relationship with a vehicle in a target vehicle returning station according to the sensing data, and correct a vehicle positioning position based on the relative positional relationship and a position of the vehicle in the target vehicle returning station.
In one embodiment, a computer device is provided, which may be a terminal, and the internal structure of which may be as shown in fig. 6. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless mode can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. The computer program, when executed by the processor, implements a method for prompting return of a shared bicycle.
It will be appreciated by those skilled in the art that the structure shown in FIG. 6 is merely a block diagram of some of the structures associated with the present inventive arrangements and is not limiting of the computer device to which the present inventive arrangements may be applied, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In one embodiment, a computer device is provided comprising a memory and a processor, the memory having stored therein a computer program, the processor when executing the computer program performing the steps of:
Uploading a vehicle returning judging request to a background server, wherein the vehicle returning judging request carries the vehicle positioning position;
Broadcasting a networking request when receiving a vehicle returning failure message, wherein the vehicle returning failure message is generated when a background server judges that a vehicle is not in a vehicle returning station according to the vehicle positioning position;
When receiving the position information fed back by the vehicles in different vehicle returning stations in response to the broadcast networking request, acquiring the distance between the vehicles in different vehicle returning stations;
selecting the nearest returning station point as a target returning station point according to the distances between the nearest returning station point and vehicles in different returning stations;
And correcting the position of the vehicle according to the position of the vehicle in the target vehicle returning station, uploading the corrected position of the vehicle to a background server, and sending a vehicle returning prompt message to the user terminal by the background server.
In one embodiment, the processor when executing the computer program further performs the steps of:
When the distance between the vehicle and the vehicle in the different vehicle returning stations is not greater than the preset distance upper limit value, the step of selecting the nearest vehicle returning station as the target vehicle returning station according to the distance between the vehicle in the different vehicle returning stations is entered.
In one embodiment, the processor when executing the computer program further performs the steps of:
The method comprises the steps of collecting the distances between vehicles in each returning station and the current vehicle to obtain distance sets of a plurality of different returning stations, obtaining a distance average value corresponding to each returning station by adopting a weighted averaging mode based on the input operation time aiming at the distance set of a single returning station, and selecting the nearest returning station as a target returning station based on the distance average value.
In one embodiment, the processor when executing the computer program further performs the steps of:
when receiving the failure message of returning to the vehicle, pushing a Bluetooth spike positioning request, when receiving the Bluetooth spike positioning data, correcting the position of the vehicle according to the Bluetooth spike positioning data, and when not receiving the Bluetooth spike positioning data, broadcasting a networking request.
In one embodiment, the processor when executing the computer program further performs the steps of:
And synchronously acquiring networking broadcasting request power data issued by a background server when receiving the vehicle returning failure message, and broadcasting a networking request according to the networking broadcasting request power data.
In one embodiment, the processor when executing the computer program further performs the steps of:
The method comprises the steps of acquiring sensing data of a vehicle acceleration sensor, determining the relative position relation between the vehicle acceleration sensor and a vehicle in a target vehicle returning station through the sensing data, and correcting the vehicle positioning position based on the relative position relation and the position of the vehicle in the target vehicle returning station.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of:
Uploading a vehicle returning judging request to a background server, wherein the vehicle returning judging request carries the vehicle positioning position;
Broadcasting a networking request when receiving a vehicle returning failure message, wherein the vehicle returning failure message is generated when a background server judges that a vehicle is not in a vehicle returning station according to the vehicle positioning position;
When receiving the position information fed back by the vehicles in different vehicle returning stations in response to the broadcast networking request, acquiring the distance between the vehicles in different vehicle returning stations;
selecting the nearest returning station point as a target returning station point according to the distances between the nearest returning station point and vehicles in different returning stations;
And correcting the position of the vehicle according to the position of the vehicle in the target vehicle returning station, uploading the corrected position of the vehicle to a background server, and sending a vehicle returning prompt message to the user terminal by the background server.
In one embodiment, the computer program when executed by the processor further performs the steps of:
When the distance between the vehicle and the vehicle in the different vehicle returning stations is not greater than the preset distance upper limit value, the step of selecting the nearest vehicle returning station as the target vehicle returning station according to the distance between the vehicle in the different vehicle returning stations is entered.
In one embodiment, the computer program when executed by the processor further performs the steps of:
The method comprises the steps of collecting the distances between vehicles in each returning station and the current vehicle to obtain distance sets of a plurality of different returning stations, obtaining a distance average value corresponding to each returning station by adopting a weighted averaging mode based on the input operation time aiming at the distance set of a single returning station, and selecting the nearest returning station as a target returning station based on the distance average value.
In one embodiment, the computer program when executed by the processor further performs the steps of:
when receiving the failure message of returning to the vehicle, pushing a Bluetooth spike positioning request, when receiving the Bluetooth spike positioning data, correcting the position of the vehicle according to the Bluetooth spike positioning data, and when not receiving the Bluetooth spike positioning data, broadcasting a networking request.
In one embodiment, the computer program when executed by the processor further performs the steps of:
And synchronously acquiring networking broadcasting request power data issued by a background server when receiving the vehicle returning failure message, and broadcasting a networking request according to the networking broadcasting request power data.
In one embodiment, the computer program when executed by the processor further performs the steps of:
The method comprises the steps of acquiring sensing data of a vehicle acceleration sensor, determining the relative position relation between the vehicle acceleration sensor and a vehicle in a target vehicle returning station through the sensing data, and correcting the vehicle positioning position based on the relative position relation and the position of the vehicle in the target vehicle returning station.
In one embodiment, a computer program product is provided. Computer program product comprising a computer program which, when executed by a processor, realizes the steps of:
Uploading a vehicle returning judging request to a background server, wherein the vehicle returning judging request carries the vehicle positioning position;
Broadcasting a networking request when receiving a vehicle returning failure message, wherein the vehicle returning failure message is generated when a background server judges that a vehicle is not in a vehicle returning station according to the vehicle positioning position;
When receiving the position information fed back by the vehicles in different vehicle returning stations in response to the broadcast networking request, acquiring the distance between the vehicles in different vehicle returning stations;
selecting the nearest returning station point as a target returning station point according to the distances between the nearest returning station point and vehicles in different returning stations;
And correcting the position of the vehicle according to the position of the vehicle in the target vehicle returning station, uploading the corrected position of the vehicle to a background server, and sending a vehicle returning prompt message to the user terminal by the background server.
In one embodiment, the computer program when executed by the processor further performs the steps of:
When the distance between the vehicle and the vehicle in the different vehicle returning stations is not greater than the preset distance upper limit value, the step of selecting the nearest vehicle returning station as the target vehicle returning station according to the distance between the vehicle in the different vehicle returning stations is entered.
In one embodiment, the computer program when executed by the processor further performs the steps of:
The method comprises the steps of collecting the distances between vehicles in each returning station and the current vehicle to obtain distance sets of a plurality of different returning stations, obtaining a distance average value corresponding to each returning station by adopting a weighted averaging mode based on the input operation time aiming at the distance set of a single returning station, and selecting the nearest returning station as a target returning station based on the distance average value.
In one embodiment, the computer program when executed by the processor further performs the steps of:
when receiving the failure message of returning to the vehicle, pushing a Bluetooth spike positioning request, when receiving the Bluetooth spike positioning data, correcting the position of the vehicle according to the Bluetooth spike positioning data, and when not receiving the Bluetooth spike positioning data, broadcasting a networking request.
In one embodiment, the computer program when executed by the processor further performs the steps of:
And synchronously acquiring networking broadcasting request power data issued by a background server when receiving the vehicle returning failure message, and broadcasting a networking request according to the networking broadcasting request power data.
In one embodiment, the computer program when executed by the processor further performs the steps of:
The method comprises the steps of acquiring sensing data of a vehicle acceleration sensor, determining the relative position relation between the vehicle acceleration sensor and a vehicle in a target vehicle returning station through the sensing data, and correcting the vehicle positioning position based on the relative position relation and the position of the vehicle in the target vehicle returning station.
Those skilled in the art will appreciate that implementing all or part of the above-described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, or the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory. By way of illustration, and not limitation, RAM can be in various forms such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), etc.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The foregoing examples illustrate only a few embodiments of the application, which are described in detail and are not to be construed as limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of protection of the present application is to be determined by the appended claims.