将iPhone连接到XBee模块

时间:2022-01-03 03:53:34

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.

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

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?

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

7 个解决方案

#1


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.

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

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.

如果您对硬件感到满意,可以使用以太网插孔和XBee收音机构建设备,然后为iPhone编写软件以与您的小工具通信,这会将您的消息传递到XBee网络。

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

或者您可以构建终端节点设备以直接使用WiFi,从而使XBee完全脱离等式。

#2


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.

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

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

希望这个帮助,以及其他观察结果也对我表示赞赏。

#3


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.

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

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.

不幸的是,XBee-WiFi仅支持WiFi,而不是XBee和WiFi。但是,将WiFi的DIN和DOUT连接到XBee DOUT和DIN,您就可以直接使用WiFi < - > XBee便携式硬件桥,无需软件。在它们之间放一个微控制器,你真的可以做一些很酷的事情。 XBee WiFi的价格约为50美元。

#4


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.

我知道现在这有点老了,但我最近做了一个项目,使用带有WiServer屏蔽的arduino,这让我可以提供一个可以从我的iPhone上查看的ad-hoc网络和网页。我正在使用它通过GET请求来管理伺服控制到网页。

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的WiServer内容。他们正在发布组合的arduino + WiShield产品(Black Widow或Yellowjacket,具体取决于您的尺寸需求)。

Async Labs http://asynclabs.com

Async Labs http://asynclabs.com

#5


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.

不是诉诸越狱设备。 iphone 2.x和3.x设备上的蓝牙纯粹是为了免提。我听说有人愚弄与其他音频设备合作,但这就是蓝牙连接的程度。

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/

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

#6


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.

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

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.

外部附件框架提供了一种与连接到基于iPhone OS的设备的附件进行通信的方法。使用它与通过30针底座连接器或蓝牙连接的配件进行交互。

#7


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

Microchip提供了一个官方开发套件,因此您可以开发一些硬件,以便在iPhone和ZigBee之间创建一个桥接器。

There is also one equivalent version for Android.

Android还有一个等效版本。

#1


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.

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

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.

如果您对硬件感到满意,可以使用以太网插孔和XBee收音机构建设备,然后为iPhone编写软件以与您的小工具通信,这会将您的消息传递到XBee网络。

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

或者您可以构建终端节点设备以直接使用WiFi,从而使XBee完全脱离等式。

#2


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.

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

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

希望这个帮助,以及其他观察结果也对我表示赞赏。

#3


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.

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

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.

不幸的是,XBee-WiFi仅支持WiFi,而不是XBee和WiFi。但是,将WiFi的DIN和DOUT连接到XBee DOUT和DIN,您就可以直接使用WiFi < - > XBee便携式硬件桥,无需软件。在它们之间放一个微控制器,你真的可以做一些很酷的事情。 XBee WiFi的价格约为50美元。

#4


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.

我知道现在这有点老了,但我最近做了一个项目,使用带有WiServer屏蔽的arduino,这让我可以提供一个可以从我的iPhone上查看的ad-hoc网络和网页。我正在使用它通过GET请求来管理伺服控制到网页。

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的WiServer内容。他们正在发布组合的arduino + WiShield产品(Black Widow或Yellowjacket,具体取决于您的尺寸需求)。

Async Labs http://asynclabs.com

Async Labs http://asynclabs.com

#5


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.

不是诉诸越狱设备。 iphone 2.x和3.x设备上的蓝牙纯粹是为了免提。我听说有人愚弄与其他音频设备合作,但这就是蓝牙连接的程度。

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/

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

#6


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.

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

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.

外部附件框架提供了一种与连接到基于iPhone OS的设备的附件进行通信的方法。使用它与通过30针底座连接器或蓝牙连接的配件进行交互。

#7


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

Microchip提供了一个官方开发套件,因此您可以开发一些硬件,以便在iPhone和ZigBee之间创建一个桥接器。

There is also one equivalent version for Android.

Android还有一个等效版本。