https://sourceforge.net/projects/wr703n/
---------------------------------------------------------------------------------------------------------------------------------
Dear Reader,
there are many Linux boards on the market: Bifferboard, NanosG20, Foxboard, Beagleboard, AlixPC, Android phones and tablets, routers, netbooks, and most recently the Raspberry Pi. How to decide what to choose?
---------------------------------------------------------------------------------------------------------------------------------
So far the nicest solution I have found is one of the world’s smallest pocket routers TP Link WR703N.
Cheapest in price 25 USD, nice looking 5x5x2 cm plastic box, internal Wifi. Can be ordered on Ebay, shipping is free and it arrives from HongKong in a month. This router has a 400 MHz CPU, 4 MB flash (quite small), 32 MB RAM, 1 Ethernet, Wifi, 1 USB, 0.5 W power consumption. Powered via USB cable. Included power supply can be plugged in 110V or 220V.
It must be reflashed with OpenWRT Linux, where most necessary program modules exist, however not everything is compatible with Debian Linux. Can add USB hub, USB stick, USB HDD, USB sound card, bluetooth, webcam, 3G modem, 1-wire USB or serial module, connect to Arduino, set up Wifi client, place home webserver with php and rrdtool database on router. Live examples are here:
Nice webradio design
http://barbara320.gotdns.com:8085/
Main webserver:
http://barbara320.gotdns.com
Wifi HD webcam
http://barbara320.gotdns.com:8080/javascript_simple.html
Water meter:
http://barbara320.gotdns.com:8081/?action=stream
Electricity meter readout:
http://barbara320.gotdns.com:8083
Heating water valve control:
http://barbara320.gotdns.com:8084
Limitations are that internal flash 8 MB is quite small, but can be extended using external USB flash stick or HDD. Compiling C code is not possible directly on router. Need to cross compile and then is a chance that executable might not work. All small-scale hardware has some bugs. Not all things work as supposed, for example, Wifi client configuration does not work using Luci configuration interface, need to manually edit config files. Usually need to spend one day to work around some particular bug. Experience also that router's flash gets a fatal error in 3 months, if saving is done once in 5 min. If need to save frequently should save into RAM or USB HDD and only once and while backup on flash. OpenWRT trunk changes every day and often new bugs appear. So I have made a backup of somewhat older, but stable version
http://clockroom.freeiz.com/openwrt/openwrt-trunk-backup-8May2012-webcam-OK
Actually now the version Attitude Adjustment Beta 12.09 on openwrt site is OK and looks like it is permanent.
Digest zip file (340 MB) holds information about setting up different functions on WR703N:
https://sourceforge.net/projects/wr703n/
00 Introduction links
01 Flashing OpenWRT, vi, nano
02 Open WR703N cover & solder serial RX TX CP2102
02 Network
02 USB Hub
03 USB flash, HDD, system overlay
04 curl, lftp, samba, bittorrent transmission, NAS, Dropbox, Twitter
04 uhttpd and lighttpd webserer with php5
05 webcam, video
06 Bluetooth
06 mouse, keyboard, PIR, photodiode
06 sound card
07 GPIO, hardware schematics, 1wire, i2c, SPI
08 Digitemp 1wire temperature with CP2102
09 DS9490R 1wire bus adapter
10 Arduino
11 Graphing dataplots Pachube, rrdtool, Google charts, Sarmalink
12 Gmail control of USB relay board
13 sending email
14 compile your own OpenWRT distribution
15 compile C program module
16 Python install on USB HDD
17 Lua programming language for Luci
18 uci
20 Robotics WiFi remote controlled car
70 nice Webpage designs
80 example WR703N setups
90 smart home, alarms, baby monitor
91 Long term reliability
92 LinkDuino customization by Squonk
93 mr3020 similar to wr703n
---------------------------------------------------------------------------------------------------------------------------------
Raspbery Pi
Much advertisized in press as the cheapest, but it is a circuit board only, needs power supply, HDMI and network cables, SD card, enclosure, WiFi, keyboard, mouse. So together it is ca 80 EUR.
---------------------------------------------------------------------------------------------------------------------------------
Arduino
Experience is that Arduino is best in reliability. It never hangs. With Ethernet shield can make IP-controlled power outlet for your home server remote reboot. I have written also Instructable about Arduino AVR webserver. Arduno can be interfaced to WR703N router via USB. Can process analog inputs, 1-wire temperature sensors, control switches, servo motors, and a small display. However serial communication between Arduino and router hangs after some unregular time. Hanging happens only if Arduino reset is disabled. Solution might be to enable reset and write some values that should not be lost into EEPROM. Please have a look at my summarised Instructable about Arduino:
http://www.instructables.com/id/Arduino-Microcontroller-Projects/
---------------------------------------------------------------------------------------------------------------------------------
Ubuntu Netbook
For example eeePC with Ubuntu, 13W consumption. HDD is faster than flash, runs for 1 year on heavy load. Best compatibility, reliability, speed. Also monitor and keyboard. WiFi client works out of the box. But wifi sometimes hangs. And eeePC does not power up without manually pressing a button. So someone has to be present at home and can not do remote reset via GSM box.
eeePC has no boot rom function to restart power, need to press a button. So actually best solution if electricity use if not concerned would be a desktop PC.
Another recommendation running reliably is Beagleboard or Beaglebone with USB HDD.
---------------------------------------------------------------------------------------------------------------------------------
Android phone
High quality Webcam, mic, speaker, Wifi, GSM, battery, keyboard, display, temprature sensor, large flash, fast CPU.
Can get for ca 60 EUR for Example Samsun i5500.
Disadvantage - Android SDK programming complicated. Option is to install Ubnuntu in a loop drive on sd,
but Ubuntu cannot access camera or sensors.
---------------------------------------------------------------------------------------------------------------------------------
Conclusion
Use Linux boards only for applications where low power consumption or space is needed. Every Linux board has some compatibility issues and bugs as it is not mass produced and be prepared to spend days for customization.
---------------------------------------------------------------------------------------------------------------------------------

































Visit Our Store »
Go Pro Today »




I have also bought a TPLink 703 and would like to use it as a gateway to arduino.
I've already flashed OpenWRT, it's working Okay.
Now I need to forward TCP/IP sockets to serial (USB CDC) stream.
Unfortunately the dropbox link doesn't work now, too much trafic.
Could somebody reupload the files to the net ?
Regards,
http://piie.net/index.php?section=tplink-radio
WR703n main chip datasheet is now available
You can play mp3 files from a directory on a USB flash drive connected to wr703n with madplay? .I could make a page similar to the OWWRS and choose which mp3 to play ?
Regards
http://pastie.org/5477486
A simple script that kills madplay process and than starts a new one.
thank you very much for this nice instructable. With your brilliant draft I did this:
http://incaseyoureat.dyndns.org/cgi-bin/weather
I did a local net web service, too:
I have tried to install your OWWRS in my wr703n without success.
I copied the project folder www to www directory of the router and the initial page run,the weather page run, the web radio server page does not work.
With the help of Janis I have running. madplay .I test wget -O - http://streaming206.radionomy.com:80/80sOnly | madplay - & and work from command line ,but not from OWWRS.
Could you give me some help on what I wrong?
Regards
Webradio is actually made as simple web links to files in cgi-bin that start madplay with one particular internet radio station using shell script.
You need to check if files in /www/cgi-bin/ can be executed. For example /www/cgi-bin/80sonly from command line. May be need to chmod 777 them.
Do you see result of echo "wait..." line when running it through webbrowser? cgi-bin directory should be already there when you install uhttpd (or luci, but luci uses much more space).
How would you compare the avr board that you used and in the link below.
http://albert-david.blogspot.in/
this guy also seems working for long time
I must install madplay every time I lose the energy of wr703n?
Is there any script that can perform this task automatically?
Thanks for your help
Regards
choose "-dest ram" only if you have not enough flash space.
Need to install every time router starts. Can put the installation lines in file /etc/rc.local before exit 0.
Great job!
I tried to install the usb sound card in my WR703n following your instructions but I get an error with madplay . I get the error " madplay: can't load library 'libz.so.1' when I try to play an mp3 or a webradio.Looks like a missing or lost library
Any help ? Thanks
Learned how to stream audio from USB sound card or webcam microphone using ffserver. Also can record sound when something happens using package called listener.
http://wiki.openwrt.org/toh/start#d-link
opkg install kmod-usb-serial coreutils-stty kmod-usb-acm
ls /dev/ttyACM0
More in the Dropbox Arduino folder:
https://www.dropbox.com/sh/tz2viv7zfjak26e/LPKvnnuQBi
"You have awesome instructables ! I recently created a wifi controlled switch for my garage door using Fonera routers (as here http://cryptonoid.blogspot.com/2007/08/fics-fonera-internet-controlled-switch.html ).
Now all of my friends want one ! However it is difficult to find fonera nowadays. So when I saw your post about wr703n, I really got excited.
If you can make an easy instructable to just access the GPIO pins (on which resistors to take off and where to solder the wires) on wr703n, that will be awesome. This is info that will be helpful..
1) how many gpio pins are accessible on this router
I use 2 GPIOs soldered to R15 and R17. Using other GPIOs like reset button, blue LED and RX TX lines interfere with system.
2) physical locations of those pins
See Word file in Dropbox folder about GPIOs.
3) if any mod (removing resisters) is required
I think resistors can stay for most applications. Resistors need to be removed for i2c and 1-wire bus applications.
4) packages needed to be loaded to get gpio working
See txt file in Dropbox GPIO folder.
You could try failsafe approach? Cycle power, press reset as soon as the blue led starts to flash. It should start to flash double-quick, and you should be able to telnet into 192.168.1.1 and run "firstboot", reboot, powercycle, telnet in again, set password and configure.
Thanks for the page, and especially thanks for helping me resurrect it!