Toybrick

标题: rk3588 anroid12怎么添加gps功能呢 [打印本页]

作者: xx123456    时间: 2023-12-12 10:36
标题: rk3588 anroid12怎么添加gps功能呢
我修改了这些配置还是不生效
添加gps.default.so


BoardConfig.mk:  
BOARD_HAS_GPS := true


device.mk:
PRODUCT_PACKAGES += \
    android.hardware.gnss@2.0 \
    android.hardware.gnss@2.0-impl \
    android.hardware.gnss@2.0-service \
    gps.default









log:
#logcat | grep gnss
455   455 I HidlServiceManagement: Registered android.hardware.gnss@2.0::IGnss/default
455   455 I HidlServiceManagement: Removing namespace from process name android.hardware.gnss@2.0-service to gnss@2.0-service.
296   296 E servicemanager: Could not find android.hardware.gnss.IGnss/default in the VINTF manifest.
297   297 I hwservicemanager: getTransport: Cannot find entry android.hardware.gnss@2.1::IGnss/default in either framework or device VINTF manifest.
639   639 D GnssLocationProviderJni: gnssHal 2.1 was null, trying 2.0
639   639 D GnssLocationProviderJni: gnssSetCapabilitesCb: 1856u
639   639 I GnssManager: gnss capabilities changed to [MEASUREMENTS LOW_POWER_MODE SATELLITE_BLOCKLIST MEASUREMENT_CORRECTIONS]
639   639 D GnssLocationProviderJni: gnssSetSystemInfoCb: yearOfHw=2019
639   639 D GnssLocationProviderJni: gnssNameCb: name=Google Mock GNSS Implementation v2.0
639   639 I GnssManager: gnss capabilities changed to [MEASUREMENTS LOW_POWER_MODE SATELLITE_BLOCKLIST MEASUREMENT_CORRECTIONS LOS_SATS EXCESS_PATH_LENGTH REFLECTING_PLANE]
639   639 I GnssManager: gnss hal initialized
639   639 I GnssManager: gnss hal started
639   639 E GnssLocationProviderJni: android_location_gnss_hal_GnssNative_start_antenna_info_listening: IGnssAntennaInfo interface not available.
639   657 D GnssLocationProviderJni: gnssSetCapabilitesCb: 1856u
639   657 D GnssLocationProviderJni: gnssSetSystemInfoCb: yearOfHw=2019
639   657 D GnssLocationProviderJni: gnssNameCb: name=Google Mock GNSS Implementation v2.0




作者: jefferyzhang    时间: 2023-12-12 14:29
这里只是开官方原生的GNSS的HAL,但你自己gps模块接了吗?接的什么口,接口配置了吗?
gps模块厂家一般会有自己的HAL,你需要用厂家提供的HAL才行。
作者: xx123456    时间: 2023-12-12 15:43
jefferyzhang 发表于 2023-12-12 14:29
这里只是开官方原生的GNSS的HAL,但你自己gps模块接了吗?接的什么口,接口配置了吗?
gps模块厂家一般会有 ...

hal库厂家给我提供了,就是github上的(https://github.com/zxcwhale/aosp13_gnss_hal),gps.default.so也已经编译出来
gps模块直接接的串口,在Android上能看到打印,用logcat 看不到关于这个库的打印输出,感觉这个库就没被调用




欢迎光临 Toybrick (https://t.rock-chips.com/) Powered by Discuz! X3.3