Be applied to the door-locking system in hotel
Technical field
A kind of hotel door-locking system, is applied to the predetermined field of management hotel room, is especially applied to by the field of mobile phone at hotel reservation.
Background technology
Wherein a part of series of products of hotel lock and electronic lock, it is different that he and domestic electronic door lock have in demand, and domestic electronic door lock person requires the multiple door-opening mode of door-opening mode requirement and deposits, and conveniently opens; Hotel electronic lock person then requires that single or less door-opening mode is selected, and is conducive to the realization managed like this.Hotel lock develops into present electronic lock from initial mechanical lock, then is combined with hotel management by electronic lock again, forms the grid in hotel, and rapidly, the especially appearance of electronic lock, develops more rapid in development.
Present electronic lock chooses many, there are IC lock, radio frequency induction lock, TM lock etc., but still very most hotel is locking with IC at home, IC lock is selected to mainly contain two reasons: the first, the technical development of IC lock so for many years, technology is very ripe, so price is general all very cheap.The second, IC card lock was once proclaimed oneself king together at the stage of history, because he had done technical revolution than former electronics technically, solved a lot of problem, and was the stage of China's economic take-off, so a large amount of hotels all uses IC card lock until first exist.But the hotel newly opened now does not generally re-use IC card lock, because there has been the appearance of radio frequency induction technology to change the concept of contact.Radio frequency induction technology is exactly just can read the information of opening by induction, greatly facilitates the innovation of other correlation techniques.What we the most easily touched now is exactly the stored value card in public transit system is all the product that radio frequency induction technology is brought with the I.D. of our a new generation.In hotel, the design that induction lock is general is all sealing, do not need will do a slot to read card as IC lock, as long as be put into induction zone (will insert several times time a lot of Ren Zhu hotel all attempts opening the door with IC-card with regard to reading more, insert and do not know how long Card Reader just will be counted as merit, because the plug-in card operation in each hotel has the definition of oneself, had better waiter be looked for), and speed is opened, guest also can easily judge whether successfully.The use of IC-card in hotel all can cause coming off or damaging of IC card chip because of the use that the plug-in card of guest is incorrect and long-term, also cause the damage of the card reader portion of door lock, consumes still very large.And induction lock is just different, because be non-contact inductive, substantially can not damage lock itself because of Card Reader, and contactless card also can not damage because of the Card Reader of contact, contactless card, so long as not fractureing or violence damage, can use decades substantially.
Although non-contact inductive clip spring lock has so many advantage, along with the progress of society, its some shortcomings have just revealed, first, non-contact inductive card itself is consumables, and theory can use decades, but just destroys in fact general one or two years, because card transmits among different users continually, wearing and tearing are very large, secondly, to user one card, user must carry with, and thisly carries itself and also result in very large inconvenience to user.Therefore, low in the urgent need to a kind of loss, preferably do not need the card class of carrying to occur.Again, swipe the card open the door too many also inconvenient for the action of itself user.
Summary of the invention
In order to solve large, the inconvenient problem of the existing various losses that are latched in of swiping the card, the invention provides a kind of brand-new hotel's door-locking system.
A kind of hotel door-locking system, comprising: lock body, foreground computer, supervisory routine, handheld device, subscription client, lock body and handheld device can carry out data communication, and foreground computer and handheld device can carry out data communication.
Lock body can carry out short-distance wireless communication with handheld device, performs the product of machinery and the electronics combination unblanking to be latched in interior function, at least comprise; Storer; Microprocessor; And one or more module, described one or more module is stored in which memory, and is configured to be performed by described one or more processor, and described one or more module comprises for performing following instruction: communicate with handheld device; Perform locking of unblanking and lock the logic flow had to pass through; Decipher the data received; Perform the authority comprised inside data.
In lock body, also comprise lock core, dead bolt, shell, motor or electromagnet, spanner, the physical construction of necessity.
Foreground computer be based on prior art exploitation the PC with various data-handling capacity or mobile device, at least comprise: display; Storer; One or more processor; And one or more module, described one or more module is stored in which memory, and be configured to be performed by described one or more processor, described one or more module comprises for performing following instruction: receive the data message from handheld device; Data message is sent to handheld device; The software environment that supervisory routine is run is provided.
Supervisory routine is a kind of computer program run on the computer of foreground, comprises multiple program element, and described program element at least may be used for performing following instruction: for keeper provides friendly operation interface; Preserve the characteristic information of each lock body, preserve the information state of lock body; Generate the data of encryption.
Handheld device at least comprises: display; Storer; One or more processor; And one or more module, described one or more module is stored in which memory, and be configured to be performed by described one or more processor, described one or more module comprises for performing following instruction: for user provides the interface imposed a condition; In the result of display screen display user operation; Receive the data from foreground computer; Be locked into row data communication; Perform the logic flow that locking of unblanking has to pass through.
Subscription client, runs in handheld device of the present invention, according to different handheld devices, has different versions and operation interface; In above-mentioned application program, there is multiple module, described multiple module, based on the hardware and software environment that handheld device provides, at least can realize following functions: transmitted and receive data by the short-range communications functionality of handheld device; For user provides friendly virtual interface; Obtain the operation intention of user; Operation intention according to user generates corresponding director data.
An implementation method for hotel's door lock, comprising:
1) user obtains the authority of moving in hotel room by the foreground in hotel;
2) foreground in hotel is encrypted by the authority of supervisory routine by hotel room, and sends to the handheld device of user;
3) handheld device receives data, and data are sent to door lock by the mode of short haul connection;
4) door lock receives the enciphered data from handheld device;
5) enciphered data received is decrypted;
6) judge whether the information that packet contains meets the condition of unblanking, if eligible, then unblanks, if ineligible, does not then unblank.
In the above-mentioned methods, user can by directly and the mode that register of foreground customer service obtain the authority of moving in hotel room, also can by comprising phone, the mode of network obtains the authority of moving in hotel room.
Hotel's door lock judges a method for handheld device unlocking authority, comprising:
1) door lock and handheld device are set up short-distance wireless and are connected;
2) door lock receives the enciphered data from handheld device;
3) decipher the receipt received, get parameter inside data;
4) judge whether parameter information meets the default condition of door lock, if eligible, then unblanks, if ineligible, then refusal is unblanked.
In the above-mentioned methods, the data of encryption at least include: obtain the characteristic information of the hotel room door lock of authority, the characteristic information in hotel, time limit of moving in.
In the above-mentioned methods, parameter at least comprises: the characteristic information of door lock, the time of unblanking.
The application of the invention at least can realize following effect:
1, user opens room to hotel does not need band card, only needs to carry with mobile phone.
2, door lock and foreground computer do not need networking, can know the current mobile phone of user in which section period can open the door.
3, the loss of hotel's not card class article.
4, user even directly can obtain the authority of moving in room online without foreground.
Accompanying drawing explanation
Fig. 1 is composition schematic diagram of the present invention;
Fig. 2 is implementing procedure figure of the present invention
Fig. 3 is the method flow diagram that door lock of the present invention judges handheld device unlocking authority.
Embodiment
Fig. 1 is composition schematic diagram of the present invention.The present invention is made up of following components altogether: lock body, foreground computer, supervisory routine, handheld device, subscription client, and lock body and handheld device can carry out data communication, and foreground computer and handheld device can carry out data communication.
Lock body can carry out short-distance wireless communication with handheld device, performs the product of machinery and the electronics combination unblanking to be latched in interior function, at least comprise; Storer; Microprocessor; And one or more module, described one or more module is stored in which memory, and is configured to be performed by described one or more processor, and described one or more module comprises for performing following instruction: communicate with handheld device; Perform locking of unblanking and lock the logic flow had to pass through; Decipher the data received; Perform the authority comprised inside data.
In lock body, also comprise lock core, dead bolt, shell, motor or electromagnet, spanner, the physical construction of necessity.
Foreground computer be based on prior art exploitation the PC with various data-handling capacity or mobile device, at least comprise: display; Storer; One or more processor; And one or more module, described one or more module is stored in which memory, and be configured to be performed by described one or more processor, described one or more module comprises for performing following instruction: receive the data message from handheld device; Data message is sent to handheld device; The software environment that supervisory routine is run is provided.
Supervisory routine is a kind of computer program run on the computer of foreground, comprises multiple program element, and described program element at least may be used for performing following instruction: for keeper provides friendly operation interface; Preserve the characteristic information of each lock body, preserve the information state of lock body; Generate the data of encryption.
Handheld device at least comprises: display; Storer; One or more processor; And one or more module, described one or more module is stored in which memory, and be configured to be performed by described one or more processor, described one or more module comprises for performing following instruction: for user provides the interface imposed a condition; In the result of display screen display user operation; Receive the data from foreground computer; Be locked into row data communication; Perform the logic flow that locking of unblanking has to pass through.
Subscription client, runs in handheld device of the present invention, according to different handheld devices, has different versions and operation interface; In above-mentioned application program, there is multiple module, described multiple module, based on the hardware and software environment that handheld device provides, at least can realize following functions: transmitted and receive data by the short-range communications functionality of handheld device; For user provides friendly virtual interface; Obtain the operation intention of user; Operation intention according to user generates corresponding director data.
Fig. 2 is the invention process process flow diagram.Enforcement of the present invention, needs through following steps:
Step 1: user obtains the authority of moving in hotel room by the foreground in hotel; In this step, user can by directly and the mode that register of foreground customer service obtain the authority of moving in hotel room, also can by comprising phone, the mode of network obtains the authority of moving in hotel room.If obtained the authority of moving in by mobile phone, then that user clicks corresponding button on cell-phone customer terminal, send the data to the foreground computer in hotel, simultaneously, as preferably, between the system in hotel and the system of cell-phone customer terminal, data syn-chronization can be carried out, when user is booked rooms by cell-phone customer terminal, directly can get remaining room, hotel number, and concrete residue room, the price etc. in room, by the client of user, the room meeting oneself and require can be chosen, and submit order to.After the foreground in hotel receives the request msg of booking rooms of user, can examine information such as the qualifications of user, if examination & verification have passed, then accept the order of user.More easily, hotel even can require that user is directly paid predetermined room charge by cell-phone customer terminal.
Step 2: the foreground in hotel is encrypted by the authority of supervisory routine by hotel room, and sends to the handheld device of user, if the foreground in hotel have passed the request of user, and user has also paid expense, then reception counter of hotel sends to user by after the rights encryption of hotel room, this mode sent, can directly by mode that internet pushes, also the computer in user and hotel can be allowed to carry out the data cube computation of short-distance wireless communication, the room that such as user opens is 302, the lock title of 302 correspondences is: hotel302, mac address is: 11:11:11:11:11:11, the time that user orders is 11:59 on the 2nd in April 12:00 to 2013 year on the 1st April in 2013, then above-mentioned information combination is become a string data by foreground computer, and data are encrypted, again data are sent.
Step 3: handheld device receives data, and data are sent to door lock by the mode of short haul connection; Inside the data that handheld device receives, at least contain room door lock feature information, room location etc. that hotel gives time that handheld device can open the door, enabling, so handheld device first read mac address and the title in the room that user orders, automatically the door lock meeting this mac address and title can be searched for around, if searched, the data of whole encryption will be sent to door lock.
Step 4: door lock receives the enciphered data from handheld device; It is accept all data that door lock is arranged, so the data sended over for handheld device receive.
Step 5: the enciphered data received is decrypted; Because data are encrypted, so the manner of decryption that door lock must be appointed with both sides, to decrypt data.
Step 6: judge whether the information that packet contains meets the condition of unblanking, if eligible, then unblanks, if ineligible, does not then unblank.Because decipher above, so the data before just equaling to have got, now door lock oneself carries a clock module, so the current time can be read, then the time inside the time read and the data decrypted received is compared, if the time is now between 11:59 on the 2nd in April 12:00 to 2013 year on the 1st April in 2013, then prove that the authority of this handheld device is effective, unblank to user, if the time is not between April 12:00 to 2013 year on the 1st April in 2013 11:59 on the 2nd, then prove that the handheld device of user is invalid, then do not unblank to user.
Fig. 3 is the method flow diagram that door lock of the present invention judges handheld device unlocking authority.In the present invention, door lock judges that the method for handheld device unlocking authority needs through following steps.
Step 1: door lock and handheld device are set up short-distance wireless and be connected.This establishment of connection, it is generally handheld device active, door lock is passive, because door lock cannot know which handheld device is the handheld device wanting to be connected with oneself, and handheld device is when reception enciphered data, the inside just includes the characteristic information of door lock, the mac address of such as door lock, pairing password, door lock title etc.Handheld device receives these data and after parsing these data, can equipment around automatic search, if searched the equipment of mac address, pairing password, door lock name-matches, then automatically and its connect.
Step 2: door lock receives the enciphered data from handheld device.Door lock connects after receiving the request from handheld device, and then both sides carry out data communication, and the data over there received from keeper are sent to door lock by handheld device.This process is equivalent to insert key in common door lock and starts to rotate.
Step 3: decipher the receipt received, get parameter inside data; Between door lock and foreground computer, appoint set cipher mode, by using set cipher mode, can to the decrypt data operation received.
Step 4: judge whether parameter information meets the default condition of door lock, if eligible, then unblanks, if ineligible, then refusal is unblanked.Door lock oneself carries a clock module, so the current time can be read, then the time inside the time read and the data decrypted received is compared, the data deciphering such as the received time is out 11:59 on the 2nd in April 12:00 to 2013 year on the 1st April in 2013, time is now 18:00 on April 1st, 2013, and the time is now between 11:59 on the 2nd in April 12:00 to 2013 year on the 1st April in 2013, then prove that the authority of this handheld device is effective, unblank to user, if the time is not between April 12:00 to 2013 year on the 1st April in 2013 11:59 on the 2nd, then prove that the handheld device of user is invalid, then do not unblank to user.