W-Link WL-R220 Series User manual

Quick Start
---Apply to WL-R220 Series OpenWrt Router
V1.3
http://www.wlink-tech.com
April, 2016

WL- R220 OpenWrt Router Quickstart
www.wlink-tech.com
1
Copyright © Shenzhen WLINK Technology Company Limited 2012 ~2016
Without our written approval, Anyone can’t extract, copy whole or part of content of this file and
can’t spread out in any format.
Caution
Due to product updates or functional upgrading, we may renew the content of this file, and this
file only for reference. All statement, information, suggestion.etc in this file does not compose
any form of guarantee and we WLINK reserves the right of final explanation.
Shenzhen WLINK Technology Company Limited
Add:
3F, Yiben Building, Chaguang Rd., Xili, Nanshan Dist., China, 518000
Web:
http://www.wlink-tech.com
Service Email:
support@wlink-tech.com
Tel:
86-755-86089513
Fax:
86-755-26059261

WL- R220 OpenWrt Router Quickstart
www.wlink-tech.com
2
Contents
1Product Introduction......................................................................................................................4
1.1 Product overview................................................................................................................4
1.2 Model Introduction............................................................................................................. 4
1.3 Typical Application Diagram.............................................................................................5
1.4 Hardware Features............................................................................................................6
2Hardware Installation.................................................................................................................... 7
2.1 Panel.................................................................................................................................... 7
2.2 Dimension............................................................................................................................8
2.3 How to Install...................................................................................................................... 9
3OpenWrt Instruction.................................................................................................................... 10
3.1 GPIO and LED Indicators...............................................................................................10
3.2 Interface(8PINs) indication.............................................................................................12
3.3 OpenWrt Configuration................................................................................................... 15
3.3.1 OpenWrt Source Code Libraries................................................................................15
3.3.2 OpenWrt Edit Tool........................................................................................................ 15
3.4 VLAN Configuration.........................................................................................................22
3.5 GPIO Debugging..............................................................................................................23
3.6 4G/3G dial-up................................................................................................................... 23
3.7 NAND Flash...................................................................................................................... 28

WL- R220 OpenWrt Router Quickstart
www.wlink-tech.com
4
1Product Introduction
1.1 Product overview
WL-R220 4G/3G OpenWrt industrial router is the internet of thing mobile broadband
router and a machine to machine (M2M) industrial cellular router, which can optional
works on 4G/3G cellular network to provide reliable, secure and high speed wireless
connectivity. It is powerful and programmable industrial mobile router with high
performance and harden casing design for remote management, telemetry, condition
monitoring, CCTV, ATMs, vending machine and other M2M applications.
WLINK WL-R220 4G/3G OpenWrt industrial router is based on the OpenWrt trunk system,
which is configured using a web interface (LuCI). Customers can be allowed to customize
WL-R220 series router to fit any application from the selection and configuration by
WLINK provided . It’ll be used for anything that an embedded Linux system can be used
for, including functions as SNMP, SSH, VPN, traffic-shaping system, and so on.
1.2 Model Introduction
WLINK industrial grade router OpenWrt Series have single module / single SIM card,
single module / double SIM card, double module / double SIM card design, support
multi-band frequency WCDMA, HSPA+,4G FDD/TDD etc., mobile wide-band, backward
compatibility with GPRS、EDGE、CDMA 1x, etc., mobile narrow-band, optional built-in
Wi-Fi module to build WLAN network, optional GPS module Expansion positioning
function, to suit different requirement and different network environment of different
operators, our OpenWrt Series router have many available models for option, please
consult WLINK sales manager for details.

WL- R220 OpenWrt Router Quickstart
www.wlink-tech.com
5
1.3 Typical Application Diagram
WLINK 4G/3G Router are widely used in Telecom, economic, advertisement, traffic,
environment protection business area.
For example, in economic area, WL-R220 OpenWrt Series Router connect server by IPSec &
GRE to ensure data security, tiny design makes it easily installed into ATM machine. All these
technology ensure safe and reliable data transmission, and minimize the probability of
network disconnection, and maximize the usability of economic business like ATM,
POS .etc.

WL- R220 OpenWrt Router Quickstart
www.wlink-tech.com
6
Figure 1-1 Network Topology
1.4 Hardware Features
CPU: Atheros AR9344, 533MHz
SPI Nor Flash - 8MB
NAND Flash 512MB
DDR2:16Bit 64MB
Mini PCIe Adapter USB2.0 3G/4G Module, 4G/HSPA+/WCDMA module
optional
1*USIM Slot/2*USIM Slot Optional
2*LAN, 1*WAN
RS232/RS485 Optional
Reset Button
Embedded watchdog
Wi-Fi:IEEE 802.11n 300Mbps
2*DI, 1*DO

WL- R220 OpenWrt Router Quickstart
www.wlink-tech.com
7
2Hardware Installation
This chapter is mainly for installation introduction, there would be some difference
between the scheme and real object. But the difference won’t have any influence to
products performance.
2.1 Panel
Table 2-1 WL-R220 Structure
WLINK Tech.
WL-R220 OpenWrt Router
Front
Top
There are some difference on Antenna interface and indicator light for the device
with extended GPS features.

WL- R220 OpenWrt Router Quickstart
www.wlink-tech.com
8
Table 2-2 Router Interface
Port
Instruction
Remark
USIM
Plug type SIM Slot, support 1.8/3V/5V automatic
detection.
Main
3G/LTE antenna, SMA connector, 50Ω.
Aux/GPS
Optional for LTE MIMO antenna or GPS
antenna ,SMA connector, 50Ω.
Wi-Fi1
Wi-Fi antenna, SMA connector,
Wi-Fi2
Wi-Fi antenna, SMA connector,
Wi-Fi MIMO
LAN1
10/100Base-TX,MDI/MDIX self-adaption.
LAN2
10/100Base-TX,MDI/MDIX self-adaption.
WAN
10/100Base-TX,MDI/MDIX self-adaption.
Reset
Reset button,(press on button at least 5 seconds)
PWR
Power connector
5~26V DC
I/O
I/O1 and I/O2 is digital input, and I/O3 is digital
output.
2.2 Dimension

WL- R220 OpenWrt Router Quickstart
www.wlink-tech.com
9
2.3 How to Install
2.3.1 SIM/UIM card install
If use dual SIM/UIM card router, you need insert dual SIM before configure it. After
inserting, please follow below steps to connect the router.
Before connecting, please disconnect any power resource of router
2.3.2 Ethernet Cable Connection
Use an Ethernet cable to connect the cellular Router with computer directly, or transit by a
switch.
2.3.3 Serial Port Connection
If you want to connect the router via serial port to laptop or other devices, you should
prepare a serial port or RJ45 cable, this cable is optional available from WLINK. One end
connect to computer serial port, the other end connects to the console port of the router
Before connecting, please disconnect any power resource.
2.3.4 Power Supply
In order to get high reliability, WLINK OpenWrt Series Router power adapt supports wide
voltage input range from +5V to +36VDC, support hot plug and complex application
environment.
2.3.5 Review
After insert the SIM/UIM card and connect Ethernet cable and antenna, connect power
supply adaptor or power cable.
Please connect the antenna before power on, otherwise the signal maybe poor
because of impedance mismatching.
Notice:
Step 1 Check the antenna connection.
Step 2 Check SIM/UIM card, confirm SIM/UIM card is available.
Step 3 Power on the industrial Router
----END

WL- R220 OpenWrt Router Quickstart
www.wlink-tech.com
10
3OpenWrt Instruction
3.1 GPIO and LED Indicators
GPIO
Indication
Description
GPIO_0
Output GPIO_0_out
Digit signal output
GPIO_1
Input GPIO_1_in
Digit signal input check: Low level as default
GPIO_2
Input GPIO_2_in
Digit input check: Low level as default
GPIO_3
Output SIM_Choose
SIM control:Low level for SIM1, and high level
for SIM2. Low level as default.
GPIO_4
Output Signal
Watchdog heartbeat check: 500ms pulse signal
GPIO_1
1
Output Error_LED
Error LED indication: Not find 3G/4G module or
SIM card. LED on at low level and LED off at
high level.
GPIO_1
2
Output
module_PWR_Control
4G/3G module power control: Low level mode
enable power for module. High level mode
disable power for module.
Note: reset module when module is abnormal.
GPIO_1
3
Output
2G_WLAN_LED
Wi-Fi LED indication. On at low level and off at
high level.
GPIO_1
4
Output Net_1_LED
3G/4G signal strength indication(weak): On at
low level and off at high level.
GPIO_1
Output Net_2_LED
3G/4G signal strength indication(Normal): On at

WL- R220 OpenWrt Router Quickstart
www.wlink-tech.com
11
5
low level and off at high level.
GPIO_1
6
Output Net_3_LED
3G/4G signal strength indication(good): On at
low level and off at high level.
GPIO_1
7
Input Reset Button
Reset check: high level as default
GPIO_1
8
Output Internet_LED
WAN ACT LED. Light on for Low level and light
off for high level.
GPIO_1
9
Output LED_LINK_1
LAN1 ACT LED. Light on for low level and light
off for high level.
GPIO_2
0
Output LED_LINK_2
LAN2 ACT LED. Light on for low level and light
off for high level.
GPIO_2
1
Output LED_LINK_3
LAN3 ACT LED. Light on for low level and light
off for high level.
GPIO_2
2
Output
PA_PWR_Control
Wi-Fi PA Power Control. High level to disable
and low level to enable. If no need Wi-Fi
feature, suggest turn off the Wi-Fi power to
reduce power consumption.
Function Description.
1) GPIO11. Error LED Indication. If the 3G/4G module or SIM card is not
detected, the LED will indicate the router can’t connect cellular network.
2) GPIO12. The GPIO12 will control 3G/4G module power. The power is turn
on as default, and the default value is 0(low level).
If dial-up is failed after several times or module status is abnormal, it need to
restart 3G/4G module. It will reset 3G/4G module when GPIO12 outputs high level for
3 seconds first and then pull low this level.
3) GPIO14. This GPIO is multiplexed. It is blinking when dial-up. After 3G/4G is
online, it will be constant light. Meanwhile, it also indicates the signal value is less
than or equal to12.

WL- R220 OpenWrt Router Quickstart
www.wlink-tech.com
12
When signal value >12 and <=18, the GPIO14 will be constant light with GPIO15
together, it indicates the signal is normal.
When signal value >18, GPIO14 will be constant light with GPIO15 and GPIO16
together, it indicates signal is good.
4) GPIO17. Reset Function. When GPIO17 detects constant low level more
than 5sec, the router will reset to default setting.
3.2 Interface(8PINs) indication
The RS232 port is used to debugging OpenWrt.
Pin
Indication
Note
1
V+
Vin+ (Nonpolar)
2
V-
Vin- (Nonpolar)
3
GND
GND
4
PC_RXD/485-B
RX
5
PC_TXD/485-A
TX
6
Digital_IN_1
Digital Input (I/O1)
7
Digital_IN_2
Digital Input (I/O2)
8
Digital_Output
Digital Output I/O

WL- R220 OpenWrt Router Quickstart
www.wlink-tech.com
13
1) Serial Port Connection
PINs DB9(Female)
PINs
DB9(Female)
V+
V-
GND
----
5
RX
----
2
TX
----
3
DI-1
DI-2
DI-3
Serial port properties
Properties
Note
Baud rate
115200bps
Data bits
8
Stop bits
1
Parity bits
none
Flow control
none
2) Serial Port Schematic Diagram

WL- R220 OpenWrt Router Quickstart
www.wlink-tech.com
14
3) RS485 Schematic Diagram
The baud rate should be configured less than 57600bps when serial port is RS485.
4) GPIO DI Schematic Diagram
External 3.3V for voltage pull as default and GPIO_1 for 0 as The vacancy situation.

WL- R220 OpenWrt Router Quickstart
www.wlink-tech.com
15
5) GPIO DO Schematic Diagram
When GPIO_0 output high level, external detection for low level.
When GPIO_0 output low level, external detection for high level 3.3v.
3.3 OpenWrt Configuration
3.3.1 OpenWrt Source Code Libraries
svn co svn://svn.openwrt.org/openwrt/trunk
3.3.2 OpenWrt Edit Tool
Make menuconfig

WL- R220 OpenWrt Router Quickstart
www.wlink-tech.com
16

WL- R220 OpenWrt Router Quickstart
www.wlink-tech.com
17
3.3.2.1 USB Support

WL- R220 OpenWrt Router Quickstart
www.wlink-tech.com
18
3.3.2.1 Network Support
3.3.2.3 LuCI

WL- R220 OpenWrt Router Quickstart
www.wlink-tech.com
19
3.3.2.4 Network
Other manuals for WL-R220 Series
1
Table of contents
Other W-Link Wireless Router manuals