WisLink-Cellular RAK2011
V 1.0 | Aug. 2018
Author:
Gan, Penn
Approval:
Ken Yu
27
of
28
4.1.4
GPS Function Test
1. Plug in the module GPS antenna.
2. Select Quectel USB AT Port corresponding to the COM port.
3. Open the serial port tools.
4. Send the commands listed below to control the module's GPS capabilities. (For detailed GPS command
description, please refer to: Quectel BG96 GNSS AT Commands Manual)
AT+QGPS=1
// Turn on GNSS
AT+QGPSLOC?
// Acquire Positioning Information
AT+QGPSEND
// Turn off GNSS
4.2 User Arduino Header Interface
BG96 LPWA IoT Cellular Arduino Shield also supports Arduino headers as defined by Arduino UNO R3. Please
refer to the BG96 LPWA IoT Cellular Arduino Shield Arduino Header pin definition in the previous section.
Here is a test communication program to verify communication between an Arduino MCU base board and BG96
LPWA IoT Cellular Arduino Shield. Arduino library for BG96 LPWA IoT Cellular Arduino Shield will be provided later.
void setup()
{
// put your setup code here, to run once:
Serial.begin(115200);
while (!Serial)
{
;
// wait for serial port to connect. Needed for native USB port only
}
void loop()
{
// put your main code here, to run repeatedly:
if (Serial.available())
{
Serial.write(Serial.read());
}
}