you can see my test in linux to get NMEA frame:
- sudo apt-get install libmbim-utils
- make sure MBIM port is enabled in AT!USBCOMP?
- connect antenna to AUX antenna port
- power on the EM9191 with FW SWIX55C_03.09.06.00
- Make sure GPSENABLE has been enabled in AT!CUSTOM?
- AT!GPSAUTOSTART=1 should be set
- after power on, kernel log should show the following:
[ 1023.214800] usb 3-2.1: Product: Sierra Wireless EM9190
[ 1023.214801] usb 3-2.1: Manufacturer: Sierra Wireless, Incorporated
[ 1023.214802] usb 3-2.1: SerialNumber: 4H1172010503A145
[ 1023.368380] cdc_mbim 3-2.1:1.0: setting rx_max = 16384
[ 1023.370630] cdc_mbim 3-2.1:1.0: cdc-wdm0: USB WDM device
[ 1023.370801] cdc_mbim 3-2.1:1.0 wwan0: register ‘cdc_mbim’ at usb-0000:03:00.0-2.1, CDC MBIM, 56:2c:2c:2b:66:d8
[ 1023.372993] qcserial 3-2.1:1.3: Qualcomm USB modem converter detected
[ 1023.373054] usb 3-2.1: Qualcomm USB modem converter now attached to ttyUSB0
[ 1023.373807] qcserial 3-2.1:1.4: Qualcomm USB modem converter detected
[ 1023.373871] usb 3-2.1: Qualcomm USB modem converter now attached to ttyUSB1
- Get the CID
owner@ubuntu:~/Downloads$ sudo qmicli -p --device=/dev/cdc-wdm0 --loc-start --client-no-release-cid --loc-session-id=53
[sudo] password for owner:
[/dev/cdc-wdm0] Successfully started location tracking (session id 53)
[/dev/cdc-wdm0] Client ID not released:
Service: ‘loc’
CID: ‘4’
- Put the CID in the following command
owner@ubuntu:~/Downloads$ sudo qmicli -p --device=/dev/cdc-wdm0 --loc-follow-nmea --client-cid=4 --client-no-release-cid --loc-session-id=53
$GPGSV,1,1,03,30,26,203,13,07,10,178,08,163
$GQGSV,1,1,02,02,56,143,24,04,28,158
$GBGSV,2,1,08,01,47,122,02,45,234,03,63,188,04,33,108,172
$GBGSV,2,2,08,22,30,125,24,44,286,25,26,50,209,14C
$GAGSV,1,1,01,21,27,774
$GNDTM,P90,N,W,W844F
$GPGGA,034719.00,0,40
$GBGGA,034719.00,0,52
$GNGGA,034719.00,0,5E
$GNGNS,034719.00,NNN,V41
$GBVTG,T,M,N,K,N3E
$GNVTG,T,M,N,K,N32