Skip to content
mlidia edited this page Sep 28, 2018 · 1 revision

Requirements:

  • UC20/EC21 Mini PCIE Quectel module
  • Ubuntu OS

SW Requirements:

apt-get install build-essential libgps-dev gpsd screen

systemctl disable gpsd

systemctl stop gpsd

Overview:

Quectel drivers map different ttyUSBx.

For GPS:

/dev/ttyUSB2 => To send GPS AT Commands

/dev/ttyUSB1 => To retrive standard NMEA messages after ttyUSB2 initialization

Initilalize board on boot:

echo -e "AT+QGPSCFG=\"outport\",\"usbnmea\" \r\n" > /dev/ttyUSB2  
echo -e "AT+QGPSCFG=\"nmeasrc\",1 \r\n" > /dev/ttyUSB2
echo -e "AT+QGPSCFG=\"gpsnmeatype\",1 \r\n" > /dev/ttyUSB2
echo -e "AT+QGPSCFG=\"glonassnmeatype\",4 \r\n" > /dev/ttyUSB2
echo -e "AT+QGPSCFG=\"glonassenable\",0 \r\n" > /dev/ttyUSB2
echo -e "AT+QGPSCFG=\"odpcontrol\",0 \r\n" > /dev/ttyUSB2
echo -e "AT+QGPSCFG=\"dpoenable\",0 \r\n" > /dev/ttyUSB2
echo -e "AT+QGPS=1 \r\n" > /dev/ttyUSB2

To test the configuration run:

screen /dev/ttyUSB2

and write:

AT+QGPSLOC?

then press ENTER, you should get the position data.

A 516 error code means that position is not avaiable yet, you may need to wait up to 15minutes for first time configuration. Check GNSS AT command manual from Quectel.

Do CTRL+A then CTRL+D to exit