QRP Labs QLG2 Manuel utilisateur

QLG2
GPS/GNSS
Receiver
This manual is for the QLG2 GPS/GNSS Receiver module
Firmware version 1_ .QG2, 1_ a.QG2 and 1_ b.QG2
Contents
1. Introducon....................................................................................................................................................2
2. Geng to know your QLG2............................................................................................................................2
3. Assembly.........................................................................................................................................................5
3.1 Assembly for bas c operaon....................................................................................................................5
3.2 Use w th QCX, U3S, Clock, VFO, ProgRock etc. k ts...................................................................................6
3.3 USB connector..........................................................................................................................................6
3.4 USB to Ser al converter.............................................................................................................................7
3.5 Power ng the board from the USB port..................................................................................................10
3.6 Status LEDs.............................................................................................................................................11
3.7 F ng an ultracap (a.k.a. supercap)........................................................................................................12
3.8 6-p n nterface header............................................................................................................................13
3.9 Jumper w re con;guraon......................................................................................................................14
3.10 Interface con;guraon.........................................................................................................................14
3.11 M crocontroller con;guraon...............................................................................................................16
3.12 Connecng an LCD module...................................................................................................................17
3.13 QLG2 Commands..................................................................................................................................19
4. F rmware update procedure.........................................................................................................................20
5. C rcu t d agram (schemac) and descr pon................................................................................................23
6. Tesng..........................................................................................................................................................26
7. Acknowledgments........................................................................................................................................27
8. Resources.....................................................................................................................................................27
9. Document Rev s on h story...........................................................................................................................27
QLG2 manual for ;rmware 1.00a 1

1. Introduction
The QLG2 GNSS (Global Navigation Satellite System) receiver module is an upgrade over
the former QLG1 ith higher performance and highly flexible features:
•Multi GNSS satellite constellation receiver supports GPS (US), Galileo (Europe),
GLONASS (Russia) and Beidou (Chinese) - (default GPS + Beidou) - giving a faster
more accurate position fix – Module is E108-GN01 (GK9501 GNSS chip set)
•Serial to USB converter, using onboard USB B connector, for convenient interface to
PC soft are if required - no drivers required. Jumpers select either the GPS serial
data, or your o n externally connected serial data, for example you could use this as
a USB to Serial data converter for CAT control of QCX, QCX+ and QCX-mini
transceivers.
•Can optionally be connected to a standard 1602 LCD, in the same style as the
Ultimate3S, VFO and Clock kits, to GPS date, time and satellite information using
the onboard microcontroller.
•Supplied ith included magnetic-mount active antenna, approx 2m coax and SMA
connectors
•Supply voltage range 3.3 to 6V.
•Board 80 x 37mm (Same as, and compatible ith, Ultimate3S, VFO and Clock kits).
•Onboard LEDs for status indication: Red (Po er), Yello (Serial data) and Green
(PPS).
•2.8 to 5V logic level conversion to provide 5V serial data for full compatibility ith all
QRP Labs kits.
•Supports 2.8/3.3V logic OR 5V logic (jumper ire selected)
•SMD assembly already undertaken by factory facility - only SMA connector, and
optional USB B connector to solder.
•Space provided for optional ultra-capacitor for faster hot-start
All QLG2 GPS modules are comprehensively tested before shipment including:
•Active antenna ith 2m coax and SMA connector functions correctly
•Satellite reception and Time To First Fix is under 1 minute
•Serial data and 1pps outputs are correctly present
•USB to Serial data converter operates properly (vie serial data in PC terminal)
•Microcontroller firm are update procedure test
PLEASE READ THE BASIC ASSEMBLY AND USE
INSTRUCTIONS IN THIS MANUAL VERY CAREFULLY BEFORE
APPLYING POWER TO THE BOARD!
2. Getting to know your QLG2
There are only FOUR parts in the QLG2 kit:
1. 80 x 37mm PCB ith assembled SMD
2. Active antenna including 2m coaxial cable and SMA connector
3. SMA connector for installation on the PCB
4. USB-B type connector for optional installation on the PCB-mount
The parts list of the PCB is provided later in this manual in the circuit description section.
QLG2 manual for ;rmware 1.00a 2

Kit contents:
Know your QLG2:
QLG2 manual for ;rmware 1.00a 3

With reference to the above photograph, looking anti-clock ise from left:
•GNSS Module: The E108-GN01 GNSS receiver module, multi-satellite system
capable (GPS and Beidou enabled by default).
•Antenna SMA Connector (supplier): Can be board edge-mounted or at 90-degrees
standing up on the board (DO refer to important assembly instructions later).
•LED enable jumpers: these are ired by default, and connect the signals to the
onboard LEDs. If you anted to use external LEDs for example in a front panel, you
ould cut the tiny traces under these jumpers (see later section).
•Status LEDs:
◦Po er (RED): al ays lit
◦Serial Data (Yello ): flashes once per second in time ith the serial data burst
◦1 PPS (Blinding Green): flashes once per second hen a 3D satellite lock is
acquired
•External LED connect: Three LEDs may be connected here using ires if you prefer
external LEDs to the onboard SMD LEDs.
•6-pin interface: this provides six pads:
◦GND
◦GNSS 1pps
◦GNSS serial data
◦TxD serial data (for USB to Serial converter)
◦RxD serial data (for USB to Serial converter)
◦+5V
•Option Jumpers: configure ho the six serial port pads are connected, allo ing
either 2.8/3.3V logic or 5V logic levels
•USB (4 positions): a Type B USB connector is supplied, suitable for a standard USB
A – B cable. It can be installed either facing to the right side of the board, or facing
the bottom side of the board. Additionally there are pads for a micro-USB connector
if you should happen to prefer that.
•4-pin interface: pads for QCX, U3S etc: the standard QRP Labs 4-pin connector:
+5V, Gnd, Serial Data (TxD) and 1PPS
•LCD Contrast trimmer: When installing the optional 1602 alphanumeric LCD module,
a 22K trimmer potentiometer is fitted here to permit contrast adjustment
•Config jumpers: these are read by the microcontroller at po er-up, and determine
configuration options such as baud rate; they can also be used to enter the
bootloader (firm are update) mode
•LCD Port: The pinout is in the exact same position as on the QRP Labs Ultimate3S,
Clock or VFO kits; a standard 1602 alphanumeric LCD module can be bolted onto
the board here, using 16-pin male/female pin header connectors, 12mm plastic hex
spacers and eight M3 6mm plastic scre s (as on the aforementioned QRP Labs
kits).
•Space for Ultracap: 5mm-spaced pads suitable for installation of an Ultracap for
ephemeris backup purposes; this provides faster hot-start.
The board size is 80 x 37mm, and the holes in the four corners are at exactly the same
positions as on the Ultimate3S, Clock and VFO kits; therefore the board can be stack-
mounted behind these kits on suitable spacers (12 or 25mm).
These features ill be described in more detail in subsequent sections.
QLG2 manual for ;rmware 1.00a 4

Compatibility
Straight out of the box, if you simply install the coaxial connector and plug in the antenna,
the QLG2 is back ardly compatible by default ith the former QLG1 kit. It is therefore
directly compatible ith all other QRP Labs kits:
•QCX-series CW transceivers (QCX, QCX+ and QCX-mini)
•Ultimate3S (and preceding kits in the Ultimate- series)
•Clock kit
•VFO/Signal generator kit
•ProgRock kit
3. Assembly
3.1 Assembly for basic operation
Assembly of this kit is EXTREMELY straightfor ard; at the minimum, you need only solder
in the SMA connector. This can be installed horizontally or vertically (belo left and right,
respectively), to suit your particular application.
Vertical installation: IMPORTANT! The body of the SMA
connector WILL DEFINITELY short to the center pad of the
component footprint on the board. This ill not only short out
the antenna, rendering it completely ineffective, it ill also dra
high current from the GNSS module through the 10-ohm
resistor R2. You ill soon note the temperature rise of the
GNSS module as ell as the 3.3V voltage regulator chip (you
don’t need to ask me ho I kno ...).
Therefore it is essential to create a little gap between the
body of the SMA connector and the board.
The best ay to do this is via small piece of paper. It’s a simple,
cheap and effective solution.
Cut a small piece of paper as sho n (above right), place it on
the board and push the center pin of the SMA connector
through the paper.
Solder the SMA connector in place as usual. Don’t overdo the
heat and burn the paper.
QLG2 manual for ;rmware 1.00a 5

Horizontal installation: The SMA connector happens to fit the board nicely too in the
horizontal, edge-mounted position. Place it ith the center pin on the top side of the board,
and t o of the corner pins on the bottom side, and solder in place. The other t o ground
pins can be ignored. This orks very ell.
3.2 Use with QCX, U3S, Clock, VFO, ProgRock etc. kits
In this application, you need only plug in the antenna coax SMA
connector and the QLG2 is ready to use. It is entirely compatible
ith the former QLG1 kit and the 4- ay pin header pads at the
right side of the board can be used in the same ay as a QLG1
kit.
+5V po er can be supplied to the module via the +5V
connection if desired.
These signals are also available on the 6- ay pin header pads
at the bottom of the board edge. If you install the USB-B
connector in the position facing out from the right-hand edge of
the board, the body of the connector ill block access to the 4-pin header. In this case, if
you ish to connect to these 4 signals, you can do so at the 6-pin interface
NOTE: The 4-pin header “TXD” connection is not the same as the “TXD” connection on the
6-pin header at the bottom board edge. On the bottom edge connector (6-pin) the signals
named TXD and RXD are the microcontroller serial ports that access the USB to Serial
converter. On the 6-pin connector, the pin labeled “SER” on the PCB silkscreen, and
“GPS_TXD” on the schematic, is actually connected to the pin labeled “TXD” on the 4-pin
header.
3.3 USB connector
For all but the most basic use of the QLG2, you ill likely ish to install the USB B
connector (supplied) or if you prefer, a micro-USB connector (not supplied).
The USB connector is used for t o purposes:
1. To provide a USB to Serial converter, hich can be used either to stream the GNSS
NMEA serial data to the PC, or as a separate USB to Serial converter for other
purposes, for example, for providing CAT control to a QCX-series CW transceiver kit.
(This is described in a later section).
2. In bootloader mode, the USB connector enables the functionality of the QRP Labs
Firm are Update (QFU) procedure. (This is described in a later section).
In the diagram belo , you ill note that the supplied USB-B connector can be installed ith
its socket facing out from the bottom of side of the PCB, or from the right side. These are
coloured orange in the diagram. There are also pads provided for a micro-USB connector
(not supplied), again facing do n or to the right; these are coloured red in the diagram.
Which of these positions you choose to install the connector in, has no bearing on the
operation of the unit; it is only a matter for you to choose hatever ill be most suitable in
your enclosure or application.
QLG2 manual for ;rmware 1.00a 6

3.4 USB to Serial converter
The primary application of the microcontroller on the QLG2 board, is to provide a USB to
Serial converter.
The microcontroller is programmed to appear as a standard Virtual COM Port USB device
class, hich means that no additional drivers are required on any modern operating
system. The standard drivers are al ays already included. This greatly simplifies operating
the device. In comparison to some other Serial to USB converters hich end up in an
endless fight ith driver issues, QLG2 “just orks”.
There are many Terminal Emulator programs available for PCs. Personally I normally use
PuTTY, hich is available for both Windo s and Linux operating systems. But it does not
matter, any favourite Terminal Emulator ill ork fine. The Serial Monitor of the Arduino
IDE is another possibility hich I use sometimes.
On opening the Terminal Emulator you ill need to choose the USB Virtual COM port to
connect to; this is different depending on hether you are using Windo s or Linux.
1. On Linux, the QLG2 ill appear as /dev/ttyACM – or perhaps ACM1, ACM2 etc if
you already have similar devices connected to your system.
2. On Windo s, the QLG2 ill appear as a COM port for example, COM1, COM2 etc. I
don’t kno of any easy ay to find out hich COM port number Windo s has
assigned, except to open the device manager and look at the listed USB devices.
Note that it does not matter hat baud rate you select in the terminal emulator, since USB
does not run at any particular rate, and the baud rate of the QLG2 USB to Serial converter
is determined by jumpers on the board (see later section).
On connecting the terminal emulator, you ill see lots of text scroll by, in bursts once per
second; these are the NMEA sentences output by the QLG2’s GNSS module. By default,
the QLG2 jumpers are configured to route the GNSS module’s serial data to the
microcontroller’s USB to Serial port.
The follo ing screenshot sho s an example of hat it could look like.
QLG2 manual for ;rmware 1.00a 7

Using a Terminal Emulator for testing CAT on a QCX-series CW transceiver
Remember that in any serial communications operation of this type, the TxD (transmit)
output of the host controller, has to be connected to the RxD (receive) input of QCX;
correspondingly the RxD (receive) input of the host controller has to be connected to the
TxD (transmit) output of QCX. In other ords, you have to get your ires crossed –
correctly.
An important note is required here. QCX firm are requires that incoming CAT commands
are a rapid succession of characters arriving at 38400 baud. The permissible delay
bet een characters of a command is a fraction of a millisecond. You certainly cannot type
that fast. Even I can’t type that fast. Therefore, any text you type into a PuTTY (or most
other) terminal emulators ill not produce the desired result on the QCX since the QCX
firm are ill time hile out aiting for the next character. (Note that normal CAT host
programs do not have this issue, they send commands as a rapid burst of characters).
There are t o possible ays around this:
1. Type the command you ant to send to QCX, in another indo such as a text
editor of some sort; then copy-and-paste it into the Terminal Emulator indo . This
ill ensure that the hole text sentence is sent ith the characters in quick
succession, not leaving gaps here the QCX times out.
2. Use the Serial Monitor application inside the Arduino IDE – this also functions as a
very basic, very limited, Terminal Emulator – but it has the quirk (useful in this case)
that there is a separate box at the top of the indo here you type the text to be
sent, and it does not actually get sent until you hit return or click the “Send” button.
So again, this ensures that the text is all sent in one rapid lump, hich is acceptable
to the QCX.
An example screenshot of the Arduino Serial monitor is sho n belo , again sho ing the
NMEA sentences scrolling past.
QLG2 manual for ;rmware 1.00a 8

Using a Terminal Emulator for sending commands to the E1 8-GN 1 GNSS module
By default, the USB to Serial converter is connected to the GNSS receiver module. The
module accepts a variety of commands hich can be used, among other things, for:
•Changing the baud rate (default is 9600 baud)
•Changing hich NMEA sentences are output
•Enabling or disabling the various GNSS systems (GPS, Galileo, GLONASS and
Beidou)
You can type the command in full on the Terminal Emulator, and it ill be transferred to the
GNSS module by the QLG2 USB to Serial converter.
A common error is to not calculate the checksum properly; these are the last t o characters
of the command string. The actual command is prefixed by a $ and terminated by a *
follo ed by the t o checksum characters. All the ASCII byte codes of the command
bet een the $ initiator and * terminator, but not including the $ and the *, are logically
XOR’ed together, hich produces the checksum.
If this seems like too much of a headache, and actually it really IS too much of a headache,
then asking Google about “NMEA checksum calculator” ill find you lots of easy calculators
that do this for you. For example https://nmeachecksum.eqth.net/ .
QLG2 manual for ;rmware 1.00a 9

3.5 Powering the board from the USB port
In some applications, you may find it convenient to po er the QLG2 board from the USB
port.
In this case, simply solder a jumper ire across JP11 as sho n in the diagram belo .
Tip: I am in the habit of making my soldered jumper ires as a little loop, standing up about
5mm from the board surface; this is because even if I am 100% sure no , that this ill be a
permanent connection… all too often I find for hatever reason, I ill change my mind later.
To make it easier to remove, or to temporarily disable, a jumper ire – I just make a 5mm-
high loop rather than a ire laying near the PCB surface. The 5mm loop is a lot easier to
cut and if necessary, to remove, than a wire tight flat against the board surface.
If you already feel no that it ill not necessarily be a
permanent connection, then fit a 2- ay pin-header
and use a header jumper, as pictured (right).
No you might be thinking, “I have pin headers, but I
don’t have those fancy jumpers you used to find (and
maybe still do) on old PC Motherboards, and I don’t
fancy aiting for Amazon, eBay, hoever”… ell
never fear, for necessity is the Mother of invention – I
don’t have those fancy jumper plugs either, I just
improvise using female pin header connectors. Which
aren’t even the right right size (2- ay) but can be cut
to leave just t o pins… and then gently bend over the
t o pins to ards each other and solder in the middle
(see photo, right).
IMPORTANT: never connect the jumper to power
from USB, and at the same time supply +5V power
from some other source to the other connection
pads! NEVER, EVER!
QLG2 manual for ;rmware 1.00a 10
Table des matières
Autres manuels QRP Labs GPS




















