Josh wrote:Unfortunately, the Wiki page you linked is a mix of very dated and some current information, incorrect in several parts.
Which version of "usb-modeswitch" and "usb-modeswitch-data" do you have installed?
Thanks for this reply. I realized that i might miss steps of the official guide provided at this side.
I uninstalled usb_modeswitch and the data package. Then i followed the installation instruction step by step, downloaded the tar.bz archives, did sudo apt-get install libusb-dev and than i could do sudo make install for the current usb_modeswitch-1.2.6 and usb_modeswitch_data
LOM wrote:
The code above is a big mischmasch of "eigene udev-Regeln" and the reason why the option driver grabs not only the first 3 interfaces but also the last 2 is this:
[ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="14c8", RUN+="/bin/bash -c 'modprobe option && echo 12d1 14c8> /sys/bus/usb-serial/drivers/option1/new_id'"
The option driver included in linux 3.6.11 will handle the interfaces correct on its own without any manual intervention by the new_id function.
first, i removed everything from
/etc/udev/rules.d/70-usb-modeswitch.rules and
/lib/udev/rules.d/61-option-modem-modeswitch.rules
and restartet udev: sudo service udev reload
When I plugged the LTE device in, it says at a point: usb_modeswitch: switched to 12d1:14c8 on 001/024 and nothing is happening anymore:
Code: Select all
un 4 00:33:46 raspberrypi kernel: [ 3512.973057] usb 1-1.3.1: USB disconnect, device number 23
Jun 4 00:33:55 raspberrypi kernel: [ 3522.173466] usb 1-1.3.2: new high-speed USB device number 24 using dwc_otg
Jun 4 00:33:55 raspberrypi kernel: [ 3522.276889] usb 1-1.3.2: New USB device found, idVendor=12d1, idProduct=14c3
Jun 4 00:33:55 raspberrypi kernel: [ 3522.276922] usb 1-1.3.2: New USB device strings: Mfr=3, Product=2, SerialNumber=0
Jun 4 00:33:55 raspberrypi kernel: [ 3522.276940] usb 1-1.3.2: Product: Vodafone Mobile Broadband (Huawei)
Jun 4 00:33:55 raspberrypi kernel: [ 3522.276956] usb 1-1.3.2: Manufacturer: Vodafone Group (Huawei)
Jun 4 00:33:55 raspberrypi kernel: [ 3522.293888] scsi34 : usb-storage 1-1.3.2:1.0
Jun 4 00:33:55 raspberrypi kernel: [ 3522.305270] scsi35 : usb-storage 1-1.3.2:1.1
Jun 4 00:33:56 raspberrypi kernel: [ 3523.295118] scsi 34:0:0:0: CD-ROM Vodafone CD ROM (Huawei) 2.31 PQ: 0 ANSI: 0
Jun 4 00:33:56 raspberrypi kernel: [ 3523.299637] sr0: scsi-1 drive
Jun 4 00:33:56 raspberrypi kernel: [ 3523.308472] scsi 35:0:0:0: Direct-Access Vodafone Storage (Huawei) 2.31 PQ: 0 ANSI: 2
Jun 4 00:33:56 raspberrypi kernel: [ 3523.312362] sd 35:0:0:0: [sda] Attached SCSI removable disk
Jun 4 00:33:57 raspberrypi usb_modeswitch: switching device 12d1:14c3 on 001/024
Then, I read your post again and one could understand it, that only the row with the new_id should be removed. SO i did it , startet udev again and the same is happening when usb_modeswitch want to change the mode... nothing...
EDIT:
I rebootet the raspberry and the device is okay. only 3 ttyUSB devices are created and the cdc-wdm0 is working. i could receive information about the signal strengh...but i could not create an internet connection. sim is deactivated, and i used this command:
Code: Select all
sudo uqmi -d /dev/cdc-wdm0 wds --start-network web.vodafone.de --set-client-id wds,6
okay, thats the next problem. but more fundamental is, that if the device is unplugged an plugged in again, NO device is created. no ttyUSB and no cdc-wdm0... if a reboot and the device is plugged in, it's fine
EDIT2:
didn't change anything further, but now a reboot doesn't bring up the devices anymore...