3/19/2019
Wio Tracker - GPS, BT3.0, GSM, Arduino Compatible - Seeed Wiki
http://wiki.seeedstudio.com/wio_gps_board/
14/20
The following code shows how to use Grove UART port:
[https://www.seeedstudio.com/USB-To-Uart-5V%263V3-p-
to read the Grove UART port data.
GNSS
MC20 module provides the AT Commands Set for MCU to communicate with its
GSM/GPRS, GNSS and Bluetooth modules.
And we have installed a well written library for the Wio GPS, for simple applications
you even don't need to know much about how to use the AT commands, which is
complex and hard to read.
The following example shows how to read longitude and latitude and print them out
in Serial Monitor. Please note that Wio Tracker should be placed outdoor to get GPS
23
24
delay(
500
);
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#define GrovePowerPin 12
void
setup
() {
pinMode(GrovePowerPin, OUTPUT);
digitalWrite(GrovePowerPin, HIGH);
//power Grove
//SerialUSB.begin(115200);
SerialDBG.begin(
115200
);
//set Grove UART baud rate 115200
}
void
loop
() {
//SerialUSB.println("Grove UART is sending message");
SerialDBG.println(
"This is Grove UART"
);
delay(
1000
);
}
Warning
If both SerialUSB and SerialDBG are used in the code, please open SerialUSB's com port when
using, otherwise SerialDBG will not work.