EG25-G get ICCID using uqmi/qmicli on linux

Trying to get the ICCID from uqmi & qmicli for EG25-G on OpenWRT but it says “Not Supported”

qmicli -d /dev/cdc-wdm0 --dms-uim-get-iccid
error: couldn’t get ICCID: QMI protocol error (94): ‘NotSupported’

uqmi -d /dev/cdc-wdm0 --get-iccid
“Not supported”

Anyone knows how to get the ICCID for EG25-G in linux?

Please try this:

root@OpenWrt:~# qmicli -d /dev/cdc-wdm0 --uim-read-transparent=0x3f00,0x2fe2
[/dev/cdc-wdm0] Successfully read information from the UIM:
Card result:
SW1: ‘0x90’
SW2: ‘0x00’
Read result:
9X:1X:5X:0X:04:30:55:17:91:06

So the ICCID is: 9X:1X:5X:0X:04:30:55:17:91:00, correct?

Hi Sandip,

please refer to ETSI/3GPP TS 102 221 section 13.2 for the coding of this EF.

Regards,
Reinhard

Ok, got it, Thanks Reinhard

I had encountered same issue and followed the solution above and got similar result. if that read result is the iccid, is it encoded?

Please refer to the answer from rspmn