USA Linux Users Group Forum Index
Log in Register FAQ Memberlist Search USA Linux Users Group Forum Index Album

USB_ModeSwitch

 
Post new topic   Reply to topic   printer-friendly view    USA Linux Users Group Forum Index » Application News and Releases
View previous topic :: View next topic  
Author Message
jada
Linux Guru


Joined: 13 May 2024
Posts: 3064
Location: Sun City, CA 92585

PostPosted: Sat Aug 23, 2024 11:20 pm    Post subject: USB_ModeSwitch Reply with quote

Quote:
USB_ModeSwitch - Activating Switchable USB Devices on Linux

USB_ModeSwitch is (surprise!) a mode switching tool for controlling "flip flop" (multiple device) USB gear.

Several new USB devices (especially high-speed wireless WAN stuff, they're expensive anyway) have their MS Windows drivers onboard; when plugged in for the first time they act like a flash storage and start installing the driver from there. After that (and on every consecutive plugging) this driver switches the mode internally, the storage device vanishes (in most cases), and a new device (like an USB modem) shows up. The WWAN gear maker Option calls that feature "ZeroCD (TM)".

As you may have guessed, nothing of this is documented in any form and so far there is no official Linux driver available. On the good side, most of the known devices work out of the box with the available Linux drivers like "usb-storage" or "usbserial". That leaves the problem of the mode switching from storage to whatever the thing is supposed to do.

Fortunately there are things like human reason, USB sniffing programs and "libusb". It is possible to eavesdrop the communication of the MS Windows driver, to isolate the command or action that does the switching, and to reproduce the same thing with Linux.

USB_ModeSwitch makes the last step considerably easier by taking the important parameters from a configuration file and doing all the initialization and communication stuff.
It does NOT check for success afterwards as of now. The right approach would be to consult /proc/bus/usb/devices (or the output of "lsusb") before and after execution to note any changes.

http://www.draisberghof.de/usb_modeswitch/



_________________
openSUSE 11.1 Desktop KDE 4.3.1 buildservice Factory
Linux Mint 7 Desktop Gnome
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
inactive
Sr. Member


Joined: 29 Aug 2024
Posts: 1207

PostPosted: Sun Aug 24, 2024 2:07 am    Post subject: Reply with quote

Mandriva's already got it:

Code:
[dedanna@dedanna ~]$ urpmf --description usb_modeswitch
usb_modeswitch:
        USB_ModeSwitch is a mode switching tool for controlling "flip flop"
        (multiple device) USB gear.

        Several new USB devices (especially high-speed wireless WAN stuff,
        they're expensive anyway) have their Windows drivers onboard; when
        plugged in for the first time they act like a flash storage and start
        installing the driver from there. After that (and on every consecutive
        plugging) this driver switches the mode internally, the storage device
        vanishes (in most cases), and a new device (like an USB modem) shows
        up. The WWAN gear maker Option calls that feature "ZeroCD (TM)".

Code:
[dedanna@dedanna ~]$ urpmq --sources usb_modeswitch
ftp://ftp.free.fr/mirrors/ftp.mandriva.com/MandrivaLinux/official/2008.1/i586/media/contrib/updates/usb_modeswitch-0.9.4-0.beta2.1mdv2008.1.i586.rpm



_________________
Mandriva 2024.1 PWP
Mandriva Cooker
ArtistX live
Back to top
View user's profile Send private message
lovric
New Member


Joined: 27 Jul 2024
Posts: 1

PostPosted: Mon Jul 27, 2024 7:22 pm    Post subject: Reply with quote

There is an alternative version of usb_modeswitch developped by ESECO SYSTEMS which doesn't need libusb.
The project name is usbms and download of the source can be done at the following url http://usbms.svn.sourceforge.net

____________
Ivan Lovric
ESECO SYSTEMS
Web3.0 and Web4.0 appliances for videosurveillance, security and risk protection
http://www.eseco.fr


Back to top
View user's profile Send private message Send e-mail
Germ
Keeper of the BIG STICK


Joined: 30 Apr 2024
Posts: 12452
Location: Planet Earth

PostPosted: Tue Jul 28, 2024 7:02 pm    Post subject: Reply with quote

Thanks. Smile Welcome to USALUG.



_________________
Laptop: Mandriva 2024 PowerPack - 2.6.33.5-0.2mnb
Desktop: Mandriva 2024 Free - kernel 2.6.33.2-1mib
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    USA Linux Users Group Forum Index » Application News and Releases All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All content © 2024-2009 - Usa Linux Users Group
This forum is powered by phpBB. © 2024-2009 phpBB Group
Theme created by phpBBStyles.com and modified by Crouse