主题 : 友善tiny6410 在android2.3下是否将gps融合到android的系统服务 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 73999
精华: 0
发帖: 18
金钱: 90 两
威望: 18 点
综合积分: 36 分
注册时间: 2012-07-18
最后登录: 2012-08-11
楼主  发表于: 2012-07-22 16:54

 友善tiny6410 在android2.3下是否将gps融合到android的系统服务

配置:
1.友善tiny6410
2.GS-87 串口gps模块,
3.友善提供的android2.3(rootfs_android.img)

问题是友善是否已经把gps融合到android的系统服务了呢?就是说想知道我在android中能不能只要调用
locationManager = (LocationManager) getSystemService(LOCATION_SERVICE);
这样的系统服务,而不用管串口或者usb到底传什么。

一直纠结这个,求大神指导,非常感谢!
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2012-07-22 22:09
就是说想知道我在android中能不能只要调用
locationManager = (LocationManager) getSystemService(LOCATION_SERVICE);
这样的系统服务,而不用管串口或者usb到底传什么。

据我所知,只要你提供一个和你所用的串口GPS模块对应的GPS HAL模块就可以。至于是用串口还是USB传输,这些细节都实现在GPS HAL模块里。
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 73999
精华: 0
发帖: 18
金钱: 90 两
威望: 18 点
综合积分: 36 分
注册时间: 2012-07-18
最后登录: 2012-08-11
2楼  发表于: 2012-07-23 10:49

 回 1楼(kasim) 的帖子

图片:
嗯,确实有这个关系,所以问题就变成友善提供的android2.3(使用官方提供那款GS-87) 里面是不是提供了gps hal层?

我在解压的源代码中看到了Android-2.3.4\vendor\friendly-arm\mini6410\prebuilt\gps.mini6410.so,但这个应该是属于JNI层的。不知道HAL层在哪里,我不了解hal层的东西,希望大神指点
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
3楼  发表于: 2012-07-23 11:07
gps.mini6410.so就是一个GPS HAL模块,如果友善之臂提供的就是GS-87的话,那它应该能支持。
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."