CN105243708B - Blocking routine and Redundant Control framework in a kind of smart lock - Google Patents

Blocking routine and Redundant Control framework in a kind of smart lock Download PDF

Info

Publication number
CN105243708B
CN105243708B CN201510611605.9A CN201510611605A CN105243708B CN 105243708 B CN105243708 B CN 105243708B CN 201510611605 A CN201510611605 A CN 201510611605A CN 105243708 B CN105243708 B CN 105243708B
Authority
CN
China
Prior art keywords
main control
chip microcomputer
lock
control singlechip
smart lock
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.)
Active
Application number
CN201510611605.9A
Other languages
Chinese (zh)
Other versions
CN105243708A (en
Inventor
吴勇
孟涛
王福虎
刘黎军
陈森
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
718th Research Institute of CSIC
Original Assignee
718th Research Institute of CSIC
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 718th Research Institute of CSIC filed Critical 718th Research Institute of CSIC
Priority to CN201510611605.9A priority Critical patent/CN105243708B/en
Publication of CN105243708A publication Critical patent/CN105243708A/en
Application granted granted Critical
Publication of CN105243708B publication Critical patent/CN105243708B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Lock And Its Accessories (AREA)
  • Hardware Redundancy (AREA)

Abstract

The present invention provides blocking routine and Redundant Control framework in a kind of smart lock, and it includes:Handover module, enable module, single-chip microcomputer, management module.This invention simplifies the complexity of mcu programming, so that the programming difficulty of SCM Based complication system is substantially reduced, each work post pattern is switched over by restarting, system can will all be carried out initializing and storage allocation again after every time restarting, so effectively reduce the appearance of internal memory spilling or logic error situation.Invention increases Redundant Control so that module faults itself is controlled in limited range, is not in the possibility of fault pervasion, and program reliability of operation has been effectively ensured.Meanwhile, the positioning to bug is also easy to, and also has very big lifting to the convenience of maintenance.

Description

Blocking routine and Redundant Control framework in a kind of smart lock
Technical field
The invention belongs to blocking routine in smart lock control technology field, more particularly to a kind of smart lock and Redundant Control frame Structure.
Background technology
Present smart lock, by various advanced application of electronic technology to the intelligent control of lock body, management and automatically controlled unlatching On so that it has the characteristic such as more intelligent, management, safe and convenient compared to traditional mechanical lock, and sales volume is sent out in blowout Exhibition.But electronic system there are problems that failure, aging, for these problems, there is some double electricity in recent years The appearance of road system or dual motors system smart lock, such as utility model --- stealthy five holes dual system electronic lock.It uses 2 lists The double circuit system of only controlled motor, greatly improves the safety and stability of smart lock, but smart lock or generally existing Problems with:
1. the system work problems such as internal memory spilling.General system program all uses structured design procedures, operates in whole In one big program of multi cycle body of body, and system operation time is longer or when there is logic error, is easily caused system crash.Double systems Although system has 2 system work, there is also this problem simultaneously for each system.
2. communication loss between dual system, and lack alternate mode.2 systems are all to work independently, but 2 are Lack communication between system and contact, such as what situation judges the 1st system errors, and what situation enables the 2nd system;Together When for a long time only using a circuit system and another vacant circuit system, the circuit used for a long time is more easy to always Change, and vacant circuit is not used that there is also problem for a long time.
The content of the invention
To solve the above problems, the present invention provides blocking routine and Redundant Control framework in a kind of smart lock, one is solved As the internal memory that occurs of circuit system the system problem such as overflow, the operation flows such as system testing, switching, management are divided into difference The operational module of level, each module can independent operating it is non-interference, and there is provided perfect operation detection and handover mechanism, cut System refresh internal memory is restarted during the state that changes jobs, system is planned again, the internal memory of a upper mode of operation is released, and is carried The high reliability of system operation.Asked in addition, the present invention is directed to communication loss between dual system, and shortage alternate mode etc. The work problems such as communication and alternating between a kind of topic, it is also proposed that dual system redundancy communication mechanism, effectively solution dual system, are improved Security, the stability of smart lock double circuit system work.
Blocking routine and Redundant Control framework in the smart lock of the present invention, it includes:Handover module, enable module, monolithic Machine, management module;
Wherein:Handover module, is produced for user or keeper when needing smart lock to switch between different working condition Raw switching command;
Management module, for carrying out the administration authority of user or keeper and the verification operation of access right;
Module is enabled, for when user formally uses smart lock, opening in the switching command produced according to handover module With instruction, smart lock is carried out to enable operation;
Single-chip microcomputer includes:Test cell, setting unit, unit to be opened, memory cell and multiple malfunctioning cells;Its In, memory cell is used to store the working mark for characterizing working condition, and the working mark includes:Each malfunctioning cells are corresponding Lock the corresponding action mark to be launched of the corresponding setting action mark of operational motion mark, setting unit, unit to be opened;It is each normal The corresponding lock operational motion mark in working cell includes:Unlock corresponding unlocking action mark, lock it is corresponding lock action mark Will, locking-in state are corresponding to pin mark lock opening of bid will corresponding with lock open state;Single-chip microcomputer all can be according to depositing after restarting every time The working mark record of storage unit storage enters corresponding unit;
The specific works content of single-chip microcomputer includes:
Single-chip microcomputer is for the first time in use, being introduced into test cell carries out single-chip microcomputer integrated testability, if test is not in smart lock It is qualified, stop the use of single-chip microcomputer;If test passes, the administration authority of the management module person of being managed is called to verify, if The management authentication of input is unqualified, and single-chip microcomputer is still in test cell;, will if the management authentication of input is qualified Action mark record to be launched is to memory cell, and single-chip microcomputer is first restarted automatically, enters list to be opened further according to action mark to be launched Member;
If now without using smart lock, single-chip microcomputer is constantly in unit to be opened in smart lock, and now single-chip microcomputer is in Low power consumpting state;If it is desired that with smart lock, then enabling module and the instruction that enables that handover module is produced being issued into unit to be opened, treat Open unit and start the administration authority that setting unit sets the user of management module according to instruction is enabled, and setting action mark is deposited Storage is to memory cell, and complete smart lock enables operation, and then single-chip microcomputer is first restarted automatically in smart lock, is acted further according to setting Mark enters setting unit;
Setting unit sets the access right of the user of management module, will lock up mark record to memory cell, Ran Houdan Piece machine is first restarted automatically, independently calls the pinning mark in memory cell to enter the malfunctioning cells that smart lock is pinned afterwards, with Maintain locking-in state;
When single-chip microcomputer receives the switching command of handover module, management module is called to carry out the access right checking of user, such as Fruit access right is unqualified, and single-chip microcomputer is still in current malfunctioning cells;If access right is qualified, by the new work of switching Make mark record to memory cell, then single-chip microcomputer is first restarted automatically, and the new working mark stored up according to memory cell is entered Enter corresponding setting unit, unit to be opened or new malfunctioning cells.
Further, when switching command indicates to need to reset the access right of the user of management module, it will set Action mark record is to memory cell, single-chip microcomputer and then after restart into setting unit;
When switching command indicates to need low power operation, by action mark record to be launched to memory cell, single-chip microcomputer And then enter unit to be opened after restart;
When switching command indicates to lock, then the action mark record that will lock is to memory cell, and single-chip microcomputer is restarted rear advanced Enter the malfunctioning cells that smart lock locks and carry out operation of locking, then will lock up mark and record to memory cell, instruction of locking Complete;Then the pinning mark in memory cell is called to enter the normal work list that smart lock is pinned after single-chip microcomputer is restarted again Member, maintains locking-in state;
When switching command indicates to unlock, then unlocking action mark is recorded to memory cell, single-chip microcomputer is restarted rear advanced The malfunctioning cells for entering smart lock unlocking carry out unlocking operation, then record lock opening of bid will to memory cell, unlocking instruction Complete;Then call the lock opening of bid will in memory cell to enter smart lock after single-chip microcomputer is restarted again and lock the normal work list opened Member, maintains lock open state.
Further, the single-chip microcomputer includes:Two main control singlechips of first main control singlechip and the second main control singlechip;
When main control singlechip in work breaks down, fault-signal is sent to another main control singlechip, by its replacement Failure main control singlechip works.
Further, the malfunctioning cells drive by main motor drive module and from two motors of motor drive module Module come control perform corresponding operating;
When the motor drive module in work breaks down, another electricity is controlled by the main control singlechip for controlling its work Machine drive module works.
Further, the single-chip microcomputer includes:Two main control singlechips of first main control singlechip and the second main control singlechip, Two single-chip microcomputer Time-sharing controls, redundancy is carried out between the first main control singlechip and the second main control singlechip by redundancy communication mechanism Control switching.
Further, redundancy communication mechanism particular content is as follows:
First main control singlechip and the second main control singlechip are once shaken hands every 5s, and handshaking information is divided into request with answering Answer, handshake request is initiated by the second main control singlechip per 5s:
If the first main control singlechip response, show working properly at present, while the first main control singlechip and the second master control list Piece machine working condition does a free switching, i.e. the first main control singlechip and the second main control singlechip carries out an identity and switched;
If the first non-normal response of main control singlechip failure, the second main control singlechip continues request-reply, continuous 3 every 1s Secondary initiation handshake request does not obtain response, then by the work of second the first main control singlechip of main control singlechip adapter, and points out There is failure in custom system.
Further, if during handshake request, the first main control singlechip just in normal work, then feeds back to the second master control Single-chip microcomputer delay outstanding message, after the first main control singlechip has handled work at present, by the second main control singlechip adapter first The work of main control singlechip.
Further, in the switching of test cell, setting unit, unit to be opened, memory cell and each malfunctioning cells In there is single-chip microcomputer internal memory Overflow handling;I.e.:
Every time during switching, single-chip microcomputer is restarted, and the internal memory of mode of operation after switching is planned again, a upper work The internal memory of operation mode is released.
Beneficial effect:
The present invention provides blocking routine and Redundant Control framework in a kind of smart lock, by by system testing, switching, manage Etc. the operational module that operation flow is divided into different levels, each mode of operation is switched over by restarting, and all can after restarting every time System is carried out to initialize and storage allocation again, the appearance of internal memory spilling or logic error situation is so effectively reduced.
Modules are separate, and degree of coupling reduction, the influence that certain change or error are produced has been limited in very In limited scope, system other parts will not be impacted, drastically increase the stability of system.
Further it is proposed that dual system redundancy communication mechanism, effectively solve dual system between communication and alternately etc. Work problem so that module faults itself is controlled in limited range, is not in the possibility of fault pervasion, improves intelligence Security, the stability of double circuit system work can be locked.Meanwhile, the positioning to bug is also easy to, to the convenience of maintenance Property also has very big lifting.
Brief description of the drawings
Fig. 1 is blocking routine configuration diagram of the invention;
Fig. 2 is Redundant Control configuration diagram of the invention.
Embodiment
The switching of the present invention is to restart to ensure each mode of operation independent operating, different working modes by single-chip microcomputer Only restart just switch automatically by single-chip microcomputer and jump to another operational module, can so ensure system under each pattern Work the independence run, and can effectively reduce the appearance of internal memory spilling or logic error situation.
As shown in figure 1, the present invention smart lock in blocking routine and Redundant Control framework, it includes:Handover module, enable Module, single-chip microcomputer, management module;Wherein:Handover module, smart lock is being needed in different working condition for user or keeper Between switch when produce switching command;
Management module, for carrying out the administration authority of user or keeper and the verification operation of access right;
Module is enabled, for when user formally uses smart lock, opening in the switching command produced according to handover module With instruction, smart lock is carried out to enable operation.
Single-chip microcomputer includes:Test cell, setting unit, unit to be opened, memory cell and multiple malfunctioning cells;Its In, memory cell is used to store the working mark for characterizing working condition, and the working mark includes:Each malfunctioning cells are corresponding Lock the corresponding action mark to be launched of the corresponding setting action mark of operational motion mark, setting unit, unit to be opened;It is each normal The corresponding lock operational motion mark in working cell includes:Unlock corresponding unlocking action mark, lock it is corresponding lock action mark Will, locking-in state are corresponding to pin mark lock opening of bid will corresponding with lock open state;Single-chip microcomputer all can be according to depositing after restarting every time The working mark record of storage unit storage enters corresponding unit;
The specific works content of single-chip microcomputer includes:
Single-chip microcomputer is for the first time in use, being introduced into test cell carries out single-chip microcomputer integrated testability, if test is not in smart lock It is qualified, stop the use of single-chip microcomputer;If test passes, the administration authority of the management module person of being managed is called to verify, if The management authentication of input is unqualified, and single-chip microcomputer is still in test cell;, will if the management authentication of input is qualified Action mark record to be launched is to memory cell, and single-chip microcomputer is first restarted automatically, enters list to be opened further according to action mark to be launched Member;
If now without using smart lock, single-chip microcomputer is constantly in unit to be opened in smart lock, and now single-chip microcomputer is in Low power consumpting state;If it is desired that with smart lock, then enabling module and the instruction that enables that handover module is produced being issued into unit to be opened, treat Open unit and start the administration authority that setting unit sets the user of management module according to instruction is enabled, and setting action mark is deposited Storage is to memory cell, and complete smart lock enables operation, and then single-chip microcomputer is first restarted automatically in smart lock, is acted further according to setting Mark enters setting unit;
Setting unit sets the access right of the user of management module, will lock up mark record to memory cell, Ran Houdan Piece machine is first restarted automatically, independently calls the pinning mark in memory cell to enter the malfunctioning cells that smart lock is pinned afterwards, with Maintain locking-in state;
When single-chip microcomputer receives the switching command of handover module, management module is called to carry out the access right checking of user, such as Fruit access right is unqualified, and single-chip microcomputer is still in current malfunctioning cells;If access right is qualified, by the new work of switching Make mark record to memory cell, then single-chip microcomputer is first restarted automatically, and the new working mark stored up according to memory cell is entered Enter corresponding setting unit, unit to be opened or new malfunctioning cells.
Further, when switching command indicates to need to reset the access right of the user of management module, it will set Action mark record is to memory cell, single-chip microcomputer and then after restart into setting unit;
When switching command indicates to need low power operation, by action mark record to be launched to memory cell, single-chip microcomputer And then enter unit to be opened after restart;
When switching command indicates to lock, then the action mark record that will lock is to memory cell, and single-chip microcomputer is restarted rear advanced Enter the malfunctioning cells that smart lock locks and carry out operation of locking, then will lock up mark and record to memory cell, instruction of locking Complete;Then the pinning mark in memory cell is called to enter the normal work list that smart lock is pinned after single-chip microcomputer is restarted again Member, maintains locking-in state;
When switching command indicates to unlock, then unlocking action mark is recorded to memory cell, single-chip microcomputer is restarted rear advanced The malfunctioning cells for entering smart lock unlocking carry out unlocking operation, then record lock opening of bid will to memory cell, unlocking instruction Complete;Then call the lock opening of bid will in memory cell to enter smart lock after single-chip microcomputer is restarted again and lock the normal work list opened Member, maintains lock open state.
Above-mentioned starting module includes:Bluetooth module and card reading module.
Single-chip microcomputer in whole smart lock is divided into a variety of operational modules and switches over work by the present invention, and pattern switching is logical Single-chip microcomputer is crossed to restart to realize, and each mode of operation is independent operating.Different working modes only need in user When, single-chip microcomputer is restarted automatically by certain operating method and switch and jump to another mode of operation, can so ensure each The independence of system work operation, can effectively reduce the appearance of internal memory spilling or logic error situation under pattern.Working mould The division of block reduces the difficulty and complexity of exploitation SCM program.
Effect preferably, on single-chip microcomputer after electricity, can be initialized first, to the serial ports of single-chip microcomputer itself, register, Memory, RAM areas etc., at the same the ancillary equipment of the system of initialization, and unnecessary ancillary equipment is closed to reduce power consumption, needing Start its work in corresponding mode of operation flow again when wanting, while carrying out fault detect to ancillary equipment.
Effect preferably, redundancy control is provided with smart lock of the invention in the blocking routine of single-chip microcomputer and Redundant Control framework System, as shown in Fig. 2 being presented as:The single-chip microcomputer includes:Two master control monolithics of first main control singlechip and the second main control singlechip Machine;When main control singlechip in work breaks down, fault-signal is sent to another main control singlechip, failure master is replaced by it Control single-chip microcomputer work.Further, the malfunctioning cells are by main motor drive module and from two electricity of motor drive module Machine drive module come control perform corresponding operating;When the motor drive module in work breaks down, by controlling its work Main control singlechip controls another motor drive module to work.
Further, the single-chip microcomputer includes:Two main control singlechips of first main control singlechip and the second main control singlechip, Two single-chip microcomputer Time-sharing controls, redundancy is carried out between the first main control singlechip and the second main control singlechip by redundancy communication mechanism Control switching.
It is reliable in order to ensure shaking hands, communications protection mechanism is added, there is start bit+frame length+information code+answer back code+school Test code+stop bits.Specific redundancy communication mechanism is as follows:First main control singlechip and the second main control singlechip are carried out once every 5s Shake hands, handshaking information is divided into request and response, handshake request is initiated by the second main control singlechip per 5s:If the first main control singlechip Response, shows working properly at present, is once freely cut while the first main control singlechip is done with the second main control singlechip working condition Change, i.e. the first main control singlechip and the second main control singlechip carry out an identity and switched;If the first main control singlechip failure is not just Normal response, then the second main control singlechip continue request-reply every 1s, initiate handshake request and do not obtain response for continuous 3 times, then by The work of second the first main control singlechip of main control singlechip adapter, and point out custom system to there is failure.
If in request process, the first main control singlechip then feeds back to the second main control singlechip delay etc. just in normal work Information is treated, until the first main control singlechip has been handled after work at present, is worked by the second main control singlechip adapter system.
Effect is preferable, in test cell, setting unit, unit to be opened, memory cell and multiple malfunctioning cells There is single-chip microcomputer internal memory Overflow handling in pattern switching;I.e.:
After each pattern switching, single-chip microcomputer is restarted, to be planned again the mode memory, a upper Working mould The internal memory of formula is released.Originally without system reboot, each pattern is simply switched in different loop bodies, without It can restart and single-chip microcomputer internal memory is optimized, Installed System Memory excessively takes or even internal memory overflows using that can cause for a long time, and Cause system work abnormal.
Compliance test result:
It is assumed that bluetooth module normal working probability is 0.9, single-chip microcomputer normal working probability is 0.9, and motor drive module is just The probability that often works is 0.8, and card reading module normal working probability is 0.8, and general intelligence lock is controlled using single control circuit, I.e. independent line bluetooth module-main control singlechip 1- main motor drive modules, then this circuit can the probability of normal work be 0.9*0.9*0.8=0.648;I.e. individually another line card reading module-main control singlechip 2- is from motor drive module, then this bar line Road can normal work probability be 0.8*0.9*0.8=0.576;Add the probability lifting of normal work after redundant circuit very Greatly, only bluetooth module and card reading module simultaneous faults or two main control singlechip simultaneous faults either two motors is same When failure system just can cisco unity malfunction, and this normal working probability can by calculate come, that is, reached 0.9313, Reliability is greatly improved.
Also it is greatly lowered using hierarchical control fault rate, conventional programming techniques perform thinking using serial order, and can lead The failure for causing each module that order is performed thereafter to produce is delivered to next stage, causes fault rate to greatly increase.I.e. certain module is being set Only Exactly-once in standby life cycle, its mistake produced also can always with equipment throughout one's life, cause the long-term of potential safety hazard In the presence of.Specific fault rate is calculated as follows:
Assuming that the probability of each module normal work is 0.9, then multiple modules can normal work probability just to be long-pending Relation, if 3 work in series modules, then normal working probability 0.9*0.9*0.9=0.729, can cause fault rate greatly Increase.If module work is changed into hierarchical control, normal work rate is independent of each other, and each module is independent, itself work Finish after exiting and restarting, not restarting would not also influence the normal work of other modules, i.e. error rate to be defined in itself In the range of, faults itself rate is remained as, the mistake of itself will not be added in other modules, therefore, actually reduces and is System fault rate.
Certainly, the present invention can also have other various embodiments, ripe in the case of without departing substantially from spirit of the invention and its essence Various corresponding changes and deformation, but these corresponding changes and change ought can be made according to the present invention by knowing those skilled in the art Shape should all belong to the protection domain of appended claims of the invention.

Claims (8)

1. the control framework in a kind of smart lock, it controls framework and redundancy communication mechanism comprising blocking routine, it is characterised in that Also include:Handover module, enable module, single-chip microcomputer, management module;
Wherein:Handover module, produces when needing smart lock to switch between different working condition for user or keeper and cuts Change instruction;
Management module, for carrying out the administration authority of user or keeper and the verification operation of access right;
Module is enabled, for when user formally uses smart lock, finger to be enabled in the switching command produced according to handover module Order, carries out enabling operation to smart lock;
Single-chip microcomputer includes:Test cell, setting unit, unit to be opened, memory cell and multiple malfunctioning cells;Wherein, deposit Storage unit is used to store the working mark for characterizing working condition, and the working mark includes:Each malfunctioning cells are corresponding to lock behaviour The corresponding action mark to be launched of the corresponding setting action mark of work action mark, setting unit, unit to be opened;Each normal work The corresponding lock operational motion mark of unit includes:Unlock corresponding unlocking action mark, lock it is corresponding lock action mark, lock Firmly state is corresponding pins mark lock opening of bid will corresponding with lock open state;Single-chip microcomputer all can be according to memory cell after restarting every time The working mark record of storage enters corresponding unit;
The specific works content of single-chip microcomputer includes:
In smart lock single-chip microcomputer first in use, being introduced into test cell carries out single-chip microcomputer integrated testability, if test failure, Stop the use of single-chip microcomputer;If test passes, the administration authority of the management module person of being managed is called to verify, if input Management authentication is unqualified, and single-chip microcomputer is still in test cell;If the management authentication of input is qualified, will be to be launched Action mark record to memory cell, single-chip microcomputer is first restarted automatically, enters unit to be opened further according to action mark to be launched;
If now without using smart lock, single-chip microcomputer is constantly in unit to be opened in smart lock, and now single-chip microcomputer is in low work( Consumption state;If it is desired that with smart lock, then enabling module and the instruction that enables that handover module is produced being issued into unit to be opened, list to be opened Member according to enable instruction start setting unit set management module user administration authority, and by setting action mark store to Memory cell, complete smart lock enables operation, and then single-chip microcomputer is first restarted automatically in smart lock, acts and indicates further according to setting Into setting unit;
Setting unit sets the access right of the user of management module, will lock up mark record to memory cell, then single-chip microcomputer First restart automatically, independently call the pinning mark in memory cell to enter the malfunctioning cells that smart lock is pinned afterwards, to maintain Locking-in state;
When single-chip microcomputer receives the switching command of handover module, management module is called to carry out the access right checking of user, if made Unqualified with authority, single-chip microcomputer is still in current malfunctioning cells;If access right is qualified, by the new work mark of switching Will is recorded to memory cell, and then single-chip microcomputer is first restarts automatically, and the new working mark entrance pair stored up according to memory cell Setting unit, unit to be opened or the new malfunctioning cells answered.
2. the control framework in a kind of smart lock as claimed in claim 1, it is characterised in that
When switching command indicates to need to reset the access right of the user of management module, by setting action mark record extremely Memory cell, single-chip microcomputer so that after restart enter setting unit;
When switching command indicates to need low power operation, by action mark record to be launched to memory cell, single-chip microcomputer and then Enter unit to be opened after restart;
When switching command indicates to lock, then the action mark record that will lock is to memory cell, and single-chip microcomputer is introduced into intelligence after restarting The malfunctioning cells that lock can be locked carry out operation of locking, and then will lock up mark record to memory cell, instruction of locking is completed; Then call the pinning mark in memory cell to enter the malfunctioning cells that smart lock is pinned after single-chip microcomputer is restarted again, maintain Locking-in state;
When switching command indicates to unlock, then unlocking action mark is recorded to memory cell, single-chip microcomputer is introduced into intelligence after restarting The malfunctioning cells unlocked can be locked and carry out unlocking operation, then record lock opening of bid will to memory cell, unlocking instruction completion; Then call the lock opening of bid will in memory cell to enter smart lock after single-chip microcomputer is restarted again and lock the malfunctioning cells opened, maintain Lock open state.
3. the control framework in a kind of smart lock as claimed in claim 1, it is characterised in that
The single-chip microcomputer includes:Two main control singlechips of first main control singlechip and the second main control singlechip;
When main control singlechip in work breaks down, fault-signal is sent to another main control singlechip, failure is replaced by it Main control singlechip works.
4. the control framework in a kind of smart lock as claimed in claim 2, it is characterised in that
The malfunctioning cells control to hold by main motor drive module and from two motor drive modules of motor drive module Row corresponding operating;
When the motor drive module in work breaks down, another motor is controlled to drive by the main control singlechip for controlling its work Dynamic model block works.
5. the control framework in a kind of smart lock as claimed in claim 1, it is characterised in that
The single-chip microcomputer includes:Two main control singlechips of first main control singlechip and the second main control singlechip, two single-chip microcomputers point When control, between the first main control singlechip and the second main control singlechip pass through redundancy communication mechanism carry out Redundant Control switching.
6. the control framework in a kind of smart lock as claimed in claim 5, it is characterised in that redundancy communication mechanism particular content It is as follows:
First main control singlechip and the second main control singlechip are once shaken hands every 5s, and handshaking information is divided into request and response, Handshake request is initiated by the second main control singlechip per 5s:
If the first main control singlechip response, show working properly at present, while the first main control singlechip and the second main control singlechip Working condition does a free switching, i.e. the first main control singlechip and the second main control singlechip carries out an identity and switched;
If the first non-normal response of main control singlechip failure, the second main control singlechip continues request-reply, continuous 3 hairs every 1s Play handshake request and do not obtain response, then by the work of second the first main control singlechip of main control singlechip adapter, and point out user There is failure in system.
7. the control framework in a kind of smart lock as claimed in claim 5, it is characterised in that if during handshake request, the One main control singlechip then feeds back to the second main control singlechip delay outstanding message, in the first main control singlechip just in normal work Handle after work at present, by the work of second the first main control singlechip of main control singlechip adapter.
8. the control framework in a kind of smart lock as claimed in claim 1, it is characterised in that test cell, setting unit, There is single-chip microcomputer internal memory Overflow handling in the switching of unit to be opened, memory cell and each malfunctioning cells;I.e.:
Every time during switching, single-chip microcomputer is restarted, and the internal memory of mode of operation after switching is planned again, a upper Working mould The internal memory of formula is released.
CN201510611605.9A 2015-09-22 2015-09-22 Blocking routine and Redundant Control framework in a kind of smart lock Active CN105243708B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510611605.9A CN105243708B (en) 2015-09-22 2015-09-22 Blocking routine and Redundant Control framework in a kind of smart lock

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510611605.9A CN105243708B (en) 2015-09-22 2015-09-22 Blocking routine and Redundant Control framework in a kind of smart lock

Publications (2)

Publication Number Publication Date
CN105243708A CN105243708A (en) 2016-01-13
CN105243708B true CN105243708B (en) 2017-08-29

Family

ID=55041336

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510611605.9A Active CN105243708B (en) 2015-09-22 2015-09-22 Blocking routine and Redundant Control framework in a kind of smart lock

Country Status (1)

Country Link
CN (1) CN105243708B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106708592B (en) * 2017-01-25 2021-12-03 北京鸿智电通科技有限公司 Microcontroller and code burning method for microcontroller
CN107577225A (en) * 2017-10-11 2018-01-12 深圳市朗仁科技有限公司 Shared bicycle smart lock method of testing and device
CN109147130A (en) * 2018-08-28 2019-01-04 昆明理工大学 A kind of electronic lock and its reading/writing method with dual-memory
CN115311766A (en) * 2022-08-08 2022-11-08 广东汇泰龙科技股份有限公司 Intelligent lock control method, system and storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050193283A1 (en) * 2003-12-30 2005-09-01 Reinhardt Steven K. Buffering unchecked stores for fault detection in redundant multithreading systems using speculative memory support
CN101615031B (en) * 2009-05-07 2011-05-04 浙江中控自动化仪表有限公司 Failure detection circuit of embedded dual processor system
CN102075011B (en) * 2009-11-20 2013-01-23 深圳长城科美技术有限公司 Electricity concentrator with restoration function
CN110083494B (en) * 2011-12-30 2023-07-25 英特尔公司 Method and apparatus for managing hardware errors in a multi-core environment
FR2989801B1 (en) * 2012-04-18 2014-11-21 Schneider Electric Ind Sas METHOD FOR SECURE MANAGEMENT OF MEMORY SPACE FOR MICROCONTROLLER
US9483263B2 (en) * 2013-03-26 2016-11-01 Via Technologies, Inc. Uncore microcode ROM

Also Published As

Publication number Publication date
CN105243708A (en) 2016-01-13

Similar Documents

Publication Publication Date Title
CN105243708B (en) Blocking routine and Redundant Control framework in a kind of smart lock
CN102799104B (en) Safety control redundant system and method for fully-intelligent master control system
CN110005266A (en) Control method, device and its relevant device of intelligent door lock
CN1716212B (en) System and method for recovery from disaster
CN206128889U (en) Novel intelligent lock that no key was opened
CN104407948B (en) A kind of cold standby redundant star borne computer power up handover control system and method
CN101673330A (en) BIOS-based computer security protection method and system
CN107111526A (en) Watchdog timer
CN102799260A (en) Circuit and method for managing SOC chip by low-power consumption mode based on clock off
CN102315966A (en) Service single board, fault detection and reporting method and system thereof
CN110322599A (en) Door lock management method, device, electronic equipment and storage medium
CN101593128B (en) Intelligent platform management controller (IPMC) in ATCA system based on real-time operating system and construction method thereof
CN106647238A (en) Method for refreshing redundant controller based on CAN line
CN109484474A (en) EPS control module and its control system and control method
CN110413456A (en) Triple redundance data voting system and method step by step
CN103873516B (en) Improve the HA method and systems of physical server utilization rate in cloud computing resource pool
CN112732311B (en) BMS program hot updating method, system and medium for large energy storage system
CN107066361A (en) The method and apparatus that a kind of utilization BMC disables corrupted internal memory
CN110489285A (en) A kind of the hooks test method and system of solid state hard disk
CN103546648B (en) Method for managing timing information of terminal and terminal
CN103973996B (en) A kind of clock circuit standby system of many imaging band systems of space camera
CN111124780B (en) UPI Link speed reduction test method, system, terminal and storage medium
CN107678871A (en) A kind of electronic equipment starting-up method and electronic equipment
CN107563166A (en) A kind of fingerprint module dormancy awakening method and device
CN110286634A (en) A kind of lock-in control preferred module for nuclear power plant's I&C system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant