App failed to receive SMS text from mobile phone

So I created an app based on sms sample code to simply just receive SMS text messages.
However, when the app is up, I don’t think the app console out any text messages in the log.

    Jan  6 05:43:59 swi-mdm9x28-wp user.info Legato:  INFO | smsReceiver[7351]/smsComponent T=main | smsReceive.c _smsComponent_COMPONENT_INIT() 93 | Start SMS app
Jan  6 05:44:01 swi-mdm9x28-wp user.err kernel: [19278.578761] i2c-msm-v2 78b8000.i2c: NACK: slave not responding, ensure its powered: msgs(n:2 cur:0 tx) bc(rx:2 tx:1) mode:FIFO slv_addr:0x55 MSTR_STS:0x0c1300c8 OPER:0x00000010
Jan  6 05:44:01 swi-mdm9x28-wp user.err kernel: [19278.593902] i2c-msm-v2 78b8000.i2c: NACK: slave not responding, ensure its powered: msgs(n:2 cur:0 tx) bc(rx:2 tx:1) mode:FIFO slv_addr:0x55 MSTR_STS:0x0c1300c8 OPER:0x00000010
Jan  6 05:44:03 swi-mdm9x28-wp authpriv.info dropbear[7358]: Child connection from 192.168.2.3:30419
Jan  6 05:44:03 swi-mdm9x28-wp authpriv.notice dropbear[7358]: Auth succeeded with blank password for 'root' from 192.168.2.3:30419
Jan  6 05:44:03 swi-mdm9x28-wp authpriv.info dropbear[7358]: Exit (root): Disconnect received
Jan  6 05:45:38 swi-mdm9x28-wp user.info Legato:  INFO | modemDaemon[2277]/le_pa T=main | pa_sim_qmi.c InternalSimToolkitHandler() 1628 | QMI_UIM_REFRESH_COMPLETE_REQ_V01: Err 0 resp 0
Jan  6 05:45:38 swi-mdm9x28-wp user.warn Legato: -WRN- | modemDaemon[2277]/le_pa T=unknown | pa_sim_qmi.c UimStateChangeHandler() 1494 | No SIM application is in READY state
Jan  6 05:45:38 swi-mdm9x28-wp user.warn Legato: -WRN- | modemDaemon[2277]/le_pa T=SimStateChangeEventThre | pa_sim_qmi.c MapSimState() 1009 | More than one application 2
Jan  6 05:45:39 swi-mdm9x28-wp user.warn Legato: -WRN- | modemDaemon[2277]/le_pa T=SimStateChangeEventThre | pa_sim_qmi.c MapSimState() 1009 | More than one application 2
Jan  6 05:45:39 swi-mdm9x28-wp user.info Legato:  INFO | modemDaemon[2277]/modemDaemon T=main | le_sim.c SimToolkitHandler() 1048 | Update SIM Card information after a refresh
Jan  6 05:45:39 swi-mdm9x28-wp user.warn Legato: -WRN- | modemDaemon[2277]/le_pa T=main | pa_sim_qmi.c MapSimState() 1009 | More than one application 2
Jan  6 05:45:39 swi-mdm9x28-wp user.warn Legato: -WRN- | modemDaemon[2277]/le_pa T=main | pa_sim_qmi.c MapSimState() 1009 | More than one application 2
Jan  6 05:45:39 swi-mdm9x28-wp user.warn Legato: -WRN- | modemDaemon[2277]/le_pa T=main | pa_sim_qmi.c RetrieveSimApplicationType() 2171 | More than one application 2)
Jan  6 05:45:39 swi-mdm9x28-wp user.err Legato: =ERR= | modemDaemon[2277]/swiQmi T=main | swiQmi.c swiQmi_CheckResponse() 849 | Sending QMI_UIM_GET_EID_RESP_V01 failed: rc=0 (), resp.result=1.[0x01], resp.error=3.[0x03]
Jan  6 05:45:39 swi-mdm9x28-wp user.err Legato: =ERR= | modemDaemon[2277]/le_pa T=main | pa_sim_qmi.c pa_sim_GetCardEID() 3118 | Failed to get the EID
Jan  6 05:45:39 swi-mdm9x28-wp user.err Legato: =ERR= | modemDaemon[2277]/swiQmi T=main | swiQmi.c swiQmi_CheckResponse() 849 | Sending QMI_PBM_READ_RECORDS_REQ_V01 failed: rc=0 (), resp.result=1.[0x01], resp.error=41.[0x29]
Jan  6 05:45:39 swi-mdm9x28-wp user.err Legato: =ERR= | modemDaemon[2277]/swiQmi T=main | swiQmi.c swiQmi_CheckResponse() 849 | Sending QMI_DMS_GET_MSISDN_REQ_V01 failed: rc=0 (), resp.result=1.[0x01], resp.error=16.[0x10]
Jan  6 05:47:14 swi-mdm9x28-wp user.warn Legato: -WRN- | posDaemon[2296]/le_pa_gnss T=unknown | pa_gnss_qmi.c PositionHandler() 1537 | Bad position indication
Jan  6 05:48:40 swi-mdm9x28-wp user.info Legato:  INFO | modemDaemon[2277]/le_pa T=main | pa_sim_qmi.c InternalSimToolkitHandler() 1628 | QMI_UIM_REFRESH_COMPLETE_REQ_V01: Err 0 resp 0
Jan  6 05:48:40 swi-mdm9x28-wp user.warn Legato: -WRN- | modemDaemon[2277]/le_pa T=unknown | pa_sim_qmi.c UimStateChangeHandler() 1494 | No SIM application is in READY state
Jan  6 05:48:40 swi-mdm9x28-wp user.warn Legato: -WRN- | modemDaemon[2277]/le_pa T=SimStateChangeEventThre | pa_sim_qmi.c MapSimState() 1009 | More than one application 2

you can try with cm tool first:

root@swi-mdm9x28-wp:~# cm radio
Power: ON
Current Network Operator: CSL
Current RAT: LTE network (LE_MRC_RAT_LTE)
Status: Registered, home network (LE_MRC_REG_HOME)
Signal: Strong signal strength (4)
PS: Packet Switched Registered, home network (LE_MRC_REG_HOME)

root@swi-mdm9x28-wp:~#
root@swi-mdm9x28-wp:~# cm info
Device: WP7607
IMEI: 359779081234565
IMEISV: 6
FSN:
[ 153.996918] i2c-msm-v2 78b8000.i2c: NACK: slave not responding, ensure its powered: msgs(n:1 cur:0 tx) bc(rx:0 tx:2) mode:FIFO slv_addr:0x3a MSTR_STS:0x001363c8 OPER:0x00000090
VN730485080103
Firmware Version: SWI9X07Y_02.28.0[ 154.016005] i2c-msm-v2 78b8000.i2c: NACK: slave not responding, ensure its powered: msgs(n:1 cur:0 tx) bc(rx:0 tx:2) mode:FIFO slv_addr:0x3a MSTR_STS:0x001363c8 OPER:0x00000090
3.03 000000 jenkins 2019/05/21 03:33:04
Bootloader Version: SWI9X07Y_02.28.03.03 000000 jenkins 2019/05/21 03:33:04
MCU Version: 002.011
PRI Part Number (PN): 9908958
PRI Revision: 001.000
Carrier PRI Name: GENERIC
Carrier PRI Revision: 002.068_000
SKU: 1104301
Last Reset Cause: Reset, User Requested
Resets Count: Expected: 157 Unexpected: 12
root@swi-mdm9x28-wp:~#
root@swi-mdm9x28-wp:~# cm sms monitor &
root@swi-mdm9x28-wp:~#
root@swi-mdm9x28-wp:~# cm sms send 51322099 hello
root@swi-mdm9x28-wp:~#
root@swi-mdm9x28-wp:~# --[ 0]---------------------------------------------------------------
Type: LE_SMS_TYPE_RX
Sender: +85251322099
Timestamp: 20/05/28,09:56:11+32
Format: LE_SMS_FORMAT_TEXT
Text (5): hello

root@swi-mdm9x28-wp:~# cm radio
Power:                         ON
Current Network Operator:      
Current RAT:                   Module not registered on network, RAT not available
Status:                        Not registered but currently searching for a new operator (LE_MRC_REG_SEARCHING)
Signal:                        No signal strength (0)
PS:                            Packet Switched Not registered (LE_MRC_REG_NONE)

I got a quite different result from yours after cm radio command. Did I miss some steps to set something up or it could be the issue related to sim card ?

plus,
root@swi-mdm9x28-wp:~# cm sim info
Type: EXTERNAL_SLOT_1
ICCID: 89302690201010562497
Home Network Operator:
EID:
IMSI: 302690500596401
Phone Number:

Home Network Operator is blank, it is not registered into LTE network.

Are you using wp76 module?
What is the return of
ati3
At+cpin?
At!selrat?
At!band?

Mine is wp 7702. How can I run At command on modele? I didn’t figure it out.

There is AT command port in device manager

image
I dont think there is one on my computer

do you have modem port in device manager?

no… the two in the screenshot are all what I have

then you can go to uart console, and type “microcom /dev/ttyAT”
to quit the program, just type ctrl+x

Here is what I got:

ati3
Manufacturer: Sierra Wireless, Incorporated
Model: WP7702
Revision: SWI9X06Y_02.32.02.00 c2e98c jenkins 2019/08/30 07:28:21
IMEI: 352653090137381
IMEI SV:  4
FSN: VU838385211510
+GCAP: +CGSM

OK

at+cpin?
+CPIN: READY

OK

at!selrat?
!SELRAT: 02, GSM 2G Only

OK

at!band?
Index, Name
00, All bands

OK

How about
at!gstatus?
At!impref?

Here they are:

   at!gstatus?
    !GSTATUS:
    Current Time:  6258             Temperature: 38
    Modem Mitigate Level: 0         ModemProc Mitigate Level: 0
    Reset Counter: 1                Mode:        ONLINE
    System mode:   GSM              PS state:    Not attached
    IMS reg state: UNKNOWN          IMS mode:    Not Support
    IMS Srv State: UNKNOWN SMS,UNKNOWN VoIP
    GSM band:      GSM850
    GSM channel:   251
    GMM (PS) state:DEREGISTERED     PLMN SEARCH
    MM (CS) state: IDLE             PLMN SEARCH

    Serving cell:  0 (Unknown    )
    RX level (dBm):0.0      LAC:         0000 (0)
    GPRS state:    GPRS IDLE        Cell ID:     FFFFFFFF (4294967295)

    OK

    at!impref?
    !IMPREF:
     preferred fw version:    02.32.02.00
     preferred carrier name:  SIERRA
     preferred config name:   SIERRA_001.027_000
     preferred subpri index:  001
     current fw version:      02.32.02.00
     current carrier name:    SIERRA
     current config name:     SIERRA_001.027_000
     current subpri index:    001

    OK

How about at+creg?
Does it register to network?

looks it doesn’t? but I’m pretty sure I went through the setup procedure to register on mobile network.

at+creg?
+CREG: 0,0

OK

No, it cannot register to network.
Suggest you trying with other sim or other operator

with other sim card, do I need to go through the procedure to register to network again?

Maybe you just need to set gsm in at!selrat

I think it’s been set already, hasn’t it?

at!selrat?
!SELRAT: 02, GSM 2G Only

OK