User Tools

Site Tools


pppd_huawei_sfr_3g

Kernel

Activer ppp dans le kernel + la compression dans ppp. Activer le support de USB to SERIAL Activer le support des modem USB générique kernel > linux-2.6.26

compilation du bidule

wget http://www.kanoistika.sk/bobovsky/archiv/umts/huaweiAktBbo.c
gcc huaweiAktBbo.c -o /usr/sbin/huaweiAktBbo -lusb

udev/rules.d/99-huawei.rules

SUBSYSTEM=="usb", SYSFS{idProduct}=="1003", SYSFS{idVendor}=="12d1", RUN+="/usr/sbin/huaweiAktBbo"
SUBSYSTEM=="usb", SYSFS{idProduct}=="1003", SYSFS{idVendor}=="12d1", RUN+="/bin/sleep 5"
SUBSYSTEM=="usb", SYSFS{idProduct}=="1003", SYSFS{idVendor}=="12d1", RUN+="/sbin/modprobe usbserial vendor=0x12d1 product=0x1003"

synchroniser la clée

screen /dev/ttyUSB0
ag!gstatus?
at+cpin?
at+cpin="xxxx"

test de script ppp

/etc/ppp/peers/sfr-huawei

noauth
/dev/ttyUSB0
#3600000
noipdefault
defaultroute
persist
noauth
nodetach
usepeerdns
0.0.0.0:0.0.0.0
connect "/usr/sbin/chat -vf /etc/ppp/peers/huawei-e220.chat"  

plus complet et plus mieux

/dev/ttyUSB0
nodetach
460800
idle 7200
lock
crtscts
modem
noauth
debug
noipdefault
defaultroute
#persist
usepeerdns
# avoid compression:
noccp
nobsdcomp
#novj
user ""
password ""
connect "/usr/sbin/chat -v -t6 -f /etc/ppp/peers/gsm_chat"
pppd_huawei_sfr_3g.txt · Last modified: 2018/06/18 11:07 (external edit)