SMS-Gateway mit Kannel und Huawai K5150

ka3ax

New Member
Hallo,

Ich versuche ein SMS-Gateway mit Kannel einzurichten. Habe mir jetzt dutzende Anleitungen angeguckt, aber keins führt mich komplett bis an den ziel.

Dafür habe ich den LTE-Stick bereits eingerichtet und ich kann damit auch surven.

In der Anleitung steht, dass man in die Konfiguration von Kannel den Pfad zum UMTS-Stick aus /dev/ angeben muss. das Problem ist jetzt, das der huawei K5150 nicht unter /dev/ aufgelistet wird. Er wird als eine Netzwekkarte erkannt.

Wie kriege ich jetzt den USB-Stick dazu, dass er in /dev/ angezeigt wird.

Nach dem einstecken des Sticks, zeig dmesg das hier an
Code:
[12859.960016] usb 2-5: new high-speed USB device number 7 using ehci-pci
[12860.093154] usb 2-5: New USB device found, idVendor=12d1, idProduct=1f16
[12860.093157] usb 2-5: New USB device strings: Mfr=6, Product=5, SerialNumber=8
[12860.093159] usb 2-5: Product: K5150
[12860.093160] usb 2-5: Manufacturer: Vodafone (Huawei)
[12860.093162] usb 2-5: SerialNumber: FFFFFFFFFFFFFFFF
[12860.094059] usb-storage 2-5:1.0: USB Mass Storage device detected
[12860.094112] scsi10 : usb-storage 2-5:1.0
[12861.092673] scsi 10:0:0:0: CD-ROM            Vodafone Storage(Huawei)  2.31 PQ: 0 ANSI: 2
[12861.096784] sr1: scsi-1 drive
[12861.096872] sr 10:0:0:0: Attached scsi CD-ROM sr1
[12861.096926] sr 10:0:0:0: Attached scsi generic sg2 type 5
[12861.140567] systemd-udevd[4800]: Failed to apply ACL on /dev/sr1: No such file or directory
[12861.140574] systemd-udevd[4800]: Failed to apply ACL on /dev/sr1: No such file or directory
[12861.145120] usb 2-5: USB disconnect, device number 7
[12861.524020] usb 2-5: new high-speed USB device number 8 using ehci-pci
[12861.656781] usb 2-5: New USB device found, idVendor=12d1, idProduct=1575
[12861.656783] usb 2-5: New USB device strings: Mfr=6, Product=5, SerialNumber=0
[12861.656785] usb 2-5: Product: K5150
[12861.656787] usb 2-5: Manufacturer: Vodafone (Huawei)
[12861.658159] cdc_ether 2-5:1.0 eth1: register 'cdc_ether' at usb-0000:00:1d.7-5, CDC Ethernet Device, 58:2c:80:13:92:63
[12861.660678] systemd-udevd[4781]: Failed to apply ACL on /dev/sr1: No such file or directory
[12861.660685] systemd-udevd[4781]: Failed to apply ACL on /dev/sr1: No such file or directory
[12861.666250] systemd-udevd[4815]: failed to execute '/lib/udev/modem-modeswitch' 'modem-modeswitch -v 0x -p 0x -t option-zerocd': No such file or directory
[12861.669709] systemd-udevd[4816]: failed to execute '/lib/udev/modem-modeswitch' 'modem-modeswitch -v 0x -p 0x -t option-zerocd': No such file or directory
[12861.671239] systemd-udevd[4817]: failed to execute '/lib/udev/modem-modeswitch' 'modem-modeswitch -v 0x -p 0x -t option-zerocd': No such file or directory
[12861.672627] systemd-udevd[4818]: failed to execute '/lib/udev/modem-modeswitch' 'modem-modeswitch -v 0x -p 0x -t option-zerocd': No such file or directory
[12861.673891] systemd-udevd[4819]: failed to execute '/lib/udev/modem-modeswitch' 'modem-modeswitch -v 0x -p 0x -t option-zerocd': No such file or directory
[12861.680115] systemd-udevd[4821]: failed to execute '/lib/udev/modem-modeswitch' 'modem-modeswitch -v 0x12d1 -p 0x1575 -t option-zerocd': No such file or directory
[12861.683053] systemd-udevd[4822]: failed to execute '/lib/udev/modem-modeswitch' 'modem-modeswitch -v 0x12d1 -p 0x1575 -t option-zerocd': No such file or directory
[12861.689308] systemd-udevd[4824]: failed to execute '/lib/udev/modem-modeswitch' 'modem-modeswitch -v 0x -p 0x -t option-zerocd': No such file or directory
[12861.696087] systemd-udevd[4825]: failed to execute '/lib/udev/modem-modeswitch' 'modem-modeswitch -v 0x -p 0x -t option-zerocd': No such file or directory
[12861.699060] systemd-udevd[4827]: failed to execute '/lib/udev/modem-modeswitch' 'modem-modeswitch -v 0x -p 0x -t option-zerocd': No such file or directory
[12861.713588] systemd-udevd[4839]: failed to execute '/lib/udev/modem-modeswitch' 'modem-modeswitch -v 0x -p 0x -t option-zerocd': No such file or directory
[12861.713992] systemd-udevd[4840]: failed to execute '/lib/udev/modem-modeswitch' 'modem-modeswitch -v 0x -p 0x -t option-zerocd': No such file or directory
[13694.403598] usb 2-5: USB disconnect, device number 8
[13694.405796] cdc_ether 2-5:1.0 eth1: unregister 'cdc_ether' usb-0000:00:1d.7-5, CDC Ethernet Device
[13726.328028] usb 2-5: new high-speed USB device number 9 using ehci-pci
[13726.461203] usb 2-5: New USB device found, idVendor=12d1, idProduct=1f16
[13726.461207] usb 2-5: New USB device strings: Mfr=6, Product=5, SerialNumber=8
[13726.461210] usb 2-5: Product: K5150
[13726.461213] usb 2-5: Manufacturer: Vodafone (Huawei)
[13726.461215] usb 2-5: SerialNumber: FFFFFFFFFFFFFFFF
[13726.462247] usb-storage 2-5:1.0: USB Mass Storage device detected
[13726.462305] scsi11 : usb-storage 2-5:1.0
[13727.460723] scsi 11:0:0:0: CD-ROM            Vodafone Storage(Huawei)  2.31 PQ: 0 ANSI: 2
[13727.462226] sr1: scsi-1 drive
[13727.462346] sr 11:0:0:0: Attached scsi CD-ROM sr1
[13727.462410] sr 11:0:0:0: Attached scsi generic sg2 type 5
[13727.508498] usb 2-5: USB disconnect, device number 9
[13727.520639] systemd-udevd[5068]: Failed to apply ACL on /dev/sr1: No such file or directory
[13727.520649] systemd-udevd[5068]: Failed to apply ACL on /dev/sr1: No such file or directory
[13727.888028] usb 2-5: new high-speed USB device number 10 using ehci-pci
[13728.020827] usb 2-5: New USB device found, idVendor=12d1, idProduct=1575
[13728.020830] usb 2-5: New USB device strings: Mfr=6, Product=5, SerialNumber=0
[13728.020833] usb 2-5: Product: K5150
[13728.020836] usb 2-5: Manufacturer: Vodafone (Huawei)
[13728.022113] cdc_ether 2-5:1.0 eth1: register 'cdc_ether' at usb-0000:00:1d.7-5, CDC Ethernet Device, 58:2c:80:13:92:63
[13728.025690] systemd-udevd[5100]: failed to execute '/lib/udev/modem-modeswitch' 'modem-modeswitch -v 0x12d1 -p 0x1575 -t option-zerocd': No such file or directory
[13728.030479] systemd-udevd[5102]: failed to execute '/lib/udev/modem-modeswitch' 'modem-modeswitch -v 0x -p 0x -t option-zerocd': No such file or directory
[13728.035908] systemd-udevd[5106]: failed to execute '/lib/udev/modem-modeswitch' 'modem-modeswitch -v 0x -p 0x -t option-zerocd': No such file or directory
[13728.037161] systemd-udevd[5107]: failed to execute '/lib/udev/modem-modeswitch' 'modem-modeswitch -v 0x -p 0x -t option-zerocd': No such file or directory
 
Last edited by a moderator:
Soweit ich das verstehe wird
Code:
[13728.022113] cdc_ether 2-5:1.0 eth1: register 'cdc_ether' at usb-0000:00:1d.7-5, CDC Ethernet Device, 58:2c:80:13:92:63
failed to execute '/lib/udev/modem-modeswitch' 'modem-modeswitch -v 0x -p 0x -t option-zerocd': No such file or directory
das Problem sein.

Es wird nicht als Modem erkannt bzw. kann modeswitch nicht in Modem Zustand wechseln.

Ein bischen googeln bringt dich zu http://www.draisberghof.de/usb_modeswitch/bb/viewtopic.php?p=11568#p11568. In dem Thread geht es um entsprechendes Device.

Alternativ besorge dir ein GSM/3G/4G Dongle mit Linux support.
 
Last edited by a moderator:
sorry für die späte Antwort. Hab in der letzten zeit viel rumprobiert.

Laut beschreibung, ist der UMTS-Stick linux tauglich. Ich kann ja damit auch problemlos surven. Nur wird er scheinbar als eth2 erkannt. Für kannel brauche ich ihn aber in /dev/ttyUSB0, was derzeit nicht der Fall ist.

Also wenn ich die Anleitung in dem Thema folge und die udv regeln eintrage, wird zwar der Stick nun als 12d1:1f16 erkannt aber bei mir kommt dann eine Fehlermeldung von Linux auf, das ein Problem festgestellt wurde. Unteranderem taucht da auch modswitch auf.

dmesg
Code:
[   75.144027] usb 2-2: new high-speed USB device number 2 using ehci-pci
[   75.277186] usb 2-2: New USB device found, idVendor=12d1, idProduct=1f16
[   75.277190] usb 2-2: New USB device strings: Mfr=6, Product=5, SerialNumber=8
[   75.277192] usb 2-2: Product: K5150
[   75.277195] usb 2-2: Manufacturer: Vodafone (Huawei)
[   75.277198] usb 2-2: SerialNumber: FFFFFFFFFFFFFFFF
[   75.335336] usb-storage 2-2:1.0: USB Mass Storage device detected
[   75.335389] scsi8 : usb-storage 2-2:1.0
[   75.335447] usbcore: registered new interface driver usb-storage
[   76.332708] scsi 8:0:0:0: CD-ROM            Vodafone Storage(Huawei)  2.31 PQ: 0 ANSI: 2
[   76.335948] sr1: scsi-1 drive
[   76.336084] sr 8:0:0:0: Attached scsi CD-ROM sr1
[   76.336170] sr 8:0:0:0: Attached scsi generic sg2 type 5
[   76.433269] usb 2-2: usbfs: interface 0 claimed by usb-storage while 'usb_modeswitch' sets config #2
[   76.440661] usb-storage 2-2:2.2: USB Mass Storage device detected
[   76.444169] scsi9 : usb-storage 2-2:2.2
[   76.444248] show_signal_msg: 123 callbacks suppressed
[   76.444251] usb_modeswitch[2257]: segfault at 5453453b ip 00007fd2b5bd899c sp 00007fff681e4bd8 error 4 in libc-2.19.so[7fd2b5b55000+1bb000]
[   76.472315] usbcore: registered new interface driver cdc_ncm
[   76.478958] usbcore: registered new interface driver cdc_wdm
[   76.483631] cdc_mbim 2-2:2.0: cdc-wdm0: USB WDM device
[   76.483877] cdc_mbim 2-2:2.0 wwan0: register 'cdc_mbim' at usb-0000:00:1d.7-2, CDC MBIM, e2:33:96:60:b5:f2
[   76.484218] usbcore: registered new interface driver cdc_mbim
[   77.444709] scsi 9:0:0:0: Direct-Access     Vodafone Storage(Huawei)  2.31 PQ: 0 ANSI: 2
[   77.448692] sd 9:0:0:0: Attached scsi generic sg2 type 0
[   77.449618] sd 9:0:0:0: [sdb] Attached SCSI removable disk

Wenn ich dann den nochmal versuche mod_switch auszuführen kommt folgendes
Code:
sudo usb_modeswitch -v 12d1 -p 1f16 -M '55534243123456780000000000000011062000000100000000000000000000' 
Look for default devices ...
   product ID matched
 Found devices in default mode (1)
Access device 003 on bus 002
Current configuration number is 2
Use interface number 0
Error: message endpoint not given or found. Abort

Du siehst also ich hab absolut keine Ahnung von UMTS-Sticks und stochere im blinden herrum.
 
Last edited by a moderator:
Back
Top