Hallo
Ich habe mir einen E303 Stick für meinen Raspberry zugelegt.
Unter Windows läuft der Stick, Pin Code habe ich dort über die Webgui deaktiviert.
Leider schaffe ich es nicht, den Stick in einen nutzbaren Betriebsmodus zu versetzen.
eth1 erschien bisher noch nicht. Benötige ihn nur zum Daten versenden.
Ein dev/sr0 habe ich bisher auch noch nicht gefunden
Stick steckt direkt am Raspberry, habe aber auch mit einem aktiven USB Hub getestet.
pi@raspberrypi ~ $ lsusb
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 004: ID 12d1:1f01 Huawei Technologies Co., Ltd.
1f01 steht hierbei wohl für die CD-R Funktionalität des Sticks
pi@raspberrypi ~ $ sudo nano /etc/usb_modeswitch.conf
# Enable logging (results in a extensive report file in /var/log, named
# "usb_modeswitch_<interface-name>" and probably others
EnableLogging=1
DefaultVendor = 0x12d1
DefaultProduct = 0x1506
MessageEndPoint = "0x01"
MessageContent = "55534243000000000000000000000011060000000000000000000000000000"
hier habe ich 1506 eingetragen, diversen Blogs findet man aber noch andere Werte.
Nach einem Neustart meldet sich der Stick wieder als 1f01 an.
Ziehe ich den Stick ab und Stecke ihn an, so wechselt er auf 14dc
pi@raspberrypi ~ $ ifconfig
eth0 Link encap:Ethernet HWaddr b8:27:eb:90:3c:a8
inet addr:192.168.0.111 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:530 errors:0 dropped:0 overruns:0 frame:0
TX packets:410 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:42737 (41.7 KiB) TX bytes:52255 (51.0 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
usb0 Link encap:Ethernet HWaddr 5a:c4:d0:d8:ee:24
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:46 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:19367 (18.9 KiB) TX bytes:0 (0.0 B)
Alles anzeigen
USB_ModeSwitch log from Tue Apr 29 10:57:18 UTC 2014
Raw args from udev: /1-1.2.4.2:1.0
Using global config file: /etc/usb_modeswitch.conf
Using top device dir /sys/bus/usb/devices/1-1.2.4.2
----------------
USB values from sysfs:
manufacturer HUAWEI
product HUAWEI Mobile
serial FFFFFFFFFFFFFFFF
----------------
bNumConfigurations is 1 - don't check for active configuration
Found packed config collection /usr/share/usb_modeswitch/configPack.tar.gz
SCSI attributes not needed, moving on
checking config: pack/12d1:1f01
! matched. Reading config data
Extracting config 12d1:1f01 from collection /usr/share/usb_modeswitch/configPack.tar.gz
config: TargetVendor set to 12d1
config: TargetProduct set to 14db
config: NoDriverLoading is set to active
Driver will not be handled by usb_modeswitch
Command to be run:
usb_modeswitch -I -W -D -s 20 -u -1 -b 1 -g 16 -v 12d1 -p 1f01 -f $configBuffer
Verbose debug output of usb_modeswitch and libusb follows
(Note that some USB errors are to be expected in the process)
--------------------------------
Reading long config from command line
* usb_modeswitch: handle USB devices with multiple modes
* Version 1.2.3 (C) Josua Dietze 2012
* Based on libusb0 (0.1.12 and above)
! PLEASE REPORT NEW CONFIGURATIONS !
DefaultVendor= 0x12d1
DefaultProduct= 0x1f01
TargetVendor= 0x12d1
TargetProduct= 0x14db
TargetClass= not set
TargetProductList=""
DetachStorageOnly=0
HuaweiMode=0
SierraMode=0
SonyMode=0
QisdaMode=0
GCTMode=0
KobilMode=0
SequansMode=0
MobileActionMode=0
CiscoMode=0
MessageEndpoint= not set
MessageContent="55534243123456780000000000000a11062000000000000100000000000000"
NeedResponse=0
ResponseEndpoint= not set
InquireDevice disabled
Success check enabled, max. wait time 20 seconds
System integration mode enabled
Use given bus/device number: 001/016 ...
Looking for default devices ...
bus/device number matched
searching devices, found USB ID 12d1:1f01
found matching vendor ID
found matching product ID
adding device
Found device in default mode, class or configuration (1)
Skipping the check for the current configuration
Using first interface: 0x00
Using endpoints 0x01 (out) and 0x81 (in)
USB description data (for identification)
-------------------------
Manufacturer: HUAWEI
Product: HUAWEI Mobile
Serial No.: FFFFFFFFFFFFFFFF
-------------------------
Looking for active driver ...
OK, driver found ("usb-storage")
OK, driver "usb-storage" detached
Setting up communication with interface 0
Using endpoint 0x01 for message sending ...
Trying to send message 1 to endpoint 0x01 ...
OK, message successfully sent
Resetting response endpoint 0x81
Resetting message endpoint 0x01
Device is gone, skipping any further commands
Bus/dev search active, referring success check to wrapper. Bye.
ok:busdev
--------------------------------
(end of usb_modeswitch output)
Checking success of mode switch for max. 20 seconds ...
Reading attributes ...
Target config not matching - current values are
1-1.2.4.2:1.0/bInterfaceClass: 02
bConfigurationValue: 1
bNumConfigurations: 1
busnum: 1
devnum: 17
idProduct: 14dc
idVendor: 12d1
manufacturer: HUAWEI
product: HUAWEI Mobile
serial:
Mode switching may have failed. Exiting
Alles anzeigen
Danke für alle Tipps und Ratschläge
lg Lukas