CN100504785C - Method for automatically reading and updating apparatus data employing USB memory device - Google Patents
Method for automatically reading and updating apparatus data employing USB memory device Download PDFInfo
- Publication number
- CN100504785C CN100504785C CNB2007101240727A CN200710124072A CN100504785C CN 100504785 C CN100504785 C CN 100504785C CN B2007101240727 A CNB2007101240727 A CN B2007101240727A CN 200710124072 A CN200710124072 A CN 200710124072A CN 100504785 C CN100504785 C CN 100504785C
- Authority
- CN
- China
- Prior art keywords
- usb
- equipment
- data
- memory storage
- usb memory
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Landscapes
- Stored Programmes (AREA)
- Storage Device Security (AREA)
Abstract
The invention discloses a method which adopts a USB storage device to automatically read and update the equipment data; the method is that the USB storage device can be used for storing a USB transmission configuration file pre-produced on a personal computer; when the data such as inter programs of the embedded equipment needs updating, the USB storage device can be connected with the interface of the USB controller in the embedded equipment, in this way, through reading the USB transmission configuration file, the embedded equipment can complete the operation of data updating in the equipment according to the USB transmission configuration file. The invention provides a direct and fast method for data updating in equipment, and is convenient for maintenance personnel to maintain the equipment. At the same time, due to adopting the method where the USB is used for allocating files, the invention ensures the security when the equipment reads data, as well as the selectivity of the operation of data reading and writing.
Description
Technical field
The present invention relates to read automatically the method for the data of updating the equipment, relate in particular to the method that a kind of USB of employing memory storage reads the data of updating the equipment automatically.
Background technology
At present, general embedded system device adopts Ethernet or JTAG (Joint Test ActionGroup, combined testing action group) mode is upgraded its internal processes, dual mode all has advantage separately, but also undeniable have its shortcoming, be that they all need to use computer to connect embedded system device, and need special connection netting twine or JTAG to download line.When refresh routine, can't carry computer or download length of cable when limited, will be obstructed the Data Update of embedded system device.This shows that there is limitation in prior art, need a kind of more convenient, mode is come refresh routine efficiently.
Summary of the invention
The objective of the invention is: a kind of method that reads the data of updating the equipment automatically is provided, and this method need not to use computer to connect this equipment when the embedded system device internal processes is upgraded, the internal processes of updating the equipment in mode easily and efficiently.
The present invention solves the problems of the technologies described above the technical scheme that is adopted to be:
A kind of USB of employing memory storage reads the method for the data of updating the equipment automatically, may further comprise the steps:
A, making USB translation profile are put into the USB memory storage;
B, when the USB controller in the equipment has detected described USB memory storage and has been connected to this equipment, described equipment reads the USB translation profile, and finishes the operation of Data Update in the equipment according to the USB translation profile, and:
B1, carry out the judgement of user and authority thereof,, finish this operation, otherwise change step B2 over to if lack of competence or user cipher are incorrect according to the configuration of described USB translation profile;
B2, select the data in updating the equipment according to the line operate that is configured into of described USB translation profile.
Described method, wherein: described operation is selected to comprise following option: the data in the described equipment are kept in the described USB memory storage; Or with the data in the described equipment of Data Update in the described USB memory storage; Or the data in the described equipment are kept in the described USB memory storage particular file folder, use data in the described equipment of Data Update in the described USB memory storage again.
Described method, wherein: described USB controller is the built-in USB controller of described equipment CPU.
Described method, wherein: described USB controller is a peripheral hardware USB controller chip, links to each other with the CPU of equipment.
Described method, wherein: the state and the operating result of data transmission between described equipment and the USB memory storage are pointed out with stand by lamp.
Described method, wherein: when described equipment read in the described USB memory storage USB translation profile, stand by lamp was bright; When the configuration determination user name according to described USB configuration file is not inconsistent or during password bad, the stand by lamp flicker; After the operation of Data Update, stand by lamp goes out in finishing equipment.
Beneficial effect of the present invention is: for the renewal of device data added a kind of directly, method efficiently, maintain easily personnel's service equipment.Simultaneously,, before to the device interior Data Update, need to carry out the judgement of user and authority thereof, therefore guaranteed safety of data in the equipment owing in the USB translation profile user name user and password password are arranged.
Description of drawings
Fig. 1 reads the theory diagram of the data of updating the equipment automatically for USB memory storage of the present invention;
Fig. 2 reads the process flow diagram of the data of updating the equipment automatically for USB memory storage of the present invention;
Fig. 3 is the implementation step synoptic diagram of the specific embodiment of the invention.
Embodiment
With embodiment the present invention is described in further detail with reference to the accompanying drawings below:
Core concept of the present invention is: utilize a USB memory storage, the USB translation profile of making on PC is in advance put in this USB memory storage, when needs upgrade data such as embedded system device (abbreviation equipment) internal processes, this USB memory storage is connected to USB control unit interface in this equipment, and equipment is by reading the USB translation profile and finishing the operation of Data Update in the equipment according to the USB translation profile.So just added a kind of more direct method for the renewal of device data, the personnel that maintain easily safeguard.
Adopt the USB memory storage data of updating the equipment, need chips such as USB controller in the equipment, will increase the specific driving of USB device in the software.The concrete processing of device hardware is as shown in Figure 1: add the USB controller chip in equipment, the USB controller chip links to each other with the CPU of equipment, and the USB controller chip plays a part isolation, controls between CPU and USB memory device.But because the CPU itself that has has the USB controller, then need not additionally to add the USB controller, can directly cause device panel with the USB mouth this moment, so that the USB memory storage directly inserts.Device panel need add the LED stand by lamp, the state and the result of data transmission between display device and the USB memory storage simultaneously.Increase the specific driving of USB device in the software of equipment operation, when the USB memory storage connects, the data in the equipment (comprising program or database) are upgraded.The function that this specific driving is finished has: the read-write operation that the USB controller is basic, reading of USB configuration file, carry out the judgement of user and authority thereof according to the configuration of USB configuration file, carry out read operation, write operation, the read/write operation of device data according to the configuration of USB configuration file, finish operation USB and equipment.
Adopt safety of data in the mode assurance equipment of USB configuration file simultaneously, and the selection of data read-write operation.The form of USB configuration file is as follows:
* * * * * * * * * is following to be the USB configuration file, does not comprise one's own profession * * * * * * * * * * * * * *
user:xxxxxxx
password:xxxxxxxx
operation:XX
* * * * * * * * * * USB configuration file is intact, does not comprise one's own profession * * * * * * * * * * * * * * * * * * * *
Safety of data in user name user in the configuration file and the password password assurance equipment is not if user name or password not match in the USB configuration file that device drives reads then carry out reading and upgrade of device data.Operation selects operation that following option: RD-data in the equipment are kept in the USB memory storage can be arranged, WR-the use data in the described equipment of Data Update in the USB memory storage that is connected with equipment, RW-data in the equipment are kept in the USB memory storage particular file folder uses data in the data updating device in the USB memory storage that is connected with equipment again.
The inventive method implementation step is as shown in Figure 2:
1, makes the USB translation profile at PC, put into the USB memory storage.
2, the USB controller of equipment has detected USB memory storage connection device veneer.
3, device software drives and reads USB translation profile in the USB memory storage, and this moment, stand by lamp was bright; And carry out the judgement of user and authority thereof according to the configuration of USB configuration file,, finish stand by lamp flicker this moment if lack of competence or password bad are directly finished this operation by software; Otherwise change step 4 over to.
4, select to carry out the Data Update operation according to the operation of USB translation profile configuration, this step is finished by software-driven.
5, finish Data Update operation after, stand by lamp goes out, this step is finished by software-driven.
6, finish Data Update, take off the USB memory storage.
Below with a SDH optical transmission device veneer as an example, specifically introduce implementing procedure of the present invention.As shown in Figure 1, this SDH optical transmission device single plate hardware comprises CPU, FLASH storage chip 1 (preserving single board starting program and USB drives), FLASH storage chip 2 (preservation veneer application program), and this CPU internal USB controller.For these SDH optical transmission device veneer data are upgraded, needing increases the data transmission pilot lamp, and is used for the USB flash disk of copies data.
The concrete operations step is as shown in Figure 3:
1, makes USB translation profile SDH.CFG at PC, put into the USB memory storage.
2, the USB controller has detected USB memory storage connection veneer;
3, veneer reads USB translation profile SDH.CFG, and stand by lamp is bright; If lack of competence or password bad are directly finished this operation, finish the stand by lamp flicker by software;
4, be configured into line operate according to SDH.CFG, three kinds of modes among option of operation such as Fig. 3; If with veneer application program RW is example, then read the veneer internal processes, put into the USB flash disk particular file folder separately, finish by software.
5, the program of required renewal is taken out from USB flash disk, put into the FLASH storage chip 2 of veneer.
6, behind the complete operation, stand by lamp goes out, and is finished by software.
7, finish Data Update, take off USB flash disk.
Be understandable that, for those of ordinary skills, can be equal to replacement or change according to technical scheme of the present invention and inventive concept thereof, and all these changes or replacement all should belong to the protection domain of the appended claim of the present invention.
Claims (6)
1, a kind of USB of employing memory storage reads the method for the data of updating the equipment automatically, may further comprise the steps:
A, making USB translation profile are put into the USB memory storage;
B, when the USB controller in the equipment has detected described USB memory storage and has been connected to this equipment, described equipment reads the USB translation profile, and:
B1, carry out the judgement of user and authority thereof,, finish this operation, otherwise change step B2 over to if lack of competence or user cipher are incorrect according to the configuration of described USB translation profile;
B2, select the data in updating the equipment according to the line operate that is configured into of described USB translation profile.
2, method according to claim 1 is characterized in that: described operation is selected to comprise following option: the data in the described equipment are kept in the described USB memory storage; Or with the data in the described equipment of Data Update in the described USB memory storage; Or the data in the described equipment are kept in the described USB memory storage particular file folder, use data in the described equipment of Data Update in the described USB memory storage again.
3, method according to claim 1 is characterized in that: described USB controller is the built-in USB controller of described equipment CPU.
4, method according to claim 1 is characterized in that: described USB controller is a peripheral hardware USB controller chip, links to each other with the CPU of equipment.
5, according to the described method of the arbitrary claim of claim 1 to 4, it is characterized in that: the state and the operating result of data transmission between described equipment and the USB memory storage are pointed out with stand by lamp.
6, method according to claim 5 is characterized in that: when described equipment read in the described USB memory storage USB translation profile, stand by lamp was bright; When the configuration determination user name according to described USB configuration file is not inconsistent or during password bad, the stand by lamp flicker; After the operation of Data Update, stand by lamp goes out in finishing equipment.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2007101240727A CN100504785C (en) | 2007-10-19 | 2007-10-19 | Method for automatically reading and updating apparatus data employing USB memory device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2007101240727A CN100504785C (en) | 2007-10-19 | 2007-10-19 | Method for automatically reading and updating apparatus data employing USB memory device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101145106A CN101145106A (en) | 2008-03-19 |
CN100504785C true CN100504785C (en) | 2009-06-24 |
Family
ID=39207647
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2007101240727A Active CN100504785C (en) | 2007-10-19 | 2007-10-19 | Method for automatically reading and updating apparatus data employing USB memory device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100504785C (en) |
Families Citing this family (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101556568A (en) * | 2009-05-11 | 2009-10-14 | 中兴通讯股份有限公司 | Method for controlling data transmission function of universal serial bus port and terminal equipment |
CN102104800B (en) * | 2009-12-22 | 2014-09-03 | 康佳集团股份有限公司 | Method and system for burning serial number of set-top box |
CN102169443A (en) * | 2011-04-07 | 2011-08-31 | 柴可 | Virtual universal serial bus (USB) disk-based firmware update method |
CN103067492A (en) * | 2012-12-26 | 2013-04-24 | 上海无线通信研究中心 | Communication control device, electrical device based on network and network control method of electrical device |
CN104636155A (en) * | 2013-11-07 | 2015-05-20 | 联想(北京)有限公司 | State updating method, electronic equipment and electronic device |
CN105426203A (en) * | 2015-11-04 | 2016-03-23 | 福建星海通信科技有限公司 | Rapid function configuration method of vehicle terminal |
CN106503065A (en) * | 2016-09-29 | 2017-03-15 | 乐视控股(北京)有限公司 | The method and system of data transfer |
CN108214411A (en) * | 2016-12-22 | 2018-06-29 | 苏州宝时得电动工具有限公司 | Power plant and electric tool |
CN108541369A (en) * | 2018-01-22 | 2018-09-14 | 深圳前海达闼云端智能科技有限公司 | Method, apparatus, storage medium and the electronic equipment of information transfer |
CN109298875A (en) * | 2018-01-26 | 2019-02-01 | 广州小百合信息技术有限公司 | Treadmill firmware upgrade reminding method and its mainboard |
-
2007
- 2007-10-19 CN CNB2007101240727A patent/CN100504785C/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN101145106A (en) | 2008-03-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN100504785C (en) | Method for automatically reading and updating apparatus data employing USB memory device | |
CN102629206B (en) | A kind of method for updating embedded system software and system | |
US20060010282A1 (en) | Method and apparatus to boot a system by monitoring an operating status of a NAND flash memory | |
CN115658160B (en) | Multi-operating system upgrading method, device and system based on multi-core heterogeneous SOC | |
KR20080098511A (en) | Date storage device using two types of storage medium | |
US20070168905A1 (en) | Networked linux machine and windows software development system | |
CN105760191A (en) | Embedded system equipment programming mass production method | |
CN102479121A (en) | Method for realizing and testing redundant array of independent disks (RAID) | |
CN109614126A (en) | A kind of online programme upgrade method of embedded system and device | |
CN106909480A (en) | A kind of embedded system cross debugging method and apparatus | |
US7257677B2 (en) | Data image cache used in testing | |
US20080244167A1 (en) | Electronic device and method for installing software | |
US20030018865A1 (en) | Disablement of a write filter stored on a write-protected partition | |
CN105677429A (en) | Program burning method, processor and electronic circuit | |
CN101464804A (en) | Double-boot backup method and security equipment | |
CN102135897A (en) | Convenient server maintenance tool integration manufacturing method | |
JP5026908B2 (en) | Stick server | |
CN104679535A (en) | Server and identification code synchronization method | |
CN105630523A (en) | Computer BIOS data recovery system and method | |
CN105868101B (en) | A kind of method for testing software | |
CN100498710C (en) | Method for reading and electing read only memory program code on self-storing mechanism | |
JP2009245292A (en) | Device to be tested, testing system, testing method, and program | |
CN108052337A (en) | A kind of firmware upgrade method and device of eMMC production tools | |
JP6559984B2 (en) | Digital evidence creation device, digital evidence creation system, and digital evidence creation program | |
US20090094404A1 (en) | Self writing storage device |
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 | ||
EE01 | Entry into force of recordation of patent licensing contract |
Application publication date: 20080319 Assignee: Szbroad Technology Co., Ltd. Assignor: ZTE Corporation Contract record no.: 2010440000215 Denomination of invention: Method for automatically reading and updating apparatus data employing USB memory device Granted publication date: 20090624 License type: Exclusive License Record date: 20100308 |