# App failed to receive SMS text from mobile phone

**URL:** <https://mangoh.discourse.group/t/app-failed-to-receive-sms-text-from-mobile-phone/4529>\
**Category:** mangOH Red\
**Created:** [May 28, 2020, 1:45am UTC](https://mangoh.discourse.group/t/app-failed-to-receive-sms-text-from-mobile-phone/4529 "2020-05-28T01:45:08Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeremyzhang](https://avatars.discourse-cdn.com/v4/letter/j/4da419/32.png) [@jeremyzhang](https://mangoh.discourse.group/u/jeremyzhang)\
**Post date:** [May 28, 2020, 1:45am UTC](https://mangoh.discourse.group/t/app-failed-to-receive-sms-text-from-mobile-phone/4529/1 "2020-05-28T01:45:08Z")

</div>

So I created an app based on [sms sample code](https://github.com/legatoproject/legato-af/tree/master/apps/sample/sms) 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
```

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [May 28, 2020, 1:56am UTC](https://mangoh.discourse.group/t/app-failed-to-receive-sms-text-from-mobile-phone/4529/2 "2020-05-28T01:56:36Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![jeremyzhang](https://avatars.discourse-cdn.com/v4/letter/j/4da419/32.png) [@jeremyzhang](https://mangoh.discourse.group/u/jeremyzhang)\
**Post date:** [June 3, 2020, 11:00pm UTC](https://mangoh.discourse.group/t/app-failed-to-receive-sms-text-from-mobile-phone/4529/3 "2020-06-03T23:00:17Z")

</div>

```
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 ?

---

<div class="post-metadata">

**Author:** ![jeremyzhang](https://avatars.discourse-cdn.com/v4/letter/j/4da419/32.png) [@jeremyzhang](https://mangoh.discourse.group/u/jeremyzhang)\
**Post date:** [June 3, 2020, 11:58pm UTC](https://mangoh.discourse.group/t/app-failed-to-receive-sms-text-from-mobile-phone/4529/4 "2020-06-03T23:58:57Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [June 4, 2020, 12:08am UTC](https://mangoh.discourse.group/t/app-failed-to-receive-sms-text-from-mobile-phone/4529/5 "2020-06-04T00:08:53Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![jeremyzhang](https://avatars.discourse-cdn.com/v4/letter/j/4da419/32.png) [@jeremyzhang](https://mangoh.discourse.group/u/jeremyzhang)\
**Post date:** [June 8, 2020, 9:31pm UTC](https://mangoh.discourse.group/t/app-failed-to-receive-sms-text-from-mobile-phone/4529/6 "2020-06-08T21:31:01Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [June 8, 2020, 11:06pm UTC](https://mangoh.discourse.group/t/app-failed-to-receive-sms-text-from-mobile-phone/4529/7 "2020-06-08T23:06:49Z")

</div>

There is AT command port in device manager

---

<div class="post-metadata">

**Author:** ![jeremyzhang](https://avatars.discourse-cdn.com/v4/letter/j/4da419/32.png) [@jeremyzhang](https://mangoh.discourse.group/u/jeremyzhang)\
**Post date:** [June 9, 2020, 1:18am UTC](https://mangoh.discourse.group/t/app-failed-to-receive-sms-text-from-mobile-phone/4529/8 "2020-06-09T01:18:58Z")

</div>

![image](https://us1.discourse-cdn.com/flex016/uploads/mangoh/original/2X/b/bb4580d517a72cabaed1d0a42ca5fd4f03a645c7.png)  
I dont think there is one on my computer

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [June 9, 2020, 1:28am UTC](https://mangoh.discourse.group/t/app-failed-to-receive-sms-text-from-mobile-phone/4529/9 "2020-06-09T01:28:58Z")

</div>

do you have modem port in device manager?

---

<div class="post-metadata">

**Author:** ![jeremyzhang](https://avatars.discourse-cdn.com/v4/letter/j/4da419/32.png) [@jeremyzhang](https://mangoh.discourse.group/u/jeremyzhang)\
**Post date:** [June 9, 2020, 1:40am UTC](https://mangoh.discourse.group/t/app-failed-to-receive-sms-text-from-mobile-phone/4529/10 "2020-06-09T01:40:16Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [June 9, 2020, 1:45am UTC](https://mangoh.discourse.group/t/app-failed-to-receive-sms-text-from-mobile-phone/4529/11 "2020-06-09T01:45:49Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![jeremyzhang](https://avatars.discourse-cdn.com/v4/letter/j/4da419/32.png) [@jeremyzhang](https://mangoh.discourse.group/u/jeremyzhang)\
**Post date:** [June 9, 2020, 9:36pm UTC](https://mangoh.discourse.group/t/app-failed-to-receive-sms-text-from-mobile-phone/4529/12 "2020-06-09T21:36:44Z")

</div>

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
```

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [June 9, 2020, 11:03pm UTC](https://mangoh.discourse.group/t/app-failed-to-receive-sms-text-from-mobile-phone/4529/13 "2020-06-09T23:03:21Z")

</div>

How about  
at!gstatus?  
At!impref?

---

<div class="post-metadata">

**Author:** ![jeremyzhang](https://avatars.discourse-cdn.com/v4/letter/j/4da419/32.png) [@jeremyzhang](https://mangoh.discourse.group/u/jeremyzhang)\
**Post date:** [June 9, 2020, 11:18pm UTC](https://mangoh.discourse.group/t/app-failed-to-receive-sms-text-from-mobile-phone/4529/14 "2020-06-09T23:18:04Z")

</div>

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
```

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [June 10, 2020, 12:09am UTC](https://mangoh.discourse.group/t/app-failed-to-receive-sms-text-from-mobile-phone/4529/15 "2020-06-10T00:09:31Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![jeremyzhang](https://avatars.discourse-cdn.com/v4/letter/j/4da419/32.png) [@jeremyzhang](https://mangoh.discourse.group/u/jeremyzhang)\
**Post date:** [June 10, 2020, 12:22am UTC](https://mangoh.discourse.group/t/app-failed-to-receive-sms-text-from-mobile-phone/4529/16 "2020-06-10T00:22:36Z")

</div>

looks it doesn’t? but I’m pretty sure I went through the [setup procedure to register on mobile network.](http://mangoh.io/uploaded-documents/Reference/mangOH%20Red/Discover/Getting%20Started/41113734%20mangOH%20Red%20GSG%20-%20HTML5-Responsive%20HTML5/#t=41113734_mangOH_Red_GSG_-_HTML5%2F41112261_Connect%2F41112261_Connect.htm)

```
at+creg?
+CREG: 0,0

OK
```

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [June 10, 2020, 12:29am UTC](https://mangoh.discourse.group/t/app-failed-to-receive-sms-text-from-mobile-phone/4529/17 "2020-06-10T00:29:46Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![jeremyzhang](https://avatars.discourse-cdn.com/v4/letter/j/4da419/32.png) [@jeremyzhang](https://mangoh.discourse.group/u/jeremyzhang)\
**Post date:** [June 10, 2020, 12:42am UTC](https://mangoh.discourse.group/t/app-failed-to-receive-sms-text-from-mobile-phone/4529/18 "2020-06-10T00:42:19Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [June 10, 2020, 12:52am UTC](https://mangoh.discourse.group/t/app-failed-to-receive-sms-text-from-mobile-phone/4529/19 "2020-06-10T00:52:52Z")

</div>

Maybe you just need to set gsm in at!selrat

---

<div class="post-metadata">

**Author:** ![jeremyzhang](https://avatars.discourse-cdn.com/v4/letter/j/4da419/32.png) [@jeremyzhang](https://mangoh.discourse.group/u/jeremyzhang)\
**Post date:** [June 10, 2020, 1:14am UTC](https://mangoh.discourse.group/t/app-failed-to-receive-sms-text-from-mobile-phone/4529/20 "2020-06-10T01:14:07Z")

</div>

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

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

OK
```

[Next page](https://mangoh.discourse.group/t/app-failed-to-receive-sms-text-from-mobile-phone/4529.md?page=2)
