subota, 17. siječnja 2015.

Configure 3G UMTS TP-Link TL-WR703N on OpenWRT

First install OpenWRT on TP-Link TL-WR703N
http://wiki.openwrt.org/toh/tp-link/tl-wr703n

Insert SIM card in your 3G usb stick, and put USB 3G dongle in TP-Link router.

Connect TP-Link router to your PC with UTP cable, and power on router.


On picture is router TP-Link TL-WR703N

On Linux PC open Terminal, Terminator or any CLI you want, and connect with router.

$ ssh root@192.168.1.1
if you have a custom ssh port the command is:
$ ssh -p YOUR PORT root@YOUR Openwrt IP

-------------------------------------------

http://wiki.openwrt.org/doc/recipes/3gdongle

# opkg update
# opkg install kmod-usb2 
# opkg install kmod-usb-ohci 
# opkg install kmod-usb-uhci 
# opkg install kmod-usb-serial
# opkg install kmod-usb-serial-option
# opkg install kmod-usb-serial-wwan
# opkg install kmod-usb-acm
# opkg install kmod-usb-serial-option
# opkg install kmod-usb-serial
# opkg install luci-proto-3g

http://wiki.villagetelco.org/Using_a_3G_USB_Modem_with_the_TL_WR703n

# opkg install comgt
# opkg install kmod-usb-serial
# opkg install usb-modeswitch
# opkg install usb-modeswitch-data
# opkg install openssh-sftp-server    (this is just for file browsing)

-------------------------------------------

# cat /proc/bus/usb/devices

T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480  MxCh= 1
B:  Alloc=  1/800 us ( 0%), #Int=  1, #Iso=  0
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0002 Rev= 3.03
S:  Manufacturer=Linux 3.3.8 ehci_hcd
S:  Product=Generic Platform EHCI Controller
S:  SerialNumber=ehci-platform
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   4 Ivl=256ms

T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  3 Spd=480  MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=12d1 ProdID=1003 Rev= 0.00
S:  Manufacturer=HUAWEI Technology
S:  Product=HUAWEI Mobile

-------------------------------------------

# vi /etc/modules.d/usb-serial

usbserial vendor=12d1 ProdID=1003

-------------------------------------------

# reboot

-------------------------------------------

# ifup wan

-------------------------------------------

# vi /etc/chatscripts/3g.chat

ABORT   BUSY
ABORT   'NO CARRIER'
ABORT   ERROR
REPORT  CONNECT
TIMEOUT 10
""      "AT&F"
OK      "ATE1"
OK      'AT+CGDCONT=1,"IP","$USE_APN" '
SAY     "Calling UMTS/GPRS"
TIMEOUT 30
OK      "ATD*99***#"
CONNECT ' '

-------------------------------------------

# ls /dev/ttyUSB*
   /dev/ttyUSB0  /dev/ttyUSB1

-------------------------------------------

# vi /etc/config/network

config interface 'wan'
        option ifname 'ppp0'
        option pincode 'YOUR SIM PIN CODE'
        option device '/dev/ttyUSB0'
        option apn 'mobileinternet.tele2.hr'
        option service 'umts'
        option proto '3g'

-------------------------------------------
http://wiki.openwrt.org/doc/recipes/3gdongle

http://wiki.villagetelco.org/Using_a_3G_USB_Modem_with_the_TL_WR703n
-------------------------------------------

Nema komentara:

Objavi komentar