Just got a TP-LINK WR703N, which is a low cost 3G-wifi router. It comes with a USB host, one LAN port, one WIFI interface, and a mini usb connector for power supply.
It would be a nice choice for hobbyist to hack and do somethings cool with it. For example, may be a WIFI enabled sensor is awesome!
Let's get started!
*** Do at your own risk! May damage your router ****
As it is a new device, I use the firmware upgrade web interface inside (http://192.168.1.1, admin/admin) to flash openwrt firmware:
Download the latest firmware from the openwrt website:
Once it is flashed successfully, it will reboot and then you can try to telnet to it.
root@OpenWrt:/# cat /proc/cpuinfo
system type : Atheros AR9330 rev 1
machine : TP-LINK TL-WR703N v1 processor : 0
cpu model : MIPS 24Kc V7.4
BogoMIPS : 265.42
wait instruction : yes
microsecond timers : yes
tlb_entries : 16
extra interrupt vector : yes
hardware watchpoint : yes,
count: 4, address/irw mask: [0x0000, 0x0ff8, 0x0ff8, 0x0ff8]
ASEs implemented : mips16
shadow register sets : 1
kscratch registers :
0 core : 0 VCED exceptions : not available VCEI exceptions : not available
[Web Administrative Interface
Once enabled telnet, you can try connect the LAN port to a router with internet access and it would be able to access the internet.
At this point, assuming you can access the internet in the openwrt telnet console. We are going to install the web GUI for easy configuration:
To retrieve the current list of available packages in the repository do
then for a full LuCI
HTTPS support enter
opkg install luci
Enable (so that it will be started at every boot) and start uHTTPd:
You should now be able to connect with a web browser to you router : http://192.168.1.1/
(More info on http://wiki.openwrt.org/doc/howto/luci.essentials
[USB mass storage
Assuming you still have the internet access, let's fetch in the usb mass storage essentials:
opkg install kmod-usb-storage block-mount
Also, you have to install the file system and codepage related modules.
for fat32 (Windows compatible), I installed the following:
opkg install kmod-fs-vfat kmod-nls-cp437 kmod-nls-iso8859-1
For other file systems, please check the following document:
Now, you can mount the usb disk!
mount /dev/sda1 /mnt/usb
[USB to Serial : Silicon Labs CP210x
The usb driver for cp210x is not available in the pre-complied packages, I have compiled using openwrt build system (based on Kernel 3.2.5), you can download here:
put the *.ko in /tmp
Once you attached the usb2serial adapter, the /dev/ttyUSB0 will be ready to use. Now, you can communicate with the MCU.
Official TLWR703N openwrt page: http://wiki.openwrt.org/toh/tp-link/tl-wr703n