Getting GPS from EM9191

you can see my test in linux to get NMEA frame:

  1. sudo apt-get install libmbim-utils
  2. make sure MBIM port is enabled in AT!USBCOMP?
  3. connect antenna to AUX antenna port
  4. power on the EM9191 with FW SWIX55C_03.09.06.00
  5. Make sure GPSENABLE has been enabled in AT!CUSTOM?
  6. AT!GPSAUTOSTART=1 should be set
  7. 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


  1. 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’

  1. 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,1
58
$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,1
4C
$GAGSV,1,1,01,21,27,774
$GNDTM,P90,N,W,W84
4F
$GPGGA,034719.00,0,40
$GBGGA,034719.00,0,52
$GNGGA,034719.00,0,5E
$GNGNS,034719.00,NNN,V
41
$GBVTG,T,M,N,K,N
3E
$GNVTG,T,M,N,K,N
32