The content of the invention
The purpose of the present invention is intended to solve at least some of the technical problems in related technologies.
For this reason, first purpose of the present invention is to propose a kind of door lock communication system based on safety chip, for solving
Certainly intelligent door lock does not have safety chip in the prior art, can not do local hardware and encrypt safely, and security is than relatively low, and communication
The problem of quality is unstable.
Second object of the present invention is to propose a kind of door lock communication means based on safety chip.
Third object of the present invention is to propose a kind of computer equipment.
Fourth object of the present invention is to propose a kind of non-transitorycomputer readable storage medium.
In order to achieve the above object, first aspect present invention embodiment proposes a kind of door lock communication system based on safety chip
System, it is characterised in that including:Intelligent door lock, radio network gateway, server, terminal device;Wherein, set in the intelligent door lock
Set in first safety chip, the server and the 3rd safety chip is set in the second safety chip, and the terminal device;
The intelligent door lock, is led to for accessing internet by the radio network gateway with the server or the terminal device
Letter interaction;The server, for producing public key and private key by second safety chip, and passes through the public key and private key
The data that communication interaction pair is carried out with first safety chip and the 3rd safety chip are encrypted or decrypt;The intelligence
Can door lock, for producing public key and private key by first safety chip, and pass through the public key and private key pair and described the
The data that two safety chips and the 3rd safety chip carry out communication interaction are encrypted or decrypt;The terminal device, is used
In producing public key and private key by the 3rd safety chip, and pass through the public key and private key pair and second safety chip
The data that communication interaction is carried out with first safety chip are encrypted or decrypt.
The door lock communication system based on safety chip of the embodiment of the present invention, including:Intelligent door lock, radio network gateway, service
Device, terminal device, wherein, set the first safety chip, server are interior second safety chip, and terminal are set in intelligent door lock
3rd safety chip is set in equipment, and intelligent door lock is used to access internet and server or terminal device by radio network gateway
Carry out communication interaction, server is used to produce public key and private key by the second safety chip, and passes through public key and private key pair and the
The data that one safety chip and the 3rd safety chip carry out communication interaction are encrypted or decrypt, and intelligent door lock is used to pass through first
Safety chip produces public key and private key, and is communicated by public key and private key pair with the second safety chip and the 3rd safety chip
Interactive data are encrypted or decrypt, and terminal device is used to produce public key and private key by the 3rd safety chip, and passes through public affairs
The data that key and private key pair carry out communication interaction with the second safety chip and the first safety chip are encrypted or decrypt.Thus,
Intelligent door lock is directly accessed internet by radio network gateway and carries out communication interaction with server or terminal device, and uses peace
The complete local data to communication interaction of chip are encrypted or decrypt, and ensure that door lock communication quality and security.
In addition, the door lock communication system according to the above embodiment of the present invention based on safety chip can also be with following attached
The technical characteristic added:
Alternatively, the terminal device, specifically for setting unlocking cipher, and by prestoring in the 3rd safety chip
Public key and private key to the unlocking cipher and door lock mark be encrypted after be sent to second safety chip;The service
Device, carries out specifically for the data that the public key by prestoring in second safety chip and private key send the terminal device
Decryption obtains the unlocking cipher and door lock mark.
Alternatively, the terminal device, is additionally operable to scan the 2 D code information on the intelligent door lock and obtains the door lock
Mark;The server, is additionally operable to send out the intelligent door lock by the public key and private key to prestore in second safety chip
The data sent, which are decrypted, obtains door lock information, and it is legal to be identified whether according to door lock described in the door lock Information Authentication, if legal,
Then inquire about the working status of the intelligent door lock.
Alternatively, the server, is additionally operable to be obtained and the corresponding intelligence of door lock mark according to default polling cycle
The state of energy door lock, if knowing, the intelligent door lock is in communication state, passes through the public key to prestore in second safety chip
The intelligent door lock is sent to after being encrypted with private key to the unlocking cipher, and sends to terminal device feedback and successfully rings
Should;If knowing, the intelligent door lock is in dormant state, and wake request is sent to the intelligent door lock, and to the terminal device
Feedback sends failure response;The intelligent door lock, specifically for the public key and private key by prestoring in first safety chip
Dock received data and the acquisition unlocking cipher is decrypted, so that what is provided according to the unlocking cipher dual lock user faces
When password matched, if successful match, carry out unlocking processing, and unlocking success response is fed back to the terminal device.
Alternatively, the intelligent door lock, is additionally operable to detection real-time status, if detection knows that current state meets default stop
Dormancy condition, then be switched to resting state, and to the server update state, if detection knows that current state meets default lead to
Creed part, then be switched to communications status, and to the server update state, it is synchronous to carry out data with the server.
In order to achieve the above object, second aspect of the present invention embodiment proposes a kind of door lock communication party based on safety chip
Method, the method are applied to the door lock communication system based on safety chip, the system comprises:Intelligent door lock, radio network gateway, clothes
Business device, terminal device;Wherein, set the first safety chip, the server are interior second safe core is set in the intelligent door lock
3rd safety chip is set in piece, and the terminal device;The intelligent door lock accesses internet by the radio network gateway
Communication interaction is carried out with the server or the terminal device;The server is produced public by second safety chip
Key and private key, and communication friendship is carried out with first safety chip and the 3rd safety chip by the public key and private key pair
Mutual data are encrypted or decrypt;The intelligent door lock produces public key and private key by first safety chip, and passes through
The data that the public key and private key pair carry out communication interaction with second safety chip and the 3rd safety chip add
Close or decryption;The terminal device produces public key and private key by the 3rd safety chip, and passes through the public key and private key
The data that communication interaction pair is carried out with second safety chip and first safety chip are encrypted or decrypt.
The door lock communication means based on safety chip of the embodiment of the present invention, intelligent door lock are used to access by radio network gateway
Internet carries out communication interaction with server or terminal device, and server is used to produce public key and private by the second safety chip
Key, and by public key and private key pair and the first safety chip and the 3rd safety chip carry out communication interaction data be encrypted or
Decryption, intelligent door lock is used to produce public key and private key by the first safety chip, and passes through public key and private key pair and the second safety
The data that chip and the 3rd safety chip carry out communication interaction are encrypted or decrypt, and terminal device is used to pass through the 3rd safe core
Piece produces public key and private key, and carries out communication interaction with the second safety chip and the first safety chip by public key and private key pair
Data are encrypted or decrypt.Thus, intelligent door lock is directly accessed internet by radio network gateway and is set with server or terminal
Standby progress communication interaction, and the local data to communication interaction of chip safe to use are encrypted or decrypt, and ensure that door lock
Communication quality and security.
In addition, the door lock communication means according to the above embodiment of the present invention based on safety chip can also be with following attached
The technical characteristic added:
Alternatively, the terminal device sets unlocking cipher, and the public key by prestoring in the 3rd safety chip and
Private key is sent to second safety chip after the unlocking cipher and door lock mark are encrypted;The server passes through institute
State the data that the public key to prestore in the second safety chip and private key send the terminal device and the acquisition unlocking is decrypted
Password and door lock mark.
Alternatively, the 2 D code information described in the terminal device scans on intelligent door lock obtains the door lock mark;Institute
Server is stated to solve by the data that the public key and private key that prestore in second safety chip send the intelligent door lock
Close acquisition door lock information, it is legal to be identified whether according to door lock described in the door lock Information Authentication, if legal, inquires about the intelligence
The working status of door lock.
Alternatively, the server obtains and the corresponding intelligent door lock of door lock mark according to default polling cycle
State, if knowing, the intelligent door lock is in communication state, passes through the public key and private key pair to prestore in second safety chip
The intelligent door lock is sent to after the unlocking cipher encryption, and is fed back to the terminal device and sends success response;If know
The intelligent door lock is in dormant state, then sends wake request to the intelligent door lock, and feed back and send to the terminal device
Failure response;The intelligent door lock docks received data by the public key and private key that prestore in first safety chip and carries out
Decryption obtains the unlocking cipher, so that the temporary password provided according to the unlocking cipher dual lock user is matched, if
Successful match, then carry out unlocking processing, and feeds back unlocking success response to the terminal device.
Alternatively, the intelligent door lock detection real-time status, if detection knows that current state meets default dormancy condition,
Resting state is then switched to, and to the server update state, if detection knows that current state meets default communication condition,
Communications status is then switched to, and to the server update state, it is synchronous to carry out data with the server.
In order to achieve the above object, third aspect present invention embodiment proposes a kind of computer equipment, including memory, processing
Device and storage on a memory and the computer program that can run on a processor, when the processor performs described program, reality
The door lock communication means based on safety chip described in existing second aspect embodiment.
To achieve these goals, fourth aspect present invention embodiment proposes a kind of computer-readable storage of non-transitory
Medium, when the instruction in the storage medium is performed by processor, enabling perform described in second aspect embodiment
Door lock communication means based on safety chip.
The additional aspect of the present invention and advantage will be set forth in part in the description, and will partly become from the following description
Obtain substantially, or recognized by the practice of the present invention.
Embodiment
The embodiment of the present invention is described below in detail, the example of the embodiment is shown in the drawings, wherein from beginning to end
Same or similar label represents same or similar element or has the function of same or like element.Below with reference to attached
The embodiment of figure description is exemplary, it is intended to for explaining the present invention, and is not considered as limiting the invention.
Below with reference to the accompanying drawings the door lock communication system and method based on safety chip of the embodiment of the present invention are described.
At present, in existing door-locking system, intelligent door lock, server, terminal device etc. all do not have safety chip, can not
Do local hardware to encrypt safely, security is than relatively low, and needs in communication process by BLE/ZigBee gateways and Wi-Fi roads
By device transfer, cause door lock communication quality unstable.
For this problem, an embodiment of the present invention provides the door lock communication system based on safety chip, intelligent door is realized
Lock is directly accessed internet by radio network gateway and carries out communication interaction, and intelligent door lock, clothes with server or terminal device
Business device, terminal device all set the local data to communication interaction of safety chip to be encrypted or decrypt, and ensure that door lock communicates
Quality and security.It is specific as follows:
Fig. 3 is the structure diagram of the door lock communication according to an embodiment of the invention based on safety chip.Such as Fig. 3 institutes
Show, being somebody's turn to do the door lock communication system based on safety chip includes:Intelligent door lock 100, radio network gateway 200, server 300 and terminal are set
Standby 400.
Wherein, set the first safety chip 101, server 300 are interior second safety chip 301 is set in intelligent door lock 100,
And the 3rd safety chip 401 is set in terminal device 400.
Specifically, intelligent door lock 100 is used to set with server 300 or terminal by the access of radio network gateway 200 internet
Standby 400 carry out communication interaction.It can be based on low-consumption wireless (such as NBIOT, Lora or Zigbee) network, intelligent door lock 100
Low-consumption wireless gateway (gateway is not required in NBIOT) is directly connected into internet so that low power consumption wireless network communication quality obtains
To guarantee.
It should be noted that the present invention implement in, than as shown in figure 4, intelligent door lock be different from Fig. 1 shown in structure,
Further include:The communication modules such as safety chip, NBIOT modules and BLE modules.By low-consumption wireless (such as NBIOT, Lora) module
Communication module introduces intelligent door lock 100, it is not necessary to BLE/Zigbee gateways and Wi-Fi servers.Reduce gateway, Wi-Fi clothes
There is the hidden danger that Single Point of Faliure is brought in business device, and overcomes the unstability of prior wireless network.
Server 300 is used to produce public key and private key by the second safety chip 301, and passes through public key and private key pair and the
The data that one safety chip 101 and the 3rd safety chip 401 carry out communication interaction are encrypted or decrypt.
Intelligent door lock 100 is used to produce public key and private key by the first safety chip 101, and by public key and private key pair with
The data that second safety chip 301 and the 3rd safety chip 401 carry out communication interaction are encrypted or decrypt.
Terminal device 400 is used to produce public key and private key by the 3rd safety chip 401, and by public key and private key pair with
The data that second safety chip 301 and the first safety chip 101 carry out communication interaction are encrypted or decrypt.
It is appreciated that yes, door lock can be connected into internet by intelligent door lock 100 by various wireless communication techniques so that
Remote unlocking is realized by terminal device 400.For example, at a time when have friend's arrival in the case of nobody in family, can be by sharing
Disposal password is to friend, and after the password is by associated safety chip encryption, and it is close remotely on intelligent door lock 100 to configure this
Code, so that friend is voluntarily entered by the password, is user-friendly.
It should be noted that intelligent door lock and server or terminal device carry out communication interaction data be not limited to it is above-mentioned
Password, can also be and update the data etc., can be needed make choice setting according to practical application.
Specifically, by taking communication data is unlocking cipher as an example, in one embodiment of the invention, terminal device 400 is used
In set unlocking cipher, and the public key by prestoring in the 3rd safety chip 401 and the split lock cipher of private key and door lock identify into
The second safety chip 301 is sent to after row encryption, so that server 300 is used to pass through the public affairs to prestore in the second safety chip 301
The data that key and private key send terminal device 400, which are decrypted, obtains unlocking cipher and door lock mark.
That is, user by terminal device 400 such as mobile phone, tablet computer etc. set password and by the password with
Sent after the encryption of safety chip hardware by modes such as cell phone networks to server 300.
Specifically, in one embodiment of the invention, terminal device 400 is additionally operable to two on scanning intelligent door lock 100
Tie up code acquisition of information door lock mark, server 300 is additionally operable to public key by prestoring in the second safety chip 301 and private key to intelligence
The data that energy door lock 100 is sent, which are decrypted, obtains door lock information, and it is legal to be identified whether according to door lock Information Authentication door lock, if closing
Method, then inquire about the working status of intelligent door lock.
That is, intelligent door lock and corresponding terminal are set by way of scanning two dimension acquisition door lock identifies and verifies
It is standby to be bound, wherein, Quick Response Code is the unique mark of door lock, can be generated when dispatching from the factory, and further improves door lock communication
Security.
Wherein, the mode for inquiring about the working status of intelligent door lock has many kinds, is a kind of mode in the cards, server
300 obtain the state of intelligent door lock 100 corresponding with door lock mark according to default polling cycle, if knowing intelligent door lock 100
In communication state, then by the public key to prestore in the second safety chip 301 and intelligence is sent to after private key dual lock password encryption
Door lock 100, and fed back to terminal device 400 and send success response;If knowing, intelligent door lock 100 is in dormant state, to intelligence
Door lock 100 sends wake request, and is fed back to terminal device 400 and send failure response.
It is understood that BLE modules, ZigBee module and NB-IoT (Narrow-band in intelligent door lock 100
Internet of Things, abbreviation arrowband Internet of Things) communication module such as module is generally in resting state, only work as intelligent door
When lock 100 is attempted to input password person triggering, or when reviving by programming timing, it can be just connected with server 300.As
Energy saving, the communication module on intelligent door lock 100, was only activated in user's operation intelligent door lock 100 or according to the setting cycle
Activation, intelligent door lock 100 is carried out network service, remaining time communication module in a dormant state, 100 nothing of intelligent door lock
Method and PERCOM peripheral communication.
Wherein, intelligent door lock 100 is in communication state, can be started in intelligent door lock 100 by people, such as pull-up lid,
By fingerprint, by when touch screen or other operational motions or start by set date, such as set every 1 it is small when connection once service
Device, carries out state and synchronizing information, after can also be each communication interaction.If it should be noted that intelligent door lock 100
It is in closure state, and without new communication interaction in preset time such as 100s, then communication module enters resting state.Its
In, before resting state is entered, communication module will circulate a notice of server 300 so that server 300 correctly judges communication module status.
Wherein, intelligent door lock 100 is in dormant state, can be that communication (such as NBIOT, Lora or Zigbee) module is not sent
With receive any data or communication module according to corresponding communication protocol, fall within periodical communication.The cycle is with leading to
Believe that 300 interaction cycle of module-server is identical, to reduce unnecessary signaling consumption, can also be and recover simultaneously when from dormant state
After establishing connection with server 300, server 300 will update stored communication module status.
Specifically, in one embodiment of the invention, intelligent door lock 100 is by prestoring in the first safety chip 101
Public key and private key dock received data and acquisition unlocking cipher are decrypted, so as to what is provided according to unlocking cipher dual lock user
Temporary password is matched, if successful match, carries out unlocking processing, and feed back unlocking success response to terminal device 400.
Specifically, in one embodiment of the invention, intelligent door lock 100 is used to detect real-time status, if detection is known
Current state meets default dormancy condition, then is switched to resting state, and to the more new state of server 300, if detection is known
Current state meets default communication condition, then is switched to communications status, and to the more new state of server 300, with server 300
It is synchronous to carry out data, further meets door lock communication requirement.
In order to which those skilled in the art are more clear how by the local detailed process that data are encrypted of safety chip, under
Face is described in detail with reference to Fig. 5 and Fig. 6, which can improve the safety of data.
Specifically, as shown in figure 5, communication module initializes first, the Wait Order such as safety chip, passes through SPI (serial peripherals
Interface, Serial Peripheral Interface) receive order;Then judge whether order is effective order, if not
It is that then safety chip continues waiting for order.If it is, processing effective order;Then the effective order that can be performed includes taking
Random number, rsa encryption, RSA decryption, AES encryption and AES decryption, corresponding order is performed according to effective order selection;Finally locate
Effective order is managed, order is returned to waiting for after being disposed.
Wherein, the RSA in Fig. 5 refers to RSA Algorithm, and it is true that RSA Algorithm is based on a foolproof number theory:It is big by two
It is very easy that prime number is multiplied, but it is extremely difficult to be intended to carry out its product factorization, therefore product can be disclosed to work
For encryption key, RSA is current most powerful and most common public key encryption algorithm, it can resist up to the present known
Most cryptographic attacks, be proposed as public key data encryption standard.
AES refers to aes algorithm in Fig. 5, and Rijndael enciphered methods, AES encryption data block packet length are also known as in cryptography
Degree is necessary for 128 bits, and key length can be any one in 128 bits, 192 bits, 256 bits (if data block
And during key length deficiency, meeting polishing), AES encryption has the repetition and conversion much taken turns.
Specifically, as shown in fig. 6, being illustrated so that intelligent door lock carries out rsa encryption and its encrypted authentication flow as an example.Such as
Shown in Fig. 6, first, safety chip by SPI interface receives server or terminal device be transmitted through come ciphertext, then use
Ciphertext is decrypted in RSA methods, obtains private key, and ciphertext ID is verified in decryption, and (other side is transmitted through the ID identifications for the ciphertext come
Number) and ciphertext MAC Address (be included in ciphertext inside MAC Address), if ID and MAC Address are inconsistent, safety chip
Error handle is carried out, if unanimously, acquisition other side is transmitted through random number R 1 come plus overstocked, and (other side is transmitted through coming plus overstocked
Random number), safety chip produces plus overstocked random number R 2, carries out R1+R2 encryptions to ciphertext using RSA methods, is consulted
Encrypted ciphertext data are finally transmitted to other side's (server or terminal device) by public key afterwards by SPI interface.
It should be noted that the local cipher and its encrypted authentication flow of above-mentioned safety chip are in intelligent door lock 100, service
Safety chip in device 300 and terminal device 400 can be realized, RSA can also be substituted with AES, carry out AES encryption and
It is verified.
Thus, can be as follows to the flow of the change configuration password of intelligent door lock 100 by terminal device 400:Pass through terminal
Equipment 400 sets password, which is sent to intelligent door lock by terminal device 400 by networks such as bluetooths or NBIOT, Lora
The first safety chip 101 in 100, the first safety chip 101 receives data by SPI mouthfuls, according to the flow of Fig. 5 and Fig. 6
Password is encrypted, last encrypted data are stored in flash and specify safety zone.
In conclusion the door lock communication system based on safety chip of the embodiment of the present invention, including:It is intelligent door lock, wireless
Gateway, server, terminal device, wherein, set the first safety chip, server are interior second safe core is set in intelligent door lock
3rd safety chip is set in piece, and terminal device, and intelligent door lock is used to access internet and server by radio network gateway
Or terminal device carries out communication interaction, server is used to produce public key and private key by the second safety chip, and passes through public key
The data for carrying out communication interaction with the first safety chip and the 3rd safety chip with private key pair are encrypted or decrypt, intelligent door lock
For producing public key and private key by the first safety chip, and pass through public key and private key pair and the second safety chip and the 3rd safety
The data that chip carries out communication interaction are encrypted or decrypt, and terminal device is used to produce public key and private by the 3rd safety chip
Key, and by public key and private key pair and the second safety chip and the first safety chip carry out communication interaction data be encrypted or
Decryption.Thus, intelligent door lock is directly accessed internet by radio network gateway and carries out communication interaction with server or terminal device,
And the local data to communication interaction of chip safe to use are encrypted or decrypt, and ensure that door lock communication quality and safety
Property.
In order to realize above-described embodiment, the present invention also proposes a kind of door lock communication means based on safety chip, this is based on
The door lock communication means of safety chip includes:
Wherein, this method is applied to the door lock communication system based on safety chip, and system includes:Intelligent door lock, wireless network
Pass, server, terminal device;Wherein, set the first safety chip, server are interior second safety chip is set in intelligent door lock,
And the 3rd safety chip is set in terminal device.
Specifically, intelligent door lock accesses internet by radio network gateway and carries out communication friendship with server or terminal device
Mutually.
Server produces public key and private key by the second safety chip, and passes through public key and private key pair and the first safety chip
The data that communication interaction is carried out with the 3rd safety chip are encrypted or decrypt.
Intelligent door lock produces public key and private key by the first safety chip, and passes through public key and private key pair and the second safe core
The data that piece and the 3rd safety chip carry out communication interaction are encrypted or decrypt.
Terminal device produces public key and private key by the 3rd safety chip, and passes through public key and private key pair and the second safe core
The data that piece and the first safety chip carry out communication interaction are encrypted or decrypt.
In one embodiment of the invention, terminal device sets unlocking cipher, and by prestoring in the 3rd safety chip
Public key and the split lock cipher of private key and door lock mark be encrypted after be sent to the second safety chip;Server passes through the second peace
The data that the public key and private key to prestore in full chip sends terminal device, which are decrypted, obtains unlocking cipher and door lock mark.
In one embodiment of the invention, the 2 D code information on terminal device scans intelligent door lock obtains door lock mark
Know;Acquisition door is decrypted by the data that the public key and private key that prestore in the second safety chip send intelligent door lock in server
Lock information, it is legal to be identified whether according to door lock Information Authentication door lock, if legal, inquires about the working status of intelligent door lock.
In one embodiment of the invention, server obtains and the corresponding intelligence of door lock mark according to default polling cycle
The state of energy door lock, if knowing, intelligent door lock is in communication state, passes through the public key and private key pair to prestore in the second safety chip
Intelligent door lock is sent to after unlocking cipher encryption, and is fed back to terminal device and sends success response;If knowing, intelligent door lock is in
Dormant state, then send wake request to intelligent door lock, and is fed back to terminal device and send failure response;Intelligent door lock passes through first
The public key and private key to prestore in safety chip docks received data and acquisition unlocking cipher is decrypted, so as to according to unlocking cipher
The temporary password that dual lock user provides is matched, if successful match, carries out unlocking processing, and open to terminal device feedback
Lock success response.
In one embodiment of the invention, intelligent door lock detection real-time status, if detection knows that current state meets in advance
If dormancy condition, then resting state is switched to, and to server update state, if to know that current state meets default for detection
Communication condition, then be switched to communications status, and to server update state, it is synchronous to carry out data with server.
In conclusion the door lock communication means based on safety chip of the embodiment of the present invention, intelligent door lock is used to pass through nothing
Line gateway accessing internet carries out communication interaction with server or terminal device, and server is used to produce by the second safety chip
Raw public key and private key, and pass through the data of public key and private key pair and the first safety chip and the 3rd safety chip progress communication interaction
It is encrypted or decrypts, intelligent door lock is used to produce public key and private key by the first safety chip, and passes through public key and private key pair
The data that communication interaction is carried out with the second safety chip and the 3rd safety chip are encrypted or decrypt, and terminal device is used to pass through
3rd safety chip produces public key and private key, and is carried out by public key and private key pair with the second safety chip and the first safety chip
The data of communication interaction are encrypted or decrypt.Thus, intelligent door lock is directly accessed internet and server by radio network gateway
Or terminal device carries out communication interaction, and the local data to communication interaction of chip safe to use are encrypted or decrypt,
It ensure that door lock communication quality and security.
The present invention proposes a kind of computer equipment, and Fig. 7 is the structure of computer equipment according to an embodiment of the invention
Schematic diagram.As shown in fig. 7, memory 21, processor 22 and being stored in the meter that can be run on memory 21 and on processor 22
Calculation machine program.
Processor 22 realizes the door lock communication party based on safety chip provided in above-described embodiment when performing described program
Method.
Further, computer equipment further includes:
Communication interface 23, for the communication between memory 21 and processor 22.
Memory 21, for storing the computer program that can be run on processor 22.
Memory 21 may include high-speed RAM memory, it is also possible to further include nonvolatile memory (non-volatile
Memory), a for example, at least magnetic disk storage.
Processor 22, for performing described program when, realize the communication of the door lock based on safety chip described in above-described embodiment
Method.
If memory 21, processor 22 and the independent realization of communication interface 23, communication interface 21, memory 21 and processing
Device 22 can be connected with each other by bus and complete mutual communication.The bus can be industry standard architecture
(Industry Standard Architecture, referred to as ISA) bus, external equipment interconnection (Peripheral
Component, referred to as PCI) bus or extended industry-standard architecture (Extended Industry Standard
Architecture, referred to as EISA) bus etc..The bus can be divided into address bus, data/address bus, controlling bus etc..
For ease of representing, only represented in Fig. 7 with a thick line, it is not intended that an only bus or a type of bus.
Optionally, in specific implementation, if memory 21, processor 22 and communication interface 23, are integrated in chip piece
Upper realization, then memory 21, processor 22 and communication interface 23 can complete mutual communication by internal interface.
Processor 22 is probably a central processing unit (Central Processing Unit, referred to as CPU), or
Specific integrated circuit (Application Specific Integrated Circuit, referred to as ASIC), or by with
It is set to the one or more integrated circuits for implementing the embodiment of the present invention.
In order to realize above-described embodiment, the present invention also proposes a kind of non-transitorycomputer readable storage medium, when described
Instruction in storage medium is performed by processor, enabling the door lock based on safety chip for performing above-described embodiment leads to
Letter method.
In order to realize above-described embodiment, the present invention also proposes a kind of computer program product, when the computer program produces
When instruction processing unit in product performs, the door lock communication means based on safety chip of above-described embodiment is performed.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show
The description of example " or " some examples " etc. means specific features, structure, material or the spy for combining the embodiment or example description
Point is contained at least one embodiment of the present invention or example.In the present specification, schematic expression of the above terms is not
It must be directed to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be in office
Combined in an appropriate manner in one or more embodiments or example.In addition, without conflicting with each other, the skill of this area
Art personnel can be tied the different embodiments or example described in this specification and different embodiments or exemplary feature
Close and combine.
In addition, term " first ", " second " are only used for description purpose, and it is not intended that instruction or hint relative importance
Or the implicit quantity for indicating indicated technical characteristic.Thus, define " first ", the feature of " second " can be expressed or
Implicitly include at least one this feature.In the description of the present invention, " multiple " are meant that at least two, such as two, three
It is a etc., unless otherwise specifically defined.
Any process or method described otherwise above description in flow chart or herein is construed as, and represents to include
Module, fragment or the portion of the code of the executable instruction of one or more the step of being used for realization custom logic function or process
Point, and the scope of the preferred embodiment of the present invention includes other realization, wherein can not press shown or discuss suitable
Sequence, including according to involved function by it is basic at the same time in the way of or in the opposite order, carry out perform function, this should be of the invention
Embodiment person of ordinary skill in the field understood.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use
In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for
Instruction execution system, device or equipment (such as computer based system including the system of processor or other can be held from instruction
The system of row system, device or equipment instruction fetch and execute instruction) use, or combine these instruction execution systems, device or set
It is standby and use.For the purpose of this specification, " computer-readable medium " can any can be included, store, communicate, propagate or pass
Defeated program is for instruction execution system, device or equipment or the dress used with reference to these instruction execution systems, device or equipment
Put.The more specifically example (non-exhaustive list) of computer-readable medium includes following:Electricity with one or more wiring
Connecting portion (electronic device), portable computer diskette box (magnetic device), random access memory (RAM), read-only storage
(ROM), erasable edit read-only storage (EPROM or flash memory), fiber device, and portable optic disk is read-only deposits
Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can print described program on it or other are suitable
Medium, because can be for example by carrying out optical scanner to paper or other media, then into edlin, interpretation or if necessary with it
His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each several part of the present invention can be realized with hardware, software, firmware or combinations thereof.Above-mentioned
In embodiment, software that multiple steps or method can be performed in memory and by suitable instruction execution system with storage
Or firmware is realized.Such as, if realized with hardware with another embodiment, following skill well known in the art can be used
Any one of art or their combination are realized:With the logic gates for realizing logic function to data-signal from
Logic circuit is dissipated, the application-specific integrated circuit with suitable combinational logic gate circuit, programmable gate array (PGA), scene can compile
Journey gate array (FPGA) etc..
Those skilled in the art are appreciated that to realize all or part of step that above-described embodiment method carries
Suddenly it is that relevant hardware can be instructed to complete by program, the program can be stored in a kind of computer-readable storage medium
In matter, the program upon execution, including one or a combination set of the step of embodiment of the method.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing module, can also
That unit is individually physically present, can also two or more units be integrated in a module.Above-mentioned integrated mould
Block can both be realized in the form of hardware, can also be realized in the form of software function module.The integrated module is such as
Fruit is realized in the form of software function module and as independent production marketing or in use, can also be stored in a computer
In read/write memory medium.
Storage medium mentioned above can be read-only storage, disk or CD etc..Although have been shown and retouch above
The embodiment of the present invention is stated, it is to be understood that above-described embodiment is exemplary, it is impossible to be interpreted as the limit to the present invention
System, those of ordinary skill in the art can be changed above-described embodiment, change, replace and become within the scope of the invention
Type.