CN103020514A - Method and system for programming controller - Google Patents

Method and system for programming controller Download PDF

Info

Publication number
CN103020514A
CN103020514A CN2012105676666A CN201210567666A CN103020514A CN 103020514 A CN103020514 A CN 103020514A CN 2012105676666 A CN2012105676666 A CN 2012105676666A CN 201210567666 A CN201210567666 A CN 201210567666A CN 103020514 A CN103020514 A CN 103020514A
Authority
CN
China
Prior art keywords
virtual interface
chinese ink
brush dipped
authority
writing
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.)
Granted
Application number
CN2012105676666A
Other languages
Chinese (zh)
Other versions
CN103020514B (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.)
Weichai Power Co Ltd
Weifang Weichai Power Technology Co Ltd
Original Assignee
Weichai Power 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 Weichai Power Co Ltd filed Critical Weichai Power Co Ltd
Priority to CN201210567666.6A priority Critical patent/CN103020514B/en
Publication of CN103020514A publication Critical patent/CN103020514A/en
Application granted granted Critical
Publication of CN103020514B publication Critical patent/CN103020514B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Storage Device Security (AREA)

Abstract

The invention provides a method for programming a controller. The method comprises the following steps of: receiving a programming command; and judging whether a virtual interface can be acquired or not, if so, acquiring an authorization file through the virtual interface, and programming the controller according to the authorization file. By the technical scheme, after the programming command is received, whether the virtual interface can be acquired or not is judged; when the virtual interface can be acquired, the authorization file is acquired through the virtual interface, and the controller is programmed. If the virtual interface cannot be acquired, the authorization file cannot be acquired; and data or programs programming on the controller cannot be realized without the authorization file. According to the invention, the authority of programming the controller is set by judging whether the virtual interface can be acquired or not; and the illegal programming can be effectively suppressed. The invention further provides a device for programming the controller.

Description

A kind of method and system of writing with a brush dipped in Chinese ink controller
Technical field
The present invention relates to the hardware device field, especially relate to a kind of method and system of writing with a brush dipped in Chinese ink controller.
Background technology
In the hardware device field, the major function of controller be according to corresponding program to data judge, the processing such as computing, export afterwards steering order with the duty of indication miscellaneous part.Generally, need to control this controller by the mode of downloading corresponding data and program in the internal memory of controller, this process is called the process of writing with a brush dipped in Chinese ink to controller.But, when controller is write with a brush dipped in Chinese ink, exist some illegal writing with a brush dipped in Chinese ink, writing with a brush dipped in Chinese ink that these are illegal brought many potential safety hazards to controller and other accessories, for example, if to ECU (electronic control unit), be that the dedicated microcomputer controller that uses on automobile or the engine is illegally write with a brush dipped in Chinese ink, probably can cause reduce the serviceable life of electronic control unit and engine and other accessories, oil consumption increases, or even air bag such as can't normally open at the safety problem.As seen how to avoid illegally writing with a brush dipped in Chinese ink of the controllers such as ECU then seemed very important.But, in the present prior art, in the process that controller is write with a brush dipped in Chinese ink, do not contain the mode of illegally writing with a brush dipped in Chinese ink.
Summary of the invention
The technical matters that the present invention solves is to provide a kind of method and system of writing with a brush dipped in Chinese ink controller, can realize writing with a brush dipped in Chinese ink data or program to controller with realization, can effectively contain illegally and write with a brush dipped in Chinese ink.
For this reason, the technical scheme of technical solution problem of the present invention is:
The invention provides a kind of method of writing with a brush dipped in Chinese ink controller, described method comprises:
Instruction is write with a brush dipped in Chinese ink in reception;
Judge whether to get access to virtual interface, if so, then obtain authority by described virtual interface, write with a brush dipped in Chinese ink controller according to described authority.
Preferably, has the physical directory address in the described virtual interface;
Judging whether to get access to virtual interface is specially: judge whether and can get access to virtual interface in default address;
Then obtaining authority by described virtual interface is specially:
Then by the physical directory address acquisition authority in the described virtual interface.
Preferably, described method is used for computing machine, describedly judges whether to get access to virtual interface and comprises: judge whether and can get access to virtual interface in the memory device of described computing machine.
Preferably, described judging whether also comprises before getting access to virtual interface: the username and password that receives user's input, whether have authority according to described username and password authentication of users, if so, then download virtual interface to the memory device of described computing machine.
Preferably, after obtaining authority by described virtual interface, perhaps write with a brush dipped in Chinese ink after the controller according to authority, also comprise: the described virtual interface that deletion is downloaded.
Preferably, described method is used for computing machine, and described judging whether also comprises before getting access to virtual interface: detect described computing machine and whether have interventional instrument, if so, then carry out described judging whether and can get access to virtual interface;
Describedly judge whether to get access to virtual interface and comprise:
Judge whether and in the interventional instrument that detects, to get access to virtual interface.
Preferably, obtaining authority by described virtual interface also comprises before: the virtual interface that deciphering gets access to according to the first preset password.
Preferably, writing with a brush dipped in Chinese ink controller according to described authority also comprises before: the authority that deciphering gets access to according to the second preset password.
Preferably, writing with a brush dipped in Chinese ink controller according to described authority specifically is: according to described authority, write with a brush dipped in Chinese ink controller by adapter;
Described writing with a brush dipped in Chinese ink by adapter also comprises after the controller: the cumulative number that described adapter record is write with a brush dipped in Chinese ink also judges that this cumulative number of writing with a brush dipped in Chinese ink whether greater than predetermined threshold value, if so, then locks described adapter.
The invention provides a kind of system that writes with a brush dipped in Chinese ink controller, described system comprises: write with a brush dipped in Chinese ink unit and controller;
Instruction is write with a brush dipped in Chinese ink for receiving in the described unit of writing with a brush dipped in Chinese ink, and judges whether to get access to virtual interface, if so, then obtains authority by described virtual interface, and writes with a brush dipped in Chinese ink controller according to described authority.
Preferably, described system is used for computing machine,
The described unit of writing with a brush dipped in Chinese ink comprises for judging whether to get access to virtual interface: the described unit of writing with a brush dipped in Chinese ink is used for judging whether and getting access to virtual interface at the memory device of described computing machine.
Preferably, described system also comprises: authentication unit and download unit;
Described authentication unit is used for receiving the username and password of user's input, whether has authority according to described username and password authentication of users, if so, then notifies download unit to download virtual interface to the memory device of described computing machine.
Preferably, described system also comprises: delete cells;
The described unit of writing with a brush dipped in Chinese ink notifies described delete cells to delete described virtual interface also for write with a brush dipped in Chinese ink controller after obtaining authority by described virtual interface or according to authority after.
Preferably, described system is used for computing machine, and described system also comprises: detecting unit;
Whether described detecting unit has interventional instrument for detection of described computing machine, if so, then notifies the described unit judges of writing with a brush dipped in Chinese ink whether can get access to virtual interface;
The described unit of writing with a brush dipped in Chinese ink comprises for judging whether to get access to virtual interface: the described unit of writing with a brush dipped in Chinese ink is used for judging whether and getting access to virtual interface at the interventional instrument that described detecting unit detects.
Preferably, described system also comprises: adapter;
The described unit of writing with a brush dipped in Chinese ink for writing with a brush dipped in Chinese ink controller according to described authority specifically is: the described unit of writing with a brush dipped in Chinese ink is used for notifying described adapter to write with a brush dipped in Chinese ink controller according to described authority;
Described adapter is used for writing with a brush dipped in Chinese ink controller according to the notice of writing with a brush dipped in Chinese ink the unit, and writes with a brush dipped in Chinese ink after the end controller at every turn, and the cumulative number that record is write with a brush dipped in Chinese ink also judges that this cumulative number of writing with a brush dipped in Chinese ink whether greater than predetermined threshold value, if so, then locks described adapter.
Preferably, described controller is ECU.
Preferably, described virtual interface is the shell file.
By technique scheme as can be known, the present invention receive write with a brush dipped in Chinese ink instruction after, judge whether to obtain virtual interface, only in the time can obtaining virtual interface, just obtain authority and write with a brush dipped in Chinese ink controller by virtual interface.And if can't obtain virtual interface, the file of then can't obtaining the authorization is in the situation that the with no authorized file can't be realized writing with a brush dipped in Chinese ink data or program to controller.Can find out, by judging whether to obtain virtual interface, be equivalent to be provided with the authority of writing with a brush dipped in Chinese ink controller among the present invention, thereby can effectively contain illegally and write with a brush dipped in Chinese ink.
Description of drawings
Fig. 1 is to the process of writing with a brush dipped in Chinese ink of controller in the prior art;
Fig. 2 is the schematic flow sheet of the specific embodiment of the method for writing with a brush dipped in Chinese ink controller provided by the invention;
Fig. 3 is the schematic flow sheet of another specific embodiment of the method for writing with a brush dipped in Chinese ink controller provided by the invention;
Fig. 4 is the schematic flow sheet of another specific embodiment of the method for writing with a brush dipped in Chinese ink controller provided by the invention;
Fig. 5 is the schematic flow sheet of another specific embodiment of the method for writing with a brush dipped in Chinese ink controller provided by the invention;
Fig. 6 is the schematic flow sheet of another specific embodiment of the method for writing with a brush dipped in Chinese ink controller provided by the invention;
Fig. 7 is the schematic flow sheet of another specific embodiment of the method for writing with a brush dipped in Chinese ink controller provided by the invention;
Fig. 8 is the schematic flow sheet of another specific embodiment of the method for writing with a brush dipped in Chinese ink controller provided by the invention;
Fig. 9 is the structural representation of the specific embodiment of the system that writes with a brush dipped in Chinese ink controller provided by the invention;
Figure 10 is another specific embodiment structural representation of writing with a brush dipped in Chinese ink the system of controller provided by the invention;
Figure 11 is another specific embodiment structural representation of writing with a brush dipped in Chinese ink the system of controller provided by the invention;
Figure 12 is another specific embodiment structural representation of writing with a brush dipped in Chinese ink the system of controller provided by the invention.
Embodiment
See also Fig. 1, in the prior art, the process of writing with a brush dipped in Chinese ink of controller is generally: when receiving when writing with a brush dipped in Chinese ink instruction, write with a brush dipped in Chinese ink cell call authority and data file, by adapter controller is write with a brush dipped in Chinese ink afterwards.And among the present invention in order to contain the problem of illegally writing with a brush dipped in Chinese ink, following technical scheme has been proposed.
See also Fig. 2, the invention provides a kind of specific embodiment of writing with a brush dipped in Chinese ink the method for controller, described method comprises:
S201: receive and write with a brush dipped in Chinese ink instruction.
S202: judge whether to get access to virtual interface, if so, then carry out S203, have the authority of writing with a brush dipped in Chinese ink this moment.If not, then do not write with a brush dipped in Chinese ink authority, this moment can process ends, also can not have corresponding authority by prompting user, perhaps prompting user is downloaded virtual interface, prompting user inserts U shield etc., also can rejudge whether can get access to virtual interface behind Preset Time.
S203: obtain authority by described virtual interface, write with a brush dipped in Chinese ink controller according to described authority.
Here, can be to receive and to write with a brush dipped in Chinese ink instruction by writing with a brush dipped in Chinese ink the unit, and judge whether to get access to virtual interface after writing with a brush dipped in Chinese ink instruction receiving.Controller can be ECU, single-chip microcomputer etc.Writing with a brush dipped in Chinese ink the unit can be the software of writing with a brush dipped in Chinese ink that can write with a brush dipped in Chinese ink controller.For example, when controller is ECU, writes with a brush dipped in Chinese ink the unit and can be the software systems such as EOL, INCA, CANAPE.When writing with a brush dipped in Chinese ink controller according to described authority among the present invention, be actually according to authority and data file and write with a brush dipped in Chinese ink controller.
Virtual interface can be shell (shell) file, and have physical directory address in the virtual interface this moment.Here the physical directory address refers to the memory address of authority.Then judging whether to get access to virtual interface among the S202 this moment is specially: judge whether and can get access to virtual interface in default address.That is to say, write with a brush dipped in Chinese ink and have default address in the unit.And obtaining authority by described virtual interface among the S202 is specially: then by the physical directory address acquisition authority in the described virtual interface.
Among this embodiment, virtual interface can have polytype, and the type of the type of virtual interface and controller is one to one.Then have this moment, when getting access to virtual interface among the S202, can only write with a brush dipped in Chinese ink the controller corresponding with the type of the virtual interface that gets access to.For example, when virtual interface is the shell file, need judges whether among the S202 and can in the default address corresponding with the type of controller, get access to virtual interface.For example, the virtual interface of the corresponding first kind in the first default address, the authority of the corresponding first kind of the virtual interface of the first kind, the controller of the corresponding first kind of the authority of the first kind, the virtual interface of the corresponding Second Type in the second default address, the authority of the corresponding Second Type of the virtual interface of Second Type, the controller of the corresponding Second Type of the authority of Second Type, the first kind is different with Second Type.When controller is the first kind, then judge whether among the S202 and can in the first default address, get access to virtual interface, if, the virtual interface that then gets access to this moment is the virtual interface of the first kind, can only get access to the authority of the first kind, thereby can only write with a brush dipped in Chinese ink the controller of the first kind.
Among this embodiment, what get access to virtual interface among the S202 can be encrypt file.Then obtaining authority by described virtual interface among S202 this moment can also comprise before: the virtual interface that deciphering gets access to according to the first preset password.Here, write with a brush dipped in Chinese ink and stored the first preset password in the unit.
Among this embodiment, what get access to authority among the S202 can be encrypt file.Then writing with a brush dipped in Chinese ink controller according to described authority among S202 this moment can also comprise before: the authority that deciphering gets access to according to the second preset password.Here, write with a brush dipped in Chinese ink and stored the second preset password in the unit.
By technique scheme as can be known, in the method that this embodiment provides, receive write with a brush dipped in Chinese ink instruction after, judge whether to obtain virtual interface, only in the time can obtaining virtual interface, just obtain authority and write with a brush dipped in Chinese ink controller by virtual interface.And if can't obtain virtual interface, the file of then can't obtaining the authorization is in the situation that the with no authorized file can't be realized writing with a brush dipped in Chinese ink data or program to controller.Can find out, judging whether among the present invention can obtain virtual interface, is equivalent to be provided with the authority of writing with a brush dipped in Chinese ink controller, thereby can effectively contain illegally and write with a brush dipped in Chinese ink.And, do not change writing with a brush dipped in Chinese ink the unit here, kept writing with a brush dipped in Chinese ink the versatility of unit.
Among this embodiment, carry out when obtaining virtual interface among the S202, can in local computer, obtain, also can be to obtain in the equipment that inserts, such as the U shield etc., also can be simultaneously, perhaps in the equipment of local computer and insertion, obtain successively according to preset order, if and when getting access to virtual interface, just no longer obtain virtual interface, authority obtained but carry out by virtual interface.Specify below by embodiment.
See also Fig. 3, the present invention also provides another specific embodiment of the method for writing with a brush dipped in Chinese ink controller, and described method is used for computing machine, and described method comprises:
S301: receive and write with a brush dipped in Chinese ink instruction.
S302: judge whether and in the memory device of described computing machine, to get access to virtual interface, if so, then carry out S303, have the authority of writing with a brush dipped in Chinese ink this moment.If not, then carry out S304, do not write with a brush dipped in Chinese ink authority this moment.
S303: obtain authority by described virtual interface, write with a brush dipped in Chinese ink controller according to described authority.
S304: process ends.Here, also process ends not, but prompting user does not have corresponding authority, perhaps prompting user is downloaded virtual interface, prompting user inserts U shield etc., also can behind Preset Time, return and carry out S302, namely rejudge whether can get access to virtual interface.
Virtual interface can be shell (shell) file, and have physical directory address in the virtual interface this moment.Then judge whether that can get access to virtual interface in the memory device of described computing machine is specially among the S302 this moment: judge whether and in default address, to get access to virtual interface, the address in the memory device that described default address is computing machine.At this moment, write with a brush dipped in Chinese ink and have default address in the unit.And obtaining authority by described virtual interface among the S302 is specially: then by the physical directory address acquisition authority in the described virtual interface.
Computing machine among the present invention refers to that computer, single-chip microcomputer, ARM or FPGA etc. have the electron device of logic computing function.
The described method of this embodiment can be used for the computing machine of LAN (Local Area Network), all stored virtual interface in the memory device of the computing machine in this LAN (Local Area Network), and this virtual interface can be encrypted in advance.Write with a brush dipped in Chinese ink unit judges and whether can in the memory device of computing machine get access to virtual interface when receiving when writing with a brush dipped in Chinese ink instruction this moment.If so, then write with a brush dipped in Chinese ink the unit and decipher the virtual interface that gets access to by the first preset password of Computer Storage, and obtain authority by virtual interface, thereby write with a brush dipped in Chinese ink controller.Computing machine outside this LAN (Local Area Network) is not then stored corresponding virtual interface, at this moment, can't realize writing with a brush dipped in Chinese ink controller.
The described method of this embodiment can also be behind verifying authorization virtual interface to be downloaded in the memory device of computing machine, specifies below by an embodiment.
See also Fig. 4, the present invention also provides another specific embodiment of the method for writing with a brush dipped in Chinese ink controller, and described method is used for computing machine, and described method comprises:
S401: the username and password that receives user's input.
S402: verify according to described username and password whether described user has authority, if so, then carry out S403, be proved to be successful this moment, if not, then carries out S404, at this moment authentication failed.Can be by connectivity verification website, internet among the S402, also can be to realize by local data base whether the described user of checking has authority.
S403: download virtual interface to the memory device of described computing machine.Here, can be by the Internet download virtual interface, or from other external equipment, download virtual interface.Enter S405 after this step.
S404: display reminding information, here can the display reminding user information of username and password mistake of input, also can be the information that the display reminding user inserts the U shield.Here, this step also can not carried out any operation.Enter S405 after this step.
S405: receive and write with a brush dipped in Chinese ink instruction.
What deserves to be explained is, can be to carry out first S405 here, carries out afterwards S401 to S404 again.That is to say, can be receive write with a brush dipped in Chinese ink instruction after, receive again the username and password of user input and verify.
S406: judge whether and in the memory device of described computing machine, to get access to virtual interface, if so, then carry out S407, have the authority of writing with a brush dipped in Chinese ink this moment.If not, then carry out S408, do not write with a brush dipped in Chinese ink authority this moment.
S407: obtain authority by described virtual interface, write with a brush dipped in Chinese ink controller according to described authority.
S408: process ends.Here, also process ends not, but prompting user does not have corresponding authority, perhaps prompting user is downloaded virtual interface, prompting user inserts U shield etc., also can behind Preset Time, return and carry out S406, namely rejudge whether can get access to virtual interface.
Virtual interface can be shell (shell) file, and have physical directory address in the virtual interface this moment.Then judge whether that can get access to virtual interface in the memory device of computing machine is specially among the S406 this moment: judge whether and in default address, to get access to virtual interface, the address in the memory device that described default address is computing machine.At this moment, write with a brush dipped in Chinese ink and have default address in the unit.And downloading virtual interface to the memory device of described computing machine among the S403 is specially: download the default address of virtual interface to the memory device of described computing machine, obtain authority by described virtual interface among the S407 and be specially: then by the physical directory address acquisition authority in the described virtual interface.
Among this embodiment, download virtual interface among the S403 to the memory device of described computing machine, can be to download in the temporary folder of virtual interface to the memory device of computing machine, therefore described method can also comprise: obtain after the authority by described virtual interface in S407, perhaps in S407, write with a brush dipped in Chinese ink after the controller the described virtual interface that deletion is downloaded according to described authority.
In the method for writing with a brush dipped in Chinese ink controller provided by the invention, can also be in the interventional instrument of computing machine, to obtain virtual interface, be described as follows:
Fig. 5 is another specific embodiment of writing with a brush dipped in Chinese ink the method for controller provided by the invention, and described method is used for computing machine, and described method comprises:
S501: receive and write with a brush dipped in Chinese ink instruction.
S502: detect described computing machine and whether have interventional instrument, if so, then carry out S503, if not, then carry out S505.
S503: judge whether and in the interventional instrument of described computing machine, to get access to virtual interface, if so, then carry out S504, have the authority of writing with a brush dipped in Chinese ink this moment.If not, then carry out S505, do not write with a brush dipped in Chinese ink authority this moment.
S504: obtain authority by described virtual interface, write with a brush dipped in Chinese ink controller according to described authority.
S505: process ends.Here, also process ends not, but prompting user does not have corresponding authority, perhaps prompting user is downloaded virtual interface, prompting user inserts U shield etc., also can behind Preset Time, return and carry out S502 or S503, namely again detect whether interventional instrument is arranged or rejudge whether can in interventional instrument, get access to virtual interface.
Virtual interface can be shell (shell) file, and have physical directory address in the virtual interface this moment.Then judge whether that can get access to virtual interface in the interventional instrument of described computing machine is specially among the S503 this moment: judge whether and can get access to virtual interface in default address, described default address is the address of the interventional instrument of computing machine.At this moment, write with a brush dipped in Chinese ink and have default address in the unit.And obtaining authority by described virtual interface among the S504 is specially: by the physical directory address acquisition authority in the described virtual interface.
In the method for writing with a brush dipped in Chinese ink controller provided by the invention, can be in the equipment of local computer and insertion, to obtain virtual interface successively according to preset order, as long as and when getting access to virtual interface, just carry out and obtain authority by virtual interface.Specify below by two embodiment.
Fig. 6 is another specific embodiment of writing with a brush dipped in Chinese ink the method for controller provided by the invention, and described method is used for computing machine, and described method comprises:
S601: receive and write with a brush dipped in Chinese ink instruction.
S602: detect described computing machine and whether have interventional instrument, if so, then carry out S 603, if not, then carry out S604.
S603: judge whether and in the interventional instrument of described computing machine, to get access to virtual interface, if so, then carry out S605, have the authority of writing with a brush dipped in Chinese ink this moment.If not, then carry out S606, do not write with a brush dipped in Chinese ink authority this moment,, when the determination result is NO, can not carry out S606 here yet, but carry out S604.
S604: judge whether and in the memory device of described computing machine, to get access to virtual interface, if so, then carry out S605, have the authority of writing with a brush dipped in Chinese ink this moment.If not, then carry out S606, do not write with a brush dipped in Chinese ink authority this moment.
S605: obtain authority by described virtual interface, write with a brush dipped in Chinese ink controller according to described authority.Here, be to obtain authority by the virtual interface that in the memory device of the interventional instrument of computing machine or computing machine, gets access to.
S606: process ends.Here, also process ends not, but prompting user does not have corresponding authority, perhaps prompting user is downloaded virtual interface, prompting user inserts U shield etc., also can behind Preset Time, return and carry out S602, S603 or S604, namely again detect whether interventional instrument is arranged or rejudge whether can in interventional instrument or memory device, get access to virtual interface.
Virtual interface can be shell (shell) file, and have physical directory address in the virtual interface this moment.Then judge whether that can get access to virtual interface in the interventional instrument of described computing machine is specially among the S603 this moment: judge whether and can get access to virtual interface in default address, described default address is the address of the interventional instrument of computing machine.Then judge whether that can get access to virtual interface in the memory device of described computing machine is specially among the S604 this moment: judge whether and in default address, to get access to virtual interface, the address in the memory device that described default address is computing machine.Write with a brush dipped in Chinese ink and have default address in the unit.And obtaining authority by described virtual interface among the S605 is specially: by the physical directory address acquisition authority in the described virtual interface.
Among this embodiment, before S604, can also comprise: receive the username and password of user's input, verify according to described username and password whether described user has authority, if, then download virtual interface to the memory device of computing machine, if not, then can display reminding message.Here, can be by the Internet download virtual interface, or from other external equipment, download virtual interface.Can be by connectivity verification website, internet, also can be to realize by local data base whether the described user of checking has authority.
Fig. 7 is another specific embodiment of writing with a brush dipped in Chinese ink the method for controller provided by the invention, and described method is used for computing machine, and described method comprises:
S701: receive and write with a brush dipped in Chinese ink instruction.
S702: judge whether and in the memory device of described computing machine, to get access to virtual interface, if so, then carry out S705.If not, carry out S703.
S703: detect described computing machine and whether have interventional instrument, if so, then carry out S704, if not, then carry out S706.
S704: judge whether and in the interventional instrument of described computing machine, to get access to virtual interface, if so, then carry out S705, have the authority of writing with a brush dipped in Chinese ink this moment.If not, then carry out S706, do not write with a brush dipped in Chinese ink authority this moment.
S705: obtain authority by described virtual interface, write with a brush dipped in Chinese ink controller according to described authority.Here, be to obtain authority by the virtual interface that in the memory device of the interventional instrument of computing machine or computing machine, gets access to.
S706: process ends.Here, also process ends not, but prompting user does not have corresponding authority, perhaps prompting user is downloaded virtual interface, prompting user inserts U shield etc., also can behind Preset Time, return and carry out S702 or S703, namely again detect whether interventional instrument is arranged or rejudge whether can in interventional instrument or memory device, get access to virtual interface.
Virtual interface can be shell (shell) file, and have physical directory address in the virtual interface this moment.Then judge whether that can get access to virtual interface in the memory device of described computing machine is specially among the S702 this moment: judge whether and in default address, to get access to virtual interface, the address in the memory device that described default address is computing machine.Then judge whether that can get access to virtual interface in the interventional instrument of described computing machine is specially among the S704 this moment: judge whether and can get access to virtual interface in default address, described default address is the address of the interventional instrument of computing machine.Write with a brush dipped in Chinese ink and have default address in the unit.And obtaining authority by described virtual interface among the S705 is specially: by the physical directory address acquisition authority in the described virtual interface.
Among this embodiment, before S702, can also comprise: receive the username and password of user's input, verify according to described username and password whether described user has authority, if, then download virtual interface to the memory device of computing machine, if not, then can display reminding message.Here, can be by the Internet download virtual interface, or from other external equipment, download virtual interface.Can be by connectivity verification website, internet, also can be to realize by local data base whether the described user of checking has authority.
In above-mentioned two embodiment, the situation of obtaining virtual interface in the memory device of computing machine and interventional instrument has been described respectively successively, here, also can in memory device and interventional instrument, obtain virtual interface simultaneously, as long as get access to virtual interface, then no longer carry out and obtain virtual interface, obtain authority but carry out by virtual interface.
In the method for writing with a brush dipped in Chinese ink controller provided by the invention, can also write with a brush dipped in Chinese ink controller by adapter, therefore, can in adapter, increase tally function, and realize the number of times of writing with a brush dipped in Chinese ink is carried out the authority setting by tally function.A following embodiment understands this situation specifically.
See also Fig. 8, the present invention also provides another specific embodiment of the method for writing with a brush dipped in Chinese ink controller, and described method comprises:
S801: receive and write with a brush dipped in Chinese ink instruction.
S802: judge whether to get access to virtual interface, if so, then carry out S804, have the authority of writing with a brush dipped in Chinese ink this moment.If not, then carry out S803, do not write with a brush dipped in Chinese ink authority this moment.Here, can in the memory device of computing machine or in the interventional instrument, obtain virtual interface.
S803: process ends.Here, also process ends not, but prompting user does not have corresponding authority, perhaps prompting user is downloaded virtual interface, prompting user inserts U shield etc., also can behind Preset Time, return and carry out S802, namely again detect whether can get access to virtual interface.
S804: obtain authority by described virtual interface, according to described authority, write with a brush dipped in Chinese ink controller by adapter.
S805: whether the cumulative number that described adapter record is write with a brush dipped in Chinese ink also judges this cumulative number of writing with a brush dipped in Chinese ink greater than predetermined threshold value, if so, carries out S806.
S806: lock described adapter.Here the number of times that can write with a brush dipped in Chinese ink by setting predetermined threshold value control adapter.Behind lock adapter, adapter does not have the authority that controller is write with a brush dipped in Chinese ink.If want afterwards to recover the authority of writing with a brush dipped in Chinese ink to controller, then can carry out release and with the cumulative number zero clearing to adapter.
In this embodiment, also can not carry out S805 and S806, but in S804, get access to after the authority, the cumulative number that the inquiry adapter is write with a brush dipped in Chinese ink, if cumulative number is greater than predetermined threshold value, then can process ends and the number of times system that transfinited of writing with a brush dipped in Chinese ink of prompting user adapter, if cumulative number is not more than predetermined threshold value, then write with a brush dipped in Chinese ink controller by adapter, and adapter records the cumulative number of writing with a brush dipped in Chinese ink.When cumulative number during greater than predetermined threshold value, adapter does not have the authority that controller is write with a brush dipped in Chinese ink, if want afterwards to recover the authority of writing with a brush dipped in Chinese ink to controller, the cumulative number zero clearing that then adapter can be write with a brush dipped in Chinese ink.
Virtual interface can be shell (shell) file, and have physical directory address in the virtual interface this moment.Then judging whether to get access to virtual interface among the S802 this moment is specially: judge whether and can get access to virtual interface in default address.At this moment, write with a brush dipped in Chinese ink and have default address in the unit.And obtaining authority by described virtual interface among the S804 is specially: then by the physical directory address acquisition authority in the described virtual interface.
See also Fig. 9, the present invention also provides a kind of specific embodiment of writing with a brush dipped in Chinese ink the system of controller, and described system comprises: write with a brush dipped in Chinese ink unit 901 and controller 902.
Instruction is write with a brush dipped in Chinese ink for receiving in the described unit 901 of writing with a brush dipped in Chinese ink, and judges whether to get access to virtual interface, if so, then obtains authority by described virtual interface, and writes with a brush dipped in Chinese ink controller 902 according to described authority.Controller can be ECU, single-chip microcomputer etc.Writing with a brush dipped in Chinese ink the unit can be the software of writing with a brush dipped in Chinese ink that can write with a brush dipped in Chinese ink controller.For example, when controller is ECU, writes with a brush dipped in Chinese ink the unit and can be the software systems such as EOL, INCA, CANAPE.Writing with a brush dipped in Chinese ink controller according to described authority is actually according to described authority and data file and writes with a brush dipped in Chinese ink controller.
Preferably, described virtual interface can be the shell file, and has the physical directory address in the virtual interface, writes with a brush dipped in Chinese ink to have default address in the unit.Then the described unit 901 write with a brush dipped in Chinese ink is used for receiving and writes with a brush dipped in Chinese ink instruction, and judge whether and can in default address, get access to virtual interface, if so, the physical directory address acquisition authority by described virtual interface then, and write with a brush dipped in Chinese ink controller 902 according to described authority.
Preferably, the described unit of writing with a brush dipped in Chinese ink can also be used for rejudging whether can get access to virtual interface behind Preset Time when judging whether to get access to virtual interface the determination result is NO.
Preferably, described system can also comprise Tip element, the described unit of writing with a brush dipped in Chinese ink can also be used for not having corresponding authority by the Tip element prompting user when judging whether to get access to virtual interface the determination result is NO, and perhaps prompting user is downloaded virtual interface, prompting user insertion U shield etc.
Preferably, described system is used for computing machine, and the described unit 901 of writing with a brush dipped in Chinese ink comprises for judging whether to get access to virtual interface: the described unit 901 of writing with a brush dipped in Chinese ink is used for judging whether and getting access to virtual interface at the memory device of described computing machine.At this moment, can be behind verifying authorization, virtual interface to be downloaded in the memory device of computing machine, specify below by an embodiment.
Figure 10 is another specific embodiment of writing with a brush dipped in Chinese ink the system of controller provided by the invention, and described system is used for computing machine, and described system comprises: write with a brush dipped in Chinese ink unit 901, controller 902, authentication unit 1001 and download unit 1002.
Instruction is write with a brush dipped in Chinese ink for receiving in the described unit 901 of writing with a brush dipped in Chinese ink, and judges whether and can get access to virtual interface in the memory device 1003 of computing machine, if so, then obtains authority by described virtual interface, and writes with a brush dipped in Chinese ink controller 902 according to described authority.
Described authentication unit 1001 is used for receiving the username and password of user's input, whether has authority according to described username and password authentication of users, if so, then notifies download unit 1002 to download virtual interface to the memory device 1003 of described computing machine.Here can be by connectivity verification website, internet, also can be to realize by local data base whether the described user of checking has authority.
In this embodiment, described system can also comprise delete cells.Then the virtual interface of described delete cells deletion download is notified for write with a brush dipped in Chinese ink controller 902 after obtaining authority by described virtual interface or according to authority after in the described unit 901 of writing with a brush dipped in Chinese ink.
Figure 11 is another specific embodiment of writing with a brush dipped in Chinese ink the system of controller provided by the invention, and described system is used for computing machine, and described system comprises: write with a brush dipped in Chinese ink unit 901, controller 902 and detecting unit 1101.
Whether detecting unit 1101 has interventional instrument for detection of described computing machine, if so, then notifies the described unit 901 of writing with a brush dipped in Chinese ink to judge whether and can get access to virtual interface in the interventional instrument 1102 that described detecting unit detects.
Instruction is write with a brush dipped in Chinese ink for receiving in the described unit 901 of writing with a brush dipped in Chinese ink, judge whether and in the interventional instrument 1102 that described detecting unit 1101 detects, to get access to virtual interface after receiving the notice of described detecting unit 1101, if, then obtain authority by described virtual interface, and write with a brush dipped in Chinese ink controller 902 according to described authority.
Figure 12 is another specific embodiment of writing with a brush dipped in Chinese ink the system of controller provided by the invention, and described system is used for computing machine, and described system comprises: write with a brush dipped in Chinese ink unit 901, controller 902 and adapter 1201.
Instruction is write with a brush dipped in Chinese ink for receiving in the described unit 901 of writing with a brush dipped in Chinese ink, and judges whether to get access to virtual interface, if so, then obtains authority by described virtual interface, and notifies described adapter 1201 to write with a brush dipped in Chinese ink controller 902 according to described authority.
Described adapter 1201 is used for writing with a brush dipped in Chinese ink controller 902 according to the notice of writing with a brush dipped in Chinese ink the unit, and write with a brush dipped in Chinese ink after the end controller 902 at every turn, whether the cumulative number that record is write with a brush dipped in Chinese ink also judges this cumulative number of writing with a brush dipped in Chinese ink greater than predetermined threshold value, if so, then locks described adapter 1201.
The specific embodiment of writing with a brush dipped in Chinese ink the system of controller provided by the invention can with reference to the relevant portion of the method for writing with a brush dipped in Chinese ink controller, specifically repeat no more.
The above only is preferred implementation of the present invention; should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.

Claims (17)

1. a method of writing with a brush dipped in Chinese ink controller is characterized in that, described method comprises:
Instruction is write with a brush dipped in Chinese ink in reception;
Judge whether to get access to virtual interface, if so, then obtain authority by described virtual interface, write with a brush dipped in Chinese ink controller according to described authority.
2. method according to claim 1 is characterized in that, has the physical directory address in the described virtual interface;
Judging whether to get access to virtual interface is specially: judge whether and can get access to virtual interface in default address;
Then obtaining authority by described virtual interface is specially:
Then by the physical directory address acquisition authority in the described virtual interface.
3. method according to claim 1 is characterized in that, described method is used for computing machine, describedly judges whether to get access to virtual interface and comprises:
Judge whether and in the memory device of described computing machine, to get access to virtual interface.
4. method according to claim 3, it is characterized in that, described judging whether also comprises before getting access to virtual interface: the username and password that receives user's input, whether has authority according to described username and password authentication of users, if so, then download virtual interface to the memory device of described computing machine.
5. method according to claim 4 is characterized in that, after obtaining authority by described virtual interface, perhaps writes with a brush dipped in Chinese ink after the controller according to authority, also comprises:
The described virtual interface that deletion is downloaded.
6. method according to claim 1, it is characterized in that, described method is used for computing machine, and described judging whether also comprises before getting access to virtual interface: detect described computing machine and whether have interventional instrument, if so, then carry out described judging whether and to get access to virtual interface;
Describedly judge whether to get access to virtual interface and comprise:
Judge whether and in the interventional instrument that detects, to get access to virtual interface.
7. method according to claim 1 is characterized in that, obtains authority by described virtual interface and also comprises before:
The virtual interface that deciphering gets access to according to the first preset password.
8. method according to claim 1 is characterized in that, writes with a brush dipped in Chinese ink controller according to described authority and also comprises before:
The authority that deciphering gets access to according to the second preset password.
9. method according to claim 1 is characterized in that, writes with a brush dipped in Chinese ink controller according to described authority specifically to be:
According to described authority, write with a brush dipped in Chinese ink controller by adapter;
Described writing with a brush dipped in Chinese ink by adapter also comprises after the controller: the cumulative number that described adapter record is write with a brush dipped in Chinese ink also judges that this cumulative number of writing with a brush dipped in Chinese ink whether greater than predetermined threshold value, if so, then locks described adapter.
10. a system that writes with a brush dipped in Chinese ink controller is characterized in that, described system comprises: write with a brush dipped in Chinese ink unit and controller;
Instruction is write with a brush dipped in Chinese ink for receiving in the described unit of writing with a brush dipped in Chinese ink, and judges whether to get access to virtual interface, if so, then obtains authority by described virtual interface, and writes with a brush dipped in Chinese ink controller according to described authority.
11. system according to claim 10 is characterized in that, described system is used for computing machine,
The described unit of writing with a brush dipped in Chinese ink comprises for judging whether to get access to virtual interface: the described unit of writing with a brush dipped in Chinese ink is used for judging whether and getting access to virtual interface at the memory device of described computing machine.
12. system according to claim 11 is characterized in that, described system also comprises: authentication unit and download unit;
Described authentication unit is used for receiving the username and password of user's input, whether has authority according to described username and password authentication of users, if so, then notifies download unit to download virtual interface to the memory device of described computing machine.
13. system according to claim 12 is characterized in that, described system also comprises: delete cells;
The described unit of writing with a brush dipped in Chinese ink notifies described delete cells to delete described virtual interface also for write with a brush dipped in Chinese ink controller after obtaining authority by described virtual interface or according to authority after.
14. system according to claim 10 is characterized in that, described system is used for computing machine, and described system also comprises: detecting unit;
Whether described detecting unit has interventional instrument for detection of described computing machine, if so, then notifies the described unit judges of writing with a brush dipped in Chinese ink whether can get access to virtual interface;
The described unit of writing with a brush dipped in Chinese ink comprises for judging whether to get access to virtual interface: the described unit of writing with a brush dipped in Chinese ink is used for judging whether and getting access to virtual interface at the interventional instrument that described detecting unit detects.
15. system according to claim 10 is characterized in that, described system also comprises: adapter;
The described unit of writing with a brush dipped in Chinese ink for writing with a brush dipped in Chinese ink controller according to described authority specifically is: the described unit of writing with a brush dipped in Chinese ink is used for notifying described adapter to write with a brush dipped in Chinese ink controller according to described authority;
Described adapter is used for writing with a brush dipped in Chinese ink controller according to the notice of writing with a brush dipped in Chinese ink the unit, and writes with a brush dipped in Chinese ink after the end controller at every turn, and the cumulative number that record is write with a brush dipped in Chinese ink also judges that this cumulative number of writing with a brush dipped in Chinese ink whether greater than predetermined threshold value, if so, then locks described adapter.
16. to the described system of 15 any one, it is characterized in that according to claim 10, described controller is ECU.
17. to the described system of 15 any one, it is characterized in that according to claim 10, described virtual interface is the shell file.
CN201210567666.6A 2012-12-24 2012-12-24 A kind of method and system writing with a brush dipped in Chinese ink controller Active CN103020514B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210567666.6A CN103020514B (en) 2012-12-24 2012-12-24 A kind of method and system writing with a brush dipped in Chinese ink controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210567666.6A CN103020514B (en) 2012-12-24 2012-12-24 A kind of method and system writing with a brush dipped in Chinese ink controller

Publications (2)

Publication Number Publication Date
CN103020514A true CN103020514A (en) 2013-04-03
CN103020514B CN103020514B (en) 2016-01-06

Family

ID=47969110

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210567666.6A Active CN103020514B (en) 2012-12-24 2012-12-24 A kind of method and system writing with a brush dipped in Chinese ink controller

Country Status (1)

Country Link
CN (1) CN103020514B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104092725A (en) * 2014-06-05 2014-10-08 潍柴动力股份有限公司 ECU flushing method and client
CN110989567A (en) * 2019-12-31 2020-04-10 潍柴动力股份有限公司 Controller writing method, controller and upper computer
WO2023109889A1 (en) * 2021-12-15 2023-06-22 潍柴动力股份有限公司 Engine ecu flashing method and device, and engine ecu flashing diagnosis method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20060004290A (en) * 2004-07-09 2006-01-12 현대자동차주식회사 Emergency system for stopping a car in side road for automobile and method for controlling the same
CN101840206A (en) * 2010-01-15 2010-09-22 北汽福田汽车股份有限公司 ECU (Electric Control Unit) data flashing system
CN101850799A (en) * 2010-05-31 2010-10-06 重庆长安汽车股份有限公司 Controller FLASH programming method based on hybrid electric vehicle CAN bus communication
CN202353707U (en) * 2011-09-28 2012-07-25 马秀文 Vehicle monitoring and diagnosing system
CN102725731A (en) * 2011-08-31 2012-10-10 华为技术有限公司 Method and device for flashing basic input output system memory of multi-processor

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20060004290A (en) * 2004-07-09 2006-01-12 현대자동차주식회사 Emergency system for stopping a car in side road for automobile and method for controlling the same
CN101840206A (en) * 2010-01-15 2010-09-22 北汽福田汽车股份有限公司 ECU (Electric Control Unit) data flashing system
CN101850799A (en) * 2010-05-31 2010-10-06 重庆长安汽车股份有限公司 Controller FLASH programming method based on hybrid electric vehicle CAN bus communication
CN102725731A (en) * 2011-08-31 2012-10-10 华为技术有限公司 Method and device for flashing basic input output system memory of multi-processor
CN202353707U (en) * 2011-09-28 2012-07-25 马秀文 Vehicle monitoring and diagnosing system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
刘矗等: "基于飞思卡尔微控制器的CAN Bootloader的实现与应用", 《苏州大学学报(工科版)》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104092725A (en) * 2014-06-05 2014-10-08 潍柴动力股份有限公司 ECU flushing method and client
CN110989567A (en) * 2019-12-31 2020-04-10 潍柴动力股份有限公司 Controller writing method, controller and upper computer
CN110989567B (en) * 2019-12-31 2022-01-25 潍柴动力股份有限公司 Controller writing method, controller and upper computer
WO2023109889A1 (en) * 2021-12-15 2023-06-22 潍柴动力股份有限公司 Engine ecu flashing method and device, and engine ecu flashing diagnosis method and device

Also Published As

Publication number Publication date
CN103020514B (en) 2016-01-06

Similar Documents

Publication Publication Date Title
EP3346415B1 (en) Event attestation for an electronic device
KR101449971B1 (en) Access control apparatus, access control method and access control program
CN112074836A (en) Apparatus and method for protecting data through trusted execution environment
CN101944170B (en) Method, system and device for issuing software version
EP2759955A1 (en) Secure backup and restore of protected storage
CN109286638B (en) Automobile diagnosis equipment authentication method and related device
JP2017130911A (en) Evaluation device, evaluation system, and evaluation method
Van den Herrewegen et al. Beneath the bonnet: A breakdown of diagnostic security
CN102346831A (en) Handheld device privacy encryption protection method of Android operating system
KR20180062072A (en) Diagnostics device for vehicle and method of managing certificate thereof
US10025954B2 (en) Method for operating a control unit
TW201207862A (en) Memory identification code generating method, management method, controller and storage system
CN111414605B (en) Unlocking method and device of embedded security unit, electronic equipment and storage medium
CN104104650B (en) data file access method and terminal device
CN111783078A (en) Android platform security chip control system
CN103020514A (en) Method and system for programming controller
CN118051919B (en) Data processing method, chip, electronic device and storage medium
US11960608B2 (en) Fast secure booting method and system
CN105337995A (en) Rapid personalization method and system for smart card
CN102801699A (en) System, method and equipment for preventing data tampering of server
WO2020091905A1 (en) Securing data logs in memory devices
CN103853988B (en) Semiconductor devices and access restriction method
CN106203100A (en) A kind of integrity checking method and device
WO2013173986A1 (en) A method for protecting data on a mass storage device and a device for the same
CN115080324B (en) Method, system, device and medium for testing password write protection function of HDD (hard disk drive) disk

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20201016

Address after: 261061 Shandong city in Weifang province Fu hi tech Industrial Development Zone, East Street No. 197

Patentee after: Weichai Power Co.,Ltd.

Patentee after: Weifang Weichai Power Technology Co.,Ltd.

Address before: 261061 Shandong city in Weifang province Fu hi tech Industrial Development Zone, East Street No. 197

Patentee before: Weichai Power Co.,Ltd.