The content of the invention
In order to solve the above-mentioned technical problem, the present invention provides a kind of shared bicycle method for monitoring state and system, for supervising
The state of the shared bicycle of control, strengthen operator to sharing the managerial ability of bicycle, reduce shared bicycle and damage, be stolen caused
Loss.
The technical solution adopted in the present invention is:A kind of shared bicycle method for monitoring state, set on the shared bicycle
There is electronic lock, comprise the following steps:
When the electronic lock locks, persistent movement time and the displacement of the electronic lock, the persistent movement are obtained
Time is the time that the electronic lock stops from setting in motion to motion;The displacement is the electronic lock from setting in motion
Variable quantity between the position that position stops to motion;
Judge according to the persistent movement time of the electronic lock and displacement and using shared bicycle state algorithm shared single
The state of car, wherein, the state includes normal condition, tilt state, carries state and abnormality;
When the shared bicycle is in abnormality, the electronic lock to background server send warning message and/or
Triggering alarm module is alarmed.
Further, the shared bicycle state algorithm includes:
If the persistent movement time and displacement are 0, shared bicycle is in normal condition;
If the persistent movement time is more than 0 and is less than or equal to the first preset value, and the displacement is 0, then shares single
Car is in tilt state;
If the persistent movement time is more than or equal to 0 and is less than or equal to the first preset value, and the displacement is more than or equal to 0
And be less than or equal to the second preset value, then share bicycle and be in carrying state;
If the persistent movement time is more than the first preset value or the displacement is more than the second preset value, bicycle is shared
In abnormality.
Further, the abnormality is included by damage state and stolen status;The shared bicycle state algorithm also wraps
Include:
When shared bicycle is in abnormality, the inclination angle of electronic lock is obtained;
If the inclination angle of electronic lock persistently changes, share bicycle and be in by damage state, otherwise share bicycle and be in stolen
State.
Further, methods described also includes:
User equipment is sent to electronic lock by bluetooth connection and reminds instruction, or request background server issues to electronic lock
Instruction is reminded, the electronic lock carries out warning reminding according to the prompting instruction triggers alarm module.
Further, methods described also includes:
The atmospheric pressure value of electronic lock local environment is obtained using baroceptor;
If the atmospheric pressure value is more than three preset values, judge that shared bicycle is located at liftoff position.
Another technical scheme of the present invention is:A kind of shared bicycle condition monitoring system, it is used to implementing described
A kind of shared bicycle method for monitoring state, the shared bicycle condition monitoring system includes
Detection module, for detecting the on off state and motion state of electronic lock;
Locating module, for obtaining the positional information of electronic lock, the output end of the detection module, the output of locating module
End is connected with the input of processing module;
Persistent movement time-obtaining module, the time stopped for calculating electronic lock from setting in motion to motion;
Displacement acquisition module, for the change calculating electronic lock from the position of setting in motion to the position of motion stopping
Change amount;The output end of the persistent movement time-obtaining module, the output end of displacement acquisition module are defeated with processing module
Enter end connection;
Processing module, for when the electronic lock locks, obtaining persistent movement time and the displacement of the electronic lock;
The state of shared bicycle is judged according to the persistent movement time of the electronic lock and displacement and using shared bicycle state algorithm,
Wherein, the state includes normal condition, tilt state, carries state and abnormality;When the shared bicycle is in abnormal
During state, the electronic lock sends warning message to background server and/or triggering alarm module is alarmed;
Background server, for entering row data communication with electronic lock;
Alarm module, for being alarmed, the output end of the processing module and the input of alarm module connect;
Mobile communication module, for entering row data communication, the mobile communication module and processing module with background server
Connection.
Further, the shared bicycle state algorithm includes:
If the persistent movement time and displacement are 0, shared bicycle is in normal condition;
If the persistent movement time is more than 0 and is less than or equal to the first preset value, and the displacement is 0, then shares single
Car is in tilt state;
If the persistent movement time is more than or equal to 0 and is less than or equal to the first preset value, and the displacement is more than or equal to 0
And be less than or equal to the second preset value, then share bicycle and be in carrying state;
If the persistent movement time is more than the first preset value or the displacement is more than the second preset value, bicycle is shared
In abnormality.
Further, the shared bicycle condition monitoring system also includes
Inclination angle obtaining unit, for obtaining the inclination angle of electronic lock;The output end of the inclination angle obtaining unit and place
Manage the input connection of module;
When shared bicycle is in abnormality, the inclination angle of electronic lock is obtained;If the inclination angle of electronic lock persistently changes,
Then share bicycle to be in by damage state, otherwise share bicycle and be in stolen status.
Further, the shared bicycle condition monitoring system also includes:
Bluetooth module, for being connected with user equipment, the bluetooth module is connected with processing module;
User equipment, for entering row data communication with electronic lock and background server;
User equipment is sent to electronic lock by bluetooth connection and reminds instruction, or request background server issues to electronic lock
Instruction is reminded, the electronic lock carries out warning reminding according to the prompting instruction triggers alarm module.
Further, the system also includes baroceptor, described for obtaining the atmospheric pressure value of electronic lock local environment
The output end of baroceptor and the input of processing module connect;If the atmospheric pressure value is more than three preset values, judge
Shared bicycle is located at liftoff position.
The beneficial effects of the invention are as follows:
The present invention realizes shared bicycle state-detection and monitoring according to the persistent movement time of electronic lock and displacement;Altogether
When enjoying bicycle and being in abnormality, send warning message to background server and/or triggering alarm module is alarmed, strengthen
Operator reduces shared bicycle and is damaged, is stolen caused loss to the managerial ability of shared bicycle.
Embodiment
It should be noted that in the case where not conflicting, the feature in embodiment and embodiment in the application can phase
Mutually combination.
A kind of shared bicycle condition monitoring system, with reference to figure 1, Fig. 1 is a kind of shared bicycle condition monitoring system in the present invention
One specific embodiment structured flowchart of system;Shared bicycle condition monitoring system includes electronic lock 101 and background server 102, altogether
Enjoy and electronic lock 101 is provided with bicycle, electronic lock 101 includes detection module 103, locating module 104, the acquisition of persistent movement time
Module 105, displacement acquisition module 106, processing module 107, mobile communication module 108 and alarm module 109;
Detection module 103, for detecting the on off state and motion state of electronic lock 101;
Locating module 104, for obtaining the positional information of electronic lock 101, the output end of detection module 103, locating module
Input of 104 output end with processing module 107 is connected;
Persistent movement time-obtaining module 105, the time stopped for calculating electronic lock 101 from setting in motion to motion;
Displacement acquisition module 106, for calculate electronic lock 101 from the position of setting in motion to motion stop position it
Between variable quantity;The output end of persistent movement time-obtaining module 105, the output end of displacement acquisition module 106 with processing
The input connection of module 107;
Processing module 107, for when electronic lock 101 locks, obtaining persistent movement time and the displacement of electronic lock 101
Amount;The shape of shared bicycle is judged according to the persistent movement time of electronic lock 101 and displacement and using shared bicycle state algorithm
State, wherein, state includes normal condition, tilt state, carries state and abnormality;When shared bicycle is in abnormality
When, electronic lock 101 sends warning message to background server 102 and/or triggering alarm module 109 is alarmed;
Background server 102, for entering row data communication with electronic lock 101;
Alarm module 109, for being alarmed, the output end of processing module 107 connects with the input of alarm module 109
Connect;
Mobile communication module 108, for entering row data communication, mobile communication module 108 and processing with background server 102
Module 102 connects.
Further, sharing bicycle state algorithm includes:
If persistent movement time and displacement are 0, shared bicycle is in normal condition;
If the persistent movement time is more than 0 and is less than or equal to the first preset value, and displacement is 0, then shares bicycle and be in and incline
State;
If the persistent movement time is more than or equal to 0 and is less than or equal to the first preset value, and displacement is more than or equal to 0 and is less than etc.
In the second preset value, then share bicycle and be in carrying state;
If the persistent movement time is more than the first preset value or displacement is more than the second preset value, shares bicycle and be in abnormal
State.
Further, with reference to figure 1, locating module 104 is mobile communication module or d GPS locating module, mobile communication module
For 2G modules, 3G module, 4G modules or 5G modules, it is preferable that the present invention is from 2G modules as mobile communication module;Utilize shifting
Dynamic communication connection between communication module and base station can carry out position positioning, i.e. architecture.Illustrate by taking mobile phone as an example
The general principles of architecture:Mobile phone measures the down-bound pilot frequency signal of different base station, obtains different base station descending pilot frequency
TOA (Time of Arrival, due in) or TDOA (Time Difference of Arrival, reaching time-difference), root
According to the measurement result and the coordinate of base station is combined, typically uses triangle formula algorithm for estimating, it becomes possible to calculate mobile phone
Position.Actual location-estimation algorithm needs to consider the situation of (3 or more than the 3) positioning in more base stations, therefore algorithm will complexity
A lot.In general, the number of base stations of moving table measuring is more, measurement accuracy is higher, and positioning performance improves more obvious.Therefore,
Because the base station distribution on ground is uneven, the precision of architecture is low;And d GPS locating module utilizes satellite fix, positioning precision
It is higher than architecture.Detection module includes being used to detect the contact switch detection module of electronic lock switch state and for detecting electricity
The inertial sensor of son lock motion state;Wherein, inertial sensor can use 3-axis acceleration sensor or gyroscope etc.;It is aobvious
So, contact switch detection module is preferable low-power consumption scheme, can also utilize infrared sensor detection electronic lock switch state.
In addition, alarm module can use sound and light alarm module, such as buzzer or audible-visual annunciator etc..
As the further improvement of shared bicycle condition monitoring system, shared bicycle condition monitoring system also includes
Inclination angle obtaining unit, for obtaining the inclination angle of electronic lock;The output end of inclination angle obtaining unit and processing mould
The input connection of block;
When shared bicycle is in abnormality, the inclination angle of electronic lock is obtained;If the inclination angle of electronic lock persistently changes,
Then share bicycle to be in by damage state, otherwise share bicycle and be in stolen status.
Specifically, inclination angle obtaining unit can be realized using obliquity sensor, in addition, obliquity sensor can also make
Replaced with acceleration transducer, gyroscope.
As the further improvement of shared bicycle condition monitoring system, with reference to figure 1, shared bicycle condition monitoring system also wraps
Include:
Bluetooth module 110, for being connected with user equipment 111, bluetooth module 110 is connected with processing module 111;
User equipment 111, for entering row data communication with electronic lock 101 and background server 102;
User equipment 111 by bluetooth connection to electronic lock 101 send remind instruction, or request background server 102 to
Electronic lock 101 issues prompting instruction, and electronic lock 101 carries out warning reminding according to prompting instruction triggers alarm module 109.
Specifically, user equipment includes bluetooth module and networking module, and electronic lock is real by bluetooth module with user equipment
Now communicate, user equipment is realized by networking module and background server and communicated, networking module can be mobile communication module or
Person's WiFi module;Specifically, user equipment can be mobile phone, tablet personal computer PAD or notebook computer.
As the further improvement of shared bicycle condition monitoring system, sharing bicycle condition monitoring system also includes water logging biography
Sensor, for detecting whether electronic lock is immersed in the water, the output end of water sensor and the input of processing module connect.More enter
One step, shared bicycle condition monitoring system also includes baroceptor, for obtaining the atmospheric pressure value of electronic lock local environment, gas
The output end of pressure sensor and the input of processing module connect, if atmospheric pressure value is more than three preset values, judge shared single
Parking stall is in liftoff position.
Based on said system, the present invention proposes a kind of shared bicycle method for monitoring state, and with reference to figure 2, Fig. 2 is the present invention
A kind of one specific embodiment method flow diagram of middle shared bicycle method for monitoring state, basic is contemplated that:
201st, electronic lock is locked;
202nd, when electronic lock locks, persistent movement time and the displacement of electronic lock are obtained, the persistent movement time is electricity
The time that son lock stops from setting in motion to motion;Displacement is the position that electronic lock stops from the position of setting in motion to motion
Between variable quantity;
203rd, judge according to the persistent movement time of electronic lock and displacement and using shared bicycle state algorithm shared single
The state of car, wherein, state includes normal condition, tilt state, carries state and abnormality;
204th, when shared bicycle is in abnormality, electronic lock sends warning message and/or triggering to background server
Alarm module is alarmed.
The shared bicycle method for monitoring state of the present invention, when electronic lock is in the lock state, according to continuing for electronic lock
Run duration and displacement realize shared bicycle state-detection and monitoring;When shared bicycle is in abnormality, electronics Lock Lee
Warning message is sent to background server and/or triggering alarm module is alarmed with mobile communication module, wherein, warning message
It is to be used to notify shared bicycle operator to share bicycle and be now in abnormality, it is necessary to handle the bicycle, operator connects
After receiving warning message prompting, it can find according to the positional information carried in warning message and send the shared of warning message
Bicycle ensures normal operation to eliminate the abnormality of shared bicycle;And alarm module such as buzzer, alarm module are alarmed
The attention of the crowd of environment where shared bicycle can be caused, drives and implements saboteur.Operator is strengthened to sharing bicycle
Managerial ability, reduce shared bicycle and damaged, be stolen caused loss.In addition, when electronic lock is in released state, show bicycle
Use by normal legal, be not belonging to the monitoring range of shared bicycle method for monitoring state.
Specifically, whether the on off state of the electronic lock according to detected by detection module judges electronic lock in locking shape
State;In the locked state, the motion state of electronic lock is detected using detection module, when electronic lock moves, starts to count
The time that electronic lock is kept in motion, stop timing during electronic lock stop motion, that is, obtain persistent movement time T;Detect mould
Inertial sensor such as 3-axis acceleration sensor in block detects that electronic lock has acceleration generation, then shows that electronic lock is in fortune
Dynamic state.In addition, when electronic lock moves, the position of electronic lock is obtained using locating module, while obtains motion
Position after stopping, the position after being stopped according to position during setting in motion and motion obtain the displacement S of electronic lock.
Further, sharing bicycle state algorithm includes:
If persistent movement time T and displacement S are 0, shared bicycle is in normal condition;
If persistent movement time T is more than 0 and is less than or equal to the first preset value T1, and displacement S is 0, then shares at bicycle
In tilt state;
If persistent movement time T is more than or equal to 0 and is less than or equal to the first preset value T1, and displacement S is more than or equal to 0 and small
In equal to the second preset value S1, then share bicycle and be in carrying state;
If persistent movement time T is more than the second preset value S1 more than the first preset value T1 or displacement S, share at bicycle
In abnormality.
Reference table 1, table 1 are shared bicycle state tables, and the first preset value T1 and the second preset value S1 can enter as needed
Row modification, for example, the first preset value T1 is arranged to 5 minutes, the second preset value S1 is arranged to 10 meters;Electronic lock is in the lock state
When lower, the state of shared bicycle is monitored;The first state, when the persistent movement time T and displacement of electronic lock are 0, table
Bright shared bicycle is normally put and without motion or displacement occurs, belongs to normal condition, without action.Second of state,
When the persistent movement time T of electronic lock is more than zero and is less than or equal to the first preset value T1, and the displacement S of electronic lock is zero,
Shared bicycle is in tilt state, it is necessary to manually go to safeguard, righting shares bicycle to avoid it from further being damaged;It is for example, real
Border in use, due to strong wind by shared bicycle blow down and it is caused shake in short-term, now it is default to be less than first by persistent movement time T
Value, can determine whether that bicycle is in tilt state;Now, without reporting background server, can be used by a user when next bicycle
When, using user equipment by tilt state information reporting background server.The third state, the persistent movement time T of electronic lock
More than or equal to zero and it is less than or equal to the first preset value T1, and the displacement S of electronic lock is more than zero and is less than or equal to the second preset value
During S1, shared bicycle is in carrying state;For example, during actual use, when the position that shared bicycle is put is inappropriate, such as environmental sanitation
Worker moves shared bicycle to be moved into other position, now, electronics to sweep the road surface of shared bicycle position
Slight vibrations occur for lock, i.e. the persistent movement time T of electronic lock is more than zero and is less than the first preset value T1, shares the position of bicycle
Shifting amount S is more than zero and is less than the second preset value S1, and there occurs short distance change in location, bicycle is in carrying state;Similarly, now
Background server need not be reported, is reported until next electronic lock is communicated with background server.4th kind of state, electronic lock
Persistent movement time T when being more than the displacement S of the first preset value T1 or electronic lock and being more than the second preset value S1, at shared bicycle
In abnormality, the mobile communication module of unlocking electronic lock immediately is now needed to report and/or control alarm to background server
Module is alarmed.To sum up, the present invention is realized to shared single by carrying out detection judgement to the state for sharing bicycle electronic lock
The classification of car state, anti-alarm false triggering is realized, avoid the alarm of waste of manpower, material resources to false triggering from handling;Again
Anti-theft security alarm function can be achieved.
Table 1
As the further improvement of shared bicycle state algorithm, abnormality is included by damage state and stolen status;It is shared
Bicycle state algorithm also includes:
When shared bicycle is in abnormality, the inclination angle Q of electronic lock is obtained by detection module;
If the inclination angle Q of electronic lock persistently changes, share bicycle and be in by damage state, otherwise share bicycle and be in stolen
State.
Specifically, when shared bicycle is in abnormality, inclination angle obtaining unit persistently obtains the inclination angle Q of electronic lock,
When the inclination angle Q of electronic lock persistently changes, show that the i.e. shared bicycle of electronic lock by artificial destruction, that is, is in by damage state;It is no
Then bicycle is in stolen status.Inclination angle obtaining unit can be realized using obliquity sensor, in addition, obliquity sensor also may be used
To be replaced using acceleration transducer, gyroscope.Obliquity sensor obtain inclination angle principle be:According to Newton's second law
Understand, speed can not be measured in an internal system, but its acceleration can be measured, known to initial velocity
In the case of, linear velocity can be drawn by the method for integration, and then its straight-line displacement is tried to achieve, therefore obliquity sensor is actually
A kind of acceleration transducer using principle of inertia.And when obliquity sensor remains static, it is only acted on by gravity,
Therefore the angle between its gravity vertical axis and sensitive axis of sensor is just required inclination angle.
As the further improvement of shared bicycle method for monitoring state, shared bicycle method for monitoring state also includes:
User equipment is sent to electronic lock by bluetooth connection and reminds instruction, or request background server issues to electronic lock
Instruction is reminded, electronic lock carries out warning reminding according to prompting instruction triggers alarm module.
Specifically, user sends the electronic lock for reminding instruction actively to trigger bicycle and opens alarm module progress warning reminding,
User is facilitated to learn the particular location of bicycle.Below by taking operation maintenance personnel as an example, implementation process is illustrated:Above-mentioned monitoring method
In, when bicycle is in abnormality, electronic lock sends warning message to background server, and now, the equipment of electronic lock is believed
Breath such as ID codes and positional information are uploaded to background server in the lump.When operation maintenance personnel carries out bicycle maintenance work, user is utilized
After equipment such as computer are connected with background server, the facility information and positional information of the bicycle for sending warning message, O&M are obtained
When personnel reach bicycle position according to the positional information uploaded;In two kinds of situation, the first, position has multi-section to be total to
Bicycle is enjoyed, operation maintenance personnel can not be quickly found out bicycle to be safeguarded, now, operation maintenance personnel can carry out bluetooth using user equipment
Broadcast, according to wait the facility information such as ID codes for safeguarding bicycle and after safeguarding that bicycle carries out bluetooth connection, you can single to maintenance is treated
Car, which is sent, reminds instruction, and bicycle to be safeguarded instructs according to the prompting received, control alarm module work, realizes position reminding,
Operation maintenance personnel is helped to be quickly found out vehicle to be safeguarded.Because the scope of Bluetooth communication only has more than ten meters to tens meters, therefore, if sharp
When can not realize warning reminding in aforementioned manners, show that operation maintenance personnel is distant from a distance from bicycle to be safeguarded, indigo plant can not be established
Tooth connects, and now, operation maintenance personnel can walk about near position and manually be searched, until establishing bluetooth with bicycle to be safeguarded
Warning reminding is realized in connection;Or realize warning reminding using the method for second of situation.Second of situation, operation maintenance personnel is with treating
Safeguard that the distance of bicycle is distant, now, operation maintenance personnel can be communicated using user equipment with background server, sent to remind and asked
Ask, background server issues prompting instruction to electronics according to the alert requests received by the mobile communication module of electronic lock
Lock, when the mobile communication module of electronic lock is in opening, it can be properly received and remind instruction to realize warning reminding;Otherwise,
Warning reminding can not be completed, now, still need to it is above-mentioned manually search by way of find bicycle.
As the further improvement of shared bicycle method for monitoring state, shared bicycle method for monitoring state also includes:
Judge whether electronic lock is immersed in the water using water sensor, if the determination result is YES, then share bicycle and be in water
Leaching state.
Water sensor is to be based on liquid conduction principle, detects whether to be converted into the presence of water, reusable sensor with electrode
Dry contact exports.Usually normally opened, i.e., the two poles of the earth are popped one's head in by air insulation when normal, are not turned on;Probe is by water under Riddled Condition
Conducting, sensor output dry contact signal, shows that water sensor is in water.Then utilize water sensor, it can be determined that altogether
Enjoy whether bicycle is in water logging state, in actual use, bicycle is possible to illegally be put into korneforos or marine, now utilizes water
Leaching sensor can help operator to obtain the state of bicycle, help operator to give shared bicycle for change.
As the further improvement of shared bicycle method for monitoring state, shared bicycle method for monitoring state also includes:
The atmospheric pressure value of electronic lock local environment is obtained using baroceptor;
If atmospheric pressure value is more than three preset values, judge that shared bicycle is located at liftoff position.
Baroceptor is mainly used to measure the pressure size of gas, and the baroceptor of one of atmospheric pressure range leads to
It is commonly used to measure the change of weather and utilizes air pressure and the corresponding relation of height above sea level to be used for the measurement of height above sea level.Therefore, it is sharp
The atmospheric pressure value of electronic lock local environment is obtained with baroceptor, the height above sea level of shared bicycle position can be judged indirectly
Degree;When acquired atmospheric pressure value is more than three preset values, show that shared bicycle is illegally moved to eminence, in actual use, one
A little users, which move bicycle, to be moved in high-rise building, is hindered operation maintenance personnel and is accurately searched out bicycle;Baroceptor is then utilized,
Operation maintenance personnel can be helped to know the height above sea level of bicycle position, can quickly search out bicycle.In addition, different regions
Such as highlands and plains region, the 3rd preset value is different, and bicycle is launched before entering use, can be according to the air pressure of location
Value carries out the adjustment of the 3rd preset value, more accurately to judge the height above sea level of bicycle position.
Above is the preferable implementation to the present invention is illustrated, but the invention is not limited to the implementation
Example, those skilled in the art can also make a variety of equivalent variations on the premise of without prejudice to spirit of the invention or replace
Change, these equivalent deformations or replacement are all contained in the application claim limited range.