Huawei E173

UMTS Stick

Diese Anleitung bezieht sich auf ein Debian System auf einem Raspberry Pi, die meisten Desktopsysteme k├Ânnen mit diesem UMTS Stick umgehen.

usb-modeswitch

interessanter link

sudo apt-get install usb-modeswitch usbutils

sudo mcedit /etc/usb_modeswitch.d/12d1

DefaultVendor=0x12d1
DefaultProduct=0x14d1

TargetVendor=0x12d1
TargetProductList="1001,1406,140b,140c,1412,141b,1433,14ac,1446,14c9"

CheckSuccess=20
MessageContent="55534243123456780000000000000011062000000100000000000000000000"

sakis3g

sudo apt-get install ppp wvdial
wget -c http://www.sakis3g.com/downloads/sakis3g.tar.gz

sudo mcedit /etc/sakis3g.conf

USBDRIVER="option"
MODEM="12d1:14c9"
USBINTERFACE="0"
APN="internet.eplus.de"
APN_USER="blau"
APN_PASS="blau"

sudo mcedit /etc/init.d/umts

#***************************************************
#!/bin/sh
#/etc/init.d/umts
### BEGIN INIT INFO
# Provides:          noip
# Required-Start:    $remote_fs $syslog
# Required-Stop:     $remote_fs $syslog
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Simple script to start a program at boot
# Description:       A simple script from www.stuffaboutcode.com which will start / stop a program a boot / shutdown.
### END INIT INFO
case "$1" in
  start)
	 sleep 10
	 echo "connecting via sakis3g"
	 # run application you want to start
	 /opt/sakis3g/sakis3g --sudo  "connect"
	 ;;

  stop)
	 echo "dissconnecting via sakis3g"
	 # kill application you want to stop
	 /opt/sakis3g/sakis3g --sudo  "disconnect"
	 ;;
  restart)
         $0 stop
         sleep 1
         $0 start
         ;;
  *)
	 echo "Usage: /etc/init.d/autoconnectnet {start|stop}"
	 exit 1
	 ;;
esac
exit 0
#*********************************************************

sudo chmod 755 /etc/init.d/umts

wvdial, network (altanative zu sakis3g)

sudo apt-get install wvdial

sudo mcedit /etc/wvdial.conf

[Dialer Defaults]
Phone =
Username =
Password =
New PPPD = yes

[Dialer eplus]
Modem = /dev/ttyUSB0
Phone = *99#
Username = blau
Password = blau
Init3 = AT+CGDCONT=1,"IP","internet.eplus.de","0.0.0.0"
ISDN=0
Auto Reconnect=on
Stupid Mode=off
Idle Seconds=0
Auto DNS=on

sudo mcedit /etc/network/interfaces

...
auto ppp0
iface ppp0 inet wvdial
provider eplus
# wenn pin in der sim karte
pre-up /usr/local/bin/setPIN.sh
...

sudo mcedit /usr/local/bin/setPIN.sh

#!/bin/bash
PIN=1234
echo "AT+CPIN=$PIN\n\r" > /dev/ttyUSB0

Stephan Günther, 1997-2018, letzte Änderung  07.04.2017, Datenschutzerklärung, DisclaimerPowered by GetSimple