Posted: 30 Mar 2009, 08:35
Nice job Josh ![Smile :-)](./images/smilies/icon_e_smile.gif)
![Smile :-)](./images/smilies/icon_e_smile.gif)
Everything Linux and Modeswitching USB Devices
https://draisberghof.de/usb_modeswitch/bb/
https://draisberghof.de/usb_modeswitch/bb/viewtopic.php?f=3&t=106
Code: Select all
Looking for target devices ...
No devices in target mode or class found
Looking for default devices ...
Found default devices (1)
Prepare switching, accessing device 013 on bus 005 ...
Looking for active driver ...
OK, driver found ("usb-storage")
OK, driver "usb-storage" detached
Trying to send Sony control message
OK, control message sent, waiting for device to return ...
##############################
After 30 seconds: device still gone, cancelling
Note: ignoring MessageContent. Can't combine with special mode
-> switching was not completed. Bye
Code: Select all
Looking for target devices ...
No devices in target mode or class found
Looking for default devices ...
Found default devices (1)
Prepare switching, accessing device 017 on bus 005 ...
Looking for active driver ...
OK, driver found ("usb-storage")
OK, driver "usb-storage" detached
Trying to send Sony control message
OK, control message sent, waiting for device to return ...
##############################
After 30 seconds: device still gone, cancelling
Note: ignoring MessageContent. Can't combine with special mode
Changing configuration to 2 ...
Setting the configuration returned error -9. Trying to continue
-> switching was not completed. Bye
Hello there from Hungary. I've got the same errors, using Ubuntu, and SE MD400. Sometimes i see the connection manager telling that connection aborted after running usb_modeswitch, so as I see, it switches to modem, but immediately it switches back. Help, please.jbn wrote:I couldn't see any solutions in this thread, if I missed something I apologise.
When using modeswitch 0.9.7 which has a configuration for MD400 I have no success even after uncommenting the correct configuration. This is on some eee-version of Ubuntu 8.04, I think I recall it being ubuntu-eee, but there are so many distros with similar names by now.
With configuration=2 commented out I get:And with configuration=2 uncommented I got:Code: Select all
Looking for target devices ... No devices in target mode or class found Looking for default devices ... Found default devices (1) Prepare switching, accessing device 013 on bus 005 ... Looking for active driver ... OK, driver found ("usb-storage") OK, driver "usb-storage" detached Trying to send Sony control message OK, control message sent, waiting for device to return ... ############################## After 30 seconds: device still gone, cancelling Note: ignoring MessageContent. Can't combine with special mode -> switching was not completed. Bye
I'm under the impression that the only thing I need to do with the MD400-options uncommented in the config-file is to run 'sudo usb_modeswitch'.Code: Select all
Looking for target devices ... No devices in target mode or class found Looking for default devices ... Found default devices (1) Prepare switching, accessing device 017 on bus 005 ... Looking for active driver ... OK, driver found ("usb-storage") OK, driver "usb-storage" detached Trying to send Sony control message OK, control message sent, waiting for device to return ... ############################## After 30 seconds: device still gone, cancelling Note: ignoring MessageContent. Can't combine with special mode Changing configuration to 2 ... Setting the configuration returned error -9. Trying to continue -> switching was not completed. Bye
Any clues to why it won't work would be greatly appreciated.
Code: Select all
[ 229.990023] usb 5-2: new high speed USB device using ehci_hcd and address 9
[ 230.123625] usb 5-2: configuration #1 chosen from 1 choice
[ 230.184854] scsi8 : SCSI emulation for USB Mass Storage devices
[ ..snip..]
[ 232.774214] sd 8:0:0:1: [sdd] Attached SCSI removable disk
[ 232.774318] sd 8:0:0:1: Attached scsi generic sg3 type 0
Code: Select all
./usb_modeswitch -v 0x0fce -p 0xd0e1 -O 1
* usb_modeswitch: tool for controlling "flip flop" mode USB devices
* Version 0.9.6 (C) Josua Dietze 2009
* Works with libusb 0.1.12 and probably other versions
Looking for default devices
Found default devices (1)
Prepare switching, accessing latest device
OK, Sony control message successfully sent.
-> See /proc/bus/usb/devices (or call lsusb) for changes. Bye
Error: releasing interface failed (error -22). Trying to continue
Code: Select all
[ 269.864819] usb 5-2: USB disconnect, address 9
[ 274.384272] usb 5-2: new high speed USB device using ehci_hcd and address 10
[ 274.461890] usb 5-2: configuration #2 chosen from 1 choice
[ 274.481173] cdc_acm 5-2:2.1: ttyACM0: USB ACM device
[ 274.489586] cdc_acm 5-2:2.3: ttyACM1: USB ACM device
[ 274.515378] scsi9 : SCSI emulation for USB Mass Storage devices
[ 274.530028] usb-storage: device found at 10
[ 274.530060] usb-storage: waiting for device to settle before scanning
[ 277.779924] usb-storage: device scan complete
[ 277.782547] scsi 9:0:0:0: Direct-Access SEMC MMC Flash Card 0 PQ: 0 ANSI: 0
[ 277.784483] scsi 9:0:0:1: Direct-Access SEMC MMC Flash Card 0 PQ: 0 ANSI: 0
[ 277.793464] sd 9:0:0:0: [sdc] 348261 512-byte hardware sectors (178 MB)
[ 277.803675] sd 9:0:0:0: [sdc] Test WP failed, assume Write Enabled
[ 277.803721] sd 9:0:0:0: [sdc] Assuming drive cache: write through
[ 277.810111] sd 9:0:0:0: [sdc] 348261 512-byte hardware sectors (178 MB)
[ 277.812949] sd 9:0:0:0: [sdc] Test WP failed, assume Write Enabled
[ 277.812980] sd 9:0:0:0: [sdc] Assuming drive cache: write through
[ 277.813017] sdc: sdc1
[ 277.816434] sd 9:0:0:0: [sdc] Attached SCSI removable disk
[ 277.816774] sd 9:0:0:0: Attached scsi generic sg2 type 0
[ 277.819879] sd 9:0:0:1: [sdd] 1967104 512-byte hardware sectors (1007 MB)
[ 277.821906] sd 9:0:0:1: [sdd] Test WP failed, assume Write Enabled
[ 277.821936] sd 9:0:0:1: [sdd] Assuming drive cache: write through
[ 277.826518] sd 9:0:0:1: [sdd] 1967104 512-byte hardware sectors (1007 MB)
[ 277.828658] sd 9:0:0:1: [sdd] Test WP failed, assume Write Enabled
[ 277.828688] sd 9:0:0:1: [sdd] Assuming drive cache: write through
[ 277.828725] sdd: sdd1
[ 277.832126] sd 9:0:0:1: [sdd] Attached SCSI removable disk
[ 277.832390] sd 9:0:0:1: Attached scsi generic sg3 type 0
Code: Select all
...
Trying to send Sony control message
OK, control message sent, waiting for device to return ...
##############################
After 30 seconds: device still gone, cancelling
...
You should check out the main page and especially read the Download section. It says to download the latest usb_modeswitch.conf and at the top of the conf you can find the documentation for all commandline switches AND their config-file equavilents.jbn wrote:...
Not sure what the -O 1 option is so I'm uncertain of what I should put into my config.
Code: Select all
...
# * SonyMode <0/1> -O
#
# Some Sony-Ericsson devices can be switched by a special control
# message. This is experimental and might not have a stable result
...
Code: Select all
...
########################################################
# Sony Ericsson MD400
#
# This is experimental. Might switch back after some time. Please report!
;DefaultVendor= 0x0fce
;DefaultProduct= 0xd0e1
;TargetClass= 0x02
;SonyMode=1
# This might work too instead; subject to testing
;Configuration=2
...