Be applied to the door-locking system in hotel
Technical field
A kind of hotel door-locking system is applied to manage the predetermined field of hotel room, especially is 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, he has different on demand with the domestic electronic door lock, and domestic electronic door lock person requires the multiple door-opening mode of door-opening mode requirement and deposits, convenient unlatching; The electronic lock person of hotel requires single or less door-opening mode to select, and is conducive to like this realization of managing.Hotel's 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 development is rapid, and the especially appearance of electronic lock develops more rapid.
Present electronic lock chooses many, IC lock, radio frequency induction lock, TM lock etc. are arranged, but is still locking with IC in very most hotel at home, select the IC lock to mainly contain two reasons: the first, the technical development of IC lock so for many years, technology is very ripe, so price is generally 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, had solved a lot of problems, and was the stage of China's economic take-off, first existed so a large amount of hotels all uses IC card lock.But the hotel that now newly opens 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.The radio frequency induction technology is exactly just can read the information of unlatching by induction, greatly facilitates the innovation of other correlation techniques.We the most easily touch now be exactly stored value card in public transit system and the I.D. of our a new generation be all the product that the radio frequency induction technology is brought.Aspect the hotel, the design that induction lock is general all seals, do not need to do a slot as the IC lock and read card, as long as being put into induction zone just can read and (will insert several times when a lot of people live the hotel and attempted opening the door with IC-card more, insert and do not know how long Card Reader will just be counted as merit, because the operation of the plug-in card in each hotel has the definition of oneself, had better look for waiter), and speed opens, and the guest also can easily judge whether successfully.IC-card all can cause coming off of IC-card chip or damage because of the incorrect and long-term use of guest's plug-in card in the use in hotel, also causes the damage of the card reader part of door lock, consumes still very large.And induction lock is just different, because be contactless induction, substantially can not damage because of Card Reader lock itself, and contactless card also can not damage because of the Card Reader of contact, and contactless card can be used decades substantially so long as not fractureing or the violence damage.
Although the non-contact inductive clip spring lock has so many advantage, along with the progress of society, its some shortcomings have just revealed, at first, the non-contact inductive card itself is consumables, and theory can be used decades, but just destroys in fact general one or two years, transmit continually because be stuck between different users, wear and tear very large, secondly, give card of user, the user must carry, and thisly carries itself and has also caused very large inconvenience to the user.Therefore, low in the urgent need to a kind of loss, the card class that does not preferably need to carry occurs.Again, swipe the card open the door for the user action itself is also inconvenient too much.
Summary of the invention
In order to solve existing large, the inconvenient problem of various losses of swiping the card and being latched in, the invention provides a kind of brand-new hotel's door-locking system.
A kind of hotel door-locking system comprises: lock body, foreground computer, supervisory routine, handheld device, subscription client, and lock body and handheld device can be carried out data communication, and foreground computer and handheld device can be carried out data communication.
Lock body is to carry out short-distance wireless communication with handheld device, carries out the machinery of the function in unblanking to be latched in and the product of electronics combination, comprises at least; Storer; Microprocessor; And one or more modules, described one or more modules are stored in described storer, and are configured to be carried out by described one or more processors, and described one or more modules comprise for carrying out following instruction: communicate by letter with handheld device; The execution logic flow that locking lock must process of unblanking; The data that deciphering is received; The authority that the executing data the inside comprises.
In lock body, also comprise lock core, dead bolt, shell, motor or electromagnet, spanner, the physical construction of necessity.
The foreground computer is based on the PC with various data-handling capacities or the mobile device of prior art exploitation, comprises at least: display; Storer; One or more processors; And one or more modules, described one or more module is stored in described storer, and be configured to be carried out by described one or more processors, described one or more modules comprise for carrying out following instruction: receive the data message from handheld device; Send data message to handheld device; The software environment of supervisory routine operation is provided.
Supervisory routine is a kind of computer program that runs on the computer of foreground, comprises a plurality of program elements, and described program element can be used for carrying out following instruction at least: for the keeper provides friendly operation interface; Preserve the characteristic information of each lock body, preserve the information state of lock body; Generate the data of encrypting.
Handheld device comprises at least: display; Storer; One or more processors; And one or more modules, described one or more module is stored in described storer, and be configured to be carried out by described one or more processors, described one or more modules comprise for carrying out following instruction: the interface that imposes a condition is provided for the user; The result that shows user's operation at display screen; Reception is from the data of foreground computer; Be locked into row data communication; The execution logic flow that locking must be passed through of unblanking.
Subscription client runs on handheld device of the present invention, according to different handheld devices, has different versions and operation interface; In above-mentioned application program, have a plurality of modules, described a plurality of modules, based on the hardware and software environment that handheld device provides, can realize following functions at least: the short-range communications functionality by handheld device transmits and receive data; For the user provides friendly virtual interface; Obtain user's operation intention; Generate corresponding director data according to user's operation intention.
The implementation method of a kind of hotel door lock comprises:
1) user obtains to move in the authority of hotel room by the foreground in hotel;
2) foreground in hotel is encrypted by the authority of supervisory routine with hotel room, and sends to user's handheld device;
3) handheld device receive data, and the mode by short haul connection sends to door lock with data;
4) door lock receives the enciphered data from handheld device;
5) enciphered data that receives is decrypted;
6) judge whether the information that data comprise meets the condition of unblanking, if eligible, unblanks, if ineligible, does not unblank.
In said method, the user can obtain to move in the authority of hotel room by mode direct and foreground customer service registration, also can obtain to move in by the mode that comprises phone, network the authority of hotel room.
The method of a kind of hotel door lock judgement handheld device unlocking authority comprises:
1) door lock is connected the short-distance wireless connection with handheld device;
2) door lock receives the enciphered data from handheld device;
3) receipt that receives of deciphering gets data the insides parameter;
4) judge whether parameter information meets the default condition of door lock, if eligible, unblanks, if ineligible, refusal is unblanked.
In said method, the data of encryption include at least: the characteristic information of the hotel room door lock of the authority that obtains, the characteristic information in hotel, the time limit of moving in.
In said method, parameter comprises at least: the characteristic information of door lock, the time of unblanking.
The application of the invention can realize following effect at least:
1, the user opens the room to the hotel does not need the band card, only need to carry mobile phone and get final product.
2, door lock and foreground computer do not need networking, know namely the current mobile phone of user in which section period can open the door.
3, the hotel does not block the loss of class article.
4, the user even can be without the foreground directly obtains the authority of moving in the room on the net.
Description of drawings
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 of door lock judgement handheld device unlocking authority of the present invention.
Embodiment
Fig. 1 is composition schematic diagram of the present invention.The present invention is comprised of following components altogether: lock body, foreground computer, supervisory routine, handheld device, subscription client, and lock body and handheld device can be carried out data communication, and foreground computer and handheld device can be carried out data communication.
Lock body is to carry out short-distance wireless communication with handheld device, carries out the machinery of the function in unblanking to be latched in and the product of electronics combination, comprises at least; Storer; Microprocessor; And one or more modules, described one or more modules are stored in described storer, and are configured to be carried out by described one or more processors, and described one or more modules comprise for carrying out following instruction: communicate by letter with handheld device; The execution logic flow that locking lock must process of unblanking; The data that deciphering is received; The authority that the executing data the inside comprises.
In lock body, also comprise lock core, dead bolt, shell, motor or electromagnet, spanner, the physical construction of necessity.
The foreground computer is based on the PC with various data-handling capacities or the mobile device of prior art exploitation, comprises at least: display; Storer; One or more processors; And one or more modules, described one or more module is stored in described storer, and be configured to be carried out by described one or more processors, described one or more modules comprise for carrying out following instruction: receive the data message from handheld device; Send data message to handheld device; The software environment of supervisory routine operation is provided.
Supervisory routine is a kind of computer program that runs on the computer of foreground, comprises a plurality of program elements, and described program element can be used for carrying out following instruction at least: for the keeper provides friendly operation interface; Preserve the characteristic information of each lock body, preserve the information state of lock body; Generate the data of encrypting.
Handheld device comprises at least: display; Storer; One or more processors; And one or more modules, described one or more module is stored in described storer, and be configured to be carried out by described one or more processors, described one or more modules comprise for carrying out following instruction: the interface that imposes a condition is provided for the user; The result that shows user's operation at display screen; Reception is from the data of foreground computer; Be locked into row data communication; The execution logic flow that locking must be passed through of unblanking.
Subscription client runs on handheld device of the present invention, according to different handheld devices, has different versions and operation interface; In above-mentioned application program, have a plurality of modules, described a plurality of modules, based on the hardware and software environment that handheld device provides, can realize following functions at least: the short-range communications functionality by handheld device transmits and receive data; For the user provides friendly virtual interface; Obtain user's operation intention; Generate corresponding director data according to user's operation intention.
Fig. 2 is the invention process process flow diagram.Enforcement of the present invention needs through following steps:
Step 1: the user obtains to move in the authority of hotel room by the foreground in hotel; In this step, the user can obtain to move in the authority of hotel room by mode direct and foreground customer service registration, also can obtain to move in by the mode that comprises phone, network the authority of hotel room.If the authority that obtains to move in by mobile phone, that the user clicks corresponding button on cell-phone customer terminal, send the data to the foreground computer in hotel, in this simultaneously, as preferably, between the system in hotel and the system of cell-phone customer terminal, can carry out data synchronous, when the user books rooms by cell-phone customer terminal, can directly get remaining room, hotel number, and concrete residue room, the price in room etc., by user's client, can choose and meet the room that oneself requires, and submit order to.After user's the request msg of booking rooms is received on the foreground in hotel, can examine user's the information such as qualification, if audit has been passed through, accept user's order.More easily, the hotel even can require the user directly by cell-phone customer terminal, predetermined room charge to be paid.
step 2: the foreground in hotel is encrypted by the authority of supervisory routine with hotel room, and sends to user's handheld device, if user's request has been passed through on the foreground in hotel, and the user has also paid expense, reception counter of hotel sends to the user after the authority of hotel room is encrypted, the mode of this transmission, the mode that can directly push by the internet, also can allow the user be connected the data that computer carries out short-distance wireless communication with the hotel connects, the room of opening such as the user is 302, the lock title of 302 correspondences is: hotel302, the mac address is: 11:11:11:11:11:11, the time that the user orders is 11:59 on the 2nd in April 12:00 to 2013 year on the 1st April in 2013, the foreground computer becomes a string data with above-mentioned information combination, and data are encrypted, again data are sent.
Step 3: the handheld device receive data, and the mode by short haul connection sends to door lock with data; The data the inside that handheld device receives, at least comprise the hotel and given the time that handheld device can open the door, the room door lock feature information of opening the door, room location etc., so handheld device has first read mac address and the title in the room that the user orders, can automatically search for around the door lock that meets this mac address and title, if searched, will send to door lock to the data of whole encryption.
Step 4: door lock receives the enciphered data from handheld device; The door lock setting is to accept all data, so the data that send over for handheld device receive.
Step 5: the enciphered data that receives is decrypted; Because data are what to be encrypted, so the manner of decryption that door lock must be appointed with both sides is decrypted data.
Step 6: judge whether the information that data comprise meets the condition of unblanking, if eligible, unblanks, if ineligible, does not unblank.because decipher the front, so just equal to have got the data of front, this moment, door lock oneself carried a clock module, so can read the present time, then the time inside the time that reads and the data that decrypt that receive is compared, if the time of this moment is to be between 11:59 on April 2,12:00 to 2013 year on the 1st April in 2013, the authority that proves this handheld device is effective, unblank to the user, if the time is not between on April 2,12:00 to 2013 year on the 1st April in 2013 11:59, the handheld device that proves the user is invalid, do not unblank to the user.
Fig. 3 is the method flow diagram of door lock judgement handheld device unlocking authority of the present invention.In the present invention, the method for door lock judgement handheld device unlocking authority need to be passed through following steps.
Step 1: door lock is connected short-distance wireless and is connected with handheld device.This establishment of connection, it is generally the handheld device active, door lock is passive, because which handheld device door lock can't know is to think and the handheld device that oneself connects, and handheld device is when receiving enciphered data, the inside has just comprised the characteristic information of door lock, such as the mac address of door lock, pairing password, door lock title etc.After handheld device receives these data and parses these data, equipment around can automatic search, if searched the equipment of mac address, pairing password, door lock name-matches, automatically and its connect.
Step 2: door lock receives the enciphered data from handheld device.The request that door lock receives from handheld device connects later on, and then both sides carry out data communication, and handheld device will send to door lock from the data that the keeper receives over there.This process is equivalent to insert in common door lock key and begins rotation.
Step 3: the receipt that receives of deciphering gets data the insides parameter; Between door lock and foreground computer, appoint set cipher mode, by using set cipher mode, can be decrypted operation to the data that receive.
Step 4: judge whether parameter information meets the default condition of door lock, if eligible, unblanks, if ineligible, refusal is unblanked.door lock oneself carries a clock module, so can read the present time, then the time inside the time that reads and the data that decrypt that receive is compared, such as the data deciphering that the receives time out is 11:59 on the 2nd in April 12:00 to 2013 year on the 1st April in 2013, the time of this moment is 18:00 on April 1st, 2013, and the time of this moment is to be between 11:59 on April 2,12:00 to 2013 year on the 1st April in 2013, the authority that proves this handheld device is effective, unblank to the user, if the time is not between on April 2,12:00 to 2013 year on the 1st April in 2013 11:59, the handheld device that proves the user is invalid, do not unblank to the user.