5.7.21. SE05X Read State example¶
This project can be used to get SE05X state information. The state information is w.r.t
LockState
Restriction on Object Creation
Platform SCP mandate state
Refer to SE05x_LockState_t
Refer to SE05x_RestrictMode_t
Refer to SE05x_PlatformSCPRequest_t
SE05x_LockState_t lockState;
SE05x_RestrictMode_t restrictMode;
SE05x_PlatformSCPRequest_t platformSCPRequest;
5.7.21.1. Building the Demo¶
Build Plug & Trust middleware stack. (Refer Building / Compiling)
Project:
se05x_ReadState
5.7.21.2. Running the Example¶
If you have built a binary, flash the binary on to the board and reset the board.
If you have built an exe to be run from Windows using VCOM, run as:
se05x_ReadState.exe <PORT NAME>
Where <PORT NAME> is the VCOM COM port.
On Raspberry-Pi or iMX board, run as:
./se05x_ReadState
5.7.21.3. Console output¶
If everything is successful, the output will be similar to:
APDU :DEBUG:ReadState []
smCom :DEBUG:Tx> (Len=5)
80 02 00 5B 00
smCom :DEBUG:<Rx (Len=9)
41 82 00 03 02 00 02 90 00
App :INFO :SE05x Read State Successfully!!!
App :INFO :Following is the SE05x Read State status
App :INFO :SE05x Lock State = 0x2 i.e. SE05x is Unlocked!!!
App :INFO :SE05x Restrict Mode = 0x0 i.e. No Restriction is applied for object creation!!!
App :INFO :SE05x Platform SCP Request = 0x2 i.e. Platform SCP is not required for Communication!!!
App :INFO :ex_sss Finished
Press any key to continue . . .