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:
- Download the MBPL SDK MBPL_SDK_R41_ENG4-lite.bin.tar.gz
- 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
-
choose option 36 to send NMEA sentences to a virtual serial port
-
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]
-
go back to 1st terminal and type the second virtual port which is 20 in my example above
-
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
-
go back to 1st terminal and type “CSI=ab,CT=1,SID=1,FR=1,HAL=2,IRS=1,MI=2000”
-
in 1st terminal, type “SID=1”
-
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.