# Data connect using external usim

**URL:** <https://mangoh.discourse.group/t/data-connect-using-external-usim/3270>\
**Category:** mangOH Yellow\
**Created:** [December 23, 2019, 2:33pm UTC](https://mangoh.discourse.group/t/data-connect-using-external-usim/3270 "2019-12-23T14:33:39Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![SeongBeom27](https://avatars.discourse-cdn.com/v4/letter/s/76d3ee/32.png) [@SeongBeom27](https://mangoh.discourse.group/u/SeongBeom27)\
**Post date:** [December 23, 2019, 2:33pm UTC](https://mangoh.discourse.group/t/data-connect-using-external-usim/3270/1 "2019-12-23T14:33:39Z")

</div>

I said I use EXTERNAL SLOT using AT COMMAND.

But when I try to connect the data, the APN changes like this.

root@swi-m9x28-wp:~# cm data  
Index: 1  
APN: iot.swir  
PDP Type: IPV4  
Connected: no

The first time you enter cm radio,

root@swi-m9x28-wp:~# cm radio  
Power: ON  
Current Network Operator: KOR LG Uplus  
Current RAT: Module not registered on network, RAT not available  
Status: Not registered but curiously searching for a new operator (LE\_MRC\_REG\_SEARCHING)  
Signal: Strong signal strength (4)  
PS: Packet switched not registered (LE\_MRC\_REG\_NONE)

It’s connected well to the LG Uplus I’m going to use, but over time,

root@swi-m9x28-wp:~# cm radio  
Power: ON  
Current Network Operator: KOR SK Telecom  
Current RAT: Module not registered on network, RAT not available  
Status: Registration was denied, userfully because of invalid access credit (LE\_MRC\_REG\_DENIED)  
Signal: Very strong signal strength (5)  
PS: Packet switched not registered (LE\_MRC\_REG\_NONE)

It is connected to the iot inner usim.

Below is the current usim status.

root@swi-m9x28-wp:~# cm sim info  
Type: EXTERNAL\_SLOT\_1  
ICCID: 8982067592002044433.  
Home Network Operator: KOR LG Uplus  
EID:  
IMSI: 450061222639213  
Phone Number: +821222639213  
root@swi-m9x28-wp:~# cm sim  
SIM card is inserted and unlocked (LE\_SIM\_READY)

Why can’t data be connected?

root@swi-m9x28-wp:~# cm data connect  
Setting up profile 1  
Connecting … failed  
Mon Dec 23:20:57 +09 2019 - Connection Failure: LE\_FAULT

Please help me use the usim of the LG Uplus news agency.

---

<div class="post-metadata">

**Author:** ![asyal](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/asyal/32/78_2.png) [@asyal](https://mangoh.discourse.group/u/asyal)\
**Post date:** [December 24, 2019, 11:40pm UTC](https://mangoh.discourse.group/t/data-connect-using-external-usim/3270/2 "2019-12-24T23:40:16Z")

</div>

> [@SeongBeom27](#):
>
> PDP Type: IPV4

could you show logread -f when you get that failure?

---

<div class="post-metadata">

**Author:** ![SeongBeom27](https://avatars.discourse-cdn.com/v4/letter/s/76d3ee/32.png) [@SeongBeom27](https://mangoh.discourse.group/u/SeongBeom27)\
**Post date:** [December 26, 2019, 1:58am UTC](https://mangoh.discourse.group/t/data-connect-using-external-usim/3270/3 "2019-12-26T01:58:13Z")

</div>

Thank you for your reply.  
Isn’t the current PDP type set to IPV4?

---

<div class="post-metadata">

**Author:** ![SeongBeom27](https://avatars.discourse-cdn.com/v4/letter/s/76d3ee/32.png) [@SeongBeom27](https://mangoh.discourse.group/u/SeongBeom27)\
**Post date:** [December 27, 2019, 6:02am UTC](https://mangoh.discourse.group/t/data-connect-using-external-usim/3270/4 "2019-12-27T06:02:27Z")

</div>

> [@asyal](#):
>
> root@swi-m9x28-wp:~# cm sim info

up  
Dec 27 14:47:36 swi-mdm9x28-wp user.info Legato: INFO | util[1781]/util T=main | signal.c Sample() 89 | RAT of signal metrics is 4  
Dec 27 14:47:36 swi-mdm9x28-wp user.warn Legato: -WRN- | modemDaemon[1712]/le\_pa T=main | pa\_sim\_qmi.c MapSimState() 952 | More than one application 3  
Dec 27 14:47:36 swi-mdm9x28-wp user.info Legato: INFO | modemDaemon[1712]/le\_pa T=main | pa\_mrc\_qmi.c pa\_mrc\_GetNetworkRegState() 2460 | called  
Dec 27 14:47:36 swi-mdm9x28-wp user.info Legato: INFO | util[1781]/util T=main | signal.c Sample() 89 | RAT of signal metrics is 4  
Dec 27 14:47:36 swi-mdm9x28-wp user.info Legato: INFO | modemDaemon[1712]/le\_pa T=main | pa\_mrc\_qmi.c pa\_mrc\_GetNetworkRegState() 2460 | called  
Dec 27 14:47:36 swi-mdm9x28-wp user.err Legato: =ERR= | modemDaemon[1712]/swiQmi T=main | swiQmi.c swiQmi\_CheckResponse() 795 | Sending QMI\_NAS\_GET\_SIG\_INFO\_REQ\_MSG\_V01 failed: rc=0 (), resp.result=1.[0x01], resp.error=74.[0x4a]  
Dec 27 14:47:36 swi-mdm9x28-wp user.err Legato: =ERR= | modemDaemon[1712]/modemDaemon T=main | le\_mrc.c le\_mrc\_MeasureSignalMetrics() 4213 | Unable to measure the signal metrics!  
Dec 27 14:47:36 swi-mdm9x28-wp user.warn Legato: -WRN- | modemDaemon[1712]/le\_pa T=main | pa\_sim\_qmi.c MapSimState() 952 | More than one application 3  
Dec 27 14:47:36 swi-mdm9x28-wp user.info Legato: INFO | modemDaemon[1712]/le\_pa T=main | pa\_mrc\_qmi.c pa\_mrc\_GetNetworkRegState() 2460 | called

---

<div class="post-metadata">

**Author:** ![asyal](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/asyal/32/78_2.png) [@asyal](https://mangoh.discourse.group/u/asyal)\
**Post date:** [January 1, 2020, 9:50pm UTC](https://mangoh.discourse.group/t/data-connect-using-external-usim/3270/5 "2020-01-01T21:50:11Z")

</div>

Hi,

Do you plan to use Octave or want to use your own SIM?  
Point to note is that if you want to use Octave, you need to use Sierra SIM.  
If you want to use your own SIM, then you need to build for Octave =0 and then deploy that on your unit.

Please provide more information on your use case so we can give more information and direction.

thanks,  
Ashish

---

<div class="post-metadata">

**Author:** ![SeongBeom27](https://avatars.discourse-cdn.com/v4/letter/s/76d3ee/32.png) [@SeongBeom27](https://mangoh.discourse.group/u/SeongBeom27)\
**Post date:** [January 2, 2020, 10:46am UTC](https://mangoh.discourse.group/t/data-connect-using-external-usim/3270/6 "2020-01-02T10:46:48Z")

</div>

Thank you for telling me the important point.

What I’m curious about is this part you told me, “build it for Octave =0, then deploy it to your device.”  
How do I do it?

---

<div class="post-metadata">

**Author:** ![jchitty](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jchitty/32/846_2.png) [@jchitty](https://mangoh.discourse.group/u/jchitty)\
**Post date:** [January 2, 2020, 8:46pm UTC](https://mangoh.discourse.group/t/data-connect-using-external-usim/3270/7 "2020-01-02T20:46:03Z")

</div>

I have added a Wiki page to the mangOH Git Hub that describes how to build the Legato apps for mangOH Yellow.

> **[mangOH/mangOH](https://github.com/mangOH/mangOH/wiki/Building-the-Legato-%22system%22-(apps)-for-mangOH-Yellow)**
>
> Primary mangOH git repository. Contribute to mangOH/mangOH development by creating an account on GitHub.
