English 中文(简体)
Wireless communication: AVR based embedded system and iPhone
原标题:

What is the best way to realize wireless communication between an embedded system (based on an AVR controller) and the iPhone? I think there are only two options: either WiFi or BlueTooth. The range is not really a problem, since both devices should stay in the same room.

I have no idea, if there are any useful WiFi boards that can be connected to an AVR based microcontroller system (or any small microcontroller), any hints would be highly welcome.

I guess the better solution would be BlueTooth, but there is also the problem: which BlueTooth board is best suited for attachment to an AVR system, and is it possible to use the iPhone BlueTooth stack for (serial) communication over BlueTooth with the AVR device.

I hope that somebody already realized such a system and can give some helpful tips...

最佳回答

You can get modules for both WiFi and Bluetooth that will connect to an embedded system through a UART interface, however a WiFi module will have far more processing power than your AVR microcontroller, often with spare capacity and I/O to execute additional user code, so connecting one to an AVR maybe somewhat redundant in many cases.

Bluetooth modules are simpler, less expensive, and the data-rate is better matched to the AVR s capabilities. For example these Parani modules. I have used them between an embedded system and a Laptop PC s Bluetooth, so given appropriate communications software, there is no technical reason why it could not be used with an iPhone I think. However this may be the flaw, on the PC the device was recognised as a virtual serial port, I don t know whether iPhone supports legacy communications in quite the same way.

For comparison, a WiFi solution

问题回答

From what I know, BlueTooth is very limited on the iPhone: There is only very few BlueTooth-Profiles implemented, and - even if they can be extended with a jailbroken iPhone - I doubt this is easy to use from the application layer.

On the other side, transferring via WiFi requires a lot of processing power and memory since much more things have to be implemented before you can even start transferring data: 802.11, cdma/ca, arp, tcp. That s a big task.

Is it an option to build a hardware extension to the iPhone ? You might be able to get the serial connection and power out of the dock connector. Then even ZigBee could be very helpful.

Here s an article you might find helpful. I would lean toward a WiFi solution just because of the added flexibility available.

http://www.embedded.com/design/networking/215801088

-t

Some of the other people at the office have done AVR <- Bluetooth -> Symbian and AVR <- Bluetooth -> PC solutions without trouble. There is lots of info, reference designs and source available. I have no idea of how hard it would be to use Bluetooth on Iphone.

The exact module is probability also not important as long as it got some type of serial interface (I2C,SPI) to interface to the AVR and some source code show how to use the module.

Is it an 8-bit or 32-bit AVR? For the AVR32 processors there s support for WiFi in the Atmel 1.5.0 Software Framework using SD-card-mounted WiFi modules from HD Wireless (http://www.hd-wireless.se), including an IP stack (lwIP). Be aware that you need Ad-Hoc (IBSS) support to connect directly to the iPhone.

There is WiSnap kit. It can connect directly to a standard RS232 interface or through the TTL UART interface to embedded processors. We are planning to use it in our project. It also has Ad-Hoc support.

There are some usage examples and an iPhone application for connection setup.

http://serialio.com/products/mobile/wifi/WiSnapKit1.php

What are you trying to communicate between your AVR and the Iphone? The Iphone is made for the web along with everything apple (which AVR s are decidedly not). So what works well is an embedded device that exposes a web-interface. Like the Transmission bittorrent client on Linux. Also nowadays many low-power small form-factor linux platforms exist that will allow you to do this.

For instance Gumstix has an ARM based platform that runs linux and includes WiFi (Overo Fire).





相关问题
Code sign Error

I have created a new iPhone application.I have two mach machines. I have created the certificate for running application in iPhone in one mac. Can I use the other mac for running the application in ...

ABPersonViewController Usage for displaying contact

Created a View based Project and added a contact to the AddressBook using ABAddressBookRef,ABRecordRef now i wanted to display the added contact ABPersonViewController is the method but how to use in ...

将音频Clips从Peter改为服务器

我不禁要问,那里是否有任何实例表明从Peit向服务器发送音响。 I m不关心电话或SIP风格的解决办法,只是一个简单的袖珍流程......

• 如何将搜查线重新定位?

我正试图把图像放在搜索条左边。 但是,问题始于这里,搜索条线不能重新布署。

热门标签