11.6. How to get SE Platform Information and UID

Follow any one of the following methods to get the SE platform information.

11.6.1. Using TeraTerm and pre-built binary

A pre-built binary for se05x_GetInfo is available in binaries directory for FRDM-K64F and iMX-RT1060.

You would need to install a serial terminal application, like TeraTerm.

  • Install TeraTerm on your system. To setup TeraTerm, refer

  • Flash the pre-built binary on your hardware.

  • View the logs on TeraTerm.

You would be able to see a log like this:

../_images/uid_log.png

The highlighted log is the SE UID, OEF ID and JCOP Platform ID.

11.6.2. Using VCOM and binary

  • Flash VCOM binary present in binaries directory accorfing to your board.

  • Check VCOM Port number in device manager.

  • Build project se05x_GetInfo with the following configuration:
    • SMCOM: VCOM

    • Host: PCWindows

  • Run the built binary as:

    se05x_GetInfo.exe COMxx
    

Where COMxx is the VCOM port number obtained from step 2.

You would be able to see a log like this:

../_images/uid_log_vcom.png

The highlighted log is the SE UID, OEF ID and JCOP Platform ID.

11.6.3. Using ssscli Tool

  • Flash VCOM binary present in binaries directory accorfing to your board.

  • Check VCOM Port number in device manager.

  • Run the following commands in binaries/PCWindows/ssscli directory:

    ssscli.exe connect se050 vcom COMxx
    ssscli.exe se05x uid
    ssscli.exe disconnect
    

Where COMxx is the VCOM Port number obtained in step 2.

You would be able to see a log like this:

../_images/uid_log_cli.png

The highlighted log is the SE UID

11.6.4. SE Platform Information on Android platform

  1. SE will have preconfigured information with which one can verify the functionalities it supports.

  2. Follow the steps in AOSP build Environment Setup as a pre-requisite.

  3. After successful compilation of Android keymaster, se05xGetInfo.bin will get generated in $ROOT_DIR/android-root/out/target/product/<BOARD_NAME>/testcases/se05xGetInfo/arm and $ROOT_DIR/android-root/out/target/product/<BOARD_NAME>/testcases/se05xGetInfo/arm64 directories.

  4. To get the platform information on Android, follow below steps:

    adb root && adb wait-for-device && adb remount
    adb push testcases/se05xGetInfo/arm/se05xGetInfo   /system/vendor/bin/se05xGetInfo
    adb reboot
    adb root && adb wait-for-device && adb remount
    adb shell
    cd system/vendor/bin
    ./se05xGetInfo
    
  5. In adb logcat | grep "NXPKeymasterDevice" respected information will be shown.

An example log of SE platform information is given below.

../_images/se05x_get_info.png

The highlighted log is the SE UID, OEF ID and JCOP Platform ID.