F1F2ANNEX I BREQUIREMENTS FOR CONSTRUCTION, TESTING, INSTALLATION AND INSPECTION
3.HARDWARE AND COMMUNICATION
3.6.Commands description
3.6.3.Update Binary
3.6.3.1.Command without secure messaging
This command enables the IFD to write data into the EF currently selected, without the card verifying the integrity of data received. This plain mode is allowed only if the related file is not marked as ‘Encrypted’.
Byte | Length | Value | Description |
---|---|---|---|
CLA | 1 | ′00h′ | No secure messaging asked |
INS | 1 | ′D6h′ | |
P1 | 1 | ′XXh′ | Offset in bytes from the beginning of the file: most significant byte |
P2 | 1 | ′XXh′ | Offset in bytes from the beginning of the file: least significant byte |
Lc | 1 | ′NNh′ | Lc length of data to Update. Number of bytes to be written |
#6-#(5+NN) | NN | ′XX..XXh′ | Data to be written |
Note: bit 8 of P1 must be set to 0.
Byte | Length | Value | Description |
---|---|---|---|
SW | 2 | ′XXXXh′ | Status words (SW1, SW2) |
If the command is successful, the card returns ′9000′,
if no EF is selected, the processing state returned is ′6986′,
if the Access Control of the selected file are not satisfied, the command is interrupted with ′6982′,
if the Offset is not compatible with the size of the EF (Offset > EF size), the processing state returned is ′6B00′,
if the size of the data to be written is not compatible with the size of the EF F3(Offset + Lc > EF size) the processing state returned is ′6700′,
if an integrity error is detected within the file attributes, the card shall consider the file as corrupted and unrecoverable, the processing state returned is ′6400′ or ′6500′,
if writing is unsuccessful, the processing state returned is ′6581′.
Inserted by Council Regulation (EC) No 2135/98 of 24 September 1998 amending Regulation (EEC) No 3821/85 on recording equipment in road transport and Directive 88/599/EEC concerning the application of Regulations (EEC) No 3820/85 and (EEC) No 3821/85.