# EM9190 : Configure module without AT commands

**URL:** <https://forum.sierrawireless.com/t/em9190-configure-module-without-at-commands/30711>\
**Category:** MC/EM Series\
**Created:** [September 26, 2023, 11:56am UTC](https://forum.sierrawireless.com/t/em9190-configure-module-without-at-commands/30711 "2023-09-26T11:56:48Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![monisha-d](https://avatars.discourse-cdn.com/v4/letter/m/8e8cbc/32.png) [@monisha-d](https://forum.sierrawireless.com/u/monisha-d)\
**Post date:** [September 26, 2023, 11:56am UTC](https://forum.sierrawireless.com/t/em9190-configure-module-without-at-commands/30711/1 "2023-09-26T11:56:48Z")

</div>

Hi there,

We could establish data connection in Linux Environment using MBIM interface. However, the question I have is do we need to configure network using AT commands before I use MBIM interface for the data transfer?

In other words, what is the connection between AT commands and MBIM interface?

 ![Screenshot from 2023-09-26 17-24-05](https://us1.discourse-cdn.com/flex025/uploads/sierrawireless/original/2X/a/a6536a9f7d7f0dbe65f5559584fc83be3acc6dac.png)

Thanks,  
Monisha

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/jyijyi/32/4766_2.png) [@jyijyi](https://forum.sierrawireless.com/u/jyijyi)\
**Post date:** [September 26, 2023, 12:44pm UTC](https://forum.sierrawireless.com/t/em9190-configure-module-without-at-commands/30711/2 "2023-09-26T12:44:26Z")

</div>

Yes, you can use at!gstatus? To check registration status before establish data connection with mbim

---

<div class="post-metadata">

**Author:** ![monisha-d](https://avatars.discourse-cdn.com/v4/letter/m/8e8cbc/32.png) [@monisha-d](https://forum.sierrawireless.com/u/monisha-d)\
**Post date:** [September 26, 2023, 1:57pm UTC](https://forum.sierrawireless.com/t/em9190-configure-module-without-at-commands/30711/3 "2023-09-26T13:57:33Z")

</div>

ok that was helpful, thanks.

But what is the connection between AT commands and MBIM interface?

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/jyijyi/32/4766_2.png) [@jyijyi](https://forum.sierrawireless.com/u/jyijyi)\
**Post date:** [September 26, 2023, 2:14pm UTC](https://forum.sierrawireless.com/t/em9190-configure-module-without-at-commands/30711/4 "2023-09-26T14:14:42Z")

</div>

What do you mean by connection?  
They are just two interfaces

Of course they are connected, if you shut down the telecom stack by AT+cfun=0, the mbim data channel cannot byle established

---

<div class="post-metadata">

**Author:** ![monisha-d](https://avatars.discourse-cdn.com/v4/letter/m/8e8cbc/32.png) [@monisha-d](https://forum.sierrawireless.com/u/monisha-d)\
**Post date:** [October 4, 2023, 6:30am UTC](https://forum.sierrawireless.com/t/em9190-configure-module-without-at-commands/30711/5 "2023-10-04T06:30:36Z")

</div>

Alright. One more query, with the same module, same sim and same configuration, MBIM network connection fails. What could be the possible reason?

sudo mbim-network /dev/cdc-wdm0 start  
Loading profile at /etc/mbim-network.conf…  
APN: [airtelgprs.com](http://airtelgprs.com)  
APN auth protocol: unset  
APN user: unset  
APN password: unset  
mbim-proxy: yes  
Querying subscriber ready status ‘mbimcli -d /dev/cdc-wdm0 --query-subscriber-ready-status --device-open-proxy’…  
[/dev/cdc-wdm0] Subscriber ready status retrieved: Ready state: ‘initialized’ Subscriber ID: ‘404940971097200’ SIM ICCID: ‘8991000920922937967F’ Ready info: ‘none’ Telephone numbers: (0) ‘unknown’  
Querying registration state ‘mbimcli -d /dev/cdc-wdm0 --query-registration-state --device-open-proxy’…  
[/dev/cdc-wdm0] Registration status: Network error: ‘unknown’ Register state: ‘home’ Register mode: ‘automatic’ Available data classes: ‘lte’ Current cellular class: ‘gsm’ Provider ID: ‘40440’ Provider name: ‘airtel’ Roaming text: ‘unknown’ Registration flags: ‘packet-service-automatic-attach’  
Attaching to packet service with ‘mbimcli -d /dev/cdc-wdm0 --attach-packet-service --device-open-proxy’…  
[/dev/cdc-wdm0] Successfully attached to packet service [/dev/cdc-wdm0] Packet service status: Network error: ‘unknown’ Packet service state: ‘attached’ Available data classes: ‘lte’ Uplink speed: ‘1200000000 bps’ Downlink speed: ‘3200000000 bps’  
Starting network with ‘mbimcli -d /dev/cdc-wdm0 --connect=apn=‘[airtelgprs.com](http://airtelgprs.com)’ --device-open-proxy’…  
error: operation failed: Failure  
Network start failed

Moreover, I’m unable to set the Mobile network settings in Linux PC. Is this causing the MBIM network connection failure?  
What am I missing?

Thanks,  
Monisha

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/jyijyi/32/4766_2.png) [@jyijyi](https://forum.sierrawireless.com/u/jyijyi)\
**Post date:** [October 4, 2023, 6:37am UTC](https://forum.sierrawireless.com/t/em9190-configure-module-without-at-commands/30711/6 "2023-10-04T06:37:13Z")

</div>

it is hard to comment why the MBIM sometimes works but sometimes not working with same module, same sim and same configuration.

Could it be signal strength?  
Could it be hardware instability?  
Could it be network unstable situation?

---

<div class="post-metadata">

**Author:** ![jess.andersen](https://avatars.discourse-cdn.com/v4/letter/j/bc8723/32.png) [@jess.andersen](https://forum.sierrawireless.com/u/jess.andersen)\
**Post date:** [October 17, 2023, 12:08pm UTC](https://forum.sierrawireless.com/t/em9190-configure-module-without-at-commands/30711/7 "2023-10-17T12:08:54Z")

</div>

> [@monisha-d](#):
>
> [/dev/cdc-wdm0] Registration status: Network error: ‘unknown’ Register state: ‘home’ Register mode:

Hi  
I noticed

> [/dev/cdc-wdm0] Registration status: Network error: ‘unknown’ Register state: ‘home’ Register mode:

Normally when I see this error i check two things:  
1/ is the modem using the correct firmware at!impref  
2/ how about your apn: one thing is that is is set with mbim but what does at+cgdcont report is it the same apn as the one you have configured?

Br

Jess

---

<div class="post-metadata">

**Author:** ![monisha-d](https://avatars.discourse-cdn.com/v4/letter/m/8e8cbc/32.png) [@monisha-d](https://forum.sierrawireless.com/u/monisha-d)\
**Post date:** [November 1, 2023, 5:58am UTC](https://forum.sierrawireless.com/t/em9190-configure-module-without-at-commands/30711/8 "2023-11-01T05:58:22Z")

</div>

To answer your question,

1. yes the modem is using the latest firmware
2. The APN set in at+cgdcont is same as the one I have configured while starting the mbim.

I found out why mbim fails with the following error “Network start failed”.  
Initially while setting the APN and checking the network registration, I provided AT+CGACT=1,1 command, which activates the network. Since network is already activated, giving the “sudo mbim-network /dev/cdc-wdm0 start” would result in “Network start failed”.
