FreeCalypso > hg > fc-pcsc-tools
comparison doc/Low-level-commands @ 94:285fb9555530
doc/Low-level-commands: update-* commands documented
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Wed, 17 Feb 2021 19:54:57 +0000 |
parents | 1743802e494e |
children | 7412cdd505b3 |
comparison
equal
deleted
inserted
replaced
93:1743802e494e | 94:285fb9555530 |
---|---|
94 in the host binary file with all records simply abutted together. | 94 in the host binary file with all records simply abutted together. |
95 | 95 |
96 Writing commands | 96 Writing commands |
97 ================ | 97 ================ |
98 | 98 |
99 update-bin | 99 update-bin offset hexfile |
100 update-bin-imm | 100 |
101 update-rec | 101 This fc-simtool command reads a hex data file (an ASCII text file containing |
102 only hex byte values and nothing else, with or without white space between | |
103 bytes, newlines treated as any other white space) and sends this byte content | |
104 to the SIM in an UPDATE BINARY command. The offset argument is the same as in | |
105 the readbin command. The length is the number of bytes read from the hex data | |
106 file. | |
107 | |
108 update-bin-imm offset hex-string | |
109 | |
110 This command works like update-bin, but the bytes to be written are given as a | |
111 hex string direct argument (like an immediate operand in assembly languages), | |
112 rather than via a hex data file. | |
113 | |
114 update-rec record-index hexfile | |
115 | |
116 This fc-simtool command reads a hex data file (just like update-bin) and sends | |
117 this byte content to the SIM in an UPDATE RECORD command, using absolute | |
118 addressing mode. The record-index argument is the same as in the readrec | |
119 command. The number of bytes in the hex data file must equal the EF record | |
120 length. | |
121 | |
122 update-rec-prev hexfile | |
123 | |
124 This fc-simtool command is like update-rec, but the UPDATE RECORD command sent | |
125 to the SIM uses the PREVIOUS addressing mode, and there is no record number. | |
126 This form is needed in order to write to cyclic EFs. | |
102 | 127 |
103 restore-file | 128 restore-file |
104 | 129 |
105 GSM authentication testing | 130 GSM authentication testing |
106 ========================== | 131 ========================== |