BlueFRITZ USB v2.0
Aus Gentoo Linux Wiki
| Laptops • Motherboards • Servers • Eingabegeräte • RAID Controller • TV Karten • Wireless • Andere Hardware • Andere Architekturen • alphabetischer Hardware Index |
Inhaltsverzeichnis |
[Bearbeiten] Einleitung
Anders als viele andere Hersteller unterstützt AVM seine Produkte auch unter Linux.
Vom BlueFritz USB gibt es mitlerweile 2 leicht unterschiedliche Versionen, nicht nur im äußeren Erscheinungsbild, sondern auch in der Hardware.
Der neuere BlueFRITZ USB v2.0 hat im Gegensatz zum BlueFRITZ USB die Firmware schon eingebaut. Hotplug braucht die Firmware dementsprechend nicht zu laden.
Auch wird das Kernel-Modul HCI BlueFRITZ! USB driver für den BlueFRITZ USB v2.0 nicht gebraucht, der USB Stick wird als normales HCI Device erkannt und ins System eingebunden!
[Bearbeiten] Kernelkonfiguration
Hotplug aktivieren
| Code: Kernel Version 2.6.15 |
General setup ---> [*] Support for hot-pluggable devices |
Bluetooth Subsystem und die dazugehörigen Geätetreiber aktivieren
| Code: Kernel Version 2.6.15 |
Networking --->
<*> Bluetooth subsystem support --->
--- Bluetooth subsystem support
<M> L2CAP protocol support
<M> SCO links support
<M> RFCOMM protocol support
[*] RFCOMM TTY support
<M> BNEP protocol support
[*] Multicast filter support
[*] Protocol filter support
<M> CMTP protocol support
<M> HIDP protocol support
Bluetooth device drivers --->
<M> HCI USB driver
[*] SCO (voice) support
<M> HCI UART driver
[*] UART (H4) protocol support
[*] BCSP protocol support
|
ISDN Subsystem
| Code: Kernel Version 2.6.15 |
|
Device Drivers --->
ISDN subsystem --->
<*> ISDN support
Old ISDN4Linux --->
--- CAPI subsystem
<*> CAPI2.0 support
[ ] Verbose reason code reporting
[*] CAPI2.0 Middleware support (EXPERIMENTAL)
<*> CAPI2.0 /dev/capi support
[*] CAPI2.0 filesystem support
--- CAPI hardware drivers
Active AVM cards --->
Active Eicon DIVA Server cards --->
|
Point to Point Protokol (PPP) aktivieren
| Code: Kernel Version 2.6.15 |
Device Drivers --->
Network device support --->
<M> PPP (point-to-point protocol) support
[ ] PPP multilink support (EXPERIMENTAL)
[ ] PPP filtering
<M> PPP support for async serial ports
<M> PPP support for sync tty ports
|
Hinweis: Natürlich können alle Einträge auch als Module erstellt werden, jedoch ist darauf zu achten, dass diese vor dem Ausführen des Bluetooth Startskripts beim Systemstart geladen werden.
Nun sollte der Kernel erstellt, installiert und (noch ohne angeschlossenem BlueFRITZ USB) gebootet werden.
[Bearbeiten] Systemeinstellungen
Als nächstes muss das System dafür vorbereitet werden.
Bluetooth-Stack bluez installieren und starten
# emerge -v net-wireless/bluez-libs
# emerge -v net-wireless/bluez-utils
# rc-update add bluetooth default
# /etc/init.d/bluetooth start
ISDN-Tools CAPI4Linux Utils installieren
# emerge -v net-dialup/capi4k-utils
Point to Point Protocol Deamon ppp installieren
# emerge -v net-dialup/ppp
[Bearbeiten] BlueFRITZ USB einstecken
Nun kann der BlueFRITZ USB in den USB-Port eingesteckt werden.
syslog
Sep 25 12:55:20 lapi kernel: usb 3-1: new full speed USB device using uhci_hcd and address 3 Sep 25 12:55:22 lapi hcid[10589]: HCI dev 0 registered Sep 25 12:55:22 lapi hcid[10589]: HCI dev 0 up Sep 25 12:55:22 lapi hcid[10589]: Starting security manager 0
Ist das Modul fehlerfrei geladen kann man schliesslich mit den BlueZ Tools darauf zugreifen.
# hciconfig
hci0: Type: USB
BD Address: 00:04:EF:85:12:A1 ACL MTU: 4096:2 SCO MTU: 64:0
UP RUNNING PSCAN ISCAN
RX bytes:190 acl:0 sco:0 events:11 errors:0
TX bytes:87 acl:0 sco:0 commands:11 errors:0
Es sollte darauf geachtet werden, dass die Adresse nicht 00:00:00:00:00:00 ist und der Status auf UP steht. Dann erst ist Bluetooth lauffähig eingerichtet.
[Bearbeiten] BlueFritz USB mit AP-ISDN verbinden
Wurde der BlueFRITZ vom System erkannt, kann mittels ciptool eine Verbindung zum AP-ISDN hergestellt werden
# ciptool search
Searching ...
Checking service for 00:04:0E:89:A6:F8
es erscheint ein Fenster, hier bitte das Bluetooth-Kennwort des AP-ISDN eingeben dieses befindet sich auf einem Aufkleber auf der Rückseite des mitgelieferten Handbuches
Connecting to device 00:04:0E:89:A6:F8
im syslog sollte etwas ähnliches erscheinen
Sep 25 17:21:52 lapi hcid[10569]: link_key_request (sba=00:04:0E:89:92:C9, dba=00:04:0E:89:A6:F8) Sep 25 17:21:52 lapi hcid[10569]: pin_code_request (sba=00:04:0E:89:92:C9, dba=00:04:0E:89:A6:F8) Sep 25 17:22:02 lapi hcid[10569]: link_key_notify (sba=00:04:0E:89:92:C9, dba=00:04:0E:89:A6:F8) Sep 25 17:22:02 lapi kernel: Bluetooth: Found 1 CAPI controller(s) on device 00:04:0E:89:A6:F8 Sep 25 17:22:02 lapi kernel: kcapi: Controller 1: 00:04:0E:89:A6:F8 attached Sep 25 17:22:02 lapi kernel: kcapi: card 1 "00:04:0E:89:A6:F8" ready.
[Bearbeiten] Internetverbindung einrichten
Die folgende Konfigurationsdatei für den pppd sollte für die verschiedenen Provider gleich gelten.
| Datei: /etc/ppp/peers/isdn/provider |
debug sync noauth noipdefault -chap user user plugin userpass.so password password defaultroute plugin capiplugin.so number number protocol hdlc ipcp-accept-local ipcp-accept-remote /dev/null |
user und password bitte durch die Benutzerdaten ersetzen
number durch die Provider-Einwahlnummer ersetzen (für T-Online 0191011)
Für T-Online sieht user so aus
AnschlußkennungT-Online-Nummer\#0001@t-online.de
den "\" nicht vergessen
[Bearbeiten] Internetverbindung herstellen
Die Internetvberbindung mit dem Provider kann mittels des Point to Point Protocol Deamons (pppd) und der zuvor erstellten Konfigurationsdatei hergestellt werden.
# pppd call isdn/provider
im syslog sollte etwas ähnliches erscheinen
Sep 25 17:22:05 lapi pppd[11261]: Plugin userpass.so loaded. Sep 25 17:22:05 lapi pppd[11261]: userpass: $Revision: 1.5 $ Sep 25 17:22:05 lapi pppd[11261]: Plugin capiplugin.so loaded. Sep 25 17:22:05 lapi pppd[11261]: capiplugin: $Revision: 1.36 $ Sep 25 17:22:05 lapi pppd[11261]: capiconn: 1.13 Sep 25 17:22:05 lapi pppd[11265]: pppd 2.4.2 started by root, uid 0 Sep 25 17:22:05 lapi pppd[11265]: capiplugin: phase serialconn. Sep 25 17:22:05 lapi pppd[11265]: capiplugin: contr=1 Sep 25 17:22:05 lapi last message repeated 3 times Sep 25 17:22:05 lapi pppd[11265]: controller 1: listen_change_state 0 -> 1 Sep 25 17:22:05 lapi pppd[11265]: controller 1: listen_change_state state=1 event=1 ???? Sep 25 17:22:05 lapi last message repeated 2 times Sep 25 17:22:05 lapi pppd[11265]: contr 1: listenconf Info=0x0000 (No additional information) infomask=0x144 cipmask=0x0 capimask2=0x0 Sep 25 17:22:05 lapi pppd[11265]: controller 1: listen_change_state 1 -> 0 Sep 25 17:22:05 lapi pppd[11265]: plci_change_state:0x0 0 -> 1 event=1 Sep 25 17:22:05 lapi pppd[11265]: capiplugin: dialing 0191011 (hdlc) Sep 25 17:22:05 lapi pppd[11265]: contr 1: listenconf Info=0x0000 (No additional information) infomask=0x144 cipmask=0x0 capimask2=0x0 Sep 25 17:22:05 lapi pppd[11265]: controller 1: listen_change_state state=0 event=3 ???? Sep 25 17:22:05 lapi pppd[11265]: contr 1: listenconf Info=0x0000 (No additional information) infomask=0x144 cipmask=0x0 capimask2=0x0 Sep 25 17:22:05 lapi pppd[11265]: controller 1: listen_change_state state=0 event=3 ???? Sep 25 17:22:05 lapi pppd[11265]: contr 1: listenconf Info=0x0000 (No additional information) infomask=0x144 cipmask=0x0 capimask2=0x0 Sep 25 17:22:05 lapi pppd[11265]: controller 1: listen_change_state state=0 event=3 ???? Sep 25 17:22:05 lapi pppd[11265]: plci_change_state:0x101 1 -> 2 event=3 Sep 25 17:22:07 lapi pppd[11265]: plci_change_state:0x101 2 -> 3 event=6 Sep 25 17:22:07 lapi pppd[11265]: ncci_change_state:0x101 0 -> 1 event=1 Sep 25 17:22:07 lapi pppd[11265]: ncci_change_state:0x10101 1 -> 3 event=3 Sep 25 17:22:07 lapi pppd[11265]: ncci_change_state:0x10101 3 -> 4 event=7 Sep 25 17:22:07 lapi pppd[11265]: ncci 0x10101 up Sep 25 17:22:07 lapi pppd[11265]: capiplugin: connected: "" -> "0191011" outgoing (pcli=0x101/ncci=0x10101) Sep 25 17:22:07 lapi pppd[11265]: capiplugin: using /dev/capi/1: "" -> "0191011" outgoing (pcli=0x101/ncci=0x10101) Sep 25 17:22:08 lapi pppd[11265]: using channel 2 Sep 25 17:22:08 lapi pppd[11265]: Using interface ppp1 Sep 25 17:22:08 lapi pppd[11265]: Connect: ppp1 <--> /dev/capi/1 Sep 25 17:22:08 lapi pppd[11265]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x80c6b015> <pcomp> <accomp>] Sep 25 17:22:08 lapi pppd[11265]: capiplugin: phase establish (was serialconn). Sep 25 17:22:08 lapi pppd[11265]: rcvd [LCP ConfReq id=0x1 <mru 1524> <auth pap> <mrru 1524> <endpoint [local:73.74.61.63.6b.69.6e.67]>] Sep 25 17:22:08 lapi pppd[11265]: sent [LCP ConfRej id=0x1 <mrru 1524>] Sep 25 17:22:08 lapi pppd[11265]: rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0x80c6b015> <pcomp> <accomp>] Sep 25 17:22:08 lapi pppd[11265]: rcvd [LCP ConfReq id=0x2 <mru 1524> <auth pap> <endpoint [local:73.74.61.63.6b.69.6e.67]>] Sep 25 17:22:08 lapi pppd[11265]: sent [LCP ConfAck id=0x2 <mru 1524> <auth pap> <endpoint [local:73.74.61.63.6b.69.6e.67]>] Sep 25 17:22:08 lapi pppd[11265]: capiplugin: phase authenticate (was establish). Sep 25 17:22:08 lapi pppd[11265]: sent [PAP AuthReq id=0x1 user="XXXXXXXXXXXXXXXXXXXXXX#0001@t-online.de" password=<hidden>] Sep 25 17:22:08 lapi pppd[11265]: rcvd [PAP AuthAck id=0x1 ""] Sep 25 17:22:08 lapi pppd[11265]: PAP authentication succeeded Sep 25 17:22:08 lapi pppd[11265]: capiplugin: phase network (was authenticate). Sep 25 17:22:08 lapi pppd[11265]: sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15>] Sep 25 17:22:08 lapi pppd[11265]: sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0>] Sep 25 17:22:08 lapi pppd[11265]: rcvd [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 217.5.124.217>] Sep 25 17:22:08 lapi pppd[11265]: sent [IPCP ConfAck id=0x1 <compress VJ 0f 01> <addr 217.5.124.217>] Sep 25 17:22:08 lapi pppd[11265]: rcvd [CCP ConfReq id=0x1 < 11 05 00 01 04>] Sep 25 17:22:08 lapi pppd[11265]: sent [CCP ConfRej id=0x1 < 11 05 00 01 04>] Sep 25 17:22:08 lapi pppd[11265]: rcvd [CCP ConfRej id=0x1 <deflate 15> <deflate(old#) 15>] Sep 25 17:22:08 lapi pppd[11265]: sent [CCP ConfReq id=0x2] Sep 25 17:22:08 lapi pppd[11265]: rcvd [IPCP ConfNak id=0x1 <addr 217.245.82.251>] Sep 25 17:22:08 lapi pppd[11265]: sent [IPCP ConfReq id=0x2 <compress VJ 0f 01> <addr 217.245.82.251>] Sep 25 17:22:09 lapi pppd[11265]: rcvd [CCP ConfReq id=0x2 < 11 06 00 01 01 03>] Sep 25 17:22:09 lapi pppd[11265]: sent [CCP ConfRej id=0x2 < 11 06 00 01 01 03>] Sep 25 17:22:09 lapi pppd[11265]: rcvd [CCP ConfRej id=0x2] Sep 25 17:22:09 lapi pppd[11265]: rcvd [IPCP ConfAck id=0x2 <compress VJ 0f 01> <addr 217.245.82.251>] Sep 25 17:22:09 lapi pppd[11265]: local IP address 217.245.82.251 Sep 25 17:22:09 lapi pppd[11265]: remote IP address 217.5.124.217 Sep 25 17:22:09 lapi pppd[11265]: capiplugin: phase running (was network). Sep 25 17:22:09 lapi pppd[11265]: Script /etc/ppp/ip-up started (pid 11282) Sep 25 17:22:09 lapi pppd[11265]: Script /etc/ppp/ip-up finished (pid 11282), status = 0x1
Scheint alles zu funktionieren, lediglich der Browser kann keine Web-Site finden, so muß ggf. noch der DNS-Server konfiguriert werden.
Vielleicht hat man Glück mit dem Einfügen der Option "usepeerdns" in die Provider-Konfigurationsdatei, oder man trägt den oder die
Domain-Name-Server in /etc/resolv.conf ein.
[Bearbeiten] Internetverbindung abbrechen
Beim Ausstecken des BlueFRITZ ist die Internetverbindung grundsätzlich unterbrochen, da die Verbindung zum AP-ISDN nicht mehr besteht.
Nur läuft der pppd noch im Hintergund. Diesen kann man nun mit "killall pppd" oder "capiinit stop" beenden.
Eine andere Möglichkeit ist es, den pppd mit der Option nodetach in der Console, in der er gestartet wurde zu lassen.
# pppd nodetach call isdn/provider
Damit erscheinen zum einen die debug-Ausgaben direkt in der Shell, zum anderen kann man den Prozeß und damit die Online-Verbindung
mit CTRL-C direkt wieder beenden.
-- BlueFRITZ USB erstellt von Genesis 09:14, 29. Dez 2004 (GMT)
-- überarbeitet für BlueFRITZ USB v2.0 von vitalogy 00:17, 28. Feb 2006 (GMT)
