找到一个可靠的iPhone在室内? [英] Locate an iPhone reliably indoors?

查看:120
本文介绍了找到一个可靠的iPhone在室内?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为博物馆之旅编写一个应用程序。我希望我的应用能够知道用户在建筑物中的位置,用户是否站在特定的房间,某个特定的工作面前等。

GPS不起作用。 (使用WiFi定位可以工作,但我知道 Apple不再使用Skyhook了,所以我不知道我在哪里注册我的基站。)

GPS无法工作,它似乎有一个在已知位置的专用设备,并让应用程序检测到该设备,可以工作。但根据我的研究,这看起来并不容易,无论如何:

•无法检测附近的WiFi基站,因为Apple不允许查询基站通过公共API。



•通过Bonjour查找设备仅适用于设备已在同一WiFi网络上。客户的手机将不会在我们的WiFi网络上。



•GameKit ...嗯...还没有看到一个角度。



有没有人有关于如何实施的想法?

谢谢!

解决方案

我建议蓝牙。我在一个类似的问题上做了一些初步的工作,在我家的房间之间走动时,用一些代码来观看哪些蓝牙设备可以通过手机看到。

您不必精确地确定蓝牙设备的实际位置;如果你可以看到设备A和B但不是C,那么你就在这个区域,如果你能看到所有三个,那么你就在这个区域,等等。通过一点点观察信号变化,你可以找到它们位置更紧密,例如我可以看到A而不是B或C,10秒后我可以看到A和B,那么我很可能会看到A + B区域的A-only侧; 10秒后,我可以看到B + C,但不再是A,那么赔率就不错了。我比较接近从A + B到B + C等的区域。

虽然我没有详尽地测试,但我的结果足以让我的客户知道,一些更强大,更真实的测试是值得的,这可能会工作得很好。可能会出现信号反弹的问题,可能需要一些屏蔽或类似的东西,但它确实可行。


I'm writing an app for a museum tour. I'd like my app to know where the user is in the building, if the user is standing in a particular room, in front of a particular work, etc.

GPS doesn't work inside. (Using WiFi positioning could work, but I know Apple doesn't use Skyhook anymore, so I don't know where I would register my base stations.)

Since GPS won't work, it would seem like having a specialized device in a known location and having the app detect that device, could work. But based on my research, this doesn't look easy, either:

• There's no way to detect nearby WiFi base stations because Apple doesn't allow querying for base stations via public APIs.

• Finding a device via Bonjour only works if the devices are already on the same WiFi network. And the Guest's phone won't be on our WiFi network.

• GameKit...hmm...don't yet see an angle there.

Does anyone have ideas on how this could be implemented?

Thanks!

解决方案

I suggest Bluetooth. I did some preliminary work on a similar problem, played around with some code for watching which bluetooth devices were visible to the phone while walking between rooms of my house.

You don't have to pinpoint precisely where the bluetooth devices actually are; if you can see device A and B but not C then you're in this area, if you can see all three then you're in this area, etc. With a little bit of "watching" the signal changes you can pinpoint their location more closely, e.g. I can see A but not B or C and 10 seconds later I can see A and B then odds are good that I'm towards the A-only side of the A+B area; when 10 seconds later I can see B+C but no longer A then odds are good I'm closer to the area where you cross from A+B to B+C, etc.

Though I didn't test it exhaustively, my results were sufficiently positive to advise my client that some more robust, real-worldish testing was worthwhile, that this would likely work just fine. There might be issues with signal bounce that might require some shielding or that kind of thing, but it does seem feasible.

这篇关于找到一个可靠的iPhone在室内?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆