A big THANKS to all ! I am writing from
- a compaq 6910p laptop
- booted via SD 8GB on USB-adapter
- TCL 3.8.4
- USB Modem Huawei e1750 from
www.fonic.de 12d1:1446 (before usb_switch); 12d1:140c (after usb_switch)
I used this thread for solving my connection issue.
And:
- data from
www.fonic.de describing the internet setups
-
http://www.hermann-uwe.de/blog/the-fonic-surf-stick-huawei-e1750-hspa-usb-modem-on-debian-gnu-linux-via-usb-modeswitch-and-wvdialI made following...
TCE: wvdial and usb-modeswitch on boot
Boot code: nodhcp
Filetool.lst (for persistence)
====================================
...
opt/bootlocal.sh
etc/usb_modeswitch.conf
etc/udev/rules.d/15-huawei-e1750.rules
etc/wvdial.conf
etc/resolv.conf
...
=====================================
etc/usb_modeswitch.conf content
=====================================
#
DefaultVendor= 0x12d1
DefaultProduct= 0x1446
TargetVendor= 0x12d1
TargetProductList= "1001,1406,1412,140c,1436,14ac,141b"
MessageContent="55534243123456780000000000000011060000000000000000000000000000"
MessageEndpoint=0x01
CheckSuccess=30
# Configuration for the usb_modeswitch package, a mode switching tool for
# USB devices providing multiple states or modes
#
# This file is evaluated by the wrapper script "usb_modeswitch_dispatcher"
# in /usr/sbin
# To enable an option, set it to "1", "yes" or "true" (case doesn't matter)
# Everything else counts as "disable"
# Disable automatic mode switching globally (e.g. to access the original
# install storage)
DisableSwitching=0
# Enable logging (results in a extensive report file in /var/log, named
# "usb_modeswitch_<interface-name>" (and probably others)
EnableLogging=1
=====================================
etc/udev/rules.d/15-huawei-e1750.rules content (1 line)
=====================================
SUBSYSTEM=="usb", SYSFS{idProduct}=="1446", SYSFS{idVendor}=="12d1", RUN+="/usr/sbin/usb_modeswitch -c /etc/usb_modeswitch.conf"
=====================================
etc/wvdial.conf content (XXXX is the pin code for this stick)
=====================================
[Dialer Defaults]
Modem = /dev/ttyUSB0
Baud = 460800
PPPD Path = /usr/local/sbin/pppd
[Dialer Pin]
Init1 = AT+CPIN=XXXX
[Dialer Fonic]
Phone = *99#
Username = foo
Password = foo
Stupid Mode = 1
Dial Command = ATDT
Init2 = ATZ
Init3 = AT+CGDCONT=1,"IP","pinternet.interkom.de"
=====================================
etc/resolv.conf content
=====================================
search pinternet.interkom.de
nameserver 8.8.8.8
nameserver 8.8.4.4
=====================================
opt/bootlocal.sh
=====================================
....
# modeswitch relaunch after restore for the huawei e1750 (see .filetool.lst)
sudo udevadm control --reload-rules
....
=====================================
For going into the internet:
- boot the PC (restore mode)
- put the huawei USB stick into a port.. wait a bit.. the USB is recognized automatically from the usb rule and switched to modem modus
- make in a terminal: "sudo wvdial pin", then "sudo wvdial fonic"
- then a bit time later, I could go with firefox into the internet
Comments/remarks are welcome for perhaps improving this summary.
Now I can walk around with an USB Stick (or an adapter and my SD 8GB) and this fonic modem .. and can go from everywhere into the net.
Freedom.. freedom..