You are on page 1of 30

Montar un iGate en un Router LinkSys

WRT54GL

La utilización de un router de modo convencional en su uso para ser utilizado en


una conexión ADSL para el acceso a Internet de uno o varios equipos informático
utilizando una conexion por cable -LAN- o bien inalambrica -WIFI- seria la que
corresponde al siguiente esquema.

Nosotros vamos a modificar ese uso y adaptarlo a nuestras necesidades


particulares habilitando el acceso a la Red de APRS, añadiendole la conectividad
necesaria para unos equipos de Radio, como indica el siguiente esquema.
Para ello deberemos de realizar unos cambios a nivel de Hardware asi como de
Software; en el hardware haremos algunas modificaciones para habilitar la
conectividad de los equipos necesarios y a nivel software, cambiaremos el
firmware original del router por otro Firmware que nos permita añadir nuevo
software necesario para el uso de los equipos añadidos y conectados al router asi
como el correcto tratamiento de la información que manejaran.

MODIFICACIONES HARDWARE

1- Abrir Router LINKSYS WRT54GL.

2- Soldar los pines en las conexionado correspondiente a los puertos serie del
router puerto 0 y 1.
No es necesario soldar todos los pin de los dos puertos series que hay en la placa
ni los pines correspondientes al puerto JTAG, pero nunca viene mal tenerlos
preparados, sobre todo, tener los dos Puertos Serie preparados para posibles
ampliaciones de uso.

3- Instalacion de un conversor RS232 A TTL.


Estos conversores se pueden adquirir por Internet en esta pagina y su precio no
supera los 3€.
http://alldav.com/index.php?main_page=product_info&cPath=9&products_id=28
Conexión de un solo puerto Conexión de los dos puertos RS232

4- Si deseamos no utilizar una TNC convencional conectada al router y lo que


deseamos es introducir la TNC en el interior del router para construir un
equipo compacto al que solo tendremos que conectar el audio de la
emisora o walky, tendremos que adquirir un modulo “Opentracker+”,
este opentracker lo podemos conseguir en la pagina de Argent Data
Systems https://www.argentdata.com/catalog/index.php?
cPath=22&osCsid=8a0a68fda1d52007461226bef19d9cf4 . Este
Opentracker tiene la ventaja que puede ser programado como tracker
para aprs, como el famoso Tinytrack3, pero tambien se le pueder cambiar
el firmaware de entre los disponibles en la pagina de Argent Data
Systems http://www.argentdata.com/support/otplus.html ,
concretamente por el firmware “KISS”, este firmware convierte al
Opentracker+ en una TNC, de esta manera podemos introducir la TNC
dentro del router.
MODIFICACIONES SOFTWARE
INSTALAR OpenWRT en router LinkSys WRT54GL V1.1 s/n CL7B1K

Existen varias versiones de OpenWRT, la ultima version se llama Backfire siendo


la ultima revision la 10.3-rc3.

● Paso Primero .- Descargar de la pagina de OpenWRT


(http:/openwrt.org/), el paquete de firmware correspondiente al router
segun version y numero de serie (LinkSys WRT54GL V1.1 s/n CL7B1K)
"openwrt-wrt54g-squashfs.bin", y guardar en el PC
(http://downloads.openwrt.org/backfire/10.03.1-rc3/brcm47xx/).

● Paso Segundo .- Entrar en el Router con el navegador


http://192.168.1.1, en el apartado Administracion, actualizar Firmware.

● Paso Tercero .- Subir el archivo anteriormente descargado en el PC


(openwrt-wrt54g-squashfs.bin), esperar unos minutos hasta que el
router se reinicie y se habra completado la actualizacion del firmware a la
version OpenWRT-Backfire, sino se reinicia pasados unos cinco minutos,
reiniciarlo manualmente apagando y encendiendo el router.

Una vez actualizado el firmware habra cambiado la pagina de inicio de


nuestro router, apareciendonos la nueva presentacion del firmware de
OpenWRT y su interface LUCI.

Nos aparecera la pantalla de presentacion del Equipo LUCI. Este es el área de


administración de Luci.
LUCI es un area libre, flexible y amigable con interfaz de usuario gráfico para
configurar OpenWrt Backfire.

Para acceder a la configuracion del router nos pedira Nombre de Usuario y


Password, que por defecto son :

Username : root
Password : (en blanco)

● Paso Cuarto .- Configuraremos el servidor de Hora, en


Administration/System/System.
● En Hostname cambiamos el nombre de nuestro router.
● En Timezone seleccionamos “Europe/Madrid”
● En Time Server añadimos el servidor “es.pool.ntp.org”, este servidor
envia la hora y la mantiene actualizada al milisegundo, si aparecen mas
servidores borrarlos todos.
Para grabar los cambios, pulsaremos en “Save & Apply”

● Paso Quinto .- Pondremos un Password, en Administration/System/Admin


Password, para posteriormente poder acceder al router usando SSH (comunicacion
encriptada) con el programa PUTTY, a partir del momento que pongamos un
Password ya no se podra acceder por telnet, solo podremos entrar atraves de SSH.
Salvaremos los cambios pulsando “Submit”.
Si tenemos acceso por Telnet podemos cambiar el Password con la siguiente
secuencia:

root@OpenWRT:~# password
Changing password for root
New password:
Retrype password:
Password for root changed by root
root@OpenWRT:~#

● Paso Sexto .- Vamos a configurar el router para que pueda acceder a internet,
entendemos que se tiene configurada la red local para acceso a internet en modo de
IP Fija, vamosa entrar en la opcion del menu
Administration/Network/Interfaces/Lan.

● En la ventana correspondiente a IPv4-Address asignaremos una


direccion (si tubieramos asignada a otro equipo la direccion 192.168.1.1
pondremos una que tengamos libre; entenderemos que esta direccion
esta libre)
● En la ventana correspondiente a IPv4-NetMask pondremos la
Mascara de Subred de nuestra red.
● En IPv4-Gateway pondremos la direccion ip de nuestro router de
casa con el cual accedemos a Internet.
● En DNS-Server pondremos las DNS de nuestra red, se pueden poner
las dos DNS separandolas por un espacio.

Aplicamos y salvamos los cambios.

● Paso Septimo .- Actualizaremos la lista de paquetes disponibles, que


podremos descargar directamente en el router una vez que tengamos
conexion a internet.

Para actualizar la lista de paquetes nos iremos al menu


Administration/System/Software pincharemos encima de Update
package list, despues de unos minutos se habra actualizado esta lista.

● Paso Octavo .- Vamos a cargar en nuestro router los paquetes que


necesitaremos, uno de ellos es el Microcom, programa de comunicaciones
que nos servira para conectar desde el router por el puerto serie que hemos
instalado en el, y el paquete APRX, programa para el tratamiento de las
señales de radio introducidas en el router por el puerto serie.

Para instalar estos paquetes nos iremos a la lista de paquetes “Available


packages”, buscaremos estos paquetes y pincharemos en ”Install”, tras
unos minutos se refrescara la pantalla y los tendremos disponibles para su
uso en la lista de ”Installed packages”.

● Tambien se pueden instalar los paquetes de forma manual:


Actualizar el conjunto de paquetes:

root@OpenWrt:~# opkg update


Downloading http://downloads.openwrt.org/backfire/10.03.1-rc3/brcm47xx
/packages/packages.gz.
INflating http://downloads.openwrt.org/backfire/10.03.1-rc3/brcm47xx/pac
kages/packages.gz.
Updated list of available packages in /var/opkg-list/packages.
root@OpenWrt:~#

Verificar disponibilidad del paquete aprx:

root@OpenWrt:~# opkg list aprx


aprx - 2.00_r421-1 - This daemon listenes for traffic on the specified serial
interface.
It then forwards appropriate packets to APRS-IS servers.
root@OpenWrt:~#
(tambien vemos la version del paquete que vamos a instalar)

Instalamos el paquete aprx:

root@OpenWrt:~# opkg install aprx


Installing aprx (2.00_r421-1) to root........
Downloading http://downloads.openwrt.org/backfire/10.03.1-rc3/brcm47xx
/packages/aprx_2.00_r421_brcm47xx.ipk
Configuring aprx
root@OpenWrt:~#

Comprobamos que esta instalado:

root@OpenWrt:~# opkg list-installed aprx


aprx - 2.00_r421-1
root@OpenWrt:~#

● Paso Noveno .- Una vez instalados los paquetes nos toca habilitar el
paquete APRX, para ello nos iremos a
Administration/Services/Initscripts, buscaremos el paquete APRX y
observaremos que aparece como Disabled, pincharemos encima de la
palabra disabled para habilitarlo y que se ejecute automaticamente al
encender el router.
● Paso Decimo .- Pasaremos a comprobar que el puerto recibe los datos
de la TNC que tendremos conectada al router, para esto conectaremos con el
router usando el programa PUTTY y una conexion SSH.

root@OpenWrt:~# microcom -D/dev/ttyS1

Si todo ha ido bien empezaremos a ver las tramas de los datos recibidos.

ÀÀ ªdjà¨`°¨fn²æ®d@að!4019.32N/00736.72W# DIGI APRS-SERRA DA ESTRELA (A.R.B.A) 14


4.800Mhz
ÀÀ fpd`n²fn´æ®f@eð!3629.07N/00512.47W#PHG4970-BASE APRS,WIDE1-1,WIDE3-3,
ÀÀ ´bp@àn²fn²æ®f@eð!3652.80N/00248.08W#PHG2910/ URE ALMERIA.
ÀÀ ªdj`nª¤ên´RC *112349z3752.88N/00445.51WxSEDE SOCIAL UNION RADIOAF. DE CORDOBA
ÀÀ ªdj`nª¤ên´þn²æ®f@cð;EA7URC *112349z3752.88N/00445.51WxSEDE SOCIAL UNION
RADIOAF. DE CORDOBA
ÀÀ ªdj`nª¤ên´þn²æ®f@cð=/;?v{M:t4I B144.800 iGate Union Radf Cordoba {UIV32N}
þn´æ®f@eð;ED7ZAB *081206z3754.94N/00443.31Wn144.825 NodoFlexnet Universidad UCO-U
ÀÀ ªdj`nª¤ên´þn´æ®f@eð;EA7URC-8 *081207z3754.86N/00443.31WnURCNET Flexnet LinuxNet Univers.
UCO
ÀÀ fpd`n²fn´æ®f@eð!3629.07N/00512.47WrPHG4970-VOZ 145.750-600 R6 ESTEPONA7-7
ÀÀ ´bp@àn²fn´æ®f@eð!3652.80N/00248.08W#PHG2910/ URE ALMERIA.
ÀÀ¢@@@@`¨¦¨@@r®d@eð>TT1.4 P/Tinytrack l ->MOVIL<-À

● Paso Onceavo .- Ahora configuraremos el APRX, el manual nos lo podemos


bajar de aqui http://ham.zmailer.org/oh2mqk/aprx/aprx-manual.pdf,
para evitar inundar la frecuencia con transmisiones de paquetes que nos
llegan por internet desde los servidores de APRS, se puede configurar el
APRX en modo de “ RX-ONLY iGate ”, de esta manera la instalacion de varios
iGates aun encontrandose proximos entre ellos no afectaria a los paquetes
que salen al aire desde los equipos de Aprs Moviles evitando que se pierdan
paquetes por colision.
Editaremos el fichero ”/etc/aprx.conf”, y pondremos los datos
correspondientes a nuestro indicativo, el servidor al que queremos
conectar y enviar la informacion, el puerto y la velocidad y
demas datos del puerto al que tenemos conectado la TNC, las coordenadas
del iGate, etc.

root@OpenWrt:~# vi /etc/aprx.conf

….........................
- mycall EA7IYO-1
- server spain.aprs2.net 14580
- serial-device /dev/ttyS1 9600 8n1 KISS
- cycle-size 20m
- beacon symbol "/I" lat "1234.56N" lon "01234.56W" comment " Rx-only
iGate Malaga-Spain ”
…............................

Una vez modificado y guardado el archivo de configuracion, ya tendremos


montado el iGate, si deseamos comprobar lo que esta pasando en
nuestro iGate mientras esta funcionando, usaremos el siguiente
comando:

root@OpenWrt:~# tail -f /var/log/aprx/aprx-rf.log

Tambien podemos chequear el estado de nuestro iGate con el comando:

root@OpenWrt:~# tail -f /var/log/aprx/aprx.log

Podemos DESACTIVAR y ACTIVAR nuestro iGate con los comando


siguientes:

root@OpenWrt:~# /etc/init.d /aprx stop


root@OpenWrt:~# /etc/init.d /aprx start

AGRADECIMIENTOS

Este proyecto es original de Chris Kantarjiev ( K6DBG ), al que quiero agradecer la


enorme ayuda prestada a pesar de la dificultad del idioma.
Video de presentacion del proyecto http://www.youtube.com/watch?v=1KYuUlnB2vM .

Tambien agradecer enormemente al amigo Jorge que me ha guiado y que sin su dedicacion y
enseñanzas aun estaria perdido frente al OpenWrt.

Juan Carlos EA7IYO.

************ OOO ************

iGate to mount a LinkSys WRT54GL


The use of a router in a conventional manner in his application to be used in an
ADSL connection for Internet access from one computer or multiple computers
using a cable connection "LAN" or wireless "WIFI" would be for the following
scheme.

We are going to change that use and adapt to our particular needs by providing
access to the APRS network, by adding connectivity to a radio, as the following
diagram.
To do this we need to make some changes at the hardware level as well as
software, in hardware will make some modifications to enable connectivity of the
necessary equipment and software level, we change the original firmware of the
router on the other Firmware that will allow us to add new software required for
use of equipment added and connected to the router as well as the correct
treatment of the information handled.

HARDWARE MODIFICATIONS

1- Open Router LINKSYS WRT54GL.

2- Solder the pins on the wiring for the serial ports of router port 0 and 1.
No need to solder all the pins of two serial ports that are in the plate or pins for
the JTAG port, but it never hurts to have them ready, especially, have both serial
ports ready for possible extensions of use.

3- Installing an RS232 to TTL converter.

These converters are available online at this site and its price is less than 3 €,
http://alldav.com/index.php?main_page=product_info&cPath=9&products_id=28
Connecting a single port Connecting the two RS232 ports

4- If you wish not to use a TNC conventional connected to the router


and what we want is to introduce the TNC inside the router to build
a compact to which only have to connect the audio from the
broadcaster / Walk, we will have to buy a module "OpenTracker +"
This OpenTracker we can get on the Argent Data Systems website
https://www.argentdata.com/catalog/index.php?
cPath=22&osCsid=8a0a68fda1d52007461226bef19d9cf4 . This
OpenTracker has the advantage that can be programmed as a tracker for
aprs, including the famous Tinytrack3, but also you can change the
firmware from the Argent Data Systems website available
http://www.argentdata.com/support/otplus.html, firmware specifically for
the "KISS", this firmware makes a TNC OpenTracker +, so TNC can enter
into the router.
SOFTWARE CHANGES
INSTALL OpenWRT on a Linksys WRT54GL V1.1 s/n CL7B1K

There are several versions of OpenWRT, the latest version is called Backfire be
the last revision of 10.3-rc3.

● Step One .- Download the OpenWRT website (http:/openwrt.org/), the


firmware package for the router according to version and serial number
(LinkSys WRT54GL V1.1 s/n CL7B1K) "openwrt-wrt54g-squashfs.bin "
and save to your PC.
(http://downloads.openwrt.org/backfire/10.03.1-rc3/brcm47xx/)

● Step Two .- Enter the Router with the browser http://192.168.1.1 in paragraph
Administration, Firmware Update.

● Step Three .- Upload the file previously downloaded to the PC (openwrt-


wrt54g-squashfs.bin), wait a few minutes until the router reboots and will
have completed the firmware update to version OpenWRT-Backfire, but last
restart about five minutes, restart it manually by turning the router.

After updating the firmware will have changed the homepage of our router, a
new synthetic presentation OpenWRT firmware and LUCI interface.
We appear presentation screen LUCI Team. This is the area of administration
of Luci.

LUCI is an area free, flexible and user-friendly graphical interface for


configuring OpenWrt Backfire.

To access the router configuration we request your Username and Password,


which by default are:

Username : root
Password : (blank)

● Step Four .- Configure the Time, under Administration / System /


System.
● In Hostname change the name of our router.
● In Timezone select "Europe / Madrid"
● Time Server On the server add "es.pool.ntp.org", this server sends
the time and kept up to date to the millisecond, if there are more servers
to delete all.
To save changes, click on "Save & Apply"

● Step Five .- We will put a password in Administration / System /


Admin Password, later to be able to access the router using SSH (encrypted
communication) with the program PUTTY, from the time we put a password
and can not be accessed by telnet, only we go THROUGH SSH.

Save your changes by clicking "Submit".

If you have Telnet access can change the password with the following
sequence:

root@OpenWRT:~# password
Changing password for root
New password:
Retrype password:
Password for root changed by root
root@OpenWRT:~#

● Step Six .- Let's configure the router so you can access the Internet,
we understand that you have configured your home network for internet
access Fixed IP mode, we enter the menu option
Administration/Network/Interfaces/Lan.

● In the window for IPv4-Address assign an address (If we had assigned


to another computer to 192.168.1.1 one that we have free will,
understand that the address is free).
● In the window for IPv4-Netmask Subnet Mask will of our network.
● In IPv4" Gateway will give the IP address of our home router which
we access the Internet.
● In DNS Server will the DNS on our network, you can put two DNS
separated by a space.

Apply and save the changes.

● Seventh Step .- update the list of available packages, you can


download directly to the router once you have internet connection.

To update the list of packages we will go to the menu


Administration/System/Software Update package spikes at the top of
list, after a few minutes this list will be updated.

● Step Eight .- Let's refresh our router packages that need, one of them
is the Microcom, communications program that will serve us to connect
from the router through the serial port that we installed on it, and APRX
package, program the treatment of radio signals entered into the router via
the serial port.

To install these packages we will go to the package list "Available


packages", these packages look for and click"Install" after a few minutes to
refresh the screen and will available for use in the list of "Installed
packages".

● Also you can install packages manually:


Aprx package Check availability:

root@OpenWrt:~# opkg update


Downloading http://downloads.openwrt.org/backfire/10.03.1-rc3/brcm47xx
/packages/packages.gz.
INflating http://downloads.openwrt.org/backfire/10.03.1-rc3/brcm47xx/pac
kages/packages.gz.
Updated list of available packages in /var/opkg-list/packages.
root@OpenWrt:~#

Aprx package Check availability:

root@OpenWrt:~# opkg list aprx


aprx - 2.00_r421-1 - This daemon listenes for traffic on the specified serial
interface.
It then forwards appropriate packets to APRS-IS servers.
root@OpenWrt:~#
(tambien vemos la version del paquete que vamos a instalar)

We found that this set:

root@OpenWrt:~# opkg install aprx


Installing aprx (2.00_r421-1) to root........
Downloading http://downloads.openwrt.org/backfire/10.03.1-rc3/brcm47xx
/packages/aprx_2.00_r421_brcm47xx.ipk
Configuring aprx
root@OpenWrt:~#

We found that this set:

root@OpenWrt:~# opkg list-installed aprx


aprx - 2.00_r421-1
root@OpenWrt:~#

● Step Nine .- After installing the packages we have to enable APRX


package, therefore we go to Administration/Services/initscripts, look
and observe aprx package that appears as Disabled, punctured above the
word disabled to enable and run automatically when you turn on the router.
● Step Ten .- We will check that the port receives data from the TNC
that we connected to the router, so it will connect with the router using the
program PUTTY and SSH connection.

root@OpenWrt:~# microcom -D/dev/ttyS1

If all goes well, begin to see the received data frames.

ÀÀ ªdjà¨`°¨fn²æ®d@að!4019.32N/00736.72W# DIGI APRS-SERRA DA ESTRELA (A.R.B.A) 14


4.800Mhz
ÀÀ fpd`n²fn´æ®f@eð!3629.07N/00512.47W#PHG4970-BASE APRS,WIDE1-1,WIDE3-3,
ÀÀ ´bp@àn²fn²æ®f@eð!3652.80N/00248.08W#PHG2910/ URE ALMERIA.
ÀÀ ªdj`nª¤ên´RC *112349z3752.88N/00445.51WxSEDE SOCIAL UNION RADIOAF. DE CORDOBA
ÀÀ ªdj`nª¤ên´þn²æ®f@cð;EA7URC *112349z3752.88N/00445.51WxSEDE SOCIAL UNION
RADIOAF. DE CORDOBA
ÀÀ ªdj`nª¤ên´þn²æ®f@cð=/;?v{M:t4I B144.800 iGate Union Radf Cordoba {UIV32N}
þn´æ®f@eð;ED7ZAB *081206z3754.94N/00443.31Wn144.825 NodoFlexnet Universidad UCO-U
ÀÀ ªdj`nª¤ên´þn´æ®f@eð;EA7URC-8 *081207z3754.86N/00443.31WnURCNET Flexnet LinuxNet Univers.
UCO
ÀÀ fpd`n²fn´æ®f@eð!3629.07N/00512.47WrPHG4970-VOZ 145.750-600 R6 ESTEPONA7-7
ÀÀ ´bp@àn²fn´æ®f@eð!3652.80N/00248.08W#PHG2910/ URE ALMERIA.
ÀÀ¢@@@@`¨¦¨@@r®d@eð>TT1.4 P/Tinytrack l ->MOVIL<-À

● Eleventh Step .- APRX now configure the manual can be downloaded from us here
http://ham.zmailer.org/oh2mqk/aprx/aprx-manual.pdf, to prevent flooding of the
frequency of packet transmissions that come to us by from internet APRS servers, you
can set the mode aprx "iGate RX-ONLY", so the installation of several even iGate are
close among them would not affect the packages that air from the equipment Mobile
APRS preventing packet loss by collision
Edit the file "/ etc / aprx.conf", and put the data for our illustration, the
server you want to connect and send the information, the port and speed and
other particulars of the port you have connected the TNC, the iGate
coordinates, etc.

root@OpenWrt:~# vi /etc/aprx.conf

….........................
- mycall EA7IYO-1
- server spain.aprs2.net 14580
- serial-device /dev/ttyS1 9600 8n1 KISS
- cycle-size 20m
- beacon symbol "/I" lat "1234.56N" lon "01234.56W" comment " Rx-only
iGate Malaga-Spain ”
…............................

Once modified and saved the configuration file, and we mounted the iGate, if
you want to check what is happening in our iGate while working, we will use
the following command:

root@OpenWrt:~# tail -f /var/log/aprx/aprx-rf.log

We can also check the status of our iGate with the command:

root@OpenWrt:~# tail -f /var/log/aprx/aprx.log

We can turn off and turn our iGate with the following command:

root@OpenWrt:~# /etc/init.d /aprx stop


root@OpenWrt:~# /etc/init.d /aprx start

ACKNOWLEDGEMENTS

This project is originally from Chris Kantarjiev (K6DBG), I thank you for the great
help given despite the difficulty of the language.
Video of presentation of the project http://www.youtube.com/watch?v=1KYuUlnB2vM .

Also big thanks to his friend George that has guided me and that without his dedication and
teachings still would be lost to the OpenWrt.

Juan Carlos EA7IYO.

************ OOO ************

You might also like