CN110145187A - Control method for electronic lock, device, intelligent luggage and readable storage medium storing program for executing - Google Patents
Control method for electronic lock, device, intelligent luggage and readable storage medium storing program for executing Download PDFInfo
- Publication number
- CN110145187A CN110145187A CN201910535514.XA CN201910535514A CN110145187A CN 110145187 A CN110145187 A CN 110145187A CN 201910535514 A CN201910535514 A CN 201910535514A CN 110145187 A CN110145187 A CN 110145187A
- Authority
- CN
- China
- Prior art keywords
- terminal
- lock
- electronic lock
- time
- pairing
- 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.)
- Pending
Links
Classifications
-
- E—FIXED CONSTRUCTIONS
- E05—LOCKS; KEYS; WINDOW OR DOOR FITTINGS; SAFES
- E05B—LOCKS; ACCESSORIES THEREFOR; HANDCUFFS
- E05B47/00—Operating or controlling locks or other fastening devices by electric or magnetic means
- E05B47/0001—Operating or controlling locks or other fastening devices by electric or magnetic means with electric actuators; Constructional features thereof
-
- E—FIXED CONSTRUCTIONS
- E05—LOCKS; KEYS; WINDOW OR DOOR FITTINGS; SAFES
- E05B—LOCKS; ACCESSORIES THEREFOR; HANDCUFFS
- E05B47/00—Operating or controlling locks or other fastening devices by electric or magnetic means
- E05B47/0001—Operating or controlling locks or other fastening devices by electric or magnetic means with electric actuators; Constructional features thereof
- E05B47/0012—Operating or controlling locks or other fastening devices by electric or magnetic means with electric actuators; Constructional features thereof with rotary electromotors
-
- E—FIXED CONSTRUCTIONS
- E05—LOCKS; KEYS; WINDOW OR DOOR FITTINGS; SAFES
- E05B—LOCKS; ACCESSORIES THEREFOR; HANDCUFFS
- E05B65/00—Locks or fastenings for special use
- E05B65/52—Other locks for chests, boxes, trunks, baskets, travelling bags, or the like
-
- 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
- G07C9/00309—Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated with bidirectional data transmission between data carrier and locks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Lock And Its Accessories (AREA)
Abstract
The invention discloses a kind of control method for electronic lock, device, intelligent luggage and computer readable storage medium, method is applied to intelligent luggage, and intelligent luggage includes the bluetooth module and electronic lock for being in communication with each other connection;Method includes: to judge whether exterior terminal is the pairing terminal for the first time prestored when detecting the exterior terminal with bluetooth module pairing connection;If exterior terminal is to match terminal for the first time, establishes bluetooth module and connect with the Bluetooth pairing for matching terminal for the first time;The unlocking instruction sent after the real time identity data that pairing terminal authentication user inputs for the first time pass through is received based on bluetooth module or shuts instruction, is controlled electronic lock respectively and is unlocked or shut.The present invention improves the security degree of luggage case, solves the easily stolen the technical issues of taking of important objects in luggage case.
Description
Technical field
The present invention relates to intelligent luggage control field more particularly to a kind of control method for electronic lock, device, intelligent luggage and
Computer readable storage medium.
Background technique
Luggage, especially luggage case are increasingly becoming the necessary article gone on business, travelled, and luggage case is generally used for placing people
The important objects such as jewellery, gift, certificate, file.But the coded lock of most of luggage case now on the market is pure machine
Tool lock, can only generally be arranged three bit digital passwords, if luggage case is obtained by other people, as long as other side's trial most 1,000 times can
To crack the coded lock of luggage case, if every password for attempting a coded lock averagely expends three seconds, other side at most only needs to expend
One hour can crack the coded lock of luggage case.In this way, the security degree wretched insufficiency of luggage case, important object in luggage case
Part is easily stolen to be taken.
Above content is only used to facilitate the understanding of the technical scheme, and is not represented and is recognized that above content is existing skill
Art.
Summary of the invention
The main purpose of the present invention is to provide a kind of control method for electronic lock, device, intelligent luggages and computer-readable
Storage medium, it is intended to which it is insufficient to solve luggage case security degree, luggage case important objects easily stolen the technical issues of taking.
To achieve the above object, the present invention provides a kind of control method for electronic lock, and the control method for electronic lock is applied to
Intelligent luggage, the intelligence luggage includes the bluetooth module and electronic lock for being in communication with each other connection;The control method for electronic lock packet
It includes:
When detecting the exterior terminal with bluetooth module pairing connection, judge whether the exterior terminal is to prestore
Pairing terminal for the first time;
If the exterior terminal is to match terminal for the first time, establishes the bluetooth module and match the Bluetooth pairing of terminal for the first time
Connection;
It is sent after being passed through based on the real time identity data that the bluetooth module receives pairing terminal authentication user input for the first time
Unlocking instruction or shut instruction, respectively control electronic lock unlock or shut.
Optionally, before judging the step of whether exterior terminal is the terminal of pairing for the first time prestored, comprising:
Obtain the mark only for the first time with the terminal of bluetooth module pairing connection, and the terminal that connection will be matched for the first time
As matching terminal for the first time.
Optionally, described to judge that the step of whether exterior terminal is the terminal of pairing for the first time prestored includes:
It compares the device identification of the exterior terminal and described identifies only;
If the device identification of the exterior terminal and it is described identify only identical, determine to prestore when the exterior terminal
Terminal is matched for the first time;
If the device identification of the exterior terminal and the mark only are different, determine that the exterior terminal does not prestore
Pairing terminal for the first time.
Optionally, after establishing the step of bluetooth module is connect with the Bluetooth pairing of pairing terminal for the first time, comprising:
Judge the bluetooth module presets very big threshold value with whether the RSSI signal strength for matching terminal for the first time is greater than;If institute
RSSI signal strength is stated greater than preset strength threshold value, then controls electronic lock auto-unlocking.
Optionally, the control method for electronic lock further include:
Minimum threshold value is preset when detecting that the bluetooth module is less than with the RSSI signal strength for matching terminal for the first time, or
The bluetooth module disconnects pairing connection with pairing terminal for the first time, then controls electronic lock and shut;
Minimum is preset when detecting that the bluetooth module is greater than or equal to the RSSI signal strength for matching terminal for the first time
And it is less than or equal to default maximum, obtain the current switch latching mode of electronic lock;
If the current switch latching mode is safe mode, control electronic lock is shut, and receives head in the bluetooth module
After the unlocking instruction that the real time identity data of secondary pairing terminal authentication user input are sent after passing through, control electronic lock is unlocked;
If the current switch latching mode is convenient mode, electronic lock unlocking is controlled.
Optionally, the electronic lock includes lock and motor, and the motor drives lock rotation to realize that electronic lock is unlocked
With shut, it is described lock or lock STATEMENT OF FEDERALLY SPONSORED rotation path on induction pieces are set;
After establishing the step of bluetooth module is connect with the Bluetooth pairing of pairing terminal for the first time, comprising:
The sense state that the lock or lock STATEMENT OF FEDERALLY SPONSORED are detected according to the induction pieces, obtains the switch of the electronic lock
State, the switch state include unlocking condition and shut state;
It the switch state is based on the bluetooth module is sent to described to match terminal for the first time.
Optionally, the induction pieces are spring leaf, the spring leaf circuit connection preset resistance detection unit, the spring
Piece is set to initial position or the final position of the rotation path of the lock or lock STATEMENT OF FEDERALLY SPONSORED;
The sense state that the lock or lock STATEMENT OF FEDERALLY SPONSORED are detected according to the induction pieces, obtains the electronic lock
The step of switch state includes:
When obtaining the lock or the touching of lock STATEMENT OF FEDERALLY SPONSORED or being detached from the spring leaf, the resistance detection unit detection
Resistance value;
It is in if the resistance value is equal to the electronic lock and shuts the default of state and shut test value, it is determined that the electronics
The switch state of lock is to shut state;
If the resistance value is equal to the default unlocking test value that the electronic lock is in unlocking condition, it is determined that the electronics
The switch state of lock is unlocking condition;
Wherein, the electronic lock is in the state that shuts, and the lock or lock STATEMENT OF FEDERALLY SPONSORED are contacted with the spring leaf, described
Electronic lock is in unlocking condition, and the lock or lock STATEMENT OF FEDERALLY SPONSORED are separated with the spring leaf;
Alternatively, the electronic lock is in the state that shuts, the lock or lock STATEMENT OF FEDERALLY SPONSORED are separated with the spring leaf, described
Electronic lock is in unlocking condition, and the lock or lock STATEMENT OF FEDERALLY SPONSORED are contacted with the spring leaf.
The present invention also provides a kind of electronic lock control device, the electronic lock control device includes:
Judgment module, for judging the outside when detecting the exterior terminal with bluetooth module pairing connection
Whether terminal is the pairing terminal for the first time prestored;
Matching module is established the bluetooth module and is matched for the first time if being to match terminal for the first time for the exterior terminal
The Bluetooth pairing of terminal connects;
Switch lock module, for receiving the unlocking instruction or shut finger that pairing terminal is sent for the first time based on the bluetooth module
It enables, controls electronic lock respectively and unlock or shut.
The present invention also provides a kind of intelligent luggages, and intelligent luggage includes memory, processor, motion sensor, bluetooth mould
Block, electronic lock and it is stored in the computer-readable instruction that can be run on the memory and on the processor, the calculating
It realizes when machine readable instruction is executed by the processor such as the step of above-mentioned control method for electronic lock.
The present invention also provides a kind of computer readable storage medium, calculating is stored on the computer readable storage medium
Machine readable instruction is realized when the computer-readable instruction is executed by processor such as the step of above-mentioned control method for electronic lock.
The present invention is by being arranged bluetooth module and electronic lock, intelligent luggage bluetooth module and reliable head in intelligent luggage
Secondary pairing terminal establishes Bluetooth pairing connection, prevents from establishing Bluetooth pairing with other insecure exterior terminals connecting, and then keep away
Exempt from other insecure exterior terminals and controls intelligent case electronic lock;Meanwhile the electronic lock of intelligent luggage only receives bluetooth module
Control, for the first time match terminal APP only real time identity data by verifying just to the bluetooth module of intelligent luggage transmission opens
Lock instruction shuts instruction, is unlocked or is shut with electronic lock respectively, thus to match the complicated real time identity number of terminal side for the first time
According to the simple digital password instead of intelligent luggage side, and the switch lock permission of intelligent luggage is limited to and matches terminal for the first time
On, to realize to the switch lock of intelligent luggage must at least obtain simultaneously for the first time match terminal and be able to verify that by real-time body
Part data (i.e. primary standard verify data), the difficulty that cracks of the switch lock of intelligent luggage greatly promote, and greatly improve row
The security degree of Lee's case solves the easily stolen the technical issues of taking of important objects in luggage case.
Detailed description of the invention
Fig. 1 is the structural schematic diagram of one embodiment of intelligent luggage of the invention;
Fig. 2 is the flow diagram of one embodiment of control method for electronic lock of the present invention;
Fig. 3 is one embodiment main perspective structural schematic diagram of electronic lock of the present invention;
Fig. 4 is one embodiment overlooking structure diagram of electronic lock of the present invention;
Fig. 5 is the C-C sectional view that electronic lock shuts state in Fig. 4;
Fig. 6 is the C-C sectional view of electronic lock unlocking condition in Fig. 4.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The primary solutions of the embodiment of the present invention are: when detecting the exterior terminal with bluetooth module pairing connection,
Judge whether exterior terminal is the pairing terminal for the first time prestored;If exterior terminal be match terminal for the first time, establish bluetooth module with
The Bluetooth pairing connection of terminal is matched for the first time;The unlocking instruction or shut finger that pairing terminal is sent for the first time are received based on bluetooth module
It enables, controls electronic lock respectively and unlock or shut.
As shown in Figure 1, Fig. 1 is the intelligent box pack arrangement signal for the hardware running environment that the embodiment of the present invention is related to
Figure.
The control method for electronic lock provided by the invention for being applied to intelligent luggage, device, intelligent luggage and computer-readable
Storage medium is related to intelligent luggage control field, and intelligent luggage may include the luggage case for being provided with bluetooth module and electronic lock, back
Packet, handbag etc..
As shown in Figure 1, the intelligence luggage may include: processor 1001, such as CPU, network interface 1004, user interface
1003, memory 1005, communication bus 1002, motion sensor 1006.Wherein, communication bus 1002 is for realizing these components
Between connection communication.User interface 1003 may include the such as micro- keyboard (Keyboard) of input unit, optional user interface
1003 can also include standard wireline interface and wireless interface.Network interface 1004 optionally may include that the wired of standard connects
Mouth, wireless interface (such as WI-FI interface).Memory 1005 can be high speed RAM memory, be also possible to stable memory
(non-volatile memory), such as magnetic disk storage.Memory 1005 optionally can also be independently of aforementioned processor
1001 storage device.
It will be understood by those skilled in the art that intelligent box pack arrangement shown in Fig. 1 does not constitute the limit to intelligent luggage
It is fixed, it may include perhaps combining certain components or different component layouts than illustrating more or fewer components.
As shown in Figure 1, as may include that operating system, network are logical in a kind of memory 1005 of computer storage medium
Believe module, Subscriber Interface Module SIM and the computer-readable instruction for realizing carry-on method of locating terminal.
In display terminal shown in Fig. 1, network interface 1004 is mainly used for connecting background server (such as positioning service
Device), data communication is carried out with background server;It is (such as associated to match for the first time that user interface 1003 is mainly used for connection client
Terminal), data communication is carried out with client;And processor 1001 can be used for calling the computer stored in memory 1005 can
Reading instruction, and execute following operation:
When detecting the exterior terminal with bluetooth module pairing connection, judge whether exterior terminal is matching for the first time of prestoring
To terminal;
If exterior terminal is to match terminal for the first time, establishes bluetooth module and connect with the Bluetooth pairing for matching terminal for the first time;
What is sent after being passed through based on the real time identity data that bluetooth module receives pairing terminal authentication user input for the first time is opened
Lock instruction shuts instruction, controls electronic lock respectively and unlocks or shut.
Based on above-mentioned intelligent box pack arrangement, a kind of control method for electronic lock is provided, referring to Fig. 2, control method for electronic lock is answered
For intelligent luggage, intelligent luggage includes the bluetooth module and electronic lock for being in communication with each other connection;
Control method for electronic lock includes:
Step S10 judges whether exterior terminal is to prestore when detecting the exterior terminal with bluetooth module pairing connection
Pairing terminal for the first time;
The executing subject of the control method for electronic lock of the application can be processor (such as control core being set in intelligent luggage
Piece), processing is respectively with bluetooth module and electronic lock communication connection to realize the control to bluetooth module and electronic lock.
The intelligent luggage of bluetooth module is set generally as from equipment, waits exterior terminal (such as smart phone, external equipment
Also it is equipped with bluetooth module) actively initiate pairing.User is needing to switch based on electronic lock of the external equipment to intelligent luggage
When lock, control external equipment initiate calling, search around in the bluetooth equipment that can be searched, be then based on user's operation or
Automatic matching was connected with the bluetooth equipment of pair record;The bluetooth module of intelligent luggage is generally disposed as to be searched.
When processor detects that the bluetooth module of intelligent luggage receives the pairing connection request of external equipment, to current
The external equipment of pairing connection carries out identification, specifically judges whether external equipment is the pairing terminal for the first time prestored.
Optionally, before judging the step of whether exterior terminal is the terminal of pairing for the first time prestored, it can first judge intelligence
Whether luggage has determined is matched terminal for the first time, that is, judges whether recorded representative is matched for the first time in the memory of intelligent luggage
The mark only of terminal.If intelligent luggage has determined that matches terminal for the first time, can further judge currently to match connection at this time
Exterior terminal whether be to match terminal for the first time;If intelligent luggage has not determined matches terminal for the first time, connection will can be currently matched
Exterior terminal as matching terminal for the first time,
Optionally, in order to ensure matching the safety that terminal determines for the first time, intelligent luggage is determining pairing terminal mistake for the first time
Cheng Zhong, intelligent luggage preset PIN (Personal Identification Number, personal recognition code) code, for the first time with intelligence
The exterior terminal of energy luggage pairing connection, which inputs correct PIN code just, can become the pairing terminal for the first time of intelligent luggage.
Intelligent luggage obtains after determining pairing terminal for the first time and stores the mark only for matching terminal for the first time.Meanwhile
Pairing terminal is equipped with the APP (Application, application program) for controlling the electronic lock switch lock of intelligent luggage, APP meeting for the first time
User is prompted to input primary standard identity data, primary standard identity data can be close for character password, finger-print cipher, facial characteristics
Code etc. when subsequent user needs to unlock to intelligent luggage, inputs real time identity data, real time identity data and primary standard again
Unanimously, then APP sends unlocking instruction to the bluetooth module of intelligent luggage to identity data (unlock and correspond to).When user needs to shut
When, only need user to trigger correlation and shut condition, such as correlation shut condition include shut in triggering APP relevant control by
Key, intelligent luggage bluetooth module whether be less than with the RSSI signal strength for matching terminal for the first time and preset minimum threshold value and bluetooth
Module disconnects pairing connection etc. with pairing terminal for the first time.For example, user's operation APP is shut to the transmission of the bluetooth module of intelligent luggage
Instruction is shut with controlling the electronic lock of intelligent luggage;User's operation APP shuts instruction to bluetooth module transmission, may not need defeated
Enter verifying of the real time identity data progress about primary standard identity data, user need to only trigger in APP and shut relevant control
Key or function.
Step S20 establishes bluetooth module and matches the Bluetooth pairing of terminal for the first time if exterior terminal is to match terminal for the first time
Connection;
Optionally, the step of whether exterior terminal is the terminal of pairing for the first time prestored judged specifically: extract current initiate
The device identification for matching the exterior terminal of connection, compares the device identification of exterior terminal and identifies only;If exterior terminal is set
It is identical for identifying and identifying only, then determine the pairing terminal for the first time prestored when exterior terminal;If the device identification of exterior terminal
Mark is different only, then determining exterior terminal not is the pairing terminal for the first time prestored.
After the exterior terminal for determining current pairing connection is matches terminal for the first time, the exterior terminal currently matched is not needed
(matching terminal for the first time) input PIN code can establish Bluetooth pairing with the bluetooth module of intelligent luggage and connect, to match for the first time
Terminal can be carried out data transmission between intelligent luggage.
In addition, the bluetooth module of intelligent luggage ignores exterior terminal pairing if exterior terminal is not to match terminal for the first time
Connection request.
Step S30, after being passed through based on the real time identity data that bluetooth module receives pairing terminal authentication user input for the first time
The unlocking instruction of transmission shuts instruction, controls electronic lock respectively and unlocks or shut.
The APP reception in pairing terminal for the first time after Bluetooth pairing connect is established in pairing terminal for the first time and intelligent luggage
User input real time identity data, if real time identity data are consistent with primary standard identity data, for the first time pairing terminal according to
It is secondary to send unlocking instruction to the bluetooth module of intelligent luggage or shut instruction, so that the processor of intelligent luggage is based respectively on unlocking
Instruction is instructed or shut, electronic lock is successively controlled and unlocks or shut.Unlocking and shut corresponding primary standard identity data can be with
Unanimously, it can also be different, furthermore only setting unlocking can correspond to primary standard identity data, be not provided with shutting corresponding primary standard body
Part data when that is, user's control intelligence luggage is unlocked, prevent my non-wish from shutting, need to input real time identity data, user
It when controlling intelligent luggage and shutting, shuts that there is no stolen risks, does not then need input real time identity data.
It when bluetooth module receives unlocking instruction or shuts instruction, sends and instructs to the motor of electronic lock, such as motor has
The positive negative level in the two poles of the earth, unlocking instruction shut instruction and without three kinds of situations of instruction point:
If 1, receiving unlocking instruction, referring to Fig. 3, unlocking action motor 1 is rotated forward, and to positive high level (3.3V), is born
Extremely low level (0V), after motor rotates forward 300mS, motor positive and negative anodes stop operating to low level, complete motor 1 and drive lock 3
Process, unlock and complete, and save lock status (unlocking).
Instruction is shut if 2, receiving, movement motor 1 is shut and inverts, to positive low level (0V), cathode high level
(3.3V), after motor reversal 300mS, 1 positive and negative anodes of motor stop operating to low level, complete the mistake that motor 1 drives lock 3
Journey, locking is completed, and saves lock status (locking).
3, were it not for and receive instruction, positive and negative anodes be it is low, motor 1 is motionless.One alternative embodiment of motor 1 is motor.
In the present embodiment, intelligent luggage setting bluetooth module and electronic lock, intelligent luggage bluetooth module only with it is reliable
Pairing terminal establishes Bluetooth pairing connection for the first time, prevents from establishing Bluetooth pairing with other insecure exterior terminals connecting, in turn
Other insecure exterior terminals are avoided to control intelligent case electronic lock;Meanwhile the electronic lock of intelligent luggage only receives bluetooth mould
The control of block, the APP for matching terminal for the first time are only just sent to the bluetooth module of intelligent luggage in real time identity data by verifying
Unlocking instruction shuts instruction, is unlocked or is shut with electronic lock respectively, thus to match the complicated real time identity of terminal side for the first time
Data instead of intelligent luggage side simple digital password, and by the switch lock permission of intelligent luggage be limited to for the first time pairing eventually
On end, to realize to the switch lock of intelligent luggage must at least obtain simultaneously for the first time match terminal and be able to verify that by it is real-time
Identity data (i.e. initial standard identity data), the difficulty that cracks of the switch lock of intelligent luggage greatly promotes, and is greatly promoted
The security degree of luggage case, solves the easily stolen the technical issues of taking of important objects in luggage case.
In addition, the security performance boost of intelligent luggage, the tourism that user carries intelligent luggage, which is gone on business, to be no longer needed to as important object
Part worries, tourism go on business experience become more easily, it is happy and feel at ease, the tourism for improving user is gone on business quality.
Further, in another embodiment of the application control method for electronic lock, if being to match for the first time in the exterior terminal
To terminal, after establishing bluetooth module the step of connection with the Bluetooth pairing for matching terminal for the first time, control method for electronic lock is also wrapped
It includes:
Judge that bluetooth module is greater than with the RSSI signal strength for matching terminal for the first time and presets very big threshold value;If RSSI signal is strong
Degree is greater than preset strength threshold value, then controls electronic lock auto-unlocking.
It is established after Bluetooth pairing connect in bluetooth module and the pairing terminal for the first time of intelligent luggage, can check intelligence in real time
The bluetooth module of luggage with match for the first time terminal RSSI (Received Signal Strength Indicator, it is received
Signal strength instruction) signal strength, and by bluetooth module and match the RSSI signal strength of terminal for the first time and preset very big threshold value
It is compared.If RSSI signal strength is greater than preset strength threshold value, show intelligent luggage and the pairing terminal for the first time that user holds
Between spacing it is very small, intelligent luggage is in the visual field and control range of user, and user is likely to be to need to open
With the intelligent luggage of arrangement, the bluetooth module of intelligent luggage or processor can voluntarily generate unlocking instruction at this time, to control intelligent box
The electronic lock of packet is unlocked, to more accurately speculate user to intelligent luggage under the premise of guaranteeing intelligent luggage safety
Unlocking demand improves the unlocking efficiency of intelligent luggage.
Optionally, it if being to match terminal for the first time in the exterior terminal, establishes bluetooth module and matches the indigo plant of terminal for the first time
After the step of tooth pairing connection, control method for electronic lock further include:
Minimum threshold value is preset with whether the RSSI signal strength for matching terminal for the first time is less than when detecting bluetooth module, or
Bluetooth module disconnects pairing connection with pairing terminal for the first time, then controls electronic lock and shut.
Established after Bluetooth pairing connect in bluetooth module and the pairing terminal for the first time of intelligent luggage, compare bluetooth module and
The RSSI signal strength of terminal is matched for the first time and presets minimum threshold value.If shareholder, which is less than, before RSSI signal presets minimum threshold value, table
It is wise can the spacing matched between terminal for the first time that holds of luggage and user be bigger or bluetooth module and matches terminal for the first time
Pairing connection is disconnected, shows that intelligent luggage is greater than bluetooth connection effective distance with the spacing for matching terminal for the first time or shows user
It is actively disconnected the Bluetooth pairing matched for the first time between terminal and the bluetooth module of intelligent luggage to connect, and then shows intelligent luggage
Except the visual field and control range in user, user has no time to attend to intelligent luggage, and user will not use intelligent luggage, therefore
Control electronic lock is shut at this time, it is ensured that safety of the intelligent luggage when user has no time to keep an eye on is also prevented from user and forgets to intelligence
Luggage is shut far from after luggage case, and intelligent luggage is in unlocking condition and steals important objects.
In addition, control method for electronic lock of the present invention further include:
Step A1, when detect bluetooth module and for the first time match terminal RSSI signal strength be greater than or equal to preset it is minimum
It is worth and is less than or equal to default maximum, obtains the current switch latching mode of electronic lock;
When detecting that bluetooth module and the RSSI signal strength for matching terminal for the first time be greater than or equal to default minimum and small
In or equal to default maximum, the spacing matched between terminal for the first time for showing that intelligent luggage and user are held is not to connect very much
Closely, it also not completely disengaging in the visual field and control range of user, intelligent luggage is there are the security risk in controlled range at this time,
But the switch lock convenience for taking into account intelligent luggage again, it is not very appropriate for directly controlling electronic lock at this time and unlocking or shut.Cause
This, switch lock convenience and security performance, can obtain the current switch latching mode of electronic lock in order to balance.The switch lock of electronic lock
Mode may include safe mode and convenient mode, and the switch latching mode of electronic lock can be arranged in user based on self-demand.Electronics
Lock is in safe mode, then shows that user focuses more on the security demand and security level of intelligent luggage, antitheft to intelligent luggage
Demand is stronger, and the auto-unlocking of electronic lock should more with caution at this time.Electronic lock is in convenient mode, then shows user more
The switch lock convenience for paying attention in intelligent luggage, it is slightly weaker for the security demand and security level demand of intelligent luggage, this
When electronic lock auto-unlocking should be more convenient.
Step A2, if current switch latching mode is safe mode, control electronic lock is shut, and is received for the first time in bluetooth module
After the unlocking instruction that the real time identity data of pairing terminal authentication user input are sent after passing through, control electronic lock is unlocked;
If current switch latching mode is safe mode, for the security performance for guaranteeing intelligent luggage, first controls electronic lock and shuts,
The unlocking instruction sent after the real time identity data of detection terminal side verifying user's input pass through, if bluetooth module receives out
Lock instruction, shows it is to need to unlock on user's subjective desire at this time, and intelligent luggage is in the user visual field and control range at this time,
To control electronic lock unlocking, the safety and anti-theft performance of intelligent luggage ensure that.
Step A3 controls electronic lock unlocking if current switch latching mode is convenient mode.
If the current switch latching mode of intelligent luggage is convenient mode, user focuses more on the switch lock of intelligent luggage at this time
Convenience, due to knowing that intelligent luggage is moderate apart from user distance at this time based on RSSI signal strength, there are stolen risk is lower,
It can control electronic lock unlocking at this time.To further consider user couple when intelligent luggage is not far close at a distance from user
The current switch latching mode of intelligent luggage setting realizes different plans based on user to intelligent luggage security demand and convenient demand
Switch lock slightly, realizes the balance of security demand and convenient demand.
Further, in the another embodiment of the application control method for electronic lock, referring to Fig. 3 to 6, electronic lock includes lock
3 and motor 1, motor 1 drives 3 rotation of lock to realize that electronic lock is unlocked and shut, lock 3 or lock STATEMENT OF FEDERALLY SPONSORED (in figure not
Show) rotation path on be arranged induction pieces 2;Induction pieces 2 are used to incude lock 3 or latch the stop place of STATEMENT OF FEDERALLY SPONSORED.
After establishing the step of bluetooth module is connect with the Bluetooth pairing of pairing terminal for the first time, comprising:
The sense state that lock or lock STATEMENT OF FEDERALLY SPONSORED are detected according to induction pieces, obtains the switch state of electronic lock, switchs shape
State includes unlocking condition and shuts state;Switch state is sent to based on bluetooth module and matches terminal for the first time.
Induction pieces 2 are used to incude lock 3 or latch the stop place of STATEMENT OF FEDERALLY SPONSORED, and then determine the switch state of electronic lock.
Induction pieces 2 can be infrared sensor, resistance detection unit etc., if induction pieces 2 are infrared sensor, induction pieces 2 are set to lock 3
Or on the rotation path of lock STATEMENT OF FEDERALLY SPONSORED, induction pieces 2 are preferably disposed on the end of rotation path, such as induction pieces 2 are set to electricity
Lock 3 or lock STATEMENT OF FEDERALLY SPONSORED are set in the unlocking stop place of rotation path or induction pieces 2 when son lock is in unlocking condition
Electronic lock, which is in when shutting state to latch 3 or latch STATEMENT OF FEDERALLY SPONSORED, shuts stop place in rotation path.Induction pieces 2 are infrared biography
Sensor can determine whether lock 3 or lock STATEMENT OF FEDERALLY SPONSORED are in induction by the circumstance of occlusion (i.e. sense state) of infrared light
The setting position of part, and then determine the switch state of electronic lock.
In the present embodiment, the switch state of electronic lock is accurately obtained by the way that induction pieces are arranged, it is not necessary to such as existing electronic lock
It only relies on acquisition initial switch state and unlocking on software and shuts switching times, carry out the Real-Time Switch shape of unreliable presumption electronic lock
State, such as initial switch state are the state that shuts, and it is three times, then to estimate electronic lock on software and open in real time that unlocking, which shuts switching times,
Off status is unlocking condition.But it is estimated on software and is easy to be shut that switching times numerical value is excessive, software fault by such as unlocking
Equal fortuitous events influence, and the application realizes the reliable detection of electronic lock switch state by the induction pieces on hardware.And it is same
Electronic lock switch state is sent to the pairing terminal for the first time of Bluetooth pairing connection by step, so that user checks.
Specifically, induction pieces are spring leaf, spring leaf circuit connection preset resistance detection unit, and spring leaf is set to lock
Or initial position or the final position of the rotation path of lock STATEMENT OF FEDERALLY SPONSORED;
The step of detecting lock according to induction pieces or latch the sense state of STATEMENT OF FEDERALLY SPONSORED, obtaining the switch state of electronic lock packet
It includes:
Step A obtains the resistance value of resistance detection unit detection;
It referring to figure 5 and figure 6, only need to be on lock 3 or the rotation road of lock STATEMENT OF FEDERALLY SPONSORED in the specific embodiment of intelligent luggage
Spring leaf 2 is arranged in diameter, and the position that spring leaf 2 is arranged can be initial position or the final position of rotation path.
The resistance value of resistance detection unit detection is obtained, that is, obtain lock 3 or the touching of lock STATEMENT OF FEDERALLY SPONSORED or is detached from spring leaf 2
When, the resistance value of resistance detection unit detection is shut and unlocking condition because lock 3 or lock STATEMENT OF FEDERALLY SPONSORED are in electronic lock,
It only exists touching or is detached from two kinds of situations of spring leaf.For example, electronic lock is in the state that shuts, lock 3 or lock in Fig. 5
STATEMENT OF FEDERALLY SPONSORED is separated with spring leaf 3;In Fig. 6, electronic lock is in unlocking condition, and lock 3 or lock STATEMENT OF FEDERALLY SPONSORED connect with spring leaf 3
Touching.
Step B is in if resistance value is equal to electronic lock and shuts the default of state and shut test value, it is determined that electronic lock is opened
Off status is to shut state;
Step C, if resistance value is equal to the default unlocking test value that electronic lock is in unlocking condition, it is determined that electronic lock is opened
Off status is unlocking condition;
Wherein, electronic lock is in the state that shuts, and lock or lock STATEMENT OF FEDERALLY SPONSORED are contacted with spring leaf, and electronic lock is in unlocking shape
State, lock or lock STATEMENT OF FEDERALLY SPONSORED are separated with spring leaf;
Alternatively, electronic lock is in the state that shuts, lock or lock STATEMENT OF FEDERALLY SPONSORED are separated with spring leaf, and electronic lock is in unlocking shape
State, lock or lock STATEMENT OF FEDERALLY SPONSORED are contacted with spring leaf.
It is default shut test value and default unlocking test value determine using latch or lock STATEMENT OF FEDERALLY SPONSORED as references object,
And determine using be arranged the position of spring leaf using the initial position of rotation path or final position as references object after, pass through
Test electronic lock is under unlocking condition, and the detected value of resistance detection unit detection is that default unlocking test value similarly passes through survey
Examination electronic lock, which is in, to be shut under state, and the detected value of resistance detection unit detection is to preset to shut test value.
In the present embodiment, a kind of specific embodiment of induction pieces is provided, with accurate, stable and at low cost resistance value
Judge to detect instead of insecure pure software, to realize accurately identifying for electronic lock switch state.
Further, the present invention also provides a kind of intelligent luggage electronic lock control device, the intelligence luggage is electronic lock controlled
Device processed includes:
Judgment module, for judging the outside when detecting the exterior terminal with bluetooth module pairing connection
Whether terminal is the pairing terminal for the first time prestored;
Matching module is established the bluetooth module and is matched for the first time if being to match terminal for the first time for the exterior terminal
The Bluetooth pairing of terminal connects;
Switch lock module, for receiving the real time identity data of pairing terminal authentication user input for the first time based on bluetooth module
By the unlocking instruction of rear transmission or instruction is shut, electronic lock is controlled respectively and unlocks or shut.
The present invention also provides a kind of computer readable storage medium, being stored with computer on computer readable storage medium can
The step of reading instruction, which realizes each embodiment of above-mentioned control method for electronic lock when being executed by processor.
Control method for electronic lock of the present invention, electronic lock control, intelligent luggage and computer readable storage medium technology open up
Exhibition and explanation are essentially identical with each embodiment of above-mentioned control method for electronic lock, do not do tired state herein.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or the system that include a series of elements not only include those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or system institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do
There is also other identical elements in the process, method of element, article or system.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in one as described above
In storage medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that terminal device (it can be mobile phone,
Computer, server, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair
Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of control method for electronic lock, which is characterized in that the control method for electronic lock is applied to intelligent luggage, the intelligence
Luggage includes the bluetooth module and electronic lock for being in communication with each other connection;
The control method for electronic lock includes:
When detecting the exterior terminal with bluetooth module pairing connection, judge whether the exterior terminal is the head prestored
Secondary pairing terminal;
If the exterior terminal is to match terminal for the first time, establishes the bluetooth module and connect with the Bluetooth pairing for matching terminal for the first time
It connects;
What is sent after being passed through based on the real time identity data that the bluetooth module receives pairing terminal authentication user input for the first time is opened
Lock instruction shuts instruction, controls electronic lock respectively and unlocks or shut.
2. control method for electronic lock as described in claim 1, which is characterized in that judging whether the exterior terminal is to prestore
The terminal of pairing for the first time the step of before, comprising:
Obtain the mark only for the first time with the terminal of bluetooth module pairing connection, and will match for the first time the terminal of connection as
Terminal is matched for the first time.
3. control method for electronic lock as claimed in claim 2, which is characterized in that described to judge whether the exterior terminal is pre-
The step of terminal of pairing for the first time deposited includes:
It compares the device identification of the exterior terminal and described identifies only;
If the device identification of the exterior terminal and it is described identify only identical, determine to prestore for the first time when the exterior terminal
Match terminal;
If the device identification of the exterior terminal and the mark only are different, determining the exterior terminal not is the head prestored
Secondary pairing terminal.
4. control method for electronic lock as described in claim 1, which is characterized in that establishing the bluetooth module and matching for the first time
After the step of Bluetooth pairing connection of terminal, comprising:
Judge the bluetooth module presets very big threshold value with whether the RSSI signal strength for matching terminal for the first time is greater than;If described
RSSI signal strength is greater than preset strength threshold value, then controls electronic lock auto-unlocking.
5. control method for electronic lock as described in claim 1, which is characterized in that the control method for electronic lock further include:
Minimum threshold value or described is preset when detecting that the bluetooth module is less than with the RSSI signal strength for matching terminal for the first time
Bluetooth module disconnects pairing connection with pairing terminal for the first time, then controls electronic lock and shut;
When detecting that the bluetooth module and the RSSI signal strength for matching terminal for the first time be greater than or equal to default minimum and small
In or equal to default maximum, the current switch latching mode of electronic lock is obtained;
If the current switch latching mode is safe mode, control electronic lock is shut, and is matched for the first time in bluetooth module reception
After the unlocking instruction sent after passing through to the real time identity data of terminal authentication user input, control electronic lock is unlocked;
If the current switch latching mode is convenient mode, electronic lock unlocking is controlled.
6. such as control method for electronic lock described in any one of claim 1 to 5, which is characterized in that the electronic lock includes lock
And motor, the motor, which drives, latches rotation to realize that electronic lock is unlocked and shut, in the lock or turn of lock STATEMENT OF FEDERALLY SPONSORED
Induction pieces are set on dynamic path;
After establishing the step of bluetooth module is connect with the Bluetooth pairing of pairing terminal for the first time, comprising:
The sense state that the lock or lock STATEMENT OF FEDERALLY SPONSORED are detected according to the induction pieces, obtains the switch shape of the electronic lock
State, the switch state include unlocking condition and shut state;
It the switch state is based on the bluetooth module is sent to described to match terminal for the first time.
7. control method for electronic lock as claimed in claim 6, which is characterized in that the induction pieces are spring leaf, the spring
Piece circuit connection preset resistance detection unit, the spring leaf are set to rising for the rotation path of the lock or lock STATEMENT OF FEDERALLY SPONSORED
Beginning position or final position;
The sense state that the lock or lock STATEMENT OF FEDERALLY SPONSORED are detected according to the induction pieces, obtains the switch of the electronic lock
The step of state includes:
When obtaining the lock or the touching of lock STATEMENT OF FEDERALLY SPONSORED or being detached from the spring leaf, the resistance of the resistance detection unit detection
Value;
It is in if the resistance value is equal to the electronic lock and shuts the default of state and shut test value, it is determined that the electronic lock
Switch state is to shut state;
If the resistance value is equal to the default unlocking test value that the electronic lock is in unlocking condition, it is determined that the electronic lock
Switch state is unlocking condition;
Wherein, the electronic lock is in the state that shuts, and the lock or lock STATEMENT OF FEDERALLY SPONSORED are contacted with the spring leaf, the electronics
Lock is in unlocking condition, and the lock or lock STATEMENT OF FEDERALLY SPONSORED are separated with the spring leaf;
Alternatively, the electronic lock is in the state that shuts, the lock or lock STATEMENT OF FEDERALLY SPONSORED are separated with the spring leaf, the electronics
Lock is in unlocking condition, and the lock or lock STATEMENT OF FEDERALLY SPONSORED are contacted with the spring leaf.
8. a kind of electronic lock control device, which is characterized in that the electronic lock control device includes:
Judgment module, for judging the exterior terminal when detecting the exterior terminal with bluetooth module pairing connection
It whether is the pairing terminal for the first time prestored;
Matching module establishes the bluetooth module and matches terminal for the first time if being to match terminal for the first time for the exterior terminal
Bluetooth pairing connection;
Switch lock module, for receiving the unlocking instruction or shut instruction that pairing terminal is sent for the first time based on the bluetooth module,
Control electronic lock is unlocked or is shut respectively.
9. a kind of intelligence luggage, which is characterized in that the intelligence luggage includes memory, processor, motion sensor, bluetooth mould
Block, electronic lock and it is stored in the computer-readable instruction that can be run on the memory and on the processor, the calculating
Realizing the control method for electronic lock as described in any one of claims 1 to 7 when machine readable instruction is executed by the processor
Step.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium
Readable instruction realizes the electronics as described in any one of claims 1 to 7 when the computer-readable instruction is executed by processor
The step of lock control method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910535514.XA CN110145187A (en) | 2019-06-18 | 2019-06-18 | Control method for electronic lock, device, intelligent luggage and readable storage medium storing program for executing |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910535514.XA CN110145187A (en) | 2019-06-18 | 2019-06-18 | Control method for electronic lock, device, intelligent luggage and readable storage medium storing program for executing |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110145187A true CN110145187A (en) | 2019-08-20 |
Family
ID=67595857
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910535514.XA Pending CN110145187A (en) | 2019-06-18 | 2019-06-18 | Control method for electronic lock, device, intelligent luggage and readable storage medium storing program for executing |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110145187A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111508111A (en) * | 2020-04-13 | 2020-08-07 | 广东科徕尼智能科技有限公司 | Method, equipment and storage medium for binding intelligent lock |
CN114071439A (en) * | 2021-11-15 | 2022-02-18 | 宁波奥克斯电气股份有限公司 | Method, device, equipment and storage medium for pairing Bluetooth remote controller and multiple equipment |
CN114913628A (en) * | 2021-12-17 | 2022-08-16 | 天翼数字生活科技有限公司 | Method and system for encrypting luggage case based on Bluetooth technology |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2300674B1 (en) * | 2008-03-11 | 2011-12-07 | Beate Starrmann | Lock device with manual and remote control for movable or portable containers |
CN202950166U (en) * | 2012-10-25 | 2013-05-29 | 歌尔声学股份有限公司 | Anti-theft case and anti-theft case system |
CN103635940A (en) * | 2011-05-02 | 2014-03-12 | 阿派基公司 | Systems and methods for controlling a locking mechanism using a portable electronic device |
CN204920522U (en) * | 2015-08-04 | 2015-12-30 | 新秀集团有限公司 | Case and bag of electrified sub - trick lock |
CN105719374A (en) * | 2016-01-22 | 2016-06-29 | 慧锐通智能科技股份有限公司 | Door access control method |
CN107575094A (en) * | 2017-10-27 | 2018-01-12 | 杭州圣联科技有限公司 | A kind of blue-tooth intelligence lock system and its control method |
-
2019
- 2019-06-18 CN CN201910535514.XA patent/CN110145187A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2300674B1 (en) * | 2008-03-11 | 2011-12-07 | Beate Starrmann | Lock device with manual and remote control for movable or portable containers |
CN103635940A (en) * | 2011-05-02 | 2014-03-12 | 阿派基公司 | Systems and methods for controlling a locking mechanism using a portable electronic device |
CN202950166U (en) * | 2012-10-25 | 2013-05-29 | 歌尔声学股份有限公司 | Anti-theft case and anti-theft case system |
CN204920522U (en) * | 2015-08-04 | 2015-12-30 | 新秀集团有限公司 | Case and bag of electrified sub - trick lock |
CN105719374A (en) * | 2016-01-22 | 2016-06-29 | 慧锐通智能科技股份有限公司 | Door access control method |
CN107575094A (en) * | 2017-10-27 | 2018-01-12 | 杭州圣联科技有限公司 | A kind of blue-tooth intelligence lock system and its control method |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111508111A (en) * | 2020-04-13 | 2020-08-07 | 广东科徕尼智能科技有限公司 | Method, equipment and storage medium for binding intelligent lock |
CN114071439A (en) * | 2021-11-15 | 2022-02-18 | 宁波奥克斯电气股份有限公司 | Method, device, equipment and storage medium for pairing Bluetooth remote controller and multiple equipment |
CN114071439B (en) * | 2021-11-15 | 2023-10-27 | 宁波奥克斯电气股份有限公司 | Bluetooth remote controller and multi-device pairing method, device and storage medium |
CN114913628A (en) * | 2021-12-17 | 2022-08-16 | 天翼数字生活科技有限公司 | Method and system for encrypting luggage case based on Bluetooth technology |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103927806B (en) | Unlocking system and the method thereof of password authentification is performed based on wireless communication module pairing | |
JP5247124B2 (en) | Authentication device, in-vehicle device, and authentication system | |
CN109402941B (en) | Washing machine control method and washing system | |
CN103489243B (en) | There is smart lock and the control method thereof of image collecting function | |
CN107578519A (en) | A kind of intelligent access control system and intelligent entrance guard method for unlocking | |
CN110145187A (en) | Control method for electronic lock, device, intelligent luggage and readable storage medium storing program for executing | |
CN105160302B (en) | Multimodal Biometrics general-purpose platform and identity identifying method | |
CN104537291A (en) | Screen interface unlocking method and screen interface unlocking device | |
CN108604266A (en) | A kind of safe checking method and equipment | |
CN111554020A (en) | Internet of things access control system based on RFID and biological identification | |
CN103378876A (en) | Bluetooth-based terminal unlocking method | |
CN103871139A (en) | School access control management method and embedded mainboard | |
CN105564375B (en) | Door lock for vehicle unlocking method and system | |
CN110049490B (en) | Safety protection method and device for wearable equipment, wearable equipment and medium | |
CN212256412U (en) | Internet of things access control system based on RFID and biological identification | |
CN105721460A (en) | Voiceprint password vehicle control system and method | |
CN203552322U (en) | Intelligent lock with image acquisition function | |
CN109388925A (en) | A kind of mobile device wakes up and unlocking method | |
CN105893823A (en) | Security protection method and device, and intelligent terminal | |
CN105184135A (en) | Fingerprint recognition method and fingerprint recognition system | |
CN105512532A (en) | Mobile terminal screen control processing method and system based on iris recognition | |
CN105975825A (en) | Safety protection method and device, and mobile terminal | |
CN110930548A (en) | Face recognition intelligent security system | |
CN107842254A (en) | A kind of electric padlock and its unlocking method | |
CN107609366A (en) | Screen locking method, mobile terminal and the device of mobile terminal |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190820 |
|
RJ01 | Rejection of invention patent application after publication |