将 iPhone 连接到 XBee 模块

发布于 2024-07-23 02:47:38 字数 163 浏览 14 评论 0原文

我想使用 iPhone 通过 XBee 调制解调器(或其他低功耗无线设备)监控远程源的输出。 理想情况下,iPhone 可以定期轮询 XBee 以获取此信息,然后使用它来显示生成的输出。

我猜这与 Nike+iPod 的工作方式类似,但我想知道是否可以在不使用边缘连接器附件的情况下实现?

I'd like to use an iPhone to monitor output from a remote source using an XBee modem (or other low power wireless device). Ideally, the iPhone can regularly poll the XBee for this information and then use it to display generate output.

This is similar to the way the Nike+iPod thing works I guess but I was wondering if it was possible without the use of the edge-connector attachment?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(7

红衣飘飘貌似仙 2024-07-30 02:47:38

XBee 是 2.4GHz,但它不是 WiFi 或蓝牙。 没有 API 可以在如此低的级别上控制 iPod 的收音机。 如果您想与 XBee 网络通信,则需要通过位于 XBee 网络和连接到 iPhone 的网络之一的某种网关设备进行连接。 这可以是互联网、LAN,也可以是通过与坞站连接器的物理连接。

如果您对硬件感到满意,您可以构建一个带有以太网插孔和 XBee 无线电的设备,然后为 iPhone 编写软件以与您的小工具通信,这会将您的消息传递到 XBee 网络上。

或者您可以构建直接使用 WiFi 的终端节点设备,将 XBee 完全排除在外。

XBee is 2.4GHz, but it's not WiFi or Bluetooth. There's no API for controlling the iPod's radio at that low level. If you want to talk to an XBee network, you'll need to connect via some sort of gateway device that sits on both the XBee network, and one of the networks connected to the iPhone. That could be either the Internet, LAN, or via a physical connection to the dock connector.

If you're comfortable with hardware, you could build a device with an ethernet jack and an XBee radio, and then write software for the iPhone to talk to your gadget, which would pass your messages onto the XBee network.

Or you could build your end node devices to use WiFi directly, leaving XBee out of the equation completely.

扛起拖把扫天下 2024-07-30 02:47:38

我正在开发一个控制 802.15.4 ZigBee 模块的应用程序; 如果您没有注册 MFi 许可证,则无法访问 /dev/tty.xx ,所以如果您愿意,您可以尝试使用越狱的 iPhone 并将您的应用程序放在 /Applications 文件夹中(这样您就可以访问到串行端口并注意这是安装 cydia 应用程序(如 Cydia.app 等)的文件夹。
此外,您必须拥有正确的硬件和模块的协议规范。
我使用 USB 转串口 RS232,这是一条修改过的 iphone 电缆,连接到驻留 ZigBee 模块的开发板; 通信通过 UART 二进制协议进行。

希望这对我有帮助,其他意见也对我表示赞赏。

i'm working on an App that controls an 802.15.4 ZigBee Module; if you haven't enroll the MFi license there is no way to access to /dev/tty.xx , so if you want, you can try with a jailbroken iPhone and put your apps in /Applications Folder (in this way you can access to the Serial port and note that this is the folder where cydia applications are installed like Cydia.app etc..).
Moreover you must have the right hardware and a protocol specification of your module.
I use an usb-to-serial RS232, a modified iphone cable connected to the development board where resides the ZigBee module; the communication happens through an UART Binary Protocol.

Hope this help, and other observations are appreciated for me too.

野却迷人 2024-07-30 02:47:38

Digi 现在拥有一个 WiFi XBee 模块,可以直接插入旧 XBee 所在的位置,并且可以直接从 iPhone 应用程序通过 TCP 或 UDP 进行访问。

不幸的是,XBee-WiFi 只支持 WiFi,不能同时支持 XBee 和 WiFi。 但是,将 WiFi 的 DIN 和 DOUT 连接到 XBee DOUT 和 DIN,您就拥有了一个直接的 WiFi<->XBee 便携式硬件桥,无需软件。 在它们之间放置一个微控制器,您确实可以做一些很酷的事情。 XBee WiFi 的价格约为 50 美元。

Digi now has a WiFi XBee Module which can plug-in directly where an old XBee was and can be accessed via TCP or UDP directly from a iPhone app.

Unfortunately, the XBee-WiFi only does WiFi, not both XBee AND WiFi. But, connect the WiFi's DIN and DOUT to an XBee DOUT and DIN and you have a direct WiFi<->XBee portable hardware bridge with no software needed. Throw a microcontroller between them and you can really do some cool stuff. The XBee WiFi's are about $50.

鱼忆七猫命九 2024-07-30 02:47:38

我知道这现在有点老了,但我最近做了一个项目,使用带有 WiServer 扩展板的 arduino,它允许我呈现一个可以从我的 iPhone 上查看的临时网络和网页。 我使用它通过对网页的 GET 请求来管理伺服控制。

查看 Async Labs 以了解 WiServer 的内容。 他们正在发布 arduino+WiShield 组合产品(黑寡妇或黄夹克,具体取决于您的尺寸需求)。

异步实验室 http://asynclabs.com

I know this is a bit old now, but I recently did a project that used an arduino with a WiServer shield that allowed me to present an ad-hoc network and webpage that could be viewed from my iPhone. I am using it to manage servo controls via GET requests to the web page.

Check out Async Labs for the WiServer stuff. They are in the process of releasing a combined arduino+WiShield product (Black Widow or yellowjacket, depending on your size needs).

Async Labs http://asynclabs.com

浮生未歇 2024-07-30 02:47:38

除非求助于越狱设备。 iPhone 2.x 和 3.x 设备上的蓝牙纯粹是为了免提。 我听说有人欺骗性地使用其他音频设备,但这就是蓝牙连接的范围。

您想要使用像 pachube.com 这样的数据代理通过 http 查看您的传感器数据。 这是一个 iPhone 应用程序示例: http://apps.pachube.com/iphone/

not without resorting to a jailbroken device. bluetooth on iphone 2.x and 3.x devices is purely for handsfree. i've heard of people fooling to work with other audio devices, but that's the extent of bluetooth connectivity.

you want to use a data broker like pachube.com to view your sensor data via http. here's an example iphone app: http://apps.pachube.com/iphone/

终弃我 2024-07-30 02:47:38

使用外部附件框架,

3.0 设备可以查看 3.0 SDK 外部附件框架,它仍处于 NDA 状态,因此无法共享任何代码,但这是可能的。

外部附件框架
提供了一种沟通方式
连接到 iPhone 操作系统的配件
基于设备。 用它来交互
通过连接的配件
30 针底座连接器或通过
蓝牙。

Use the External Accessory Framework,

3.0 devices can check out the 3.0 SDK External Accessory Framework, It's still under NDA so cant share any code but it is possible.

The External Accessory framework
provides a way to communicate with
accessories connected to an iPhone OS
based device. Use it to interact with
accessories connected through the
30-pin dock connector or via
Bluetooth.

断舍离 2024-07-30 02:47:38

有一个 Microchip 的官方开发套件,因此您可以开发一些硬件来在 iPhone 和 ZigBee 之间建立一座桥梁。

Android 也有一个等效版本。

There is an official development kit from Microchip, so you can develop some hardware in order to create one bridge between iPhone and ZigBee.

There is also one equivalent version for Android.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文