react-native-amap3d icon indicating copy to clipboard operation
react-native-amap3d copied to clipboard

定位回调的数据都是0

Open microCloudCode opened this issue 4 years ago • 6 comments

image

microCloudCode avatar Jul 07 '20 03:07 microCloudCode

看你 android studio 的 logcat,是否有什么错误信息,通常是因为没有获取定位权限或 appKey 的问题

qiuxiang avatar Jul 07 '20 16:07 qiuxiang

大佬:我也是同样的问题,权限和appKey感觉都没问题,logcat打印信息如下,请问是什么问题? 07-08 10:05:03.518: I/GpsLocationProvider(1461): SV count: 2 ephemerisMask: 0 almanacMask: 0 07-08 10:05:03.551: W/qti_sensors_hal(1461): timestampCalc: Adjusting timestamp for rollover: 5442125706540139, -23 07-08 10:05:03.594: W/qti_sensors_hal(1461): timestampCalc: Adjusting timestamp for rollover: 5442125709897072, -23 07-08 10:05:03.673: W/qti_sensors_hal(1461): timestampCalc: Adjusting timestamp for rollover: 5442125790738137, -23 07-08 10:05:03.731: E/HwCHRWifiRSSIGroupSummery(1461): updatArpSummery mRSSI:-65 HwCHRWifiRSSIGroup [rssi_index=4, rtt_tcp_packets=0, rtt_tcp_duration=0, rtt_lan_duration=934, rtt_lan_failures=0, rtt_lan_succ=9, rtt_lan_max=430, rtt_lan_min=13] 07-08 10:05:03.752: W/qti_sensors_hal(1461): timestampCalc: Adjusting timestamp for rollover: 5442125871640236, -23 07-08 10:05:03.753: W/qti_sensors_hal(1461): timestampCalc: Adjusting timestamp for rollover: 5442125907925637, -23 07-08 10:05:03.832: W/qti_sensors_hal(1461): timestampCalc: Adjusting timestamp for rollover: 5442125952542336, -23 07-08 10:05:03.917: W/qti_sensors_hal(1461): timestampCalc: Adjusting timestamp for rollover: 5442126033383400, -23 07-08 10:05:03.954: W/qti_sensors_hal(1461): timestampCalc: Adjusting timestamp for rollover: 5442126109372170, -23 07-08 10:05:03.997: W/qti_sensors_hal(1461): timestampCalc: Adjusting timestamp for rollover: 5442126114254982, -23 07-08 10:05:04.045: I/MSM-irqbalance(874): Decided to move IRQ5 from CPU2 [P:0] to CPU6 [P:1] (banned) 07-08 10:05:04.046: I/MSM-irqbalance(874): Decided to move IRQ5 from CPU3 [P:0] to CPU7 [P:1] (banned) 07-08 10:05:04.046: I/MSM-irqbalance(874): Decided to move IRQ3 from CPU3 [P:0] to CPU4 [P:1] (banned) 07-08 10:05:04.047: I/MSM-irqbalance(874): Decided to move IRQ5 from CPU0 [P:0] to CPU5 [P:1] (banned) 07-08 10:05:04.076: W/qti_sensors_hal(1461): timestampCalc: Adjusting timestamp for rollover: 5442126195096047, -23 07-08 10:05:04.080: E/Thermal-daemon(753): [Thermal_Hw] temperature_valid, battery : temperature is invalid, invalid temperatrue is 30 07-08 10:05:04.080: E/Thermal-daemon(753): [Thermal_Hw] temperature_filter: get invalid temperature, use old temp 07-08 10:05:04.121: I/TrafficMonitor(1461): update:rxPkts:0,txPkts:0,rxBytes:0,txBytes:0 07-08 10:05:04.121: I/TrafficMonitor(1461): start expired. level:-1 07-08 10:05:04.121: I/TrafficMonitor(1461): gettimer:interval=2000 07-08 10:05:04.155: W/qti_sensors_hal(1461): timestampCalc: Adjusting timestamp for rollover: 5442126275967629, -23 07-08 10:05:04.156: W/qti_sensors_hal(1461): timestampCalc: Adjusting timestamp for rollover: 5442126310757668, -23 07-08 10:05:04.240: W/qti_sensors_hal(1461): timestampCalc: Adjusting timestamp for rollover: 5442126356839211, -23 07-08 10:05:04.320: W/qti_sensors_hal(1461): timestampCalc: Adjusting timestamp for rollover: 5442126437710793, -23 07-08 10:05:04.357: W/qti_sensors_hal(1461): timestampCalc: Adjusting timestamp for rollover: 5442126512143166, -23 07-08 10:05:04.399: W/qti_sensors_hal(1461): timestampCalc: Adjusting timestamp for rollover: 5442126518582375, -23 07-08 10:05:04.465: I/System(32742): core_booster, getBoosterConfig = false 07-08 10:05:04.478: W/qti_sensors_hal(1461): timestampCalc: Adjusting timestamp for rollover: 5442126599453957, -23 07-08 10:05:04.517: E/LocSvc_ApiV02(1461): I/<--- void globalEventCb(locClientHandleType, uint32_t, locClientEventIndUnionType, void*) line 91 QMI_LOC_EVENT_GNSS_SV_INFO_IND_V02 07-08 10:05:04.518: E/LocSvc_ApiV02(1461): I/<--- void globalEventCb(locClientHandleType, uint32_t, locClientEventIndUnionType, void*) line 91 QMI_LOC_EVENT_POSITION_REPORT_IND_V02 07-08 10:05:04.518: E/LocSvc_libulp(1461): I/int ulp_brain_process_gnss_sv_report(const GnssSvStatus*), gnss sv report cnt = 3917, gnss pos report cnt = 0,strong sv cnt = 0 07-08 10:05:04.518: E/LocSvc_libulp(1461): I/int ulp_brain_process_gnss_position_report(loc_sess_status, LocPosTechMask, UlpLocation*, const GpsLocationExtended*, const void*), transition provider returned = 0 07-08 10:05:04.518: E/LocSvc_afw(1461): I/<=== sv_status_cb - line 1094 2 07-08 10:05:04.518: E/LocSvc_libulp(1461): I/int ulp_brain_process_gnss_position_report(loc_sess_status, LocPosTechMask, UlpLocation*, const GpsLocationExtended*, const void*), report GNSS position/status to hybrid fix requests = 0 07-08 10:05:04.518: I/GpsLocationProvider(1461): SV count: 2 ephemerisMask: 0 almanacMask: 0 07-08 10:05:04.558: W/qti_sensors_hal(1461): timestampCalc: Adjusting timestamp for rollover: 5442126713559182, -23 07-08 10:05:04.564: W/qti_sensors_hal(1461): timestampCalc: Adjusting timestamp for rollover: 5442126680325539, -23 07-08 10:05:04.643: W/qti_sensors_hal(1461): timestampCalc: Adjusting timestamp for rollover: 5442126761166603, -23 07-08 10:05:04.723: W/qti_sensors_hal(1461): timestampCalc: Adjusting timestamp for rollover: 5442126842007668, -23 07-08 10:05:04.760: W/qti_sensors_hal(1461): timestampCalc: Adjusting timestamp for rollover: 5442126914914162, -23 07-08 10:05:04.802: W/qti_sensors_hal(1461): timestampCalc: Adjusting timestamp for rollover: 5442126922818215, -23 07-08 10:05:04.887: W/qti_sensors_hal(1461): timestampCalc: Adjusting timestamp for rollover: 5442127003628762, -23 07-08 10:05:04.961: W/qti_sensors_hal(1461): timestampCalc: Adjusting timestamp for rollover: 5442127116177590, -23 07-08 10:05:04.967: W/qti_sensors_hal(1461): timestampCalc: Adjusting timestamp for rollover: 5442127084439308, -23 07-08 10:05:05.013: I/System(32742): core_booster, getBoosterConfig = false 07-08 10:05:05.046: W/qti_sensors_hal(1461): timestampCalc: Adjusting timestamp for rollover: 5442127165249855, -23 07-08 10:05:05.125: W/qti_sensors_hal(1461): timestampCalc: Adjusting timestamp for rollover: 5442127246029885, -23 07-08 10:05:05.162: W/qti_sensors_hal(1461): timestampCalc: Adjusting timestamp for rollover: 5442127317441017, -23 07-08 10:05:05.211: W/qti_sensors_hal(1461): timestampCalc: Adjusting timestamp for rollover: 5442127326840432, -23 07-08 10:05:05.290: W/qti_sensors_hal(1461): timestampCalc: Adjusting timestamp for rollover: 5442127407650978, -23 07-08 10:05:05.323: I/System(32742): core_booster, getBoosterConfig = false 07-08 10:05:05.364: W/qti_sensors_hal(1461): timestampCalc: Adjusting timestamp for rollover: 5442127518857033, -23 07-08 10:05:05.369: W/qti_sensors_hal(1461): timestampCalc: Adjusting timestamp for rollover: 5442127488492043, -23 07-08 10:05:05.448: W/qti_sensors_hal(1461): timestampCalc: Adjusting timestamp for rollover: 5442127569302590, -23 07-08 10:05:05.517: E/LocSvc_ApiV02(1461): I/<--- void globalEventCb(locClientHandleType, uint32_t, locClientEventIndUnionType, void*) line 91 QMI_LOC_EVENT_GNSS_SV_INFO_IND_V02 07-08 10:05:05.517: E/LocSvc_ApiV02(1461): I/<--- void globalEventCb(locClientHandleType, uint32_t, locClientEventIndUnionType, void*) line 91 QMI_LOC_EVENT_POSITION_REPORT_IND_V02 07-08 10:05:05.517: E/LocSvc_afw(1461): I/<=== sv_status_cb - line 1094 2 07-08 10:05:05.517: E/LocSvc_libulp(1461): I/int ulp_brain_process_gnss_sv_report(const GnssSvStatus*), gnss sv report cnt = 3918, gnss pos report cnt = 0,strong sv cnt = 0 07-08 10:05:05.518: E/LocSvc_libulp(1461): I/int ulp_brain_process_gnss_position_report(loc_sess_status, LocPosTechMask, UlpLocation*, const GpsLocationExtended*, const void*), transition provider returned = 0 07-08 10:05:05.518: I/GpsLocationProvider(1461): SV count: 2 ephemerisMask: 0 almanacMask: 0 07-08 10:05:05.518: E/LocSvc_libulp(1461): I/int ulp_brain_process_gnss_position_report(loc_sess_status, LocPosTechMask, UlpLocation*, const GpsLocationExtended*, const void*), report GNSS position/status to hybrid fix requests = 0 07-08 10:05:05.533: E/wpa_supplicant(2138): RSSI=-67;LINKSPEED=72;NOISE=9999;FREQUENCY=2412; 07-08 10:05:05.534: I/SendBroadcastPermission(1461): action:android.net.wifi.RSSI_CHANGED, mPermissionType:0 07-08 10:05:05.534: W/qti_sensors_hal(1461): timestampCalc: Adjusting timestamp for rollover: 5442127650113137, -23 07-08 10:05:05.535: E/WifiConfigStore(1461): updateConfiguration freq=2412 BSSID=0e:69:6c:9f:e9:55 RSSI=-66 "visitor"NONE 07-08 10:05:05.536: I/QosMonitor(1461): queryRtt: rtt_type = 3 07-08 10:05:05.537: I/WifiProJNI(1461): ######### GET RTT:3 ######## 07-08 10:05:05.537: I/QosMonitor(1461): postEventFromNative: msg=100,arg1=4,arg2=9 07-08 10:05:05.537: W/WifiProJNI(1461): poll before: g_monitor_fd =163 07-08 10:05:05.539: I/QosMonitor(1461): resetRtt: rtt_type = 3 07-08 10:05:05.539: I/WifiProJNI(1461): ######### RESET RTT:3 ######## 07-08 10:05:05.565: W/qti_sensors_hal(1461): timestampCalc: Adjusting timestamp for rollover: 5442127720273049, -23 07-08 10:05:05.613: W/qti_sensors_hal(1461): timestampCalc: Adjusting timestamp for rollover: 5442127730923683, -23 07-08 10:05:05.671: E/LocSvc_libulp(1461): I/int ulp_msg_process_system_update(UlpSystemEvent): systemEvent:5 07-08 10:05:05.672: E/LocSvc_libulp(1461): I/int ulp_msg_process_start_req(), at ulp state = 1 07-08 10:05:05.672: E/LocSvc_api_v02(1461): I/---> locClientSendReq line 2030 QMI_LOC_GET_BEST_AVAILABLE_POSITION_REQ_V02 07-08 10:05:05.674: E/LocSvc_ApiV02(1461): I/<--- void globalRespCb(locClientHandleType, uint32_t, locClientRespIndUnionType, uint32_t, void*) line 117 QMI_LOC_GET_BEST_AVAILABLE_POSITION_REQ_V02 07-08 10:05:05.674: E/LocSvc_ApiV02(1461): I/<--- void globalEventCb(locClientHandleType, uint32_t, locClientEventIndUnionType, void*) line 91 QMI_LOC_EVENT_INJECT_POSITION_REQ_IND_V02 07-08 10:05:05.674: E/LocSvc_libulp(1461): I/int ulp_brain_process_zpp_position_report(loc_sess_status, LocPosTechMask, UlpLocation*), report ZPP position to providers,report_position = 1 07-08 10:05:05.692: W/qti_sensors_hal(1461): timestampCalc: Adjusting timestamp for rollover: 5442127811764748, -23 07-08 10:05:05.766: W/qti_sensors_hal(1461): timestampCalc: Adjusting timestamp for rollover: 5442127921689064, -23 07-08 10:05:05.772: W/qti_sensors_hal(1461): timestampCalc: Adjusting timestamp for rollover: 5442127892605812, -23 07-08 10:05:05.857: W/qti_sensors_hal(1461): timestampCalc: Adjusting timestamp for rollover: 5442127973446877, -23 07-08 10:05:05.936: W/qti_sensors_hal(1461): timestampCalc: Adjusting timestamp for rollover: 5442128054318459, -23 07-08 10:05:05.968: W/qti_sensors_hal(1461): timestampCalc: Adjusting timestamp for rollover: 5442128123105080, -23 07-08 10:05:06.016: W/qti_sensors_hal(1461): timestampCalc: Adjusting timestamp for rollover: 5442128135098488, -23 07-08 10:05:06.095: W/qti_sensors_hal(1461): timestampCalc: Adjusting timestamp for rollover: 5442128215939553, -23 07-08 10:05:06.123: I/TrafficMonitor(1461): update:rxPkts:0,txPkts:0,rxBytes:0,txBytes:0 07-08 10:05:06.123: I/TrafficMonitor(1461): start expired. level:-1 07-08 10:05:06.123: I/TrafficMonitor(1461): gettimer:interval=2000 07-08 10:05:06.170: W/qti_sensors_hal(1461): timestampCalc: Adjusting timestamp for rollover: 5442128324551613, -23 07-08 10:05:06.181: W/qti_sensors_hal(1461): timestampCalc: Adjusting timestamp for rollover: 5442128296780617, -23 07-08 10:05:06.260: W/qti_sensors_hal(1461): timestampCalc: Adjusting timestamp for rollover: 5442128377591164, -23 07-08 10:05:06.339: W/qti_sensors_hal(1461): timestampCalc: Adjusting timestamp for rollover: 5442128458401711, -23 07-08 10:05:06.371: W/qti_sensors_hal(1461): timestampCalc: Adjusting timestamp for rollover: 5442128525937111, -23 07-08 10:05:06.419: W/qti_sensors_hal(1461): timestampCalc: Adjusting timestamp for rollover: 5442128539242775, -23 07-08 10:05:06.473: I/System(32742): core_booster, getBoosterConfig = false 07-08 10:05:06.504: W/qti_sensors_hal(1461): timestampCalc: Adjusting timestamp for rollover: 5442128620083840, -23 07-08 10:05:06.517: E/LocSvc_ApiV02(1461): I/<--- void globalEventCb(locClientHandleType, uint32_t, locClientEventIndUnionType, void*) line 91 QMI_LOC_EVENT_GNSS_SV_INFO_IND_V02 07-08 10:05:06.517: E/LocSvc_ApiV02(1461): I/<--- void globalEventCb(locClientHandleType, uint32_t, locClientEventIndUnionType, void*) line 91 QMI_LOC_EVENT_POSITION_REPORT_IND_V02 07-08 10:05:06.517: E/LocSvc_libulp(1461): I/int ulp_brain_process_gnss_sv_report(const GnssSvStatus*), gnss sv report cnt = 3919, gnss pos report cnt = 0,strong sv cnt = 0 07-08 10:05:06.517: E/LocSvc_afw(1461): I/<=== sv_status_cb - line 1094 2 07-08 10:05:06.517: E/LocSvc_libulp(1461): I/int ulp_brain_process_gnss_position_report(loc_sess_status, LocPosTechMask, UlpLocation*, const GpsLocationExtended*, const void*), transition provider returned = 0 07-08 10:05:06.518: E/LocSvc_libulp(1461): I/int ulp_brain_process_gnss_position_report(loc_sess_status, LocPosTechMask, UlpLocation*, const GpsLocationExtended*, const void*), report GNSS position/status to hybrid fix requests = 0 07-08 10:05:06.518: I/GpsLocationProvider(1461): SV count: 2 ephemerisMask: 0 almanacMask: 0 07-08 10:05:06.572: W/qti_sensors_hal(1461): timestampCalc: Adjusting timestamp for rollover: 5442128727353127, -23 07-08 10:05:06.583: W/qti_sensors_hal(1461): timestampCalc: Adjusting timestamp for rollover: 5442128700894387, -23 07-08 10:05:06.662: W/qti_sensors_hal(1461): timestampCalc: Adjusting timestamp for rollover: 5442128781735451, -23 07-08 10:05:06.742: W/qti_sensors_hal(1461): timestampCalc: Adjusting timestamp for rollover: 5442128862576515, -23 07-08 10:05:06.774: W/qti_sensors_hal(1461): timestampCalc: Adjusting timestamp for rollover: 5442128928769142, -23

172476032 avatar Jul 08 '20 02:07 172476032

都是没什么用的信息

qiuxiang avatar Jul 08 '20 03:07 qiuxiang

已解决,确实是appKey 的SHA1填写错误~

microCloudCode avatar Jul 08 '20 06:07 microCloudCode

我也解决了,我换了个项目,签名忘了改了,改了appKey 的SHA1就正常了,谢谢大佬。

172476032 avatar Jul 09 '20 04:07 172476032

@qiuxiang owner你好,我发现把targetSdkVersion设成29定位回调的数据都是0了,设成28是正常的 android10.0真机 "react-native-amap3d": "^2.0.1",

shenyuanqing avatar Jul 15 '20 07:07 shenyuanqing