# EM9291 in Linux Preventing Shutdown

**URL:** <https://forum.sierrawireless.com/t/em9291-in-linux-preventing-shutdown/33866>\
**Category:** MC/EM Series\
**Created:** [October 21, 2024, 6:10pm UTC](https://forum.sierrawireless.com/t/em9291-in-linux-preventing-shutdown/33866 "2024-10-21T18:10:37Z")\
**Posts on this page:** 1\
**Showing post:** 26

<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 29, 2024, 6:44am UTC](https://forum.sierrawireless.com/t/em9291-in-linux-preventing-shutdown/33866/26 "2024-10-29T06:44:46Z")

</div>

Just found that those instruction above is for EM919x only  
For EM9291, it no longer supports generating NMEA sentences in QMI LOC.

Instead, you can follow the procedure below:

1. Download the MBPL SDK MBPL\_SDK\_R41\_ENG4-lite.bin.tar.gz

[https://source.sierrawireless.com/resources/airprime/software/mbpl/mbpl-software-latest/#sthash.ZXRwiiKx.dpbs](https://source.sierrawireless.com/resources/airprime/software/mbpl/mbpl-software-latest/#sthash.ZXRwiiKx.dpbs)

1. extract it and run the sample application lite-qmi-loc in 1st terminal:

```auto

owner@CNHKG-EX-001367:~/QMI/MBPL/R41/MBPL_SDK_R41_ENG4-lite.bin/SampleApps/lite-qmi-loc$ sudo ./bin/lite-qmi-lochostx86_64 -d /dev/cdc-wdm0 -m

```

1. choose option 36 to send NMEA sentences to a virtual serial port

2. now open a new terminal as the 2nd terminal and run sudo “socat -d -d -v pty,raw,echo=0 pty,raw,echo=0”

```auto

owner@CNHKG-EX-001367:~/QMI/MBPL/R30/MBPL_SDK_R30_ENG6-lite.src/SampleApps/lite-qmi-dms$ sudo socat -d -d -v pty,raw,echo=0 pty,raw,echo=0
2024/10/29 14:37:00 socat[28944] N PTY is /dev/pts/19
2024/10/29 14:37:00 socat[28944] N PTY is /dev/pts/20
2024/10/29 14:37:00 socat[28944] N starting data transfer loop with FDs [5,5] and [7,7]

```

1. go back to 1st terminal and type the second virtual port which is 20 in my example above

2. now open a new terminal as the 3rd terminal and run the following to output the message in 1st virtual port which is /dev/pts/19 in my example:

```auto
owner@CNHKG-EX-001367:~$ sudo chmod 777 /dev/pts/19
owner@CNHKG-EX-001367:~$ sudo cat < /dev/pts/19

```

1. go back to 1st terminal and type “CSI=ab,CT=1,SID=1,FR=1,HAL=2,IRS=1,MI=2000”

2. in 1st terminal, type “SID=1”

3. Now you will see the NMEA frame appears in the 3rd terminal which is the 1st virtual port /dev/pts/19 in my example:

```auto

owner@CNHKG-EX-001367:~$ sudo cat < /dev/pts/19
$ GPGSA,A,1,,,,,,,,,,,,,,,,*32
$ GPVTG,,T,,M,,N,,K,N*2C
$ GPDTM,W84,,0000.000000,N,00000.000000,E,0.000,W84*5F
$ GPRMC,000000.00,V,,,,,,,010170,,,N,V*00
$ GPGNS,000000.00,,,,,NNNNNN,00,,,,,,V*19
$ GPGGA,000000.00,,,,,0,00,,,,,,,,*64
$ GPGSA,A,1,,,,,,,,,,,,,,,,*32
$ GPVTG,,T,,M,,N,,K,N*2C
$ GPDTM,W84,,0000.000000,N,00000.000000,E,0.000,W84*5F
$ GPRMC,000000.00,V,,,,,,,010170,,,N,V*00
$ GPGNS,000000.00,,,,,NNNNNN,00,,,,,,V*19
$ GPGGA,000000.00,,,,,0,00,,,,,,,,*64
$ GPGSA,A,1,,,,,,,,,,,,,,,,*32

```

Please note that the above test is done in EM9291 USB MBIM interface with FW 02.15.08.00.

---

_[View the full topic](https://forum.sierrawireless.com/t/em9291-in-linux-preventing-shutdown/33866)._
