Hallo stadthausblog,
stadthausblog schrieb:
Hallo wahlm,
danke für die Daten zum 210. Leider bin ich noch nicht mit dem icon210 online ☹
usb_modeswitch gibt mir folgende Meldung aus:
Looking for target devices
No target device found
Looking for default devices
Found default devices (1)
All devices in target class mode
No default device found. Is it connected? Bye
Fühlt sich noch nicht so richtig an, oder?
Das sieht danach aus, als ob usb_modeswitch zum zweiten Mal gestartet wurde. Dann ist das
CD-Device natürlich nicht mehr da. Beim ersten Mal nach dem Einstecken sollte das anders aussehen.
lsusb meldet
Bus 004 Device 010: ID 1e0e:9000
Na, das ist doch prima, die Umschaltung hat geklappt. Aus 1e0e:f000 wird 1e0e:9000.
Mit wvdial komme ich an dem von Dir angegebenden device auch nicht weiter:
/$ wvdial pin
--> WvDial: Internet dialer version 1.60
--> Cannot open /dev/ttyHS1: No such file or directory
--> Cannot open /dev/ttyHS1: No such file or directory
--> Cannot open /dev/ttyHS1: No such file or directory
Das ist natürlich klar. Ich hatte ja den hso-Treiber-source angepaßt und neu kompiliert. Erst dann
kann das Device zur Verfügung stehen. Da aber meine Versuche mit dem hso bisher nicht so erfolgreich waren,
empfehle ich usb_serial mit Angabe von Vendor und Device, dann sollte /dev/ttyUSB0-2 zur Verfügung stehen.
Für meine momentan laufende Konfigutation wird noch zusätzlich comgt.0.32 benötigt.
(Eventuell mußt Du das selber kompilieren).
Dann meine zusätzlichen module options:
options usbserial vendor=0x1e0e product=0x9000
Hier meine zusätzlichen Rules für udev:
ACTION=="add", SUBSYSTEM=="usb_device", SYSFS{idVendor}=="1e0e", SYSFS{idProduct}=="f000", RUN+="/usr/local/sbin/switch_icon210"
ACTION=="add", SYSFS{idVendor}=="1e0e", SYSFS{idProduct}=="9000", KERNEL=="ttyUSB2", RUN+="/sbin/modprobe usbserial", SYMLINK+="modem"
ACTION=="add", SYSFS{idVendor}=="1e0e", SYSFS{idProduct}=="9000", KERNEL=="ttyUSB2", RUN+="/usr/local/sbin/dial_icon210"
/usr/local/sbin/switch_icon210 ist:
#! /bin/sh
/usr/sbin/usb_modeswitch >>/tmp/switch_icon210.log 2>&1
exit 0
/usr/local/sbin/dial_icon210 ist: (Die PIN solltest Du natürlich ändern...)
#! /bin/sh
export COMGTPIN=0815
if [ -r /dev/modem ]
then
/usr/local/bin/comgt PIN >>/tmp/dial_icon210.log 2>&1
/usr/local/bin/comgt >>/tmp/dial_icon210.log 2>&1
/usr/sbin/pppd call o2loop kdebug 7 debug logfile /tmp/pppd.log
fi
exit 0
Mein /etc/ppp/peers/o2loop:
#Set this to the device allocated to the GlobeTrotter
/dev/modem
#Baudrate
115200
#Idle time for closing connection
idle 7200
#Lock the device for this PPPD process use only
lock
#Use normal handshaking
crtscts
#Assume it is a modem device and force modem control methods
modem
#Any user can start the connection
noauth
#If a default route exists replace it with the ppp link
#You get an error if this command is not supported
#by your version of PPPD
#replacedefaultroute
#Make the ppp link the default root
defaultroute
#Username and Password for computer/GlobeTrotter ppp link
#Normally ignored. Change if GSM Operator requires it
user Anyname
password Anypassword
#Change the path to chat if required for your version of Linux
connect "/usr/sbin/chat -V -f /etc/ppp/o2loop-chat"
#Accept IP address provided by network
noipdefault
#Detach PPPD from console used to run the program {optional}
#updetach
#Get DNS addresses from operator
usepeerdns
#Don't use VJ compression for ppp link
novj
###########################################
###########################################
mtu 1452
mru 1452
ipcp-max-failure 60
und zum Schluß noch /etc/ppp/o2loop-chat:
###########################################
ABORT BUSY
ABORT 'NO CARRIER'
ABORT ERROR
REPORT CONNECT
TIMEOUT 10
"" "AT&F"
OK "ATE1"
OK "AT+CGDCONT=1,\042IP\042,\042surfo2\042"
SAY "Calling o2loop\n"
TIMEOUT 60
OK "ATD*99***1#"
CONNECT \c
###########################################
###########################################
Ich hoffe, beim cut and paste habe ich nichts versaut 😀
Es geht bestimmt noch eleganter, aber so funktioniert es erstmal...
Viel Erfolg beim Probieren,
wahlm