This example establishes a transparent link between the mbed serial port and the gps I2C 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. m-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
Fork of C027_GPSTransparentSerial by
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
Revision 6:5a8fd99e6a09, committed 2014-06-12
- Comitter:
- mazgch
- Date:
- Thu Jun 12 07:29:34 2014 +0000
- Parent:
- 5:598a573e3ad3
- Commit message:
- update libraries (use api provided by the platform)
Changed in this revision
diff -r 598a573e3ad3 -r 5a8fd99e6a09 C027.lib --- a/C027.lib Thu Nov 21 14:12:14 2013 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -http://mbed.org/teams/ublox/code/C027/#fb30e9923a7b
diff -r 598a573e3ad3 -r 5a8fd99e6a09 main.cpp --- a/main.cpp Thu Nov 21 14:12:14 2013 +0000 +++ b/main.cpp Thu Jun 12 07:29:34 2014 +0000 @@ -1,12 +1,26 @@ #include "mbed.h" -#include "C027.h" +#ifdef TARGET_UBLOX_C027 + #include "C027_api.h" +#else + #error "This example is targeted for the C027 platform" +#endif +/* This example is establishing a transparent link between + the mbed serial port and the I2C communication interface + of the GPS. + + For a more advanced driver for the GPS or Modem(MDM) please + look at the follwing library and example: + C027_Support Library + http://mbed.org/teams/ublox/code/C027_Support/ + C027_Support Example + http://mbed.org/teams/ublox/code/C027_SupportTest/ +*/ int main() { Timer tmr; tmr.start(); - C027 c027; - c027.gpsPower(true); + c027_gps_powerOn(); // open the gps i2c port I2C gps(GPSSDA, GPSSCL);
diff -r 598a573e3ad3 -r 5a8fd99e6a09 mbed.bld --- a/mbed.bld Thu Nov 21 14:12:14 2013 +0000 +++ b/mbed.bld Thu Jun 12 07:29:34 2014 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/mbed_official/code/mbed/builds/a9913a65894f \ No newline at end of file +http://mbed.org/users/mbed_official/code/mbed/builds/024bf7f99721 \ No newline at end of file