This example establishes a transparent link between the mbed seial port and the gps on the C027. You can use it to use the standard u-blox tools such as u-center. These tools can then connect to the serial port and talk directly to the GPS receiver. Baudrate should be set to 9600 baud and is fixed. u-center can be downloaded from u-blox website following this link: http://www.u-blox.com/en/evaluation-tools-a-software/u-center/u-center.html
Dependencies: mbed
Install mbed Windows Drivers
Make sure you installed the drivers on your windows PC to get the virtual serial port. A installation guideline and the drivers can be found in the following wiki page. /handbook/Windows-serial-configuration
Diff: main.cpp
- Revision:
- 1:0d32baf4a645
- Parent:
- 0:7f124c0a351a
- Child:
- 2:490b4b087576
--- a/main.cpp Tue Oct 22 21:21:46 2013 +0000 +++ b/main.cpp Fri Oct 25 20:36:35 2013 +0000 @@ -1,8 +1,11 @@ #include "mbed.h" -#include "C027_PinNames.h" +#include "C027.h" int main() { + C027 c027; + c027.gpsPower(true); + // open the gps serial port Serial gps(GPSTXD, GPSRXD); gps.baud(GPSBAUD);