How to get GPS data from RM520N-GL

Hi,
I have tried a few modules and I’m using the standard PCEI-Card-EVB to interface via USB connection. I tried but qmicli and straight AT commands but both did not get me even nmea data. Please help, thanks.

For AT commands:
AT+QGPS=1
OK
AT+QGPSLOC=0
+CME ERROR: 516
AT+CGMR
RM520NGLAAR01A07M4G
AT+QGMR
RM520NGLAAR01A07M4G_01.200.01.200

For qmi cli: (kept getting InvalidArgument for Register Events)

MdmNode true
GPS CID:3
StartGps true
[03 May 2024, 10:29:16] [Debug] [/dev/cdc-wdm1] opening device with flags ‘proxy, auto, expect-indications’…
[03 May 2024, 10:29:16] [Debug] [/dev/cdc-wdm1] automatically selecting QMI mode
[03 May 2024, 10:29:16] [Debug] [/dev/cdc-wdm1] created endpoint
[03 May 2024, 10:29:16] [Debug] [/dev/cdc-wdm1] sent message…
<<<<<< RAW:
<<<<<< length = 28
<<<<<< data = 01:1B:00:00:00:00:00:01:00:FF:10:00…

[03 May 2024, 10:29:16] [Debug] [/dev/cdc-wdm1] sent generic request (translated)…
<<<<<< QMUX:
<<<<<< length = 27
<<<<<< flags = 0x00
<<<<<< service = “ctl”
<<<<<< client = 0
<<<<<< QMI:
<<<<<< flags = “none”
<<<<<< transaction = 1
<<<<<< tlv_length = 16
<<<<<< message = “Internal Proxy Open” (0xFF00)
<<<<<< TLV:
<<<<<< type = “Device Path” (0x01)
<<<<<< length = 13
<<<<<< value = 2F:64:65:76:2F:63:64:63:2D:77:64:6D:31
<<<<<< translated = /dev/cdc-wdm1

[03 May 2024, 10:29:16] [Debug] [/dev/cdc-wdm1] received message…
<<<<<< RAW:
<<<<<< length = 19
<<<<<< data = 01:12:00:80:00:00:01:01:00:FF:07:00…

[03 May 2024, 10:29:16] [Debug] [/dev/cdc-wdm1] received generic response (translated)…
<<<<<< QMUX:
<<<<<< length = 18
<<<<<< flags = 0x80
<<<<<< service = “ctl”
<<<<<< client = 0
<<<<<< QMI:
<<<<<< flags = “response”
<<<<<< transaction = 1
<<<<<< tlv_length = 7
<<<<<< message = “Internal Proxy Open” (0xFF00)
<<<<<< TLV:
<<<<<< type = “Result” (0x02)
<<<<<< length = 4
<<<<<< value = 00:00:00:00
<<<<<< translated = SUCCESS

[03 May 2024, 10:29:16] [Debug] QMI Device at ‘/dev/cdc-wdm1’ ready
[03 May 2024, 10:29:16] [Debug] Reusing CID ‘3’
[03 May 2024, 10:29:16] [Debug] [/dev/cdc-wdm1] assuming service ‘loc’ is supported…
[03 May 2024, 10:29:16] [Debug] [/dev/cdc-wdm1] reusing client CID ‘3’…
[03 May 2024, 10:29:16] [Debug] [/dev/cdc-wdm1] registered ‘loc’ (version unknown) client with ID ‘3’
[03 May 2024, 10:29:16] [Debug] [/dev/cdc-wdm1] sent message…
<<<<<< RAW:
<<<<<< length = 24
<<<<<< data = 01:17:00:00:10:03:00:01:00:21:00:0B…

[03 May 2024, 10:29:16] [Debug] [/dev/cdc-wdm1] sent generic request (translated)…
<<<<<< QMUX:
<<<<<< length = 23
<<<<<< flags = 0x00
<<<<<< service = “loc”
<<<<<< client = 3
<<<<<< QMI:
<<<<<< flags = “none”
<<<<<< transaction = 1
<<<<<< tlv_length = 11
<<<<<< message = “Register Events” (0x0021)
<<<<<< TLV:
<<<<<< type = “Event Registration Mask” (0x01)
<<<<<< length = 8
<<<<<< value = 01:00:00:00:00:00:00:00
<<<<<< translated = position-report

[03 May 2024, 10:29:16] [Debug] [/dev/cdc-wdm1] received message…
<<<<<< RAW:
<<<<<< length = 20
<<<<<< data = 01:13:00:80:10:03:02:01:00:21:00:07…

[03 May 2024, 10:29:16] [Debug] [/dev/cdc-wdm1] received generic response (translated)…
<<<<<< QMUX:
<<<<<< length = 19
<<<<<< flags = 0x80
<<<<<< service = “loc”
<<<<<< client = 3
<<<<<< QMI:
<<<<<< flags = “response”
<<<<<< transaction = 1
<<<<<< tlv_length = 7
<<<<<< message = “Register Events” (0x0021)
<<<<<< TLV:
<<<<<< type = “Result” (0x02)
<<<<<< length = 4
<<<<<< value = 01:00:30:00
<<<<<< translated = FAILURE: InvalidArgument

[03 May 2024, 10:29:16] [Debug] [/dev/cdc-wdm1] releasing ‘loc’ client with flags ‘release-cid’…
[03 May 2024, 10:29:16] [Debug] [/dev/cdc-wdm1] unregistered ‘loc’ client with ID ‘3’
[03 May 2024, 10:29:16] [Debug] [/dev/cdc-wdm1] sent message…
<<<<<< RAW:
<<<<<< length = 17
<<<<<< data = 01:10:00:00:00:00:00:02:23:00:05:00…

[03 May 2024, 10:29:16] [Debug] [/dev/cdc-wdm1] sent generic request (translated)…
<<<<<< QMUX:
<<<<<< length = 16
<<<<<< flags = 0x00
<<<<<< service = “ctl”
<<<<<< client = 0
<<<<<< QMI:
<<<<<< flags = “none”
<<<<<< transaction = 2
<<<<<< tlv_length = 5
<<<<<< message = “Release CID” (0x0023)
<<<<<< TLV:
<<<<<< type = “Release Info” (0x01)
<<<<<< length = 2
<<<<<< value = 10:03
<<<<<< translated = [ service = ‘loc’ cid = ‘3’ ]

[03 May 2024, 10:29:16] [Debug] [/dev/cdc-wdm1] received message…
<<<<<< RAW:
<<<<<< length = 24
<<<<<< data = 01:17:00:80:00:00:01:02:23:00:0C:00…

[03 May 2024, 10:29:16] [Debug] [/dev/cdc-wdm1] received generic response (translated)…
<<<<<< QMUX:
<<<<<< length = 23
<<<<<< flags = 0x80
<<<<<< service = “ctl”
<<<<<< client = 0
<<<<<< QMI:
<<<<<< flags = “response”
<<<<<< transaction = 2
<<<<<< tlv_length = 12
<<<<<< message = “Release CID” (0x0023)
<<<<<< TLV:
<<<<<< type = “Result” (0x02)
<<<<<< length = 4
<<<<<< value = 00:00:00:00
<<<<<< translated = SUCCESS
<<<<<< TLV:
<<<<<< type = “Release Info” (0x01)
<<<<<< length = 2
<<<<<< value = 10:03
<<<<<< translated = [ service = ‘loc’ cid = ‘3’ ]

[03 May 2024, 10:29:16] [Debug] Client released
[03 May 2024, 10:29:16] [Debug] Closed

The commands are correct but you have to give time for the fix : error 516 Not fixed now.If you have a good gnss antenna plugged correcly and the modem is outside; ANT1 is for L5 (1176.45 MHz) and ANT3 is for L1 (1575.42 MHz)
https://forums.quectel.com/uploads/short-url/1zkjPRnxF5BZ2woox386baCZx4g.pdf
520_ant

Thanks @bamarcant Will get new/better Antennas to try.

Please just use AT to test.

AT+QGPS=1

and then open the /dev/ttyUSB1

Hi Bean,

Thanks for your reply. I have done as mentioned but it didn’t seem to work. We have ordered another eval board as the hardware seems to be the issue.

Can you see any nmea logs from the uart port?

Nothing shown on nmea logs. Walked through with a Quectel FAE and could not get nmea regardless of tries and concluded could be a hardware issue. Thanks

Bad news.
This is a rare occurrence. Quectel FAE Remote check?
You can also try AT+QGPSPOWER=1

Is there an endc combo for the rm505 and rm510?

Hi, not sure what is the question

List of ENDC combinations
excel