Skip to content

Instantly share code, notes, and snippets.

@ignisf
Created March 31, 2014 20:42
Show Gist options
  • Save ignisf/9901767 to your computer and use it in GitHub Desktop.
Save ignisf/9901767 to your computer and use it in GitHub Desktop.
FreeBSD PPP Configuration for MTel HUAWEI E303 USB 3g Modem
mtel:
set device /dev/cuaU0.0
set speed 921600
set timeout 0
set authname mtel
set authkey mtel
set phone *99#
set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \
\"\" \
AT OK-AT-OK \
ATZ OK \
AT+CPIN=0000 OK-AT-OK \
AT+CFUN=1 OK-AT-OK \
AT+CMEE=2 OK-AT-OK \
AT+CSQ OK \
AT+CGDCONT=1,\\\"IP\\\",\\\"inet-gprs.mtel.bg\\\" OK \
AT+CGACT? OK-AT-OK \
AT+CGATT? OK \
AT+CGCLASS? OK \
AT+COPS? OK \
ATD*99# CONNECT"
set crtscts on
nat enable yes
enable dns
resolv writable
set ifaddr 10.1.0.2/0 10.0.0.1/0 255.255.255.255 0.0.0.0
add default HISADDR
@ignisf
Copy link
Author

ignisf commented Mar 31, 2014

usb_modeswitch -v 0x12d1 -p 0x14fe -V 0x12d1 -P 0x1506 -s 20 -M "55534243123456780000000000000a11062000000000000100000000000000"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment