11.2. APDU Commands over VCOM¶
Sending and Receiving Applet APDU Commands on VCOM using a Serial Terminal Emulator.
11.2.1. COM port parameters¶
Parameter |
Value |
---|---|
Baud Rate |
115200 bit/s |
Data bits |
8 Databits |
Parity |
No Parity |
Stop Bits |
1 Stop bit |
FlowControl |
Enable DTR |
11.2.2. VCOM Format¶
Each APDU/command to be sent over the VCOM bridge has a 4 bytes header, the APDU to send follows as payload. The response contains the same header, followed by the response payload.
Byte |
Description |
---|---|
|
Command
|
|
Node Address |
|
Len MSB |
|
Len LSB |
11.2.3. Example Commands¶
The example shows the commands strings to be sent over VCOM and some parsing of the commands/responses
11.2.3.1. Soft Reset/ATR Response¶
Soft Reset / Request ATR .
Field |
Bytes in Hex |
---|---|
Command |
|
VCOM Header |
|
APDU |
|
Response |
|
VCOM Header |
|
Atr Response |
|
11.2.3.2. Select IOT Applet¶
Select the SE050 IoT applet
Field |
Bytes in Hex |
---|---|
Command |
|
VCOM Header |
|
APDU |
|
Response |
|
VCOM Header |
|
APDU Response |
|
applet Version |
appletVersion in TLV with Tag1, (Len=7)
|
11.2.3.3. Get applet Version¶
Gets the applet version information.
Field |
Bytes in Hex |
---|---|
Command |
|
VCOM Header |
|
APDU |
|
Response |
|
VCOM Header |
|
APDU Response |
|
applet Version |
appletVersion in TLV with Tag1, (Len=7)
|
11.2.3.4. GetRandom¶
Gets x(8) byte random data from the SE050.
Field |
Bytes in Hex |
---|---|
Command |
|
VCOM Header |
|
APDU |
|
Response |
|
VCOM Header |
|
APDU Response |
|
RandomData |
|
11.2.3.5. GetUID¶
UID is an object with Object ID = 0x7FFF0206
.
Field |
Bytes in Hex |
---|---|
Command |
|
VCOM Header |
|
APDU |
|
Response |
|
VCOM Header |
|
APDU Response |
|
UID |
UID in TLV with Tag1
|