如何在Android上测量GPS信号强度?
问题就像标题一样简单:如何测量GPS信号强度?
Question is as simple as the title: How to measure GPS signal strength?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
问题就像标题一样简单:如何测量GPS信号强度?
Question is as simple as the title: How to measure GPS signal strength?
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(3)
您确定您指的是信号强度与准确性吗?信号强度有什么好处?由于 GPS 位置是通过许多卫星确定的,因此您没有“一个”信号强度。
因此,假设您真正指的是信号强度,您可以通过
LocationManager.getGpsStatus()
获取GpsStatus
,然后通过getSatellites() 为您提供卫星列表
',其中每一个都有一个信噪比 (getSnr()
)。假设您指的是准确性,请尝试
Location.getAccuracy()
。Are you sure you mean signal strength vs. accuracy? What good is the signal strength? Since the GPS position is determined via many satellites, you don't have "one" signal strength.
So assuming that you really mean signal strength, you can get the
GpsStatus
viaLocationManager.getGpsStatus()
, and that gives you a list of satellites viagetSatellites()
', and each one of those has a signal-to-noise ratio (getSnr()
).Assuming you mean accuracy, try
Location.getAccuracy()
.您可以在 SNR-信噪比中读取 MNEA 消息 GSV 中的信号强度。
信号强度非常重要。信号太弱,接收器无法跟踪它们。您需要几颗“强大”的卫星来获得位置,而不仅仅是一颗。
较旧的接收器无法在树木或建筑物内进行跟踪。现代接收器更加灵敏。
You can read signal strength in MNEA message GSV in SNR-Signal to Noise Ratio.
Signal strength is VERY important. Too weak of a signal and the receiver can't track them. You need several 'strong' satellites to get position, not just one.
Older receivers couldn't track in trees or inside buildings. Modern receivers are much more sensitive.
如果没有非常昂贵的测试设备(频谱分析仪或专门的 GPS 接收器),测量 GPS 卫星的信号电平是非常困难的。没有商业可用的工具可以做到这一点。
无论如何,你为什么要这样做?信号电平实际上与确定位置无关。
It is very difficult to measure the signal level of a gps satellite without very expensive test gear (spectrum analyzer or specialized gps receiver). There are no commercially available tools to do this.
Why would you want to do this, anyway? The signal level is actually quite irrelevant in determining position.