This class provides an API to communicate with a u-blox GNSS chip. The files here were originally part of the C027_Support library (https://developer.mbed.org/teams/ublox/code/C027_Support/ at revision 138:dafbbf31bf76) but have been separated out, primarily for use on the u-blox C030 board where the cellular interace portion of the C027_Support library will instead be provided through the new mbed Cellular API.
Dependents: example-ublox-at-cellular-interface-ext example-low-power-sleep example-C030-out-of-box-demo example-C030-out-of-box-demo ... more
Revision 25:f538f1dc4121, committed 2018-11-09
- Comitter:
- fahim.alavi@u-blox.com
- Date:
- Fri Nov 09 15:00:05 2018 +0500
- Parent:
- 22:d8cd4cf0fcc0
- Child:
- 26:2876ec28d223
- Commit message:
- NAV-SAT should be at 1Hz, cold start need to be added
Changed in this revision
--- a/gnss.cpp Tue Oct 16 16:09:41 2018 +0500 +++ b/gnss.cpp Fri Nov 09 15:00:05 2018 +0500 @@ -292,7 +292,7 @@ int GnssParser::enable_ubx() { - unsigned char ubx_cfg_prt[]={0x01, 0x00, 0x00, 0x00, 0xD0, 0x08, 0x00, 0x00, 0x00, 0x84, 0x03, 0x00, 0x03, 0x00, 0x03, 0x00, 0x00, 0x00,0x00, 0x00}; + unsigned char ubx_cfg_prt[]={0x01, 0x00, 0x00, 0x00, 0xD0, 0x08, 0x00, 0x00, 0x00, 0x84, 0x03, 0x00, 0x01, 0x00, 0x01, 0x00, 0x00, 0x00,0x00, 0x00}; int conf = RETRY; int length = 0;
--- a/gnss_operations.cpp Tue Oct 16 16:09:41 2018 +0500 +++ b/gnss_operations.cpp Fri Nov 09 15:00:05 2018 +0500 @@ -76,15 +76,15 @@ int GnssOperations::enable_ubx_nav_sat() { int conf = RETRY; - unsigned char enable_ubx_nav_status[]={0x01, 0x35, 0x0A}; + unsigned char enable_ubx_nav_sat[]={0x01, 0x35, 0x01}; conf = RETRY; int length =0; while(conf) { - length = GnssSerial::sendUbx(0x06, 0x01, enable_ubx_nav_status, sizeof(enable_ubx_nav_status)); - if(length >= (int)(sizeof(enable_ubx_nav_status) + UBX_FRAME_SIZE)) + length = GnssSerial::sendUbx(0x06, 0x01, enable_ubx_nav_sat, sizeof(enable_ubx_nav_sat)); + if(length >= (int)(sizeof(enable_ubx_nav_sat) + UBX_FRAME_SIZE)) { SEND_LOGGING_MESSAGE("UBX-NAV-STATUS was enabled\r\n"); wait(1);
--- a/gnss_operations.h Tue Oct 16 16:09:41 2018 +0500 +++ b/gnss_operations.h Fri Nov 09 15:00:05 2018 +0500 @@ -21,9 +21,9 @@ */ enum Start{ HOT, + COLD, WARM, - COLD, - AMOUNT_MODE + MAX_MODE }; /** The operation modes