1
<!doctype refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [
2
<!ENTITY dhfirstname "<firstname>Didier</firstname>">
3
<!ENTITY dhsurname "<surname>Raboud</surname>">
4
<!-- Please adjust the date whenever revising the manpage. -->
5
<!ENTITY dhdate "<date>January 30, 2009</date>">
6
<!ENTITY dhsection "<manvolnum>1</manvolnum>">
7
<!ENTITY dhemail "<email>didier@raboud.com</email>">
8
<!ENTITY dhusername "Didier Raboud">
9
<!ENTITY dhucpackage "<refentrytitle>USB-MODESWITCH</refentrytitle>">
10
<!ENTITY dhpackage "usb-modeswitch">
12
<!ENTITY debian "<productname>Debian</productname>">
13
<!ENTITY gnu "<acronym>GNU</acronym>">
14
<!ENTITY gpl "&gnu; <acronym>GPL</acronym>">
28
<holder>&dhusername;</holder>
38
<refname>&dhpackage;</refname>
40
<refpurpose>Switching tool for controlling "flip flop" USB devices</refpurpose>
44
<command>&dhpackage;</command>
45
<arg><option>-hvpVPmMrdHn</option></arg>
47
<arg><option>-c <replaceable>filename</replaceable></option></arg>
51
<title>DESCRIPTION</title>
53
<para>This manual page was written for the &debian; distribution
54
because the original program does not have a manual page.
58
Several new USB devices have their proprietary Windows drivers onboard,
59
especially WAN dongles. When plugged in for the first time, they act
60
like a flash storage and start installing the driver from there. If
61
the driver is already installed, the storage device vanishes and
62
a new device, such as an USB modem, shows up. This is called the
66
On Debian, this is not needed, since the driver is included as a
67
Linux kernel module, such as "usbserial". However, the device still
68
shows up as "usb-storage" by default. <command>&dhpackage;</command> solves that
69
issue by sending the command which actually performs the switching
70
of the device from "usb-storage" to "usbserial".
75
<title>OPTIONS</title>
77
<para>These programs follow the usual &gnu; command line syntax,
78
with long options starting with two dashes (`-'). A summary of
79
options is included below.</para>
83
<term><option>-h</option>
84
<option>--help</option>
87
<para>Show summary of options.</para>
92
<term><option>-e</option>
93
<option>--version</option>
96
<para>Print version number and exit.</para>
101
<term><option>-v</option>
102
<option>--default-vendor [nr]</option>
105
<para>Vendor ID to look for (mandatory).</para>
110
<term><option>-p</option>
111
<option>--default-product [nr]</option>
114
<para>Product ID to look for (mandatory).</para>
119
<term><option>-V</option>
120
<option>--target-vendor [nr]</option>
123
<para>Target Vendor (optional, for success check).</para>
128
<term><option>-P</option>
129
<option>--target-product [nr]</option>
132
<para>Target Model (optional, for success check).</para>
137
<term><option>-C</option>
138
<option>--target-class [nr]</option>
141
<para>Target Device Class</para>
146
<term><option>-m</option>
147
<option>--message-endpoint [nr]</option>
150
<para>Where to direct the message</para>
155
<term><option>-M</option>
156
<option>--message-content [nr]</option>
159
<para>Command to send (hex as string)</para>
164
<term><option>-r</option>
165
<option>--response-endpoint [nr]</option>
168
<para>If given, read response from there</para>
173
<term><option>-d</option>
174
<option>--detach-only</option>
177
<para>Whether to just detach the storage driver</para>
182
<term><option>-H</option>
183
<option>--huawei-mode</option>
186
<para>Whether to just apply the Huawei mode</para>
191
<term><option>-S</option>
192
<option>--sierra-mode</option>
195
<para>Whether to just apply the Sierra mode</para>
200
<term><option>-O</option>
201
<option>--sony-mode</option>
204
<para>Whether to just apply the Sony mode</para>
209
<term><option>-G</option>
210
<option>--gct-mode</option>
213
<para>Whether to just apply the GCT mode</para>
218
<term><option>-R</option>
219
<option>--resetUSB</option>
222
<para>Whether to reset the device in the end</para>
227
<term><option>-c</option>
228
<option>--config [filename]</option>
231
<para>Load different config file</para>
237
<term><option>-Q</option>
238
<option>--quiet</option>
241
<para>Don't show progress or error messages</para>
246
<term><option>-W</option>
247
<option>--verbose</option>
250
<para>Print all settings before running</para>
255
<term><option>-s</option>
256
<option>--success [nr]</option>
259
<para>Check switching result after [nr] secs</para>
266
<term><option>-I</option>
267
<option>--no-inquire</option>
270
<para>do not get device details (default on)</para>
274
<term><option>-i</option>
275
<option>--interface [nr]</option>
278
<para>Select initial USB interface (default: 0)</para>
283
<term><option>-u</option>
284
<option>--configuration [nr]</option>
287
<para>Select USB configuration</para>
292
<term><option>-a</option>
293
<option>--altsetting [nr]</option>
296
<para>Select alternative USB interface setting</para>
303
<title>SEE ALSO</title>
305
<para>bar (1), baz (1).</para>
307
<para>The programs are documented fully by <citetitle>The Rise and
308
Fall of a Fooish Bar</citetitle> available via the
309
<application>Info</application> system.</para>
312
<title>AUTHOR</title>
314
<para>This manual page was written by &dhusername; &dhemail; for
315
the &debian; system (and may be used by others). Permission is
316
granted to copy, distribute and/or modify this document under
317
the terms of the &gnu; General Public License, Version 2 any
318
later version published by the Free Software Foundation.
321
On Debian systems, the complete text of the GNU General Public
322
License can be found in /usr/share/common-licenses/GPL.
328
<!-- Keep this comment at the end of the file
333
sgml-minimize-attributes:nil
334
sgml-always-quote-attributes:t
337
sgml-parent-document:nil
338
sgml-default-dtd-file:nil
339
sgml-exposed-tags:nil
340
sgml-local-catalogs:nil
341
sgml-local-ecat-files:nil