CN108717734A - A kind of method of hardware electronic lock system - Google Patents
A kind of method of hardware electronic lock system Download PDFInfo
- Publication number
- CN108717734A CN108717734A CN201810429759.XA CN201810429759A CN108717734A CN 108717734 A CN108717734 A CN 108717734A CN 201810429759 A CN201810429759 A CN 201810429759A CN 108717734 A CN108717734 A CN 108717734A
- Authority
- CN
- China
- Prior art keywords
- information
- pressure information
- passed
- pressure
- transmitted
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Withdrawn
Links
Classifications
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07B—TICKET-ISSUING APPARATUS; FARE-REGISTERING APPARATUS; FRANKING APPARATUS
- G07B13/00—Taximeters
- G07B13/02—Details; Accessories
- G07B13/04—Details; Accessories for indicating fare or state of hire
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07C—TIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
- G07C9/00—Individual registration on entry or exit
- G07C9/00174—Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07F—COIN-FREED OR LIKE APPARATUS
- G07F17/00—Coin-freed apparatus for hiring articles; Coin-freed facilities or services
- G07F17/0042—Coin-freed apparatus for hiring articles; Coin-freed facilities or services for hiring of objects
- G07F17/0057—Coin-freed apparatus for hiring articles; Coin-freed facilities or services for hiring of objects for the hiring or rent of vehicles, e.g. cars, bicycles or wheelchairs
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Lock And Its Accessories (AREA)
Abstract
A kind of method of hardware electronic lock system, is provided with information transmission procedure and information recognition program in controller, and information storage program is provided in shared bicycle server;The pressure sensor includes in such a way that pressure information is transmitted to the shared bicycle server by controller:Information transmission procedure and information recognition program synchronize receive pressure sensor and acquire and transmit initial pressure information in the storage box come;The initial pressure information is put into message queue and obtains pressure information to be passed by data transmission module, and is transmitted to described information recognizer the pressure information to be passed obtained after message queue is put into;Compared with information recognition program executes the initial pressure information with pressure information to be passed;It effectively prevents in the prior art so that the pressure information being transmitted in server is abnormal, will obtain pressure information in the server from now on come the defect that can not but find out abnormal pressure information, make the correctness of inquiry not high when realizing inquiry.
Description
Technical field
The present invention relates to technical field of hardware, and in particular to a kind of method of hardware electronic lock system.
Background technology
As motor vehicles are increasing to the pollution of environment, serious traffic congestion phenomenon and vehicle exhaust pollute environment
Problem getting worse.For reduce environmental pollution, people go on a journey when can more and more select public transport such as bus,
Subway.With the development of shared vehicle, for such as shared bicycle of shared vehicle, shared electric vehicle, the shared motorcycle of people's selection
Or shared automobile is also more and more.Since shared bicycle has, easy to use, parking is convenient, expense is low, pollutes less and can Johnson & Johnson
The advantages of being healthy and strong, by the use of more and more people.Existing shared bicycle conveniently optionally can be parked in any region, indirectly
Ground makes shared bicycle become a resource flowed.People are when outgoing, when can usually forget band umbrella, and carry umbrella,
Umbrella weight and inconvenience, still, when encountering rainy day, outgoing people do not have umbrella to be then easy to drench, thus as stream
The shared bicycle of dynamic resource how and umbrella combination, become a topic of people's thinking.
Then just there are a kind of extraction system based on shared bicycle, including shared bicycle ontology, storage box, umbrella, control
Device 1, pressure sensor 2, electronic lock 3, mobile terminal 4 and shared bicycle server 5 processed.
The storage box is fixed on the shared bicycle ontology, and its outer surface is equipped with Quick Response Code.The umbrella setting
In the storage box;The controller 1 is embedded in the storage box, and is connect with the shared bicycle server 5.It is described
Pressure sensor 2 is arranged in the bottom of the storage box, and detects pressure information in storage box, and will by the controller 1
The pressure information is transmitted to the shared bicycle server 5.The electronic lock 3 be arranged on the storage box, and with the control
Device 1 processed connects, and receives the unlocking signal of the controller 1 and unlock.
After the mobile terminal 4 scans the Quick Response Code in storage box, the user information of mobile terminal 4 is transmitted to described total
Enjoy bicycle server 5;The shared bicycle server 5 receives the user information of the mobile terminal 4, and judges whether to be stored with this
The user information of mobile terminal 4:
If not storing, the user information of the mobile terminal 4 is stored, and sent to the electronic lock 3 by the controller 1
Unlocking signal;And the shared bicycle server 5 receives the pressure information in the storage box of the transmission of the pressure sensor 2, if
Pressure information changes, then the shared bicycle server 5 is sent to the mobile terminal 4 starts fee charging signal;Otherwise, no
It sends and starts fee charging signal;
If there is storage, unlocking signal is sent to the electronic lock 3 by the controller 1;And the shared bicycle server 5
Receive the pressure information in the storage box of the transmission of the pressure sensor 2, if pressure information changes, the shared bicycle
Server 5 further determines whether to receive the upper lock signal of the electronic lock 3, if receiving the upper lock signal of the electronic lock 3,
The signal for terminating charging is sent to the mobile terminal 4, to terminate the charging of mobile terminal 4, while deleting user's letter of storage
Breath;Otherwise, continue charging.
The charging mode of the shared bicycle server 5 is the computational costs in a manner of the members of 0 .5 per hour.
The electronic lock 3 is locked by way of manual locking, and the electronic lock 3 also leads to upper lock signal after locking
It crosses the controller 1 and is transmitted to the shared bicycle server 5.The shifting is not stored in the shared judgement of bicycle server 5
The user information of dynamic terminal 4, and after the shared bicycle server 5 judges that the pressure information in the storage box changes,
If the upper lock signal of electronic lock 3 has not been obtained in the shared bicycle server 5, with 0 .5 member computational costs per hour;If obtaining
The upper lock signal of electronic lock 3 is got, then with 0.2 yuan of computational costs per hour.
It is corresponding that object space method is taken based on shared bicycle, include the following steps:
Step S1:Obtain the user information of the mobile terminal of the Quick Response Code of scanning storage box outer surface.
Step S2:Judge whether the user information for being stored with the mobile terminal.
Step S3:If not storing, the user information of the mobile terminal is stored, and unlocking signal is sent to electronic lock,
And the pressure information in storage box is obtained, if pressure information changes, is sent to mobile terminal and start fee charging signal;It is no
Then, beginning fee charging signal is not sent.
In step s3, charging mode is the computational costs in a manner of 0.5 yuan per hour.
In step s3, the user information of the mobile terminal, and institute are not stored in the shared bicycle server judgement
It states after the pressure information that shared bicycle server judges in the storage box changes, if the shared bicycle server does not obtain
The upper lock signal of electronic lock is got, then with 0 .5 member computational costs per hour;If the upper lock signal of electronic lock is got, with every
0.2 yuan of computational costs of hour.
Step S4:If there is storage, unlocking signal is sent to electronic lock;And the pressure information in storage box is obtained, if pressure
Force information changes, then judges whether the upper lock signal for receiving electronic lock, if receiving the upper lock signal of electronic lock, ties
Beam charging, while deleting the user information of storage;Otherwise, continue charging.
In this way by being combined umbrella with removable and widely used shared bicycle, as long as there is shared bicycle, so that it may with
Umbrella is easily obtained, avoid leaving behind umbrella and carries the inconvenience that umbrella is brought, while by detecting storage box
Pressure change to determine whether umbrella is put back in storage box, effectively prevent the problem of user after umbrella using not giving back,
The lease for realizing umbrella is shared.
However, pressure sensor is in such a way that pressure information is transmitted to the shared bicycle server by the controller
Mainly:It is provided in controller in information transmission procedure and shared bicycle server and is provided with information storage program, information
Transmission procedure obtains the pressure information in storage box, and then pressure information is put into after message queue in the way of first in, first out
It is transmitted in server by information storage program storage, this makes it possible to obtain pressure information in the server from now on to look into realize
It askes.
And because causing pressure information length, the limitation of the execution circuit for environment, program and the controller that controller executes,
Information transmission procedure this problem it occur frequently that information loss, information malfunction during pressure information is put into message queue,
It can also make the pressure information being transmitted in server abnormal, obtain pressure information in the server from now on to realize inquiry
Border can not but find out abnormal pressure information, thus allow the correctness of inquiry not high.
Invention content
To solve the above problems, the present invention provides a kind of hardware electronic lock system and its method, effectively prevent existing
So that the pressure information being transmitted in server is abnormal, will obtain pressure information in the server from now on to realize inquiry in technology
When the defect that can not but find out abnormal pressure information, make the correctness of inquiry not high.
The solution of a kind of hardware electronic lock system and its method in order to overcome the deficiencies in the prior art, the present invention provides
Scheme, it is specific as follows:
A kind of method of hardware electronic lock system, specific steps include:
It is provided with information transmission procedure and information recognition program in controller, information storage is provided in shared bicycle server
Program;
The pressure sensor includes in such a way that pressure information is transmitted to the shared bicycle server by the controller:
Step 1-1:Information transmission procedure and information recognition program synchronize receive pressure sensor acquire and transmit come it is described
Initial pressure information in storage box;
Step 1-2:The initial pressure information is put into message queue and obtains pressure letter to be passed by the data transmission module
Breath, and it is transmitted to described information recognizer the pressure information to be passed obtained after message queue is put into;
Step 1-3:Compared with described information recognizer executes the initial pressure information with pressure information to be passed;
Step 1-4:If compare the pressure information to be passed and the initial pressure information it is variant when, also mean that
When abnormal, one is inserted into before adjoining the whereabouts of abnormal byte of the pressure information to be passed
The pressure information to be passed for inserting identifier is then transmitted to described information transmission procedure, then turned by identifier
Enter and is executed in step 1-5;
If compare the pressure information to be passed it is identical as the initial pressure information when, the pressure to be passed
Information is directly delivered to described information transmission procedure, is then transferred in step 1-6 and executes;
Step 1-5:Described information transmission procedure is transmitted to the pressure information to be passed for inserting identifier shared single
The pressure information to be passed for inserting identifier is then stored in shared bicycle by vehicle server through information storage program
In server, then goes in step 1-7 and execute;
Step 1-6:The pressure information to be passed is transmitted to shared bicycle server by described information transmission procedure, is then passed through
Information storage program is stored in the pressure information to be passed in shared bicycle server, then goes in step 1-7 and holds
Row;
Step 1-7:It is executed in return to step 1-1.
It is described when the quantity that pressure sensor acquired and transmitted the initial pressure information in the storage box come is several
Data transmission module is the mode that the initial pressure information is put into message queue:
The data transmission module, which transmits the time sequencing come according to initial pressure information, to be come the initial pressure information successively
It is put into message queue.
Compare the pressure information to be passed and the initial pressure information it is discrepant under the conditions of, it is synchronous
When the pressure information to be passed for inserting identifier is transmitted to described information transmission procedure, further include:
Described information recognizer is stored in the pressure information to be passed for inserting identifier in flash memory component.
Others, be more conducive to inquiry storage box in pressure information, compare the pressure information to be passed with
Under the conditions of the initial pressure information is discrepant, synchronous passes the pressure information to be passed for inserting identifier
When being delivered to described information transmission procedure, further include:
Described information recognizer sends the pressure information to be passed for inserting identifier in electrical screen and shows.
The critical of setting is crossed the pressure information to be passed and the discrepant byte number of initial pressure information more
When value, it can be set as yellow via identifier, that is, comparing the pressure information to be passed and the starting
Pressure information is variant and crosses the pressure information to be passed and the discrepant byte number of initial pressure information more and sets
When fixed critical value, the pressure information to be passed for inserting identifier is transmitted to described information transmission procedure, is known
It Fu not be yellow.
Beneficial effects of the present invention are:
Information recognition program compares initial pressure information and pressure information to be passed, and different in pressure information appearance to be passed
Chang Shi generates and sends identifier corresponding with abnormal byte whereabouts to described information transmission procedure, then passes through
Information transmission procedure identifies abnormal byte whereabouts of pressure information to be passed with identifier, and is sent to information
Stored program avoids abnormal byte place so that follow-up transfer when sending pressure information and being analyzed according to identifier
Place ensure that the accuracy of final analysis result is high.
Description of the drawings
Fig. 1 is the schematic diagram of hardware electronic lock system.
Fig. 2 is the partial process view of method.
Specific implementation mode
The present invention is described further below in conjunction with drawings and examples.
As Figure 1-Figure 2, the method for hardware electronic lock system, specific steps include:
Step S1:Obtain the user information of the mobile terminal of the Quick Response Code of scanning storage box outer surface;
Step S2:Judge whether the user information for being stored with the mobile terminal;
Step S3:If not storing, the user information of the mobile terminal is stored, and unlocking signal is sent to electronic lock, and obtain
The pressure information in storage box is taken, if pressure information changes, is sent to mobile terminal and starts fee charging signal;Otherwise, no
It sends and starts fee charging signal;
In step s3, charging mode is the computational costs in a manner of 0.5 yuan per hour;
In step s3, the user information of the mobile terminal is not stored in the shared bicycle server judgement, and described total
It enjoys after the pressure information that bicycle server judges in the storage box changes, if the shared bicycle server has not been obtained
The upper lock signal of electronic lock, then with 0 .5 member computational costs per hour;If the upper lock signal of electronic lock is got, with per hour
0.2 yuan of computational costs;
Step S4:If there is storage, unlocking signal is sent to electronic lock;And the pressure information in storage box is obtained, if pressure is believed
Breath changes, then judges whether the upper lock signal for receiving electronic lock, if receiving the upper lock signal of electronic lock, terminates to count
Take, while deleting the user information of storage;Otherwise, continue charging;
And current pressure sensor master in such a way that pressure information is transmitted to the shared bicycle server by the controller
If:It is provided in controller in information transmission procedure and shared bicycle server and is provided with information storage program, information passes
It passs program and obtains the pressure information in storage box, then pressure information is put into after message queue and is passed in the way of first in, first out
It is delivered in server by information storage program storage, this makes it possible to obtain pressure information in the server from now on to look into realize
It askes;
And because causing pressure information length, the limitation of the execution circuit for environment, program and the controller that controller executes, information
Transmission procedure this problem it occur frequently that information loss, information malfunction during pressure information is put into message queue, can also
So that the pressure information being transmitted in server is abnormal, obtain pressure information in the server from now on come when realizing inquiry but
It can not find out abnormal pressure information, thus allow the correctness of inquiry not high.
The transmission method and program for thus having used the pressure information in storage box, via information transmission procedure towards to be passed
The abnormal byte whereabouts for the pressure information passed is identified with identifier, and is transmitted in server and is allowed information storage program
Storage allows for obtaining pressure information in the server from now in this way when realizing inquiry, to be got around according to identifier abnormal
Byte whereabouts, enhance the performance of the correctness of inquiry.
It is provided with information transmission procedure and information recognition program in controller, information is provided in shared bicycle server
Stored program;
The pressure sensor includes in such a way that pressure information is transmitted to the shared bicycle server by the controller:
Step 1-1:Information transmission procedure and information recognition program synchronize receive pressure sensor acquire and transmit come it is described
Initial pressure information in storage box;
Step 1-2:The initial pressure information is put into message queue and obtains pressure letter to be passed by the data transmission module
Breath, and it is transmitted to described information recognizer the pressure information to be passed obtained after message queue is put into;
Step 1-3:Compared with described information recognizer executes the initial pressure information with pressure information to be passed;
Step 1-4:If compare the pressure information to be passed and the initial pressure information it is variant when, also mean that
When abnormal, one is inserted into before adjoining the whereabouts of abnormal byte of the pressure information to be passed
The pressure information to be passed for inserting identifier is then transmitted to described information transmission procedure, then turned by identifier
Enter and is executed in step 1-5;In abnormal byte whereabouts i.e. the pressure information to be passed with the starting
The discrepant byte whereabouts of pressure information, identifier symbolic indication as # or ^;
If compare the pressure information to be passed it is identical as the initial pressure information when, the pressure to be passed
Information is directly delivered to described information transmission procedure, is then transferred in step 1-6 and executes;
Step 1-5:Described information transmission procedure is transmitted to the pressure information to be passed for inserting identifier shared single
The pressure information to be passed for inserting identifier is then stored in shared bicycle by vehicle server through information storage program
In server, then goes in step 1-7 and execute;
Step 1-6:The pressure information to be passed is transmitted to shared bicycle server by described information transmission procedure, is then passed through
Information storage program is stored in the pressure information to be passed in shared bicycle server, then goes in step 1-7 and holds
Row;
Step 1-7:It is executed in return to step 1-1.
It is detailed, exactly allow information transmission procedure to obtain the initial pressure information in storage box with information recognition program;Also
Have and is exactly, it is interactively with each other between information transmission procedure, information storage program and information recognition program, allow information recognition program to be waited for
The pressure information of transmission, then information recognition program compare initial pressure information and pressure information to be passed, also to be passed
Pressure information there are when abnormal, the whereabouts for adjoining abnormal byte of the pressure information to be passed it
The pressure information to be passed for inserting identifier is then transmitted to described information and transmits journey by one identifier of preceding insertion
The pressure information to be passed for inserting identifier is transmitted to shared bicycle server by sequence, described information transmission procedure,
Then the pressure information to be passed for inserting identifier is stored in shared bicycle server through information storage program,
It can allow in this way and obtain pressure information in the server from now on when realizing inquiry, abnormal byte is got around according to identifier
Whereabouts enhances the performance of the correctness of inquiry.
It is described when the quantity that pressure sensor acquired and transmitted the initial pressure information in the storage box come is several
Data transmission module is the mode that the initial pressure information is put into message queue:
The data transmission module, which transmits the time sequencing come according to initial pressure information, to be come the initial pressure information successively
It is put into message queue.
Also it is exactly that the pressure information that be conducive in locally identification storage box is comparing the pressure to be passed
It is synchronous the pressure to be passed for inserting identifier under the conditions of information and the initial pressure information are discrepant
When information is transmitted to described information transmission procedure, further include:
Described information recognizer is stored in the pressure information to be passed for inserting identifier in flash memory component, with profit
In the pressure information in locally identification storage box.
Others, be more conducive to inquiry storage box in pressure information, compare the pressure information to be passed with
Under the conditions of the initial pressure information is discrepant, synchronous passes the pressure information to be passed for inserting identifier
When being delivered to described information transmission procedure, further include:
Described information recognizer sends the pressure information to be passed for inserting identifier in electrical screen and shows,
Via the pressure information to be passed for inserting identifier described in displaying, it can more be conducive to the abnormal pressure of real-time query in this way
Force information.
The critical of setting is crossed the pressure information to be passed and the discrepant byte number of initial pressure information more
When value, which can more conducively warn with value for 5 or more via identifier is set as yellow, that is,
Compare the pressure information to be passed and the initial pressure information it is variant and the pressure information to be passed with
When the discrepant byte number of initial pressure information crosses the critical value of setting more, inserting the described to be passed of identifier
Pressure information be transmitted to described information transmission procedure, identifier is yellow.
It is such to have the beneficial effect that:
Information recognition program compares initial pressure information and pressure information to be passed, and different in pressure information appearance to be passed
Chang Shi generates and sends identifier corresponding with abnormal byte whereabouts to described information transmission procedure, then passes through
Information transmission procedure identifies abnormal byte whereabouts of pressure information to be passed with identifier, and is sent to information
Stored program avoids abnormal byte place so that follow-up transfer when sending pressure information and being analyzed according to identifier
Place ensure that the accuracy of final analysis result is high.
Corresponding hardware electronic lock system, including shared bicycle ontology, storage box, umbrella, controller 1, pressure sensor
2, electronic lock 3, mobile terminal 4 and shared bicycle server 5.
The storage box is fixed on the shared bicycle ontology, and its outer surface is equipped with Quick Response Code.The umbrella setting
In the storage box;The controller 1 is embedded in the storage box, and is connect with the shared bicycle server 5.It is described
Pressure sensor 2 is arranged in the bottom of the storage box, and detects pressure information in storage box, and will by the controller 1
The pressure information is transmitted to the shared bicycle server 5;
The setting of the electronic lock 3 is connect on the storage box, and with the controller 1, and receives the unlocking of the controller 1
Signal and unlock;
It is provided with information transmission procedure and information recognition program in controller, information storage is provided in shared bicycle server
Program, here,
Described information transmission procedure and described information recognizer be used for synchronize receive what pressure sensor acquire and transmitted
Initial pressure information in the storage box;
Described information transmission procedure, which is also used for the initial pressure information to be put into message queue, obtains pressure information to be passed,
And it is transmitted to described information recognizer the pressure information to be passed obtained after message queue is put into;Knowledge is inserted for
The pressure information to be passed not accorded with is transmitted to shared bicycle server;For the pressure information to be passed is transmitted
To shared bicycle server;
Compared with described information recognizer is used for the initial pressure information to be executed with pressure information to be passed, if comparing
When the pressure information to be passed and the initial pressure information are variant, also mean that there are when abnormal, adjoining
It is inserted into an identifier before the whereabouts of abnormal byte of the adjacent pressure information to be passed, then inserting
The pressure information to be passed of identifier is transmitted to described information transmission procedure;If comparing the pressure letter to be passed
When breath is identical as the initial pressure information, the pressure information to be passed is directly delivered to described information and transmits journey
Sequence;
Described information stored program, which is used for the pressure information to be passed for inserting identifier to be stored in shared bicycle, to be taken
It is engaged in device;For the pressure information to be passed is stored in shared bicycle server.
Information transmission procedure is exactly allowed to obtain the initial pressure information in storage box with information recognition program;Also it is exactly,
It is interactively with each other between information transmission procedure, information storage program and information recognition program, allow information recognition program to obtain to be passed
Pressure information, then information recognition program compare initial pressure information and pressure information to be passed, also in pressure to be passed
Information is inserted into there are when abnormal before adjoining the whereabouts of abnormal byte of the pressure information to be passed
The pressure information to be passed for inserting identifier is then transmitted to described information transmission procedure, institute by one identifier
It states information transmission procedure and the pressure information to be passed for inserting identifier is transmitted to shared bicycle server, then pass through
Information storage program is stored in the pressure information to be passed for inserting identifier in shared bicycle server, such energy
It enough allows and obtains pressure information in the server from now on when realizing inquiry, abnormal byte place is got around according to identifier
Place, enhances the performance of the correctness of inquiry.
It is described when the quantity that pressure sensor acquired and transmitted the initial pressure information in the storage box come is several
Data transmission module is the mode that the initial pressure information is put into message queue:
The data transmission module, which transmits the time sequencing come according to initial pressure information, to be come the initial pressure information successively
It is put into message queue.
Also it is exactly that the pressure information that be conducive in locally identification storage box, the controller is connected with flash memory component,
Under the conditions of comparing the pressure information to be passed and the initial pressure information is discrepant, synchronization is inserted in handle
When the pressure information to be passed of identifier is transmitted to described information transmission procedure, further include:
Described information recognizer is stored in the pressure information to be passed for inserting identifier in flash memory component, with profit
In the pressure information in locally identification storage box.
Others, the pressure information that be more conducive in inquiry storage box, the controller are connected with electrical screen, are comparing
It is synchronous inserting identifier under the conditions of the pressure information to be passed and the initial pressure information are discrepant
When the pressure information to be passed is transmitted to described information transmission procedure, further include:
Described information recognizer sends the pressure information to be passed for inserting identifier in electrical screen and shows,
Via the pressure information to be passed for inserting identifier described in displaying, it can more be conducive to the abnormal pressure of real-time query in this way
Force information.
The critical of setting is crossed the pressure information to be passed and the discrepant byte number of initial pressure information more
When value, which can more conducively warn with value for 5 or more via identifier is set as yellow, that is,
Compare the pressure information to be passed and the initial pressure information it is variant and the pressure information to be passed with
When the discrepant byte number of initial pressure information crosses the critical value of setting more, inserting the described to be passed of identifier
Pressure information be transmitted to described information transmission procedure, identifier is yellow.
In this way by being combined umbrella with removable and widely used shared bicycle, as long as there is shared bicycle, so that it may with
Umbrella is easily obtained, avoid leaving behind umbrella and carries the inconvenience that umbrella is brought, while by detecting storage box
Pressure change to determine whether umbrella is put back in storage box, effectively prevent the problem of user after umbrella using not giving back,
The lease for realizing umbrella is shared.
After the mobile terminal 4 scans the Quick Response Code in storage box, the user information of mobile terminal 4 is transmitted to described total
Enjoy bicycle server 5;The shared bicycle server 5 receives the user information of the mobile terminal 4, and judges whether to be stored with this
The user information of mobile terminal 4:
If not storing, the user information of the mobile terminal 4 is stored, and sent to the electronic lock 3 by the controller 1
Unlocking signal;And the shared bicycle server 5 receives the pressure information in the storage box of the transmission of the pressure sensor 2, if
Pressure information changes, then the shared bicycle server 5 is sent to the mobile terminal 4 starts fee charging signal;Otherwise, no
It sends and starts fee charging signal;
If there is storage, unlocking signal is sent to the electronic lock 3 by the controller 1;And the shared bicycle server 5
Receive the pressure information in the storage box of the transmission of the pressure sensor 2, if pressure information changes, the shared bicycle
Server 5 further determines whether to receive the upper lock signal of the electronic lock 3, if receiving the upper lock signal of the electronic lock 3,
The signal for terminating charging is sent to the mobile terminal 4, to terminate the charging of mobile terminal 4, while deleting user's letter of storage
Breath;Otherwise, continue charging.
The charging mode of the shared bicycle server 5 is the computational costs in a manner of the members of 0 .5 per hour.
The electronic lock 3 is locked by way of manual locking, and the electronic lock 3 also leads to upper lock signal after locking
It crosses the controller 1 and is transmitted to the shared bicycle server 5.The shifting is not stored in the shared judgement of bicycle server 5
The user information of dynamic terminal 4, and after the shared bicycle server 5 judges that the pressure information in the storage box changes,
If the upper lock signal of electronic lock 3 has not been obtained in the shared bicycle server 5, with 0 .5 member computational costs per hour;If obtaining
The upper lock signal of electronic lock 3 is got, then with 0.2 yuan of computational costs per hour.
The present invention is described in a manner of being illustrated with embodiment above, it will be understood by those of skill in the art that this
It is open to be not limited to embodiments described above, in the case of without departing from the scope of the present invention, it can make a variety of changes, change
And replacement.
Claims (5)
1. a kind of method of hardware electronic lock system, which is characterized in that specific steps include:
It is provided with information transmission procedure and information recognition program in controller, information storage is provided in shared bicycle server
Program;
The pressure sensor includes in such a way that pressure information is transmitted to the shared bicycle server by the controller:
Step 1-1:Information transmission procedure and information recognition program synchronize receive pressure sensor acquire and transmit come it is described
Initial pressure information in storage box;
Step 1-2:The initial pressure information is put into message queue and obtains pressure letter to be passed by the data transmission module
Breath, and it is transmitted to described information recognizer the pressure information to be passed obtained after message queue is put into;
Step 1-3:Compared with described information recognizer executes the initial pressure information with pressure information to be passed;
Step 1-4:If compare the pressure information to be passed and the initial pressure information it is variant when, also mean that
When abnormal, one is inserted into before adjoining the whereabouts of abnormal byte of the pressure information to be passed
The pressure information to be passed for inserting identifier is then transmitted to described information transmission procedure, then turned by identifier
Enter and is executed in step 1-5;
If compare the pressure information to be passed it is identical as the initial pressure information when, the pressure to be passed
Information is directly delivered to described information transmission procedure, is then transferred in step 1-6 and executes;
Step 1-5:Described information transmission procedure is transmitted to the pressure information to be passed for inserting identifier shared single
The pressure information to be passed for inserting identifier is then stored in shared bicycle by vehicle server through information storage program
In server, then goes in step 1-7 and execute;
Step 1-6:The pressure information to be passed is transmitted to shared bicycle server by described information transmission procedure, is then passed through
Information storage program is stored in the pressure information to be passed in shared bicycle server, then goes in step 1-7 and holds
Row;
Step 1-7:It is executed in return to step 1-1.
2. the method for hardware electronic lock system according to claim 1, which is characterized in that pressure sensor is acquired and transmitted
When the quantity for the initial pressure information in the storage box come is several, the data transmission module believes the initial pressure
Breath is put into the mode of message queue:
The data transmission module, which transmits the time sequencing come according to initial pressure information, to be come the initial pressure information successively
It is put into message queue.
3. the method for hardware electronic lock system according to claim 1, which is characterized in that described to be passed comparing
It is synchronous inserting the described to be passed of identifier under the conditions of pressure information and the initial pressure information are discrepant
When pressure information is transmitted to described information transmission procedure, further include:
Described information recognizer is stored in the pressure information to be passed for inserting identifier in flash memory component.
4. the method for hardware electronic lock system according to claim 1, which is characterized in that described to be passed comparing
It is synchronous inserting the described to be passed of identifier under the conditions of pressure information and the initial pressure information are discrepant
When pressure information is transmitted to described information transmission procedure, further include:
Described information recognizer sends the pressure information to be passed for inserting identifier in electrical screen and shows.
5. the method for hardware electronic lock system according to claim 1, which is characterized in that in the pressure letter to be passed
When breath crosses the critical value of setting with the discrepant byte number of initial pressure information more, it can be set as yellow via identifier
Color, that is, it is variant and described to be passed comparing the pressure information to be passed and the initial pressure information
When pressure information and the discrepant byte number of initial pressure information cross the critical value of setting more, inserting identifier
The pressure information to be passed is transmitted to described information transmission procedure, and identifier is yellow.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810429759.XA CN108717734A (en) | 2018-05-08 | 2018-05-08 | A kind of method of hardware electronic lock system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810429759.XA CN108717734A (en) | 2018-05-08 | 2018-05-08 | A kind of method of hardware electronic lock system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108717734A true CN108717734A (en) | 2018-10-30 |
Family
ID=63899445
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810429759.XA Withdrawn CN108717734A (en) | 2018-05-08 | 2018-05-08 | A kind of method of hardware electronic lock system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108717734A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101561878A (en) * | 2009-05-31 | 2009-10-21 | 河海大学 | Unsupervised anomaly detection method and system based on improved CURE clustering algorithm |
CN104460951A (en) * | 2013-09-12 | 2015-03-25 | 天津智树电子科技有限公司 | Human-computer interaction method |
CN104794086A (en) * | 2015-03-27 | 2015-07-22 | 北京交大思诺科技有限公司 | Serial communication safety system and safe serial communication method |
CN107909733A (en) * | 2017-11-13 | 2018-04-13 | 吴伟峰 | A kind of extraction system and its method based on shared bicycle |
-
2018
- 2018-05-08 CN CN201810429759.XA patent/CN108717734A/en not_active Withdrawn
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101561878A (en) * | 2009-05-31 | 2009-10-21 | 河海大学 | Unsupervised anomaly detection method and system based on improved CURE clustering algorithm |
CN104460951A (en) * | 2013-09-12 | 2015-03-25 | 天津智树电子科技有限公司 | Human-computer interaction method |
CN104794086A (en) * | 2015-03-27 | 2015-07-22 | 北京交大思诺科技有限公司 | Serial communication safety system and safe serial communication method |
CN107909733A (en) * | 2017-11-13 | 2018-04-13 | 吴伟峰 | A kind of extraction system and its method based on shared bicycle |
Non-Patent Citations (1)
Title |
---|
鲍忠贵,刘贵全: "《抽象语法记法ASN.1原理与应用》", 30 June 2011, 国防工业出版社 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106658415B (en) | Method, vehicle ordering terminal and system for searching shared vehicle live-action | |
CN107734460B (en) | Method and terminal for realizing intelligent unlocking of Bluetooth lock based on mobile terminal | |
CN108648353A (en) | Charging pile system of electric automobile based on remote control | |
CN106157629A (en) | A kind of intelligent car position lock control system and control method | |
CN104533129B (en) | Berth lock control method and system | |
CN106530503A (en) | Reserved charging method with automatic identification function | |
CN109191888A (en) | A kind of parking method and system | |
CN107248201A (en) | A kind of management method and system of charging station charging parking stall | |
CN107909733A (en) | A kind of extraction system and its method based on shared bicycle | |
CN103619074A (en) | Loaning and returning system for rented bicycles | |
CN105427159A (en) | Common bicycle management method based on iris identification and system thereof | |
CN111862468A (en) | Shared vehicle processing method, device, equipment and computer readable storage medium | |
CN107341930A (en) | A kind of battery bag and application method for being used to lease Moped Scooter | |
CN110398255A (en) | Localization method, device and vehicle | |
CN111071202A (en) | Vehicle unlocking or locking method and system | |
CN109017399A (en) | The intelligent charging system and method for electric car | |
CN106251497A (en) | A kind of city freecycling lease management system | |
EP3576058A1 (en) | High-compatibility shared vehicle leasing system, vehicle and vehicle leasing method | |
CN205193873U (en) | Public bicycle management system based on iris discernment | |
CN108717734A (en) | A kind of method of hardware electronic lock system | |
CN106875528A (en) | The control method of shared vehicle lock body, control system, shared vehicle and lock body | |
CN113269930A (en) | Public bicycle returning processing method and system | |
CN106981199A (en) | Special-purpose vehicle recognition methods and its system | |
CN107909734A (en) | A kind of extraction system and its method based on shared bicycle | |
CN107545606A (en) | A kind of shared Vehicular system and its application method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20181030 |
|
WW01 | Invention patent application withdrawn after publication |