F1F2ANNEX I BREQUIREMENTS FOR CONSTRUCTION, TESTING, INSTALLATION AND INSPECTION

Annotations:
Appendix 2TACHOGRAPH CARDS SPECIFICATION

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.

[TCS_332] Command Message

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.

[TCS_333] Response Message

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′.