CN106529223A - Microcontroller unit and control method thereof - Google Patents

Microcontroller unit and control method thereof Download PDF

Info

Publication number
CN106529223A
CN106529223A CN201611159787.1A CN201611159787A CN106529223A CN 106529223 A CN106529223 A CN 106529223A CN 201611159787 A CN201611159787 A CN 201611159787A CN 106529223 A CN106529223 A CN 106529223A
Authority
CN
China
Prior art keywords
registration code
chip microcomputer
code
registration
consistent
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201611159787.1A
Other languages
Chinese (zh)
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.)
Chongqing Trillion Technology Development Co Ltd
Original Assignee
Chongqing Trillion Technology Development Co Ltd
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 Chongqing Trillion Technology Development Co Ltd filed Critical Chongqing Trillion Technology Development Co Ltd
Priority to CN201611159787.1A priority Critical patent/CN106529223A/en
Publication of CN106529223A publication Critical patent/CN106529223A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/10Protecting distributed programs or content, e.g. vending or licensing of copyrighted material ; Digital rights management [DRM]
    • G06F21/12Protecting executable software
    • G06F21/121Restricting unauthorised execution of programs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Technology Law (AREA)
  • Storage Device Security (AREA)

Abstract

The invention discloses a microcontroller unit and a control method thereof. The method comprises the steps of generating a first registration code through a preset algorithm according to identification code address data in the microcontroller unit; obtaining a second registration code which is input from the outside world of the microcontroller unit; judging whether the second registration code is consistent with the first registration code or not; if the second registration code is consistent with the first registration code, endowing authority of operating a built-in program of the microcontroller unit; and if the second registration code is inconsistent with the first registration code, forbidding operating the built-in program of the microcontroller unit. The microcontroller unit can only be used when registration is carried out; the registration is successful only when the input second registration code is consistent with the first registration code calculated by the microcontroller unit itself; operation authorization is carried out on the built-in program of the microcontroller unit; even if the program content in the microcontroller unit is read and the microcontroller unit is copied, under the condition that a calculation method of the first registration code is unknown, the second registration code consistent with the first registration code cannot be input; the microcontroller unit cannot be used; the security performance of the microcontroller unit is improved; and the microcontroller unit is prevented from being copied by unauthorized personnel.

Description

A kind of single-chip microcomputer and its control method
Technical field
The present invention relates to single-chip microcomputer field, more particularly to a kind of single-chip microcomputer and its control method.
Background technology
With the development of science and technology, integrated circuit technique has been widely used in industrial control field.For people's Live and work is provided a great convenience.
In integrated circuits, the various functions of computer can be integrated in one by single-chip microcomputer, the realization of function of the MCU One is constituted based on the hardware in single-chip microcomputer, and one is that, based on the software program in single-chip microcomputer, and the software program in single-chip microcomputer is just It is that the emphasis of single-chip microcomputer is located, the use of single-chip microcomputer needs to design appropriate hardware and corresponding program burn writing is entered single-chip microcomputer, Corresponding function could be applied.Traditional single-chip microcomputer is encrypted to the program in which.But have lawless people at present to pass through Some technological means read the contents of program in single-chip microcomputer, so as to copy to single-chip microcomputer easily.
Therefore, how to improve the security performance of single-chip microcomputer, it is to avoid unauthorized personnel is copied to single-chip microcomputer, be this area The current technical issues that need to address of technical staff.
The content of the invention
It is an object of the invention to provide a kind of single-chip microcomputer and its control method, can improve the security performance of single-chip microcomputer, keep away Exempt from unauthorized personnel to copy single-chip microcomputer.
To solve above-mentioned technical problem, the invention provides following technical scheme:
A kind of Single-chip Controlling method, including:
First registration code is generated by preset algorithm according to the identification code address date in single-chip microcomputer;
Obtain the second registration code of the extraneous input of single-chip microcomputer;
Judge whether second registration code is consistent with first registration code;
If so, then give the authority of the plug-in of the operation single-chip microcomputer;
If it is not, then forbidding running the plug-in of the single-chip microcomputer.
Preferably, the identification code address date according in single-chip microcomputer generates the first registration code, bag by preset algorithm Include:
Read the identification code address date in the single-chip microcomputer;
Calculated according to default custom algorithm and generate first registration code.
Preferably, second registration code for obtaining the extraneous input of single-chip microcomputer, including:
Obtain the second registration code that button or communication interface by the single-chip microcomputer itself are input into.
Preferably, also include:
When judging that second registration code is consistent with first registration code, first registration code is stored.
A kind of single-chip microcomputer, including:
Function of the MCU module, for performing the computing function task of single-chip microcomputer;
Registration code generation module, for generating first note by preset algorithm according to the identification code address date in single-chip microcomputer Volume code;
First acquisition module, for obtaining the second registration code of the extraneous input of single-chip microcomputer;
First judge module, for judging whether second registration code is consistent with first registration code;
Authorization module, for authorizing the function of the MCU when second registration code is consistent with first registration code Module is run, and in second registration code and inconsistent first registration code, forbids the function of the MCU module Operation.
Preferably described registration code generation module includes:
Reading unit, for reading the identification code address date in the single-chip microcomputer;
Computing unit, generates first registration code for calculating according to default custom algorithm.
Preferably described first acquisition module includes:
Key-press input unit, for responding operator's operation, generates corresponding second according to the input signal of correspondence button Registration code;
Communications interface unit, for second registration code of extraneous input is obtained by communication interface.
Preferably, also include:
Memory module, for judging that second registration code is consistent with first registration code in first judge module When, store first registration code.
Compared with prior art, above-mentioned technical proposal has advantages below:
A kind of Single-chip Controlling method that the embodiment of the present invention is provided, including:According to the identification code address in single-chip microcomputer Data generate the first registration code by preset algorithm;Obtain the second registration code of the extraneous input of single-chip microcomputer;Judge the second registration code Whether with the first registration code is consistent;If so, then give the authority of the plug-in of operation single-chip microcomputer;If it is not, then forbidding operation single The plug-in of piece machine.In the technical program, unique identifier address date and default algorithm of the single-chip microcomputer according to itself Generate the first registration code, and if want just be registered using the single-chip microcomputer, that is, being input into the second registration code is registered, only Have when input the second registration code it is consistent with the first registration code for prestoring when just expression succeed in registration, now to single-chip microcomputer Plug-in carries out operation mandate, even if so the non-acquisition of technology mandate of lawless people have read the contents of program in single-chip microcomputer, Single-chip microcomputer is copied, but in the case where the computational methods of the first registration code are not known, is cannot to learn and first The second consistent registration code of registration code, also cannot just carry out registration and use the single-chip microcomputer, which greatly enhances single-chip microcomputer Security performance, it is to avoid unauthorized personnel copies to single-chip microcomputer.
Description of the drawings
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing Accompanying drawing to be used needed for having technology description is briefly described, it should be apparent that, drawings in the following description are the present invention Some embodiments, for those of ordinary skill in the art, on the premise of not paying creative work, can be with basis These accompanying drawings obtain other accompanying drawings.
The Single-chip Controlling method flow diagram that Fig. 1 is provided by a kind of specific embodiment of the invention;
The single chip computer architecture schematic diagram that Fig. 2 is provided by a kind of specific embodiment of the invention.
Specific embodiment
The core of the present invention is to provide a kind of single-chip microcomputer and its control method, can improve the security performance of single-chip microcomputer, keep away Exempt from unauthorized personnel to copy single-chip microcomputer.
In order that the above objects, features and advantages of the present invention can become apparent from it is understandable, below in conjunction with the accompanying drawings to this Bright specific embodiment is described in detail.
Elaborate detail in order to fully understand the present invention in the following description.But the present invention can with it is various not It is same as alternate manner described here to implement, those skilled in the art can do class in the case of without prejudice to intension of the present invention Like popularization.Therefore the present invention is not limited by following public specific embodiment.
Refer to Fig. 1, the Single-chip Controlling method flow diagram that Fig. 1 is provided by a kind of specific embodiment of the invention.
A kind of specific embodiment of the present invention provides a kind of Single-chip Controlling method, including:
S11:First registration code is generated by preset algorithm according to the identification code address date in single-chip microcomputer.
Wherein, the first registration code is generated by preset algorithm according to the identification code address date in single-chip microcomputer, including:Read Identification code address date in single-chip microcomputer;Calculated according to default custom algorithm and generate the first registration code.
In the present embodiment, the setting of the first registration code causes single-chip microcomputer that note is had to pass through after the completion of program burn writing Volume could once be used.As each single-chip microcomputer corresponds to a unique identification code, used according to the address date of the identification code Family can generate first registration code according to self-defining algorithm.
S12:Obtain the second registration code of the extraneous input of single-chip microcomputer.
Wherein, the second registration code of the extraneous input of single-chip microcomputer is obtained, including:Obtain by the button of single-chip microcomputer itself or Second registration code of communication interface input.
From above-mentioned embodiment, if it is desired to be accomplished by once being registered using the single-chip microcomputer, due in above-mentioned step In rapid, single-chip microcomputer is calculated by itself default algorithm and generates the first registration code, and extraneous input the is accomplished by when registering To be matched with the first registration code, if active user is single-chip microcomputer production authorized user, which necessarily knows the to two registration codes Two registration codes;If active user is not single-chip microcomputer production authorized user, the second registration code is being unaware of.Wherein, user can be with Second registration code is input in single-chip microcomputer to be registered by the communication interface of button or single-chip microcomputer.
S13:Judge that whether with the first registration code of the second registration code is consistent.
S14:If so, the authority of the plug-in of operation single-chip microcomputer is then given, i.e. current monolithic machine can normally run journey Sequence, performs function of the MCU.When the second registration code and consistent the first registration code is judged, the first registration code can also be stored, if Judge that the second registration code and the first registration code are inconsistent, then do not store any registration code so that single-chip microcomputer enters running protection mould Formula, until second registration code and the first registration code of input are consistent.
S15:If it is not, then forbidding running the plug-in of single-chip microcomputer.Default single-chip microcomputer protected mode can be entered, this When, single-chip microcomputer can not normal operation program.
In the present embodiment, single-chip microcomputer generates first according to itself unique identifier address date and default algorithm Registration code, and if want just be registered using the single-chip microcomputer, that is, being input into the second registration code is registered, and only works as input The second registration code it is consistent with the first registration code for prestoring when just represent and succeed in registration, the now plug-in to single-chip microcomputer Operation mandate is carried out, even if so the non-acquisition of technology mandate of lawless people have read the contents of program in single-chip microcomputer, to single-chip microcomputer Copied, but in the case where the computational methods of the first registration code are not known, be cannot to learn and the first registration code-phase The second consistent registration code, also cannot just carry out registration and use the single-chip microcomputer, which greatly enhances the security performance of single-chip microcomputer, Avoid unauthorized personnel to copy single-chip microcomputer.
Refer to Fig. 2, the single chip computer architecture schematic diagram that Fig. 2 is provided by a kind of specific embodiment of the invention.
Correspondingly, present invention also offers a kind of single-chip microcomputer, including:Function of the MCU module 1, for performing single-chip microcomputer Computing function task;Registration code generation module 2, for being generated by preset algorithm according to the identification code address date in single-chip microcomputer First registration code;First acquisition module 3, for obtaining the second registration code of the extraneous input of single-chip microcomputer;First judge module 4, uses In judging whether the second registration code and the first registration code are consistent;Authorization module 5, in the second registration code and the first registration code one The operation of function of the MCU module is authorized during cause, and in the second registration code and inconsistent the first registration code, forbids single-chip microcomputer work( Can module operation.
In the present embodiment, when using the single-chip microcomputer, it is necessary to through the mandate of authorization module.This is accomplished by the list Piece machine is registered.The registration code generation module of the single-chip microcomputer generates the first registration code according to the unique identifier of single-chip microcomputer, when Input corresponding second registration code is accomplished by when registering to the single-chip microcomputer, and the first acquisition module just obtains second registration Code, the first judge module judge whether the first registration code and the second registration code are consistent, and result of determination is exported to authorization module, Authorization module authorizes function of the MCU module to run in the first registration code and consistent the second registration code, i.e., now user can make Use the single-chip microcomputer, otherwise user use the single-chip microcomputer.So, even if lawless people is have read in the program in the single-chip microcomputer Hold, and copied single product machine, which is in the case where the second registration code is unaware of, it is impossible to complete the registration of single-chip microcomputer, then monolithic Machine cannot be used, and which greatly enhances the security performance of single-chip microcomputer and crack difficulty.
In one embodiment of the invention, registration code generation module includes:Reading unit, for reading in single-chip microcomputer Identification code address date;Computing unit, generates the first registration code for calculating according to default custom algorithm.
Further, the first acquisition module includes:Key-press input unit, for responding operator's operation, presses according to correspondence The input signal of key generates corresponding second registration code;Communications interface unit, for obtaining extraneous input by communication interface Second registration code.
Second registration code can be input to list by the communications interface unit of key-press input unit or single-chip microcomputer by user Being registered in piece machine.
Further, the single-chip microcomputer, also includes:Memory module, for judging the second registration code in the first judge module When consistent with the first registration code, the first registration code is stored.When the second registration code and consistent the first registration code is judged, can also deposit The first registration code is stored up, if it is determined that the second registration code and the first registration code are inconsistent, then any registration code is not stored so that single-chip microcomputer Into running protection pattern, until second registration code and the first registration code of input are consistent.
In sum, single-chip microcomputer provided by the present invention and its control method, unique identifier of the single-chip microcomputer according to itself Address date and default algorithm generate the first registration code, and if want just be registered using the single-chip microcomputer, that is, be input into Second registration code is registered, and note is just represented only when the second registration code of input is consistent with the first registration code for prestoring Volume success, now carries out operation mandate to the plug-in of single-chip microcomputer, even if so non-acquisition of technology mandate of lawless people is read Contents of program in single-chip microcomputer, is copied to single-chip microcomputer, but in the feelings of the computational methods for not knowing the first registration code Under condition, it is to learn second registration code consistent with the first registration code, also cannot just carries out registration and use the single-chip microcomputer, Which greatly enhances the security performance of single-chip microcomputer, it is to avoid unauthorized personnel is copied to single-chip microcomputer.
Above a kind of single-chip microcomputer provided by the present invention and its control method are described in detail.Tool used herein Body example is set forth to the principle and embodiment of the present invention, and the explanation of above example is only intended to help and understands this Bright and its core concept.It should be pointed out that for those skilled in the art, without departing from the principle of the invention Under the premise of, some improvement and modification can also be carried out to the present invention, these improve and modification also falls into the claims in the present invention In protection domain.

Claims (8)

1. a kind of Single-chip Controlling method, it is characterised in that include:
First registration code is generated by preset algorithm according to the identification code address date in single-chip microcomputer;
Obtain the second registration code of the extraneous input of single-chip microcomputer;
Judge whether second registration code is consistent with first registration code;
If so, then give the authority of the plug-in of the operation single-chip microcomputer;
If it is not, then forbidding running the plug-in of the single-chip microcomputer.
2. method according to claim 1, it is characterised in that the identification code address date according in single-chip microcomputer passes through Preset algorithm generates the first registration code, including:
Read the identification code address date in the single-chip microcomputer;
Calculated according to default custom algorithm and generate first registration code.
3. method according to claim 2, it is characterised in that the second registration code of the extraneous input of the acquisition single-chip microcomputer, Including:
Obtain the second registration code that button or communication interface by the single-chip microcomputer itself are input into.
4. the method according to any one of claims 1 to 3, it is characterised in that also include:
When judging that second registration code is consistent with first registration code, first registration code is stored.
5. a kind of single-chip microcomputer, it is characterised in that include:
Function of the MCU module, for performing the computing function task of single-chip microcomputer;
Registration code generation module, registers for generating first by preset algorithm according to the identification code address date in single-chip microcomputer Code;
First acquisition module, for obtaining the second registration code of the extraneous input of single-chip microcomputer;
First judge module, for judging whether second registration code is consistent with first registration code;
Authorization module, for the function of the MCU module is authorized when second registration code is consistent with first registration code Operation, and in second registration code and inconsistent first registration code, forbid the function of the MCU module operation.
6. single-chip microcomputer according to claim 5, it is characterised in that the registration code generation module includes:
Reading unit, for reading the identification code address date in the single-chip microcomputer;
Computing unit, generates first registration code for calculating according to default custom algorithm.
7. single-chip microcomputer according to claim 6, it is characterised in that first acquisition module includes:
Key-press input unit, for responding operator's operation, generates corresponding second registration according to the input signal of correspondence button Code;
Communications interface unit, for second registration code of extraneous input is obtained by communication interface.
8. the single-chip microcomputer according to any one of claim 5 to 7, it is characterised in that also include:
Memory module, for when first judge module judges that second registration code is consistent with first registration code, Store first registration code.
CN201611159787.1A 2016-12-15 2016-12-15 Microcontroller unit and control method thereof Pending CN106529223A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611159787.1A CN106529223A (en) 2016-12-15 2016-12-15 Microcontroller unit and control method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611159787.1A CN106529223A (en) 2016-12-15 2016-12-15 Microcontroller unit and control method thereof

Publications (1)

Publication Number Publication Date
CN106529223A true CN106529223A (en) 2017-03-22

Family

ID=58339790

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611159787.1A Pending CN106529223A (en) 2016-12-15 2016-12-15 Microcontroller unit and control method thereof

Country Status (1)

Country Link
CN (1) CN106529223A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101018120A (en) * 2007-01-17 2007-08-15 北京飞天诚信科技有限公司 Method and system for obtaining the user information
CN203012730U (en) * 2012-12-14 2013-06-19 江苏海事职业技术学院 Registration type single-chip microcomputer programming unit
CN103366103A (en) * 2013-06-13 2013-10-23 广东岭南通股份有限公司 Application encipherment protection method of card reader
CN105678117A (en) * 2014-11-19 2016-06-15 比亚迪股份有限公司 Safety protection method for flash program of single-chip computer and protection device and single-chip computer
CN105808978A (en) * 2016-03-02 2016-07-27 上海斐讯数据通信技术有限公司 Single chip firmware-based hardware pirate preventing method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101018120A (en) * 2007-01-17 2007-08-15 北京飞天诚信科技有限公司 Method and system for obtaining the user information
CN203012730U (en) * 2012-12-14 2013-06-19 江苏海事职业技术学院 Registration type single-chip microcomputer programming unit
CN103366103A (en) * 2013-06-13 2013-10-23 广东岭南通股份有限公司 Application encipherment protection method of card reader
CN105678117A (en) * 2014-11-19 2016-06-15 比亚迪股份有限公司 Safety protection method for flash program of single-chip computer and protection device and single-chip computer
CN105808978A (en) * 2016-03-02 2016-07-27 上海斐讯数据通信技术有限公司 Single chip firmware-based hardware pirate preventing method and system

Similar Documents

Publication Publication Date Title
EP2900533B1 (en) Mobile device and key fob pairing for multi-factor security
US20190026442A1 (en) Offline activation for application(s) installed on a computing device
US11798327B2 (en) Universal smart interface for electronic locks
TWI706288B (en) Wearable device, unlocking control system and method
CN106033625B (en) Lockset, mobile terminal, lockset control method and Lock control system
US20210294921A1 (en) Method for ensuring the trustworthiness of source code
CN104462938A (en) Intelligent equipment and unlock method thereof
US20210160050A1 (en) Method for establishing anonymous digital identity
CN111859359A (en) Intelligent equipment authorization system, method, device, equipment and medium
US5751595A (en) Method for building and verifying authenticity of a rule system
WO2016197717A1 (en) Method and device for inputting information on mobile terminal
CN106529223A (en) Microcontroller unit and control method thereof
CN106650329A (en) Individual authorization method of data export equipment
CN111814181A (en) System authority authorization method and device, electronic equipment and storage medium
CN104516570B (en) Flip-type electronic device and calibration method thereof
CN105184150A (en) Statement pretreatment method and apparatus and statement interpretation method and apparatus
KR20140112837A (en) Embedded system, authentication system comprising the same, method of authenticating the system
CN104573483A (en) Method for clearing coded lock and terminal
TW202018626A (en) System for verifying user identity when processing digital signature and method thereof
US20180129502A1 (en) System management mode trust establishment for os level drivers
US20220058246A1 (en) Setting system and electronic device
EP4027309A1 (en) Universal smart interface for electronic locks
TWM502294U (en) Access control security system
US20070234024A1 (en) Method for managing setup programs
TWI249677B (en) Two-layer key protection method and architecture for computer peripheral interface

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20170322