Get GPS Information
Function Table: getSupportUpdateGps
Flutter Example:
/// Get GPS Information event number
getGpsInfo(
evtBase: _VBusEvtBase.base_app_get,
evtType: _VBusEvtType.app_get_gps_info),
/// Get GPS Information
libManager.send(evt: CmdEvtType.getGpsInfo, json: jsonEncode(json));
JSON Fields Received by the App:
| Field Name | Field Type | Description |
|---|---|---|
| err_code | int | GPS error code 0 - Normal, non-zero - Exceptional |
| fw_version | int | GPS firmware version |
| agps_info | int | Validity period of AGPS (Assisted GPS) |
| agps_err_code | int | AGPS error code |
| utc_year | int | UTC year |
| utc_month | int | UTC month |
| utc_day | int | UTC day |
| utc_hour | int | UTC hour |
| utc_minute | int | UTC minute |
| start_mode | int | Start mode 1 - Cold start 2 - Hot start |
| gns | int | Positioning satellite selection 1 - GPS 2 - GLONASS 3 - GPS + GLONASS |
| fix_start_bit | int | Fix start bit Default 0, used for debugging |
Example:
{
"err_code": 0,
"fw_version": 512,
"agps_info": 0,
"agps_err_code": 0,
"utc_year": 0,
"utc_month": 0,
"utc_day": 0,
"utc_hour": 0,
"utc_minute": 0,
"start_mode": 2,
"gns": 0,
"fix_start_bit": 0
}