How can I download a file from the internet by WiFi ?

Hi all,

I’m working on an embedded project where I need to download a single file from the internet via WiFi, once a day.

Does anyone know any simple / inexpensive / small modules which I can use? I have found a few, but none seem quite right.

Some are for embedded applications, but they cost a lot (>$100).

Some are SDIO, and are tiny, but are expensive and are not open.

Some are USB, and are very cheap, but I can’t find any code to operate them.

Are there any good solutions?

Many thanks

Hugo Elias

wifi is not cheap at the module level and fairly complex at the chip level.

Does it have to be wifi? If not, you could build a wired module that uses cheap RF for the last hop to your device.

Or, you could use a wired connection to a cheap wifi router. Not an elegant solution and needs line power but WifiG routers are really cheap these days - A number of them have bridge mode.

But why are they expensive? A USB to WiFi device costs less than $30!

economies of scale. modules ship in small volumes. Your USB wifi dongle probably gets manufactured in 100K or larger quantities.

You could use a [WRT54GL and use a simple utility like curl or wget to do the download. Then send it from the router’s internal serial port to your project.

If you’re into fairly hardcore programming, you could try to fit your project into a wireless card’s embedded cpu, like the [prism54 µStumbler.

If you want something officially supported by the vendor, you’ll need to pay for a module from [Gumstix or Lantronix or Netburner or Rabbit or the like.](http://gumstix.com/store/catalog/product_info.php?cPath=32&products_id=163)](http://prism54.org/mustumbler.html)]([OpenWrt Wiki] Documentation)

All this seems insane. I mean there’s a simple chip for everything these days. Why not for WiFi? (listen to me complaining).

I guess what would be good is something like a USB WiFi stick, plus a USB host microcontroller, plus the code to get it to run. I would have thought that there was some open source code somewhere for one of those sticks.

Hugo

Lantronix WiPort is one of the least expensive WiFi modules for embedded sytems. You can just use it via one of its serial ports, or you can write HTML to run on its web server, or you can write C code to add to it’s system.

Digi and Moxa have other small modules.

all of these are in the $125 area @ 1ea.

There are chips for wifi. Problem is is that its a set of usually two chips [baseband + MAC], both of which are BGAs, and they need all sorts of supporting components + IC’s.

Also, most of those chips are designed for the PCI/USB busses, which aren’t trivially accessible from a low end micro. Connexant has a SPI based chipset, but its really hard to get your hands on chips, let alone docs of the bare chips alone.

In previous work, I’ve tried to get my hands on datasheets / chips for a product and a certain manufacturer [not connexant] was unwilling to sell us chips unless we hit very very large monthly volumes, and wouldn’t give us docs without signing a NDA, and meeting us in person.

Cheers,

–David Carne

here’s a new product from lantronix that is cheaper.

http://www.lantronix.com/device-network … hport.html

I think around $75.

what about using some of the wifi CF cards or even the really small wifi SD cards? im sure there must be some documentation on using those for this sort of application somewhere.

CF cards and chips - as said above - the only software you can get to if you’re not a big OEM under NDA is what you can reverse engineer from the Linux drivers. And those are illegible.

So the WiPort and its competitors are the only thing practical. And they’re all well above $100.

If you don’t need megabit speeds, just use an 802.15.4 module. Lots of vendors. $20 and up. Work well. ZigBee needed only for more complex topologies.

A fellow at http://www.wibotics.com/ had done some CF WiFi software, and he also sold WiPort modules for robots, but the market must have been too small and the '15.4 modules are so cheap, he closed shop. His work is available gratis. But this hardware exceeds $50 too.

Open Source 802.11g Wireless Project

USB WiFi Module AssembledCheckout the open source wireless project (http://sourceforge.net/projects/at90usb-zd1211/) that I developed using the AT90USB and ZyDas ZD1211B 802.11g wireless chipset. The total off-the-shelf hardware cost for this project is about $50. Just download the latest release compile it using the AVR GNU or IAR AVR Embedded Workbench compiler and flash to the AT90USBKey (AT90USB1287 Development Board). Connect the ZyDas ZD1211B based USB 802.11g wireless module to the AT90USB with the provided USB cable. I recomend using the Zonet ZEW2501 or Safecom SWMULZ-5400 (see http://zd1211.ath.cx/ for a complete list).

The Lantronics “Matchport” is $88.00 in single piecers. Available from Mouser and Newark. Very cool, but power hungry. Wifi is a high octane guzzler. Bluetooth is better.

Ron

RonnyM:
The Lantronics “Matchport” is $88.00 in single piecers. Available from Mouser and Newark. Very cool, but power hungry. Wifi is a high octane guzzler. Bluetooth is better.

Ron

802.15.4 without ZigBee is cheaper yet. And plug-n-play.

AT command set modem emulation from several vendors.

RonnyM:
The Lantronics “Matchport” is $88.00 in single piecers. Available from Mouser and Newark. Very cool, but power hungry. Wifi is a high octane guzzler. Bluetooth is better.

Ron

http://www.mouser.com/search/ProductDet … 001000G-01

for $76. I’m not sure why the different prices but don’t care enough to figure it out. all the wifi and ethernet modules pull a lot of current.

and bluetooth is fine for a class of applications but there are plenty of cases where it’s not appropriate.