获取GPS信息
功能表:getSupportUpdateGps
Flutter示例:
/// 获取gps信息事件号
getGpsInfo(
evtBase: _VBusEvtBase.base_app_get,
evtType: _VBusEvtType.app_get_gps_info),
/// 获取gps信息
libManager.send(evt: CmdEvtType.getGpsInfo, json: jsonEncode(json));
App收到的json字段:
| 字段名 | 字段类型 | 字段说明 |
|---|---|---|
| err_code | int | GPS是否错误 0正常 非0异常 |
| fw_version | int | GPS固件版本 |
| agps_info | int | AGPS有效期 |
| agps_err_code | int | AGPS错误值 |
| utc_year | int | utc时间 年 |
| utc_month | int | utc时间 月 |
| utc_day | int | utc时间 日 |
| utc_hour | int | utc时间 时 |
| utc_minute | int | utc时间 分 |
| start_mode | int | 启动模式 1 冷启动 2 热启动 |
| gns | int | 定位星选择 1 GPS 2 GLONASS 3 GPS + GLONASS |
| fix_start_bit | int | 修正标识位 默认0 用于调试 |
示例:
{
"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
}