gps

How to get only horizontal acceleration in accelerometer

淺唱寂寞╮ 提交于 2020-01-25 08:36:05
问题 Is it possible to get acceleration only in horizontal direction irrespective of the placement of the device. I want to calculate acceleration of moving vehicle using android device. There may be cases where device is placed in any orientation. Is there any way by which i can calculate the acceleration of vehicle using accelerometer without calibrating each time? 来源: https://stackoverflow.com/questions/58959443/how-to-get-only-horizontal-acceleration-in-accelerometer

GPS Location on Service - Android [duplicate]

冷暖自知 提交于 2020-01-25 07:44:05
问题 This question already exists : Closed 7 years ago . Possible Duplicate: requestLocationUpdates throws exception I'm trying to create a service that when the server ask me, send my location. but can not find the way to do it, since everything is a background service. and I do not need to have UI interface. when I call requestUpdate () throws me an error and stops the application locManager.requestLocationUpdates( LocationManager.GPS_PROVIDER, 15000, 0, locationListener); runException Can't

ublox GPS strange characters interspersed with NMEA output

寵の児 提交于 2020-01-25 00:26:04
问题 I am using a ublox GPS for a data acquisition application. The device is outputting NMEA on a virtual COM port. The NMEA output works just fine. But between the NMEA messages strange characters are interspersed. See screenshot below from Realterm with setting "Ascii". Can somebody tell me what this is? And ideally what commands I would need to send to the device to disable this output? 回答1: You should disable the UBX binary protocol. The NMEA and UBX messages are interleaved on the same port.

ublox GPS strange characters interspersed with NMEA output

我与影子孤独终老i 提交于 2020-01-25 00:25:08
问题 I am using a ublox GPS for a data acquisition application. The device is outputting NMEA on a virtual COM port. The NMEA output works just fine. But between the NMEA messages strange characters are interspersed. See screenshot below from Realterm with setting "Ascii". Can somebody tell me what this is? And ideally what commands I would need to send to the device to disable this output? 回答1: You should disable the UBX binary protocol. The NMEA and UBX messages are interleaved on the same port.

Check whether a CLLocation is based on GPS or cellular

左心房为你撑大大i 提交于 2020-01-24 22:22:10
问题 With a 3G GPS device (i.e. iPad 3G) is there a way to know if a reported CLLocation is based on a GPS signal, and not the inaccurate cellular data? 回答1: The CLLocation class has a method called -horizontalAccuracy:. This will give you some idea of the radius of accuracy of that measurement. This is probably better than asking just "is it GPS" because GPS readings can also be pretty inaccurate, depending on receiving conditions and satellite visibility. 来源: https://stackoverflow.com/questions

.isProviderEnabled(LocationManager.NETWORK_PROVIDER) is always true in Android

删除回忆录丶 提交于 2020-01-24 20:34:07
问题 I don't know why, but my varaiable isNetowrkEnabled always return true. It doesn't matter if internet on my device is enabled or no. This is my GPSTracker class: public class GPSTracker extends Service implements LocationListener{ private final Context mContext; boolean isNetworkEnabled = false; boolean canGetLocation = false; Location location; // location protected LocationManager locationManager; public GPSTracker(Context context) { this.mContext = context; getLocation(); } public Location

基于单片机的GPS定位模块

好久不见. 提交于 2020-01-24 14:44:43
随着时代的发展,先进的科学技术给人们的生活带来了翻天覆地的变化。各种各样的智能化产品层出不穷,推动着社会的进步。全球定位系统GPS是美国从20世纪70年代开始研制,在1994年建成,以接收导航卫星信号为基础的非自主式导航与定位系统,它以全球性、全能性、全天候性、连续实时高精度的实时时间、三维位置、三维速度为人们的生活带来了方便。随着全球定位技术的不断改进和完善,它的应用领域将会不断地扩大,必将成为信息时代不可缺少的一部分。在我们的生活中GPS定位系统给我们带来了便利,如车载GPS导航仪、GPS手持设备、GPS/GPRS远程终端控制设备等,但是他们的价格比较昂贵。本设计使用低功耗的AT89S52单片机、GPS卫星定位模块和LCD12864液晶显示模块来实现对GPS定位信息的计算和显示。GPS信息主要有GPGSV(可见卫星信息)、GPGLL(地理定位信息)、GPRMC(推荐最小定位信息)、GPVTG(地面速度信息)、GPGGA(GPS定位信息)和GPGSA(当前卫星信息)。在设计中我用软件只对GPRMC(最小定位信息)和GPGGA(GPS定位信息)进行了解析,并将解析后的数据转换成字符,通过LCD12864显示日期、时间、经度、纬度、航向、速度和海拔高度等卫星信息。本设计思路清晰、结构简易、性价比高,对研究GPS定位系统二次开发有重要作用。 1.总体设计方案 1.1系统设计框图

移动定位之技术选择

妖精的绣舞 提交于 2020-01-24 03:56:49
移动定位之技术选择 移动定位业务若想获得成功,定位服务必须能够为用户提供出色价值和令其满意的卓越性能,同时还需要满足运营商对于部署和成本的要求。 目前,业界对于技术划分方式及其选择有着不同的取向,在这里列举两种主流观点。 混合定位是趋势,gpsOne更胜一筹 ■ 刘新华 目前各种关于实现移动定位技术的方案按性能和技术演进可以划分为四大类:基于移动终端GPS的技术方案、基于移动网络的技术方案、无线辅助型GPS解决方案和混合型解决方案。 基于移动终端GPS的定位是借助于每12小时环绕地球一次的24颗GPS(全球定位系统)卫星体系来实现的。但是单纯的GPS解决方案在诸如室内或市区主要楼群间等卫星信号接收不好的地区其性能和可用性都表现出急剧的下降;其定位速度也相对较慢,在实施部署上也较昂贵。尽管最近在GPS技术上取得了改进,但是这些问题仍然影响着GPS解决方案的成本、可用性等。 基于移动网络的解决方案依赖于从移动台(MS)到多个基站(BS)的信号转发,其中主要的标准化技术包括小区ID、E-OTD和TOA或TDOA(OTDOA)等定位技术。 小区ID技术是根据移动台所处的小区ID号来确定用户的位置。其好处是无需对手机和网络进行修改,可以适用于任何空中接口的网络中;而且响应速度很快,通常首次定位只需一秒钟;缺点是定位较粗。 E-OTD,即增强观测时差技术,是通过放置位置接收器或参考点实现定位的

基于朴素贝叶斯的定位算法

ε祈祈猫儿з 提交于 2020-01-24 03:53:12
LBS定位技术从方法上可分成三类:基于三角关系的定位技术、基于场景分析的定位技术、基于临近关系的定位技术(唐毅和杨博雄,2003)。 本博文首先对基于三角关系的定位技术进行了介绍,并对其中的应用最广泛的代表GPS进行阐述。 一、基于三角关系的定位方法 该技术的基本原理很简单,可以抽象成如下问题:已知A、B、C三个点的坐标,以及该三点至D点的距离(分别是d0,d1,d2),求D点的坐标。可以列出以下公式(式1),三个方程三个未知数,能求出唯一解。这种定位技术根据测量得出的数据,利用几何三角关系计算被测物体的位置,它是最主要的,也是应有最广的一种定位技术。 二、GPS GPS(全球定位系统)的空间部分使用24颗高度约2.02万千米的卫星组成卫星星座。卫星分布在六个中距离近圆形轨道面上(每轨道面四颗),轨道倾角为55度。卫星的分布使得在全球的任何地方,任何时间都可观测到四颗以上的卫星。 (1)为什么至少使用4颗卫星? GPS定位的基本原理即前面提到的三角关系法。接收机接收各个卫星Si发送的消息Mi,消息Mi不仅包含着卫星Si的空间坐标,还包括卫星发送消息的时间Ti。接收机在接收Mi后就可根据本地接收机的时间与卫星发送消息时间之差来计算距离di:di = c*T;其中c是光速,T是时间差。然而,由于各种原因,包括大气、建筑物,时钟误差等等因素,光速c以及时间差T是具有误差的

浅析无线定位技术

时光毁灭记忆、已成空白 提交于 2020-01-24 03:44:04
原创作品,转载请注明出自 xelz's blog 博客地址: http://mingcn.cnblogs.com/ 本文地址: http://www.cnblogs.com/mingcn/archive/2011/09/28/location.html 大家都知道iPod Touch是没有电话和GPS模块的, 那么它是如何实现定位的呢? 其实它使用的是Wi-Fi定位技术,其原理与基站定位类似:   1.每一个无线AP都有一个全球唯一的MAC地址,并且一般来说无线AP在一段时间内是不会移动的   2.设备在开启Wi-Fi的情况下,即可扫描并收集周围的AP信号,无论是否加密,是否已连接,甚至信号强度不足以显示在无线信号列表中,都可以获取到AP广播出来的MAC地址          3.设备将这些能够标示AP的数据发送到位置服务器,服务器检索出每一个AP的地理位置,并结合每个信号的强弱程度,计算出设备的地理位置并返回到用户设备   4.位置服务商要不断更新、补充自己的数据库,以保证数据的准确性,毕竟无线AP不像基站塔那样基本100%不会移动        这样的位置服务商现在来说只有Skyhook和Google两家.他们收集位置数据的方式也是相似的   1.主动采集:Google的街景拍摄车还有一个重要的功能就是采集沿途的无线信号,并打上通过GPS定位出的坐标回传至服务器;