Novatel Ovation MC 950D: Difference between revisions

From chaoswiki
Jump to navigation Jump to search
No edit summary
 
Line 18: Line 18:
# SyGroup GmbH
# SyGroup GmbH
# Version 0.1
# Version 0.1
# Initscript fuer Sierra Wireless Karte mit pcmciautils
# Initscript fuer Novatel Ovation MC 950D
# benoetigt catty http://catty.sourceforge.net/ oder http://debian.syhosting.ch/software/catty_2006.03.13-3_i386.deb
# benoetigt catty http://catty.sourceforge.net/ oder http://debian.syhosting.ch/software/catty_2006.03.13-3_i386.deb


Line 25: Line 25:
. /etc/profile
. /etc/profile


PIN="4749"
PIN="2342"
#PIN="5310"
#PIN="6757"


while ! test -e /dev/novatel-storage
while ! test -e /dev/novatel-storage

Revision as of 08:38, 6 April 2008

Installationsanleitung für Debian

Damit die Windows User nie die Treiber CD für den Stick verlieren können, ist der Treiber für die Karte auf einem Virtuellen CD-ROM Laufwerk gespeichert. Wenn man die Karte in ein Linux System steckt, ist nur dieses virtuelle CD-Rom Laufwerk sichtbar. Die beiden USB-Serial Interfaces tauchen erst auf, wenn man die virtuelle CD mit eject /dev/sr0 auswirft.

Automatisierung dieses vorganges

/etc/udev/rules.d/99-novatel.rules

Die folgende udev Regel erstellt einen Symlink von dem virtuellen CD-ROM nach /dev/novatel-storage damit das Laufwerk immer den Selben Namen hat, die 2. Regel startet das script welches die Karte initialisiert.

SUBSYSTEMS=="scsi", KERNEL=="sr[0-9]*", ATTRS{vendor}=="Novatel ", SYMLINK="novatel-storage"
SUBSYSTEM=="usb", ATTR{idProduct}=="5010", ATTR{idVendor}=="1410", RUN+="/usr/local/bin/umtsinit-novatel", SYMLINK="3G"

/usr/local/bin/umtsinit-novatel

#!/bin/sh
# 20060517
# Daniel Aubry
# SyGroup GmbH
# Version 0.1
# Initscript fuer Novatel Ovation MC 950D
# benoetigt catty http://catty.sourceforge.net/ oder http://debian.syhosting.ch/software/catty_2006.03.13-3_i386.deb


sleep 1 && (
. /etc/profile

PIN="2342"

while ! test -e /dev/novatel-storage
do
 sleep 1
 echo "Waiting for /dev/novatel-storage" | logger -p local0.notice -t UMTSINIT
done

/usr/bin/eject /dev/novatel-storage

/sbin/modprobe -r option usbserial
/sbin/modprobe usbserial vendor=0×1410 product=0x5010
/sbin/modprobe option

while ! test -e /dev/ttyUSB0
do
 sleep 1
  echo "Waiting for /dev/ttyUSB0" | logger -p local0.notice -t UMTSINIT
done


antwort=`catty -r0 -d /dev/ttyUSB0 -b 57600 -w "\nAT+CPIN=\"$PIN\"\n" | tail -n1`
signal=`catty -r 0 -d /dev/ttyUSB0 -b 57600 -w "\nAT+CSQ\n" | grep CSQ: | cut -d" " -f2`
echo "Rueckmeldung vom Modem: $antwort"
echo "Signalqualitaet: $signal"
sleep 5
pon umts) &