CN107045451A - The method for upgrading software and system of a kind of code reading card - Google Patents
The method for upgrading software and system of a kind of code reading card Download PDFInfo
- Publication number
- CN107045451A CN107045451A CN201710324388.4A CN201710324388A CN107045451A CN 107045451 A CN107045451 A CN 107045451A CN 201710324388 A CN201710324388 A CN 201710324388A CN 107045451 A CN107045451 A CN 107045451A
- Authority
- CN
- China
- Prior art keywords
- software
- code reading
- reading card
- firmware
- upgrading
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a kind of method for upgrading software of code reading card, the code reading card has USB communication functions and data storage function, and the code reading card method for upgrading software includes:Code reading card is connected to after usb host, and mass-memory unit is will appear from usb host, and software to be upgraded is replaced or copied in mass-memory unit by user, completes file download.After code reading card is re-powered, the verification to firmware to be upgraded in file system, verification is correct and version is needed after upgrading, and updates local firmware.The present invention also proposes a kind of software update system of code reading card.The present invention is without software support extra on usb host, you can conveniently and efficiently realize and the software of code reading card is upgraded.
Description
Technical field
The present invention relates to automotive diagnostic installation technical field, more particularly to a kind of code reading card method for upgrading software and be
System.
Background technology
Code reading card needs upgrading often, existing code reading card be all by serial ports or USB turn serial mode and PC (
Personal Computer, personal computer) connection, by under Windows operating system, using the work of self-defined exploitation
Have software and software upgrading is carried out to code reading card.In software upgrading, PC operating systems are required, it is necessary to which extra instrument is soft
Part;Also relate to and drive the support to different system version inadequate, download, the installation of tool software in itself;And it is soft to there is upgrading
Part speed of download is slow, in addition it is also necessary to which user, which carries out corresponding operation to tool software, could realize the upgrading of software, troublesome poeration.
The content of the invention
The present invention provides the method for upgrading software and system of a kind of code reading card, and its main purpose is without extra instrument
Software, and to the operating system no requirement (NR) of usb host end, you can quickly and easily realize and the software of code reading card is upgraded.
To achieve the above object, the present invention provides a kind of method for upgrading software of code reading card, and there is the code reading card USB to lead to
Communication function and data storage function, the method for upgrading software of the code reading card include:
Code reading card is connected to after usb host, will occur movable memory equipment on usb host, wherein, the code reading card passes through
USB data line is set up with usb host and is connected;
User copies to software to be upgraded in movable memory equipment, completes firmware download and the upgrading of resource file, wherein,
The upgrading software includes the firmware and the resource file;
After code reading card is re-powered, the firmware downloaded in data storage is upgraded.
Preferably, the method for upgrading software of described code reading card, it is characterised in that the method for upgrading software of the code reading card
Including:
After the code reading card electrifying startup is judged with usb host, the code reading card will carry out the initial of USB mass storage classes
Change.
Preferably, the method for upgrading software of described code reading card, it is characterised in that the code reading card is carried out to the firmware
The step of upgrading, includes:
Code reading card is verified to the firmware downloaded in the data storage, judges the correctness of the firmware;
If the firmware verification is correct, judge whether the corresponding software version of the firmware is currently used with the code reading card
Software version is consistent;
If the firmware version currently used with the code reading card is inconsistent, the code reading card is replaced using the firmware and worked as
Preceding firmware, completes upgrading.
Preferably, the method for upgrading software of described code reading card, it is characterised in that the code reading card is carried out to the firmware
The step of upgrading, also includes:
Code reading card is verified to the firmware downloaded in the data storage, judges the correctness of the firmware;
If the firmware verification is correct, judge whether the corresponding software version of the firmware is currently used with the code reading card
Software version is consistent;
If the firmware version currently used with the code reading card is inconsistent, the code reading card is replaced using the firmware and worked as
Preceding firmware, completes upgrading.
Preferably, the step of code reading card is upgraded to the firmware also includes:
If code reading card read out of described memory less than firmware or firmware verification it is incorrect, skip upgrading.
Preferably, the step of progress software upgrading using the software upgrade package includes:
Software liter is carried out by the memory space of the software copy to be upgraded to the code reading card, and using the firmware of copy
Level.
In addition, to achieve the above object, the present invention also provides a kind of software update system of code reading card, the reading code fixture
There are USB communication module and data memory module, the software update system of the code reading card includes:
File download module, for being connected with usb host, realizes file download to local, wherein the usb host passes through USB
Data wire is set up with the code reading card and is connected;
Data read module, for reading upgrading software from the data memory module, wherein, the data read module leads to
Cross file system and file is read out of data memory module;
Software upgrade module, during for reading firmware from the data memory module, software liter is carried out using the firmware
Level.
Preferably, the software update system of described code reading card, it is characterised in that the Software upgrade module includes:
File verification unit, the correctness for verifying file;
Version judging unit, during for reading firmware from the memory module, judges the version of the corresponding software of the firmware
This whether the software with being currently installed on version it is consistent;
Software upgrading unit, if inconsistent with being currently installed on version for the corresponding software version of the firmware, using described
Firmware carries out software upgrading.
Preferably, the software update system of the code reading card also includes:
Exception processing module, if incorrect less than firmware or firmware verification for being read from the storage device, is jumped
Cross the firmware upgrade.
Preferably, the software update system of the code reading card also includes:
Initialization module, judges after being connected with usb host that the code reading card will carry out USB for the code reading card electrifying startup
The initialization of mass storage class.
Preferably, the Software upgrade module, is additionally operable to the software upgrade package being copied to the storage of the code reading card
In space, and software is upgraded using the firmware of copy.
The method for upgrading software and system of a kind of code reading card proposed by the present invention, code reading card pass through USB data line and USB master
After machine connection, movable memory equipment occurs at usb host end, upgrading software is copied to movable memory equipment by user
It is interior, after code reading card is re-powered, it is automatically performed software upgrading, method and system of the invention, without extra tool software,
And to operating system platform without rigors, it is only necessary to usb host supports mass-memory unit, you can quickly and easily realize
The software of code reading card is upgraded.
Brief description of the drawings
Fig. 1 is a kind of flow chart of the method for upgrading software preferred embodiment of code reading card of the invention.
Fig. 2 for a kind of code reading card of the invention method for upgrading software preferred embodiment in software upgrading step refinement flow
Schematic diagram.
Fig. 3 is a kind of high-level schematic functional block diagram of the software update system preferred embodiment of code reading card of the invention.
Fig. 4 for a kind of code reading card of the invention software update system preferred embodiment in Software upgrade module refinement function
Module diagram.
The realization, functional characteristics and advantage of the object of the invention will be described further referring to the drawings in conjunction with the embodiments.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The present invention provides a kind of method for upgrading software of code reading card.
It is a kind of flow chart of the method for upgrading software preferred embodiment of code reading card of the invention shown in reference picture 1.
In this embodiment, the method for upgrading software of the code reading card includes:
Step S10, code reading card is connected with usb host, movable memory equipment occurs on the usb host, wherein, it is described
Usb host is set up with code reading card by USB data line and is connected.
If code reading card has new software to need renewal, user can first get upgrading software kit, and be downloaded
Into equipment with USB host functions such as PC, flat board, notebooks.Therefore, software upgrade package can be downloaded to one by user
Platform be equipped with win7 PC, then code reading card is connected to by USB data line on PC USB port, PC will occur one can
Movable storage device.Certainly, user can also be completed by the PC of other different operating systems.
Step S20, user copies to software to be upgraded in movable memory equipment, with MSC classes (mass storage
Device class, mass storage device class) host-host protocol carry out data transmission.
Step S30, after code reading card is re-powered, the file downloaded in data memory area is upgraded, and can be fixed and be treated
The title of firmware updating, the file of correspondence title is retrieved according to above-mentioned title in the memory block, therefore, and user is replicating
, it is necessary to by it with correct name nominating when file to be upgraded is into the movable memory equipment.Shown in reference picture 2, the step
Suddenly following refinement step can be included:
Step S31, when reading firmware from the data storage area, verifies to the firmware, judges the correct of file
Property.
A kind of mode for verifying firmware accuracy is present embodiments provided, the firmware file includes the firmware content of itself
And CRC16 check codes.When generating the firmware, firmware content is verified using CRC16, increased at the end of firmware content
2 bytes are used to deposit CRC16 check codes.By carrying out CRC16 calculating, the verification with the firmware to described firmware content
Whether code multilevel iudge is consistent.
Step S32, if the firmware verify normal solution, judge the firmware version whether with currently used version one
Cause.
Step S33, software liter is carried out if the firmware version and currently used version are inconsistent using the firmware
Level.
When code reading card reads firmware out of described data storage area, the version number of the corresponding software of the firmware is obtained;
The version number of software by the version number got with being currently installed on is contrasted, to judge the software upgrade package correspondence
Software version it is whether consistent with being currently installed on version.
Present embodiments provide a kind of version for judging the firmware whether the mode consistent with being currently installed on version, pass through
Contrast version number to realize, existing software version number typically uses following form:Vxx.xx fixes 6 bytes, passes through character
More just can determine whether for string is consistent.
Whether due to simply unanimously limiting firmware version, firmware is can to support to retract legacy version.
A kind of method for upgrading software of code reading card proposed by the present invention, code reading card is connected by USB data line with usb host
Afterwards, movable memory equipment occurs at usb host end, upgrading software is copied in movable memory equipment, read by user
After code card is re-powered, software upgrading, method and system of the invention, without extra tool software, and to behaviour are automatically performed
Make system platform without rigors, it is only necessary to which usb host supports mass-memory unit, you can quickly and easily realize to reading code
The software of card is upgraded.
The present invention also proposes a kind of software update system of code reading card.
It is a kind of functional module signal of the software update system first embodiment of code reading card of the invention shown in reference picture 3
Figure.
In this embodiment, the software update system of the code reading card includes:
File download module 10, for supporting in from usb host download upgrade file to the reading code card memory, wherein, institute
Usb host is stated to be connected with code reading card foundation by USB data line.
If code reading card has new software to need renewal, user can first get upgrading software kit, and be downloaded
Into equipment with USB host functions such as PC, flat board, notebooks.Therefore, software upgrade package can be downloaded to one by user
Platform be equipped with win7 PC, then code reading card is connected to by USB data line on PC USB port, PC will occur one can
Movable storage device.Certainly, user can also be completed by the PC of other different operating systems.
File download module 10 realizes that user copies to software to be upgraded in movable memory equipment, with MSC classes (
Mass storage device class, mass storage device class) host-host protocol carry out data transmission.
Data read module 20, for supporting the master controller of the code reading card to be deposited by file system from the code reading card
Data are read in reservoir.
Software upgrade module 30, after code reading card is re-powered, the file downloaded in data memory area is upgraded, can be with
The title of fixed firmware to be upgraded, the file of correspondence title, therefore, user are retrieved according to above-mentioned title in the memory block
When replicating file to be upgraded into the movable memory equipment, it is necessary to by it with correct name nominating.The institute of reference picture 4
Show, Software upgrade module 30 can include following refinement unit:
File verification unit 31, when reading firmware from the data storage area, verifies to the firmware, judges file
Correctness.
A kind of mode for verifying firmware accuracy is present embodiments provided, the firmware file includes the firmware content of itself
And CRC16 check codes.When generating the firmware, firmware content is verified using CRC16, increased at the end of firmware content
2 bytes are used to deposit CRC16 check codes.By carrying out CRC16 calculating, the verification with the firmware to described firmware content
Whether code multilevel iudge is consistent.
Version judging unit 32, during for reading firmware from the data storage area, judges the version of the firmware
It is whether consistent with currently used version.
Software upgrading unit 33, if correct for firmware verification, and if the firmware version and currently used version
This is inconsistent then using firmware progress firmware upgrade.
When code reading card reads firmware out of described data storage area, it is corresponding that version judging unit 32 obtains the firmware
The version number of software;The version number of software by the version number got with being currently installed on is contrasted, described to judge
Whether the corresponding software version of software upgrade package is consistent with being currently installed on version.
Present embodiments provide a kind of version for judging the firmware whether the mode consistent with being currently installed on version, pass through
Contrast version number to realize, existing software version number typically uses following form:Vxx.xx fixes 6 bytes, passes through character
More just can determine whether for string is consistent.
Whether due to simply unanimously limiting firmware version, firmware is can to support to retract legacy version.
Further, the software update system of the code reading card also includes with lower module:
Exception processing module 40, if that firmware is verified from the data storage area is incorrect for code reading card, or, upgrading
Made a mistake in journey, it is impossible to complete escalation process, exception processing module can send prompt message to inform that user software upgrades
Failure, if for example, code reading card is provided with alarm device, alarm can be sent, or, when being connected with display device on code reading card
When, exception processing module can also prompt message on the display apparatus.
A kind of software update system for code reading card that the present embodiment is proposed, code reading card is connected by USB data line and usb host
After connecing, movable memory equipment occurs at usb host end, user copies to upgrading software in movable memory equipment,
After code reading card is re-powered, software upgrading is automatically performed, method and system of the invention, without extra tool software, and it is right
Operating system platform is without rigors, it is only necessary to which usb host supports mass-memory unit, you can quickly and easily realize to reading
The software of code card is upgraded.
The preferred embodiments of the present invention are these are only, are not intended to limit the scope of the invention, it is every to utilize this hair
Equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of method for upgrading software of code reading card, it is characterised in that the code reading card has USB communication functions and data storage
Function, the method for upgrading software of the code reading card includes:
Code reading card is connected to after usb host, will occur movable memory equipment on usb host, wherein, the code reading card passes through
USB data line is set up with usb host and is connected;
User copies to software to be upgraded in movable memory equipment, completes firmware download and the upgrading of resource file, wherein,
The upgrading software includes the firmware and the resource file;
After code reading card is re-powered, the firmware downloaded in data storage is upgraded.
2. the method for upgrading software of code reading card according to claim 1, it is characterised in that the software upgrading of the code reading card
Method includes:
After the code reading card electrifying startup is judged with usb host, the code reading card will carry out the initial of USB mass storage classes
Change.
3. the method for upgrading software of code reading card according to claim 1, it is characterised in that the code reading card is to the firmware
The step of being upgraded includes:
Code reading card is verified to the firmware downloaded in the data storage, judges the correctness of the firmware;
If the firmware verification is correct, judge whether the corresponding software version of the firmware is currently used with the code reading card
Software version is consistent;
If the firmware version currently used with the code reading card is inconsistent, the code reading card is replaced using the firmware and worked as
Preceding firmware, completes upgrading.
4. the method for upgrading software of code reading card according to claim 1, it is characterised in that the code reading card is to the firmware
The step of being upgraded also includes:
If code reading card read out of described memory less than firmware or firmware verification it is incorrect, skip upgrading.
5. the method for upgrading software of the code reading card according to any one of claim 1-4, it is characterised in that the use institute
Stating the step of software upgrade package carries out software upgrading includes:
Software liter is carried out by the memory space of the software copy to be upgraded to the code reading card, and using the firmware of copy
Level.
6. a kind of software update system of code reading card, it is characterised in that the code reading card has USB communication module and data storage
Module, the software update system of the code reading card includes:
File download module, for being connected with usb host, realizes file download to local, wherein the usb host passes through USB
Data wire is set up with the code reading card and is connected;
Data read module, for reading upgrading software from the data memory module, wherein, the data read module leads to
Cross file system and file is read out of data memory module;
Software upgrade module, during for reading firmware from the data memory module, software liter is carried out using the firmware
Level.
7. the software update system of code reading card according to claim 6, it is characterised in that the Software upgrade module bag
Include:
File verification unit, the correctness for verifying file;
Version judging unit, during for reading firmware from the memory module, judges the version of the corresponding software of the firmware
This whether the software with being currently installed on version it is consistent;
Software upgrading unit, if inconsistent with being currently installed on version for the corresponding software version of the firmware, using described
Firmware carries out software upgrading.
8. the software update system of code reading card according to claim 6, it is characterised in that the software upgrading of the code reading card
System also includes:
Exception processing module, if incorrect less than firmware or firmware verification for being read from the storage device, is jumped
Cross the firmware upgrade.
9. the software update system of code reading card according to claim 6, it is characterised in that the software upgrading of the code reading card
System also includes:
Initialization module, judges after being connected with usb host that the code reading card will carry out USB for the code reading card electrifying startup
The initialization of mass storage class.
10. the software update system of the code reading card according to any one of claim 6-9, it is characterised in that the software
Upgraded module, is additionally operable to the software upgrade package being copied in the memory space of the code reading card, and uses the firmware of copy
Software is upgraded.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710324388.4A CN107045451A (en) | 2017-05-10 | 2017-05-10 | The method for upgrading software and system of a kind of code reading card |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710324388.4A CN107045451A (en) | 2017-05-10 | 2017-05-10 | The method for upgrading software and system of a kind of code reading card |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107045451A true CN107045451A (en) | 2017-08-15 |
Family
ID=59545875
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710324388.4A Pending CN107045451A (en) | 2017-05-10 | 2017-05-10 | The method for upgrading software and system of a kind of code reading card |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107045451A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109857434A (en) * | 2019-01-15 | 2019-06-07 | 厦门亿联网络技术股份有限公司 | Method for upgrading software based on USB |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102393734A (en) * | 2011-10-31 | 2012-03-28 | 深圳市元征软件开发有限公司 | Automobile-used code reading card |
CN103577233A (en) * | 2013-11-07 | 2014-02-12 | 深圳市元征科技股份有限公司 | OBDII code reading card device and system and method for upgrading same |
CN104598279A (en) * | 2015-01-23 | 2015-05-06 | 广州快飞计算机科技有限公司 | Method and device for upgrading firmware based on flight controller |
-
2017
- 2017-05-10 CN CN201710324388.4A patent/CN107045451A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102393734A (en) * | 2011-10-31 | 2012-03-28 | 深圳市元征软件开发有限公司 | Automobile-used code reading card |
CN103577233A (en) * | 2013-11-07 | 2014-02-12 | 深圳市元征科技股份有限公司 | OBDII code reading card device and system and method for upgrading same |
CN104598279A (en) * | 2015-01-23 | 2015-05-06 | 广州快飞计算机科技有限公司 | Method and device for upgrading firmware based on flight controller |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109857434A (en) * | 2019-01-15 | 2019-06-07 | 厦门亿联网络技术股份有限公司 | Method for upgrading software based on USB |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN1855050B (en) | Apparatus and method for managing mobile medium device firmware | |
CN106598835B (en) | Application testing method, device and system | |
CN112270149B (en) | Verification platform automatic integration method and system, electronic equipment and storage medium | |
US8132055B2 (en) | Operating system-firmware interface update recovery | |
CN104636172B (en) | A kind of application upgrade method and apparatus | |
CN106250192A (en) | The method for upgrading software of host computer and system | |
CN105068834B (en) | Method for upgrading system and device | |
CN105786557A (en) | Upgradable Firmware System | |
CN103823703B (en) | A kind of method and device of same firmware compatibility distinct device | |
CN103970566A (en) | Router firmware updating method and device | |
CN110597675B (en) | Chip testing method, device, storage medium and burner | |
CN111813428A (en) | Method and device for upgrading terminal firmware, electronic equipment and storage medium | |
CN101957765A (en) | Method, system and equipment for updating equipment firmware | |
CN108132796A (en) | The upgrade method and device of a kind of combination instrument | |
CN113608772A (en) | Application program upgrading method and device | |
CN105955773A (en) | System upgrading method and device | |
CN107045451A (en) | The method for upgrading software and system of a kind of code reading card | |
CN107590064A (en) | A kind of application upgrade method of testing, device and system | |
CN103365684A (en) | Updating method and multi-domain embedded system | |
CN104991796A (en) | Method and apparatus for continuous upgrade | |
CN107741854A (en) | The installation method and device of the trawl performance of a kind of electronic equipment | |
CN116643761A (en) | Customized mirror image manufacturing and deploying method, device, terminal and medium | |
CN107436778A (en) | A kind of high reliability upgrade method of unmanned systems | |
CN109840172A (en) | A kind of Nand flash memory analytical equipment and method based on SoC main control chip | |
CN105337782A (en) | Method and device for automatic upgrading after boot failure of network equipment firmware |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20170815 |