How to get GPS data from EC200u-cn

Hello Everyone,
I am working on EC200U-cn with STM32H503 nucleo board. With help of UART communication I have done basic HTTP(S) operations but now I am not unable to get GPS data maybe, I am doing something wrong so please correct me.

I thought the AT command synchronization is getting wrong, is there any way to make it right?
Following are the AT commands I have using to fetch GPS data
{“AT command”, delay}
{“AT+QGPSEND”,1000}, // First end any existing GPS session
{“AT+QGPS=1,30,5,0,1”,20000}, // Start GPS with parameters
{“AT+QGPSLOC=1”,20000}, // Get location in NMEA format
{“AT+QHTTPURL=85,60”, 1000},
{“placeholder_for_url”, 1000}, //dynamic URL
{“AT+QHTTPPOST=1,60,60”, 100}, // POST request
{“*”, 1000} //POST Data

Note: I have already checked the GPS on putty it is working fine there but when I trying to implement on STM32 it shows issue of “No valid data”.

Thanks;

Please send the AT command to power up the GNSS.
AT+QGPSPOWER=1

Hi,

I have a same problem too. I can’t to get location from EC200U. I have active antenna , Used preferred power supply and circuit also and i was waited more than 15 min in a open sky area But i can’t to get location data. Can you check anything i need to config or upgrade firmware.

Hardware part No: EC200UCNAA-NO5-SGNSA

Thanks,

[2025-06-17_15:25:42:382]ATI

[2025-06-17_15:25:42:382]Quectel
[2025-06-17_15:25:42:382]EC200U
[2025-06-17_15:25:42:397]Revision: EC200UCNAAR02A10M08

[2025-06-17_15:25:42:397]OK
[2025-06-17_15:25:45:369]AT+QGPSCFG="gnssnmeatype",1

[2025-06-17_15:25:45:369]OK
[2025-06-17_15:25:47:351]AT+QGPS=1,30,50,0,1

[2025-06-17_15:25:47:396]OK
[2025-06-17_15:25:48:657]AT+QGPSPOWER=1

[2025-06-17_15:25:48:657]OK
[2025-06-17_15:25:50:038]AT+QGPSCFG="nmeasrc",1

[2025-06-17_15:25:50:038]OK
[2025-06-17_15:25:56:512]AT+QGPSINFO

[2025-06-17_15:25:56:512]+QGPSINFO: N/A,G1B1,VN/A,R3.2.10.12Build8053,N/A,N/A

[2025-06-17_15:25:56:512]OK
[2025-06-17_15:26:04:263]AT+QGPSLOC=0

[2025-06-17_15:26:04:263]+CMS ERROR: 516
[2025-06-17_15:26:05:753]AT+QGPSLOC=1

[2025-06-17_15:26:05:753]+CMS ERROR: 516
[2025-06-17_15:26:06:629]AT+QGPSLOC=2

[2025-06-17_15:26:06:629]+CMS ERROR: 516
[2025-06-17_15:26:08:488]AT+QGPSGNMEA="GSV"

[2025-06-17_15:26:08:488]+QGPSGNMEA: $GPGSV,1,1,00,0*65

[2025-06-17_15:26:08:488]OK
[2025-06-17_15:26:09:445]AT+QGPSGNMEA="GGA"

[2025-06-17_15:26:09:445]+QGPSGNMEA: $GNGGA,,,,,,0,00,99.99,,,,,,*56

[2025-06-17_15:26:09:445]OK

Maybe you can try a passive antenna.

Hi,

I found the problem, After i change the Antenna connector it was worked and i got location.

[2025-07-25_16:03:18:626]$GNGGA,103318.00,1103.3038,N,07656.7797,E,1,07,1.32,353.8,M,,M,,*59
[2025-07-25_16:03:18:642]$GPGSV,2,1,07,01,14,317,40,02,37,298,29,26,36,161,27,28,60,019,30,0*6F
[2025-07-25_16:03:18:642]$GPGSV,2,2,07,32,26,027,40,25,09,060,25,195,,,28,0*5E
[2025-07-25_16:03:19:652]$GNGGA,103319.00,1103.3038,N,07656.7797,E,1,07,1.32,353.4,M,,M,,*54
[2025-07-25_16:03:19:652]$GPGSV,2,1,07,01,14,317,40,02,37,298,30,26,36,161,27,28,60,019,31,0*66
[2025-07-25_16:03:19:652]$GPGSV,2,2,07,32,26,027,40,25,09,060,25,195,,,27,0*51
[2025-07-25_16:03:20:322]AT+QGPSCFG="outport","usbnmea"

[2025-07-25_16:03:20:322]OK
[2025-07-25_16:03:23:838]AT+QGPSLOC=0

[2025-07-25_16:03:23:838]+QGPSLOC: 103323.000,1103.3035N,07656.7796E,1.1,353.6,3,000.00,0.4,0.2,250725,07

[2025-07-25_16:03:23:838]OK
[2025-07-25_16:04:45:440]AT+QGPSLOC=0

[2025-07-25_16:04:45:440]+QGPSLOC: 103444.000,1103.3084N,07656.7787E,1.0,364.3,3,000.00,0.5,0.3,250725,09

[2025-07-25_16:04:45:440]OK
[2025-07-25_16:09:40:831]AT+QGPSLOC=1

[2025-07-25_16:09:40:831]+QGPSLOC: 103940.000,1103.305397,N,07656.779633,E,1.0,362.1,3,000.00,0.8,0.4,250725,12

[2025-07-25_16:09:40:831]OK
[2025-07-25_16:09:45:634]AT+QGPSLOC=2

[2025-07-25_16:09:45:634]+QGPSLOC: 103944.000,11.05509,76.94633,0.8,362.8,3,000.00,0.4,0.2,250725,12

[2025-07-25_16:09:45:634]OK
[2025-07-25_16:11:41:699]AT+QGPSLOC=0

[2025-07-25_16:11:41:699]+QGPSLOC: 104141.000,1103.3045N,07656.7787E,0.9,367.1,3,000.00,0.0,0.0,250725,13

[2025-07-25_16:11:41:699]OK
[2025-07-25_16:11:46:498]AT+QGPSLOC=1

[2025-07-25_16:11:46:498]+QGPSLOC: 104145.000,1103.304482,N,07656.779175,E,0.9,366.9,3,000.00,0.0,0.0,250725,13

[2025-07-25_16:11:46:498]OK
[2025-07-25_16:11:47:200]AT+QGPSLOC=2

[2025-07-25_16:11:47:200]+QGPSLOC: 104146.000,11.05507,76.94632,0.9,366.7,3,000.00,0.0,0.0,250725,13

[2025-07-25_16:11:47:200]OK

For some module it only support passive antenna.

Hi Udhayakumar_mani,

can i get the At commands sequenece you have used as i won’t able to fix GPS also please tell me you are using active or passive antenna.

Hi @Tradewithbv,

I am using active GPS antenna.

[2025-07-25_16:14:40:569]AT+CFUN=1,1

[2025-07-25_16:14:40:569]OK
[2025-07-25_16:14:45:436]
[2025-07-25_16:14:45:436]RDY

[2025-07-25_16:14:45:436]+CFUN: 1

[2025-07-25_16:14:45:436]+CPIN: READY

[2025-07-25_16:14:45:436]+QUSIM: 1
[2025-07-25_16:14:48:579]
[2025-07-25_16:14:48:579]+QIND: SMS DONE
[2025-07-25_16:14:50:403]ATI

[2025-07-25_16:14:50:403]Quectel
[2025-07-25_16:14:50:403]EC200U
[2025-07-25_16:14:50:403]Revision: EC200UCNAAR02A10M08

[2025-07-25_16:14:50:403]OK
[2025-07-25_16:15:01:626]AT+QGPSCFG="autogps"

[2025-07-25_16:15:01:626]+QGPSCFG: "autogps",1

[2025-07-25_16:15:01:626]OK
[2025-07-25_16:15:07:926]
[2025-07-25_16:15:07:926]+QIND: PB DONE
[2025-07-25_16:15:08:595]AT+QGPSCFG="gnssnmeatype"

[2025-07-25_16:15:08:611]+QGPSCFG: "gnssnmeatype",1

[2025-07-25_16:15:08:611]OK
[2025-07-25_16:15:28:857]AT+QGPSINFO

[2025-07-25_16:15:28:857]+QGPSINFO: N/A,G1B1,VN/A,R3.2.10.12Build8053,N/A,N/A

[2025-07-25_16:15:28:857]OK
[2025-07-25_16:16:01:057]AT+QGPSLOC=2

[2025-07-25_16:16:01:057]+QGPSLOC: 104600.000,11.05502,76.94630,1.6,367.2,3,000.00,0.0,0.0,250725,06

[2025-07-25_16:16:01:057]OK
[2025-07-25_16:16:49:236]ATI

[2025-07-25_16:16:49:236]Quectel
[2025-07-25_16:16:49:236]EC200U
[2025-07-25_16:16:49:236]Revision: EC200UCNAAR02A10M08

[2025-07-25_16:16:49:236]OK
[2025-07-25_16:16:59:093]AT+QGPSLOC=0

[2025-07-25_16:16:59:093]+QGPSLOC: 104658.000,1103.3044N,07656.7787E,1.2,363.7,3,000.00,0.9,0.5,250725,08

[2025-07-25_16:16:59:093]OK

[2025-07-25_16:17:08:935]AT+QGPSLOC=0

[2025-07-25_16:17:08:935]+QGPSLOC: 104708.000,1103.3051N,07656.7792E,1.2,362.0,3,000.00,0.8,0.4,250725,08

[2025-07-25_16:17:08:935]OK
[2025-07-25_16:17:10:114]AT+QGPSLOC=1

[2025-07-25_16:17:10:114]+QGPSLOC: 104709.000,1103.304882,N,07656.779175,E,1.2,362.0,3,000.00,2.9,1.6,250725,08

[2025-07-25_16:17:10:114]OK
[2025-07-25_16:17:11:475]AT+QGPSLOC=2

[2025-07-25_16:17:11:475]+QGPSLOC: 104710.000,11.05508,76.94633,1.2,361.7,3,000.00,1.6,0.9,250725,08

[2025-07-25_16:17:11:475]OK

Hi @UdhayaKumar_Mani,

Thankyou for your response.