EM9291 in Linux Preventing Shutdown

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

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

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”


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:

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:


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.