CN201707918U - Programming system of microcontroller - Google Patents

Programming system of microcontroller Download PDF

Info

Publication number
CN201707918U
CN201707918U CN200920291412XU CN200920291412U CN201707918U CN 201707918 U CN201707918 U CN 201707918U CN 200920291412X U CN200920291412X U CN 200920291412XU CN 200920291412 U CN200920291412 U CN 200920291412U CN 201707918 U CN201707918 U CN 201707918U
Authority
CN
China
Prior art keywords
programming
client
microcontroller
server end
code file
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.)
Expired - Fee Related
Application number
CN200920291412XU
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.)
SHANGHAI GETSOON ELECTRONICS CO., LTD.
Original Assignee
SHANGHAI GEZHOU ELECTRONIC 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 SHANGHAI GEZHOU ELECTRONIC CO Ltd filed Critical SHANGHAI GEZHOU ELECTRONIC CO Ltd
Priority to CN200920291412XU priority Critical patent/CN201707918U/en
Application granted granted Critical
Publication of CN201707918U publication Critical patent/CN201707918U/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Computer And Data Communications (AREA)
  • Storage Device Security (AREA)

Abstract

The utility model relates to a programming system of a microcontroller, which comprises a server end, a client and a programmer, wherein the server end is used for encrypting a data code file and transmitting the encrypted data code file; the client can be remotely connected with the server end and can communicate with the server end; and the programmer can be locally connected with the client, and can be used for receiving and storing the encrypted data code file through the client, encrypting the encrypted data code file and writing the restored data code file into the microcontroller when an allowed programming time valve is more than zero and recording the updated allowed programming time valve obtained by subtracting the allowed programming time valve by one in the programmer after the programming succeeded once. The utility model can allow a user to program per se so as to save the cost, simultaneously control the programming times and prevent the user from illegally copying or unlimitedly programming.

Description

Microcontroller programming system
Technical field
The utility model relates to a kind of programing system of microcontroller, especially a kind of can to microcontroller upgrade the programming system.
Background technology
Microcontroller is because cost is more and more lower, and performance from strength to strength, makes that its application is ubiquitous, is widely used in every field such as industry control, consumer electronics, automobile.In Electric Machine Control, bar-code reader/scanner, consumer electronics, game station, phone, HVAC, building safety and gate inhibition's control, Industry Control and robotization and white domestic appliances fields such as (washing machine, micro-wave ovens).
Along with the improvement of product function, often to upgrade to microcontroller, at this moment need the good program of reprogramming, HEX (sexadecimal) program code for example is in the storer of programming in the microcontroller.Existing programming device, as shown in Figure 5, programmable device 50 connects PC 40 and microcontroller (MCU) 60 respectively, earlier the operation PC stores the HEX program code in the storer of programmable device, operate then programmable device with the programming of HEX program code in microcontroller.
From existing programming process as can be seen,, then can not control the bootlegging of user, promptly can produce problem of piracy program if directly give the user programming voluntarily with the HEX program code.Even if the HEX program code encrypted and the programming number of times limited and send the user again to, after the user also can reach higher limit at the programming number of times of HEX program code, again store into the HEX program code in the programmable device again, get final product programming once more, thereby avoid this encryption and number of times limiting means easily, reach the purpose of unrestricted programming.For this reason, present way can only be carried software and programming device and be arrived the user place voluntarily by the technician of the manufacturer of microcontroller, carries out on-the-spot programming, does not allow user direct contact arrive the HEX program code, to avoid taking place the situation of bootlegging.
But such mode needs the technician to reach the spot, and has increased the business travel cost of production firm greatly, under a lot of situation of the client of needs service, also can delay update time, causes client's use inconvenience.
The utility model content
For this reason, technical matters to be solved of the present utility model is to provide a kind of microcontroller programming system, and it can allow the user carry out programming voluntarily to save cost, simultaneously the programming number of times is controlled, and avoids user's bootlegging and unrestrictedly programming.
In order to reach above-mentioned purpose, the utility model provides a kind of programing system of microcontroller, comprising: server end is used for the data code file encryption and transmits this ciphered data code file; Can with the long-range client that is connected of described server end, described client can be communicated by letter with described server end; And the programmable device that can be connected with described client terminal local, described programmable device receives and stores described encrypted data code file via described client.
Preferably, above-mentioned programmable device also comprises and is used for the transmission interface that is connected with described client and programming interface.
Preferably, above-mentioned server end and described client are PC, and both carry out long-range connection and communication by network; Described network is the internet.
After the programing system that adopts above-mentioned microcontroller, can be under the control of production firm, allow the client voluntarily to the microcontroller programming of upgrading, production firm needn't send the technician to serve to the scene again, has saved business travel cost greatly.In addition, because the ROMPaq file that is transmitted has carried out encryption and number of times restriction and directly stored in the programmable device, the client can't extract this ROMPaq voluntarily and carry out bootlegging; Simultaneously can not carry out unconfined duplicating to ROMPaq.
Description of drawings
Fig. 1 is the structural representation of microcontroller programming system of the present utility model;
Fig. 2 is the process flow diagram of microcontroller programming method of the present utility model;
Fig. 3 is the module map of programmable device in the microcontroller programming system of the present utility model;
Fig. 4 is the process flow diagram of the programmed method of another embodiment of the present utility model;
Fig. 5 is the microcontroller programming system synoptic diagram of prior art.
Embodiment
Shown in Figure 1, be the structural representation of microcontroller programming system of the present utility model.The programing system of this microcontroller comprises: server end 1, client 2 and programmable device 3.Server end 1 and client 2 is connected and can communicates for long-range, and client 2 is connected for this locality with programmable device 3 and also can communicates.In one embodiment, this server end 1 can be a PC with client 2, realizes long-range connection by the internet; Realize local the connection by USB interface between client 2 and the programmable device 3.But the utility model does not limit this, can adopt other connection means well known to those skilled in the art yet, for example, realizes that by LAN (Local Area Network), wireless network etc. server end 1 is connected with the long-range of client 2; Perhaps for example serial port, parallel port etc. realize that client 2 is connected with this locality between the programmable device 3 by other interfaces.In addition, programmable device 3 is connected with microcontroller 4 and carries out programming.
The utility model programming process as shown in Figure 2, before microcontroller 4 programmings, server end 1 will need programming to carry out data encryption and add to allow the inferior numerical value N (N=100 for example represents that promptly this programmable device at most can 100 microcontrollers of programming) of programming to the HEX code file in the target device (being microcontroller); This encryption back data file is transmitted by client 2 according to predetermined agreement and is saved in the programmable device 3.
Programmable device 3 is kept after the data file encryption, can remove with this locality of client 2 to be connected, and is connected with the microcontroller 4 for the treatment of programming again, carries out actual programming.Before the programming, need to judge earlier to allow programming time numerical value N whether smaller or equal to zero.If N does not then allow to carry out programming smaller or equal to zero; If N then allows to carry out programming greater than zero.Can prevent that like this programmable device from unrestrictedly carrying out programming, reach the purpose of control bootlegging.
In the programming process, programmable device 3 is written to the HEX code file after the deciphering reduction in the microcontroller 4 earlier with the deciphering of HEX code file.After the programming success once, will allow the inferior numerical value N of programming to deduct 1, and the value N after will upgrading notes, whether in order to allow next time programming provides basis for estimation.
The module diagram of the utility model programmable device 3 as shown in Figure 3, it comprises control module 31, the storer 32, programming interface 33 and the transmission interface 34 that link to each other with this control module 31 respectively.Programmable device 3 is connected with microcontroller 4 by programming interface 33, links to each other with PC as client 2 by transmission interface 34.The encryption HEX code file of downloading by client 2 is kept in the storer 32.Wherein, described storer 32 can be the Flash storer, and programming interface 33 can be 16 common core interfaces, and transmission interface 34 can be USB interface.
Control module 31 comprises a master chip 310, and this master chip can adopt single-chip microcomputer, and for example NEC16 position single-chip microcomputer also can adopt other chips well-known to those skilled in the art, and the utility model does not limit this.Control module 31 also comprises deciphering module 311, is used to decipher the encryption HEX code file of download; Programming module 312 is used for the HEX code file after will reducing according to default parameter by 33 programmings of programming interface to microcontroller 4; And record judge module 313, be used for according to allowing programming time numerical value N to control the operation of deciphering module 311 and programming module 312.That is,, allow deciphering module 311 and programming module 312 to operate, and be used to write down the actual programming number of times after the renewal when allowing programming time numerical value N greater than zero the time; If allow programming time numerical value smaller or equal to zero the time, then do not allow deciphering module and programming module to operate.
In another preferred embodiment, described record judge module 31 can also be controlled the operation of deciphering module 311 and programming module 312 by time parameter.That is, also can add default programming term of validity T in the above-mentioned encrypted data code file.For example, T=30 days, expression finished receiving from data file and allows to carry out programming in 30 days, surpassed 30 days, and then the data code file lost efficacy, even if above-mentioned permission programming limits value N does not allow programming greater than zero yet.
The process flow diagram of this process as shown in Figure 4, its most of step is same as shown in Figure 2, difference is, allows also to have added term of validity T the programming number of times limits value N except adding during encrypt file; After judging the step that allows programming time numerical value, judge the step of term of validity T again.That is, allow the programming times N greater than zero prerequisite under, current time and term of validity T are compared, when not exceeding term of validity T, can carry out above-mentioned programming and operate; When exceeding term of validity T, then do not allow to carry out programming.Can further prevent bootlegging like this.
Whether above-mentioned judgement allows the step of programming time numerical value in other words, can judge whether to exceed the term of validity earlier after the step of judging term of validity T, judge to allow the programming times N greater than zero again.
In order to realize time control function shown in Figure 4, also need comprise the clock (not shown) in the control module 31 shown in Figure 3, be used for writing time, whether exceed term of validity T so that judge the current time.
As other embodiment of the present utility model, above-mentioned permission programming number of times limits value N and term of validity T can set in advance in programmable device 3, and needn't be transferred to programmable device 3 together by data file encryption.

Claims (4)

1. the programing system of a microcontroller is characterized in that, comprising:
Server end is used for the data code file encryption and transmits this ciphered data code file;
Can with the long-range client that is connected of described server end, described client can be communicated by letter with described server end; And
The programmable device that can be connected with described client terminal local, described programmable device receives and stores described encrypted data code file via described client.
2. programing system according to claim 1 is characterized in that, described programmable device also comprises and is used for the transmission interface that is connected with described client and programming interface.
3. programing system according to claim 1 and 2 is characterized in that, described server end and described client are PC, and both carry out long-range connection and communication by network.
4. programing system according to claim 3 is characterized in that, described network is the internet.
CN200920291412XU 2009-12-10 2009-12-10 Programming system of microcontroller Expired - Fee Related CN201707918U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200920291412XU CN201707918U (en) 2009-12-10 2009-12-10 Programming system of microcontroller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200920291412XU CN201707918U (en) 2009-12-10 2009-12-10 Programming system of microcontroller

Publications (1)

Publication Number Publication Date
CN201707918U true CN201707918U (en) 2011-01-12

Family

ID=43445073

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200920291412XU Expired - Fee Related CN201707918U (en) 2009-12-10 2009-12-10 Programming system of microcontroller

Country Status (1)

Country Link
CN (1) CN201707918U (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102707979A (en) * 2012-05-22 2012-10-03 奇瑞汽车股份有限公司 Special refreshing tool and refreshing method for automobile controller software
CN104683105A (en) * 2014-06-05 2015-06-03 深圳市迈斯威志科技有限公司 Remote encryption, decryption and writing processing method for MCU writer
CN111625248A (en) * 2020-06-01 2020-09-04 杭州万高科技股份有限公司 Programming device and encryption programming method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102707979A (en) * 2012-05-22 2012-10-03 奇瑞汽车股份有限公司 Special refreshing tool and refreshing method for automobile controller software
CN104683105A (en) * 2014-06-05 2015-06-03 深圳市迈斯威志科技有限公司 Remote encryption, decryption and writing processing method for MCU writer
CN111625248A (en) * 2020-06-01 2020-09-04 杭州万高科技股份有限公司 Programming device and encryption programming method
CN111625248B (en) * 2020-06-01 2023-04-07 杭州万高科技股份有限公司 Programming device and encryption programming method

Similar Documents

Publication Publication Date Title
CN101470411B (en) System and method for safely updating ECU data
US9425956B2 (en) Method and system for transferring firmware or software to a plurality of devices
WO2014183690A1 (en) Method of processing application program upgrade, and terminal device
CN101390368B (en) Managing secure access to a secure digital content in a portable communicating object
CN101388912B (en) Removable card and a mobile wireless communication device
CN101763886A (en) Microcontroller programming system and method
CN105939515B (en) Car-mounted terminal virtual SIM card information update system and method
CN104412245A (en) Modular wireless power, light and automation control
WO2007127833A3 (en) Intelligent agent management using an overseer agent for use in vehicle diagnostics
CN101635071B (en) Method, system and device for installing/updating e-wallet
CN101373440B (en) Method and device for processing firmware upgrading data
CN108199931A (en) A kind of household electric appliance control method and system
CN103455349A (en) Method and device for accessing intelligent card by application program
CN201707918U (en) Programming system of microcontroller
CN103839401A (en) Concentration infrared remote control method based on cloud server
CN103838591A (en) Upgrading method and device of multiple single-chip microcomputers based on serial buses
CN105634888B (en) A kind of smart home collaboration networking communication method and system based on VSOP agreement
CN103236921B (en) Intelligent electric energy meter based on Internet of Things information security management module
CN109587142A (en) A kind of the data safety AM access module and equipment of service-oriented stream
CN103198574B (en) Be embedded with the remote-control intelligent water meter of information security management module
CN103152166B (en) Remote-control intelligent water meter information security management module
TW200509656A (en) A vehicle remote diagnostic system and method
CN106571917B (en) ESAM embedded safety management module of IC card intelligent gas meter
CN104103106B (en) Gate inhibition's method of control
CN105049337A (en) Communication method and device between smart devices based on instant messaging

Legal Events

Date Code Title Description
C14 Grant of patent or utility model
GR01 Patent grant
C56 Change in the name or address of the patentee
CP01 Change in the name or title of a patent holder

Address after: 200436 Shanghai City No. 3388 Gonghexin Road Yongding building 601-605

Patentee after: SHANGHAI GETSOON ELECTRONICS CO., LTD.

Address before: 200436 Shanghai City No. 3388 Gonghexin Road Yongding building 601-605

Patentee before: Shanghai Gezhou Electronic Co., Ltd.

CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20110112

Termination date: 20181210

CF01 Termination of patent right due to non-payment of annual fee