[Hilo] How to get SIM phone number with AT command?


#1

Answer: Firstly you need store the number in SIM card then you can read. For example:
AT+CPBS=“ON” —To select the storage for SIM (or ME) own numbers
OK
AT+CPBW=1,“12345678901”, 129, “ABC” —Write the SIM numbers
OK
AT+CNUM
+CNUM: “ABC”,“12345678901”,129 —To read subscriber numbers
OK
AT+CRSM=178,28480,1,4,28 —Read 0x6F40 for EFMSISDN (MSISDN)
+CRSM: 144,0,“414243FFFFFFFFFFFFFFFFFFFFFF07812143658709F1FFFFFFFFFFFF”
OK