Hide thumbs Also See for WL-R220 Series:

Advertisement

Quick Links

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

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the WL-R220 Series and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for WLINK WL-R220 Series

  • Page 1 Quick Start ---Apply to WL-R220 Series OpenWrt Router V1.3 http://www.wlink-tech.com April, 2016...
  • Page 2 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:...
  • Page 3: Table Of Contents

    3 OpenWrt 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 www.wlink-tech.com...
  • Page 4 WL- R220 OpenWrt Router Quickstart 3.8 GPIO Operation........................30 www.wlink-tech.com...
  • Page 5: Product Introduction

    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.
  • Page 6: Typical Application Diagram

    WL- R220 OpenWrt Router Quickstart 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...
  • Page 7: Hardware Features

    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  www.wlink-tech.com...
  • Page 8: Hardware Installation

    But the difference won’t have any influence to products performance. Panel Table 2-1 WL-R220 Structure WL-R220 OpenWrt Router WLINK Tech. Front There are some difference on Antenna interface and indicator light for the device with extended GPS features. www.wlink-tech.com...
  • Page 9: Dimension

    Wi-Fi antenna, SMA connector, Wi-Fi MIMO LAN1 10/100Base-TX,MDI/MDIX self-adaption. LAN2 10/100Base-TX,MDI/MDIX self-adaption. 10/100Base-TX,MDI/MDIX self-adaption. Reset Reset button,(press on button at least 5 seconds) Power connector 5 ~ 26V DC I/O1 and I/O2 is digital input, and I/O3 is digital output. Dimension www.wlink-tech.com...
  • Page 10: How To Install

    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.
  • Page 11: Openwrt Instruction

    Output Wi-Fi LED indication. On at low level and off at 2G_WLAN_LED high level. GPIO_1 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 www.wlink-tech.com...
  • Page 12 3 seconds first and then pull low this level. 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. www.wlink-tech.com...
  • Page 13: Interface(8Pins) Indication

    5sec, the router will reset to default setting. Interface(8PINs) indication The RS232 port is used to debugging OpenWrt. Indication Note Vin+ (Nonpolar) Vin- (Nonpolar) PC_RXD/485-B PC_TXD/485-A Digital_IN_1 Digital Input (I/O1) Digital_IN_2 Digital Input (I/O2) Digital_Output Digital Output I/O www.wlink-tech.com...
  • Page 14 WL- R220 OpenWrt Router Quickstart Serial Port Connection PINs DB9(Female) PINs DB9(Female) ---- ---- ---- DI-1 DI-2 DI-3 Serial port properties Properties Note Baud rate 115200bps Data bits Stop bits Parity bits none Flow control none Serial Port Schematic Diagram www.wlink-tech.com...
  • Page 15 WL- R220 OpenWrt Router Quickstart RS485 Schematic Diagram The baud rate should be configured less than 57600bps when serial port is RS485. GPIO DI Schematic Diagram External 3.3V for voltage pull as default and GPIO_1 for 0 as The vacancy situation. www.wlink-tech.com...
  • Page 16: Openwrt Configuration

    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. 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 www.wlink-tech.com...
  • Page 17 WL- R220 OpenWrt Router Quickstart www.wlink-tech.com...
  • Page 18 WL- R220 OpenWrt Router Quickstart 3.3.2.1 USB Support www.wlink-tech.com...
  • Page 19 WL- R220 OpenWrt Router Quickstart 3.3.2.1 Network Support 3.3.2.3 LuCI www.wlink-tech.com...
  • Page 20 WL- R220 OpenWrt Router Quickstart 3.3.2.4 Network www.wlink-tech.com...
  • Page 21 WL- R220 OpenWrt Router Quickstart 3.3.2.5 Utilities www.wlink-tech.com...
  • Page 22 WL- R220 OpenWrt Router Quickstart 3.3.3 Firmware Upgrade www.wlink-tech.com...
  • Page 23: Vlan Configuration

    WL- R220 OpenWrt Router Quickstart VLAN Configuration LAN1 is LAN port and LAN2 is WAN port as default in OpenWrt. Modify LAN setting as below. www.wlink-tech.com...
  • Page 24: Gpio Debugging

    WL- R220 OpenWrt Router Quickstart GPIO Debugging GPIO definition in the DB120 OpenWrt as below. Modify LED indication in GUI 4G/3G dial-up 4G/3G PPP Dial-up Setting www.wlink-tech.com...
  • Page 25 WL- R220 OpenWrt Router Quickstart 4G/3G DHCP Dial-up Setting www.wlink-tech.com...
  • Page 26 Chat –t 3 –e '' '<AT Command>' OK >> /dev/ttyUSB2 < /dev/ttyUSB2 Disconnect 4G network  chat -t 3 -e '' 'AT\^NDISDUP=1,0' OK >> /dev/ttyUSB2 < /dev/ttyUSB2 Connect 4G network  chat -t 3 -e '' 'AT\^NDISDUP=1,1,"3GNET"' OK >> / dev/ttyUSB2 < /dev/ttyUSB2 AT command format as below. AT^NDISDUP=1,1,"<APN>","<Username>","<Password>",<Auth-type> www.wlink-tech.com...
  • Page 27 Check 4G Register status  Check current network  Check signal strength  3GNET for APN. Different module with different virtual ttyUSB number. Normally, ttyUSB0 for 3G module virtual number, and ttyUSB2 for 4G virtual number. Overview Status PPP dial-up status  www.wlink-tech.com...
  • Page 28 WL- R220 OpenWrt Router Quickstart DHCP dial-up status  www.wlink-tech.com...
  • Page 29: Nand Flash

    # CONFIG_MTD_REDBOOT_PARTS is not set # CONFIG_MTD_SM_COMMON is not set # CONFIG_MTD_SPLIT_SEAMA_FW is not set # CONFIG_MTD_TPLINK_PARTS is not set CONFIG_MTD_UBI=y CONFIG_MTD_UBI_BEB_LIMIT=20 CONFIG_MTD_UBI_BLOCK=y # CONFIG_MTD_UBI_FASTMAP is not set # CONFIG_MTD_UBI_GLUEBI is not set CONFIG_MTD_UBI_WL_THRESHOLD=4096 # CONFIG_RTL8306_PHY is not set www.wlink-tech.com...
  • Page 30 # CONFIG_SOC_AR71XX is not set # CONFIG_SOC_AR724X is not set # CONFIG_SOC_AR913X is not set CONFIG_SPI_ATH79=y # CONFIG_SPI_BITBANG is not set CONFIG_UBIFS_FS=y # CONFIG_UBIFS_FS_ADVANCED_COMPR is not set Loading driver information MTD Partition Partition Information Formatting dblock8 Mount ubi Ubi information www.wlink-tech.com...
  • Page 31 WL- R220 OpenWrt Router Quickstart Partition volume Mount ubi file system Df file system Partition GPIO Operation 3.8.1 GPIO Definition in Kernel ./openwrt/trunk/build_dir/target-mips_34kc_musl-1.1.11/linux-ar71xx_generic/linux-4.1.13/arch /mips/ath79/mach-db120.c www.wlink-tech.com...
  • Page 32 3.8.2 GPIO Operation by User GPIO Control Contents: /sys/class/gpio GPIO Export Control: /sys/class/gpio/export It is used to inform system which GPIO pins need to be exported control. Cancel Export Control: /sys/class/gpio/unexport It is used to inform that system cancels export control. www.wlink-tech.com...
  • Page 33 When press reset button, it’ll trigger button_hotplug_event function (gpio-button-hotplug.c). Firstly, Call the ueven button_hotplug_create_event Secondly, Call the fill even( JSON format)of button_hotplug_fill_even Finanlly, Call the uevent broadcast of button_hotplug_work www.wlink-tech.com...
  • Page 34 In according to Pin3 definition in the GPIO table, control /sys/class/gpio/gpio3. process as following. Power off 4G/3G module--->GPIO high/low level to switch SIM card---> power on 4G/3G module. After Power off 4G/3G module, please wait 8sec interval because it need to release the circuit protection. -- THE END www.wlink-tech.com...

Table of Contents