The present invention will be further described in detail below with reference to the accompanying drawings, so that those skilled in the art can implement it with reference to the text of the description.
 Such as figure 1 with figure 2 As shown, the present invention provides a shared bicycle parking system based on infrared detection, including: a cloud server; an unlocking bar 1, which is set on the ground, the unlocking bar 1 is a cross-bar structure; and an infrared transmitter 3, which Is arranged on the unlocking bar, and the infrared transmitter is configured to transmit infrared signals to the front side of the unlocking bar in an upward oblique direction; an encoder 10, which is connected to the infrared transmitter for controlling The infrared transmitter sends a set of codes in the form of infrared signals; the code is a set of codes uniquely matched by each unlocking field, and the cloud server prestores the code of each unlocking field and each unlocking The actual address of the bar; the infrared receiver 5, which is set at the front position of the shared bicycle 4, is used to receive the infrared signal emitted by the infrared transmitter when the shared bicycle is at the front side of the unlocking bar; smart phone 9 , Which is used to send a lock request to a cloud server 7 or a drive request to the cloud server; a smart car lock, which is set on a shared bicycle; a controller 6, which is connected to the infrared receiver and The smart car lock 8 is used to receive infrared signals from the infrared receiver, and to recognize the code from the infrared signals; the controller is used to send to the cloud server through a wireless communication module The code; when the smart phone sends a lock request to the cloud server, the cloud server responds to the lock request according to the code and sends a lock signal to the controller, and the controller according to The lock signal and the code control the smart car to lock the car; when the smart phone sends a drive request to the cloud server, the cloud server responds to the drive request and sends the drive to the controller Signal, the controller controls the driving of the smart car lock according to the driving signal; wherein, a statistics module is built in the cloud server, and the statistics module is used to count the parking area where the unlocking bar is located at any time The number of shared bicycles is the number of codes received by the cloud server at any time; a dispatch module is built in the cloud server, and the dispatch module prestores the information of the parking area where each unlocking bar is located The upper limit number of shared bicycles. When the statistics module counts that the number of shared bicycles parked in the parking area where the unlocking bar is located at any time reaches the upper limit of shared bicycles, when the smartphone sends a lock request to the cloud server , The dispatch module returns to the smart phone information prompting to change the parking area, and sends to the smart phone the address of the unlock bar closest to the current unlock bar; a query module runs on the smart phone, and the query The module is used to deduct a query request from the cloud server, and the dispatch module returns to the smart phone the parking where the unlock bar is located within a certain range around the smart phone according to the query request and the GPS positioning data of the smart phone The distribution of shared bicycles in the area, the distribution of shared units is whether the number of shared bicycles in any parking area where the unlocking bar is located has reached the number of shared bicycles Limited number.
 Such as figure 1 As shown, the present invention can plan a parking area 2 in advance, and set the unlocking bar in the parking area so that the unlocking bar is placed along the length of the parking area, and the infrared transmitter continuously sends infrared signals outward. When the user needs to park, he needs to place the shared bicycle on the front side of the unlocking bar, so that the infrared receiver can receive the infrared signal. The controller obtains the code from the infrared signal and sends the code to the cloud server. The smart phone also sends a lock request to the cloud server. The cloud server responds to the lock request according to the code, sends a lock signal to the controller, and the controller controls the smart car lock to lock the car.
 When the user does not park the shared bicycle in front of the unlocking bar, the infrared receiver cannot receive the infrared signal due to the short communication distance of the infrared signal, which causes the controller not to send the code to the cloud server. The vehicle lock request is not fully responded, and the vehicle lock cannot be realized at this time. Once the car cannot be locked, the cloud server will continue to charge the user for this ride. This will force users to change their habits of sharing bicycles and park them in designated places. The invention helps to solve the problem of random parking of shared bicycles.
 When driving, the user reaches the parking area, directly scans the QR code with the smartphone, and submits the driving request to the cloud server. The cloud server directly responds to the driving request without judging the code. The cloud server returns the driving request to Controller, the controller drives directly. The user can use the shared bicycle.
 In addition, the present invention establishes a statistical module on the cloud server. The statistical module can determine the number of shared bicycles parked in the same parking area at any one time according to the number of codes received by the cloud server, thereby determining whether the parking area is required Expansion, or need to deploy staff to conduct on-site scheduling of shared bicycles. For example, the area of the parking area is only enough for 20 vehicles, but the number of shared bicycles currently counted has reached 25, and the cloud server can send a notification so that the staff can learn about the parking area in time and remove some of the vehicles.
 The scheduling module has pre-stored the upper limit of shared bicycles in the parking area where each unlocked bar is located. According to the real-time statistics of the statistics module, when the number of shared bicycles in the parking area where the current unlocked bar reaches the upper limit, it is no longer allowed Stop to avoid heavy congestion in local areas. At this time, if another user tries to park in the parking area where the current unlocking bar is located, the dispatch module will return to the smart phone a message prompting to change the parking area and send the actual location of the closest unlock bar to the smart phone. This way, on the one hand, it can avoid excessive congestion in some areas, and on the other hand, it can reduce the burden on the staff.
 In order to save user time, the user can directly query the vehicle congestion in each parking area, that is, when the user sends a query request through the smart phone, the dispatch module will return the smart phone according to the location of the smart phone (ie GPS positioning data) The distribution of vehicles in the parking area around a certain range. If the number of vehicles in a certain parking area has reached the upper limit, the user may not go to the parking area to park directly. The above certain range may be a circular area with a smart phone as the center and a radius of 500 meters.
 Preferably, in the shared bicycle parking system based on infrared detection, when the cloud server does not receive the code, the cloud server does not respond to the lock request.
 Preferably, in the shared bicycle parking system based on infrared detection, the height of the unlocking bar from the ground is 0.3-0.5 m. The unlocking bar does not need to be too high to reduce the occupation of public space.
 Preferably, in the shared bicycle parking system based on infrared detection, the code is a set of codes uniquely matched by each unlocking column, and the cloud server has a code for each unlocking column pre-stored; the smart When the mobile phone sends a lock request to the cloud server, it also sends the unique identity of the shared bicycle to the cloud server. When the cloud server responds to the lock request, it records the shared bicycle under the code. The unique identification of the bicycle.
 Each unlock column has a uniquely matched set of codes. The cloud server can record the shared bicycles parked near the unlocking bar to facilitate unified management of the shared bicycles.
 Preferably, in the shared bicycle parking system based on infrared detection, the unique identity of the shared bicycle is a two-dimensional code.
 Preferably, in the shared bicycle parking system based on infrared detection, a plurality of the infrared emitters are uniformly arranged along the length direction of the unlocking bar, and the plurality of infrared emitters are connected to an encoder.
 Each infrared transmitter sends the same set of codes, that is, the set of codes that uniquely matches the unlocking column. When the shared bicycle is parked along the unlocking bar, no matter where it is parked, it can communicate with one of the infrared transmitters and receive the code.
 Although the embodiments of the present invention have been disclosed above, they are not limited to the applications listed in the specification and embodiments. It can be applied to various fields suitable for the present invention. For those skilled in the art, it can be easily Therefore, without departing from the general concept defined by the claims and equivalent scope, the present invention is not limited to the specific details and the illustrations shown and described here.