26 October 2014

APRX Setup on TPLINK MR-3420

TP-Link TL-MR3420

MR3420 is a low cost b/g/n wireless router with USB 2.0, capable of running OpenWRT. Make sure the router version is v1.1 or v1.2. MR3220 is a even lower cost 150n wireless router. The cheapest price you can get on lelong.com is RM75.00. You can buy here http://www.lelong.com.my/tplink-tl-mr3420-3g-3-75g-4g-broadband-n-wireless-wi-fi-router-84693565-2011-06-Sale-P.htm

Installation
This section details what is required to install and upgrade OpenWrt. First we link to software that you should download before you start reading the instructions on how to install.

Download a Install Image from this openwrt firmware here
https://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/openwrt-ar71xx-generic-tl-mr3420-v1-squashfs-factory.bin

Then navigate to - Firmware Upgrade and select the above  file 
  • Do NOT turn off the power during upgrade
  • Wait about 120 seconds to start up, see SYS LED activity.
Used Putty to change the password, select telnet then Type: passwd
Once password has been setup Telnet is no longer available, use SSH instead to connect

Goto webexplorer http://192.168.1.1/cgi-bin/webif/info.sh to navigate from webif
go to System and select Packages then press Update Packages List.

Select serial driver and install it.

or you can use putty to configure it

Putty SSH to Install Serial Drivers
In this step, we are going to install the necessary serial port utilities and drivers. As the space is limited in the box, do not blindly install all usb-serial drivers.
  1. If needed, ssh login to the box
  2. type “opkg update”, to update the database of opkg app.
  3. type “opkg install usbutils”, for serial utilities
  4. for Prolific 2302 based USB-serial cable, type “opkg install kmod-usb-serial-pl2303
  5. type “dmesg” to confirm that the driver found the USB-Serial adapter, as shown installed as “ttyUSB0″
Install and Setup APRX Software 2.03 test
  1. type “opkg install aprx” by default is aprx ver 2.03
  2. edit /etc/aprx.conf
  3. If you need install aprx ver 2.3 then type opkg install http://www.kissoz.dk/aprx/bin/ar71xx/packages/aprx_2.05_r485-1_ar71xx.ipk
  4. If your version is 2.0, you can update latest version with the above command. Please make a backup aprx.conf b4 perform update.
  5. For version 2.00_r421-1 download here http://downloads.openwrt.org/backfire/10.03.1-rc6/ar71xx/packages/aprx_2.00_r421-1_ar71xx.ipk
  6. Once complete edit the file vi /etc/aprx.conf
Sample aprx.conf file

mycall  9W2ALS-5


   server    rotate.aprs.net    14580
   filter p/9M/9W    

   pidfile /var/run/aprx.pid
   rflog /var/log/aprx/aprx-rf.log
   aprxlog /var/log/aprx/aprx.log

   serial-device /dev/ttyUSB0  9600 8n1    KISS 
   tx-ok         true    

   beacon symbol "I#" lat "0133.33N" lon "10345.80E" \
          comment "Johor Bahru, Malaysia (IS)"
   beacon to $mycall symbol "/#" lat "0133.33N" lon "10345.72E" comment "Fill-in/Igate Tp-Link Router MR3420"

   transmitter $mycall
   
      source        APRSIS
      relay-type    3rd-party
      via-path      WIDE1-1
      viscous-delay 5





Start APRX and Check
  1. /etc/init.d/aprx start
  2. Use your web browser aprs.fi to check and read the last line, see that your callsign is there
Setting up Automatic Start
  • Edit the file /etc/rc.local, and add  the following line
/etc/init.d/aprx start

Setting up Manual Start and monitor activity

aprx -d -f /etc/aprx.conf

Setting up X-wrt web if on openwrt

edit opkg.conf
opkg -recursive remove luci
opkg -recursive remove luci-core
Opkg update      
Opkg install webif     
  / Etc / init.d / uhttpd enable    
 / Etc / init.d / start uhttpd

lepas siap install web if edit balik dan buang baris yg baru masukkan tu


Linux Command

ifconfig usb0 - see an IP address assigned
dmesg |grep usb
lsusb -v
uci -P/var/state show wireless for show wireless setup
uci -P/var/state show network for show network setup
cat /etc/config/wireless
cat /etc/config/network
cat /proc/cpuinfo - cpu info
cat /proc/bus/usb/devices
cat /proc/diskstats
cat /proc/interrupts
cat /proc/meminfo
cat /proc/mtd
cat /proc/version
uname -a