Em120R-GL gpsd to work with GPS Linux

Hi

I’m trying to get gpsd to work with my module but I’m having no luck. I have tried with gpsd /dev/tty/USB0 but it can not find any device whit that name. Anyone how know what to try? Kurt

Always start from checking with cat /sys/kernel/debug/usb/devices

hi
This is what i found

T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 1
B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=1d6b ProdID=0002 Rev= 6.08
S: Manufacturer=Linux 6.8.0-36-generic xhci-hcd
S: Product=xHCI Host Controller
S: SerialNumber=0000:00:0d.0
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=256ms

T: Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=10000 MxCh= 4
B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 3.10 Cls=09(hub ) Sub=00 Prot=03 MxPS= 9 #Cfgs= 1
P: Vendor=1d6b ProdID=0003 Rev= 6.08
S: Manufacturer=Linux 6.8.0-36-generic xhci-hcd
S: Product=xHCI Host Controller
S: SerialNumber=0000:00:0d.0
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=256ms

T: Bus=03 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh=12
B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=1d6b ProdID=0002 Rev= 6.08
S: Manufacturer=Linux 6.8.0-36-generic xhci-hcd
S: Product=xHCI Host Controller
S: SerialNumber=0000:00:14.0
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=256ms

T: Bus=03 Lev=01 Prnt=01 Port=02 Cnt=01 Dev#= 2 Spd=12 MxCh= 0
D: Ver= 2.00 Cls=ff(vend.) Sub=10 Prot=ff MxPS= 8 #Cfgs= 1
P: Vendor=06cb ProdID=00f9 Rev= 0.00
S: SerialNumber=00f1222d8711
C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=100mA
I:* If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=(none)
E: Ad=01(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=81(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=83(I) Atr=03(Int.) MxPS= 8 Ivl=4ms

T: Bus=03 Lev=01 Prnt=01 Port=03 Cnt=02 Dev#= 3 Spd=480 MxCh= 0
D: Ver= 2.01 Cls=ef(misc ) Sub=02 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=13d3 ProdID=5405 Rev=63.01
S: Manufacturer=Azurewave
S: Product=Integrated Camera
S: SerialNumber=0000
C:* #Ifs= 5 Cfg#= 1 Atr=80 MxPwr=500mA
A: FirstIf#= 0 IfCount= 2 Cls=0e(video) Sub=03 Prot=00
A: FirstIf#= 2 IfCount= 2 Cls=0e(video) Sub=03 Prot=00
A: FirstIf#= 4 IfCount= 1 Cls=fe(app. ) Sub=01 Prot=00
I:* If#= 0 Alt= 0 #EPs= 1 Cls=0e(video) Sub=01 Prot=00 Driver=uvcvideo
E: Ad=83(I) Atr=03(Int.) MxPS= 32 Ivl=4ms
I:* If#= 1 Alt= 0 #EPs= 0 Cls=0e(video) Sub=02 Prot=00 Driver=uvcvideo
I: If#= 1 Alt= 1 #EPs= 1 Cls=0e(video) Sub=02 Prot=00 Driver=uvcvideo
E: Ad=81(I) Atr=05(Isoc) MxPS= 128 Ivl=125us
I: If#= 1 Alt= 2 #EPs= 1 Cls=0e(video) Sub=02 Prot=00 Driver=uvcvideo
E: Ad=81(I) Atr=05(Isoc) MxPS= 512 Ivl=125us
I: If#= 1 Alt= 3 #EPs= 1 Cls=0e(video) Sub=02 Prot=00 Driver=uvcvideo
E: Ad=81(I) Atr=05(Isoc) MxPS=1024 Ivl=125us
I: If#= 1 Alt= 4 #EPs= 1 Cls=0e(video) Sub=02 Prot=00 Driver=uvcvideo
E: Ad=81(I) Atr=05(Isoc) MxPS=1536 Ivl=125us
I: If#= 1 Alt= 5 #EPs= 1 Cls=0e(video) Sub=02 Prot=00 Driver=uvcvideo
E: Ad=81(I) Atr=05(Isoc) MxPS=2048 Ivl=125us
I: If#= 1 Alt= 6 #EPs= 1 Cls=0e(video) Sub=02 Prot=00 Driver=uvcvideo
E: Ad=81(I) Atr=05(Isoc) MxPS=2304 Ivl=125us
I: If#= 1 Alt= 7 #EPs= 1 Cls=0e(video) Sub=02 Prot=00 Driver=uvcvideo
E: Ad=81(I) Atr=05(Isoc) MxPS=2940 Ivl=125us
I:* If#= 2 Alt= 0 #EPs= 1 Cls=0e(video) Sub=01 Prot=01 Driver=uvcvideo
E: Ad=85(I) Atr=03(Int.) MxPS= 32 Ivl=4ms
I:* If#= 3 Alt= 0 #EPs= 0 Cls=0e(video) Sub=02 Prot=01 Driver=uvcvideo
I: If#= 3 Alt= 1 #EPs= 1 Cls=0e(video) Sub=02 Prot=01 Driver=uvcvideo
E: Ad=82(I) Atr=05(Isoc) MxPS= 128 Ivl=125us
I: If#= 3 Alt= 2 #EPs= 1 Cls=0e(video) Sub=02 Prot=01 Driver=uvcvideo
E: Ad=82(I) Atr=05(Isoc) MxPS= 256 Ivl=125us
I: If#= 3 Alt= 3 #EPs= 1 Cls=0e(video) Sub=02 Prot=01 Driver=uvcvideo
E: Ad=82(I) Atr=05(Isoc) MxPS= 512 Ivl=125us
I: If#= 3 Alt= 4 #EPs= 1 Cls=0e(video) Sub=02 Prot=01 Driver=uvcvideo
E: Ad=82(I) Atr=05(Isoc) MxPS= 768 Ivl=125us
I: If#= 3 Alt= 5 #EPs= 1 Cls=0e(video) Sub=02 Prot=01 Driver=uvcvideo
E: Ad=82(I) Atr=05(Isoc) MxPS=1024 Ivl=125us
I: If#= 3 Alt= 6 #EPs= 1 Cls=0e(video) Sub=02 Prot=01 Driver=uvcvideo
E: Ad=82(I) Atr=05(Isoc) MxPS=1152 Ivl=125us
I: If#= 3 Alt= 7 #EPs= 1 Cls=0e(video) Sub=02 Prot=01 Driver=uvcvideo
E: Ad=82(I) Atr=05(Isoc) MxPS=1176 Ivl=125us
I:* If#= 4 Alt= 0 #EPs= 0 Cls=fe(app. ) Sub=01 Prot=01 Driver=(none)

T: Bus=03 Lev=01 Prnt=01 Port=08 Cnt=03 Dev#= 4 Spd=12 MxCh= 0
D: Ver= 2.01 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=058f ProdID=9540 Rev= 1.20
S: Manufacturer=Generic
S: Product=EMV Smartcard Reader
C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr= 50mA
I:* If#= 0 Alt= 0 #EPs= 3 Cls=0b(scard) Sub=00 Prot=00 Driver=(none)
E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=1ms
E: Ad=02(O) Atr=02(Bulk) MxPS= 16 Ivl=0ms
E: Ad=83(I) Atr=02(Bulk) MxPS= 16 Ivl=0ms

T: Bus=04 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=10000 MxCh= 4
B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 3.10 Cls=09(hub ) Sub=00 Prot=03 MxPS= 9 #Cfgs= 1
P: Vendor=1d6b ProdID=0003 Rev= 6.08
S: Manufacturer=Linux 6.8.0-36-generic xhci-hcd
S: Product=xHCI Host Controller
S: SerialNumber=0000:00:14.0
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=256ms
hannez0101@hannez0101-ThinkPad-T14s-Gen-2i:~$

You don’t have a modem [attached to USB], so you should not expect to see /dev/ttyUSBx

this is what i found on lspci

00:00.0 Host bridge: Intel Corporation 11th Gen Core Processor Host Bridge/DRAM Registers (rev 01)
00:02.0 VGA compatible controller: Intel Corporation TigerLake-LP GT2 [Iris Xe Graphics] (rev 01)
00:04.0 Signal processing controller: Intel Corporation TigerLake-LP Dynamic Tuning Processor Participant (rev 01)
00:06.0 PCI bridge: Intel Corporation 11th Gen Core Processor PCIe Controller (rev 01)
00:07.0 PCI bridge: Intel Corporation Tiger Lake-LP Thunderbolt 4 PCI Express Root Port #1 (rev 01)
00:07.2 PCI bridge: Intel Corporation Tiger Lake-LP Thunderbolt 4 PCI Express Root Port #2 (rev 01)
00:08.0 System peripheral: Intel Corporation GNA Scoring Accelerator module (rev 01)
00:0d.0 USB controller: Intel Corporation Tiger Lake-LP Thunderbolt 4 USB Controller (rev 01)
00:0d.2 USB controller: Intel Corporation Tiger Lake-LP Thunderbolt 4 NHI #0 (rev 01)
00:0d.3 USB controller: Intel Corporation Tiger Lake-LP Thunderbolt 4 NHI #1 (rev 01)
00:14.0 USB controller: Intel Corporation Tiger Lake-LP USB 3.2 Gen 2x1 xHCI Host Controller (rev 20)
00:14.2 RAM memory: Intel Corporation Tiger Lake-LP Shared SRAM (rev 20)
00:14.3 Network controller: Intel Corporation Wi-Fi 6 AX201 (rev 20)
00:15.0 Serial bus controller: Intel Corporation Tiger Lake-LP Serial IO I2C Controller #0 (rev 20)
00:15.1 Serial bus controller: Intel Corporation Tiger Lake-LP Serial IO I2C Controller #1 (rev 20)
00:16.0 Communication controller: Intel Corporation Tiger Lake-LP Management Engine Interface (rev 20)
00:1c.0 PCI bridge: Intel Corporation Device a0b8 (rev 20)
00:1f.0 ISA bridge: Intel Corporation Tiger Lake-LP LPC Controller (rev 20)
00:1f.3 Audio device: Intel Corporation Tiger Lake-LP Smart Sound Technology Audio Controller (rev 20)
00:1f.4 SMBus: Intel Corporation Tiger Lake-LP SMBus Controller (rev 20)
00:1f.5 Serial bus controller: Intel Corporation Tiger Lake-LP SPI Controller (rev 20)
00:1f.6 Ethernet controller: Intel Corporation Ethernet Connection (13) I219-V (rev 20)
04:00.0 Non-Volatile memory controller: SK hynix Gold P31/BC711/PC711 NVMe Solid State Drive
08:00.0 Unassigned class [ff00]: Quectel Wireless Solutions Co., Ltd. EM120R-GL LTE Modem

How do i connect my modem to USB?

If so, the nmea port should be

/dev/mhi_LOOPBACK

If so you should send the command to enable the GPS on AT port (/dev/mhi_DUN) .

hi
What command should i use for If so you should send the command to enable the GPS on AT port (/dev/mhi_DUN) .

i have tried with gpsd /dev/mhi_LOOPBACK
then gpsmon but no output

Please send the AT
AT+QGPS=1

Hi
I trying the command in my terminal but it doesent work Do i have to have some software to print the AT command in if so what is the command to use? Thankfull for answer!

You should send the AT command AT+QGPS=1 in the /dev/mhi_DUN
and then you can check the output in the /dev/mhi_LOOPBACK port.

i cant find the file /dev/mhi_DUN its not in the dev directory

Please try the pcie_mhi driver.

okey what commands do i need to type installing the pcie mhi driver. Sorry im a little noob

RE: Em120R-GL gpsd to work with GPS Linux - Quectel Forums

Please check the Linux kernel driver.

Hi
When i am connected to /dev/wwan0at0 and issue this at command
AT+QGPS=1 it say error
[/quote]

Could you provide a picture or any log?

Let’s test
AT+QGPS?
AT+QGPS=?

hi i try with AT+QGPS=? and AT+QGPS? give this output

If so it should support the AT+QGPS=1