MiniSmart II
36
Firmware Updating
Structure Note
1.
Firmware Bootloader File is named FM file. The file name format is *.fm.
2.
There are ‘Block 0 - FM File Format Definition’, ‘Block 1’, ‘Block 2’, ‘Block 3’ and
‘Block 4’ data.
Application/Bootloader FM File Structure
Block Number Data Size
Data Note
Block 0
64 Bytes
Special Data – FM file format definition
Block 1
256 Bytes
<TLVn> format data:
<Tag 0x01> data: 01 10 <App Version Data>
(Such as 01 10 + “Version 0.99.003” )
<Tag 0x02> data: 02 < x> <x bytes Device
Name Data> (Such as 01 0E + “Smart PIN
L100”, or 01 0C + “MiniSmart II”)
<Taq 0x03> data: 03 04 <Bootloader Version
Number data>
<Tag 0x04> data: 04 01 <Encryption Mode>
<Tag 0xF0> data: F0 <Len> <0xFF … data>
Block 2
256 Bytes
256 Bytes Firmware Check Value
Block 3
…
…
…
…
Package 1
m bytes Data (at least 1K bytes)
Package 2
m bytes Data (at least 1K bytes)
…
…
…
Package N
m bytes Data (at least 1K bytes)
Block 4
256 Bytes
Random Number
Note:
1.
m value is confirmed by ‘2 byte ’ data in ‘FM File Format Definition’ and Get Version
From Bootloader Firmware.
2.
N value is confirmed by ‘2 byte -Package Number’ data in ‘FM File Format Definition’
and Calculation from FM file data.
3.
8 Bytes String “Version” + 8 Bytes Application Version need Ascii Code Data (Version
0.99.003
Hex: 56 65 72 73 69 6F 6E 20 30 2E 39 39 2E 30 30 33)
4.
x Bytes Device Name n need Ascii Code Data (Intuit III
Hex: 49 6E 74 75 69 74 20
49 49 49)
5.
<Bootloader Version Number data> is from 0x00 00 00 00, 0x00 00 00 01, …, to 0xFF
FF FF FF
6.
<Encryption Mode>:
0x00 – Plaintext.
0x03 - Only Firmware RSA Key Encryption & RSAPSS RSA Data Format
0x04 - Firmware Fix Key Encryption & RSSPSS RSA Raw Data Format.