Lines Matching refs:the
10 modify it under the terms of the GNU General Public License as
11 published by the Free Software Foundation; either version 2 of
12 the License, or (at your option) any later version.
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 You should have received a copy of the GNU General Public
20 License along with this program; if not, write to the Free
24 This document and the gadget serial driver itself are
33 Versions of the gadget serial driver are available for the
35 version 2.3 or later of the gadget serial driver in a 2.6
41 USB and serial devices. It also assumes you configure the Linux
44 With version 2.3 of the driver, major and minor device nodes are
46 sysfs in /sys, and use "mdev" (in Busybox) or "udev" to make the
47 /dev nodes matching the sysfs /sys/class/tty files.
81 On the device-side Linux system, the gadget serial driver looks
84 On the host-side system, the gadget serial device looks like a
91 interface. Gadget serial has been tested with the Linux ACM driver,
92 the Windows usbser.sys ACM driver, and the Linux USB generic serial
95 With the gadget serial driver and the host side ACM or generic
97 the host and the gadget side systems as if they were connected by a
105 Installing the Gadget Serial Driver
107 To use the gadget serial driver you must configure the Linux gadget
109 Controller" (for example, net2280), and for the "Serial Gadget"
111 configuring the kernel. Then rebuild and install the kernel or
114 Then you must load the gadget serial driver. To load it as an
123 This will also automatically load the underlying gadget peripheral
124 controller driver. This must be done each time you reboot the gadget
125 side Linux system. You can add this to the start up scripts, if
128 Your system should use mdev (from busybox) or udev to make the
136 Note that the major number (253, above) is system-specific. If
137 you need to create /dev nodes by hand, the right numbers to use
138 will be in the /sys/class/tty/ttyGS0/dev file.
146 either the Windows or Linux ACM driver on the host side. If gadget
147 serial is loaded as a bulk in/out device, you will want to use the
148 Linux generic serial driver on the host side. Follow the appropriate
149 instructions below to install the host side driver.
152 Installing the Windows Host ACM Driver
154 To use the Windows ACM driver you must have the "linux-cdc-acm.inf"
158 When the gadget serial driver is loaded and the USB device connected
159 to the Windows host with a USB cable, Windows should recognize the
160 gadget serial device and ask for a driver. Tell Windows to find the
161 driver in the folder that contains the "linux-cdc-acm.inf" file.
163 For example, on Windows XP, when the gadget serial device is first
164 plugged in, the "Found New Hardware Wizard" starts up. Select
165 "Install from a list or specific location (Advanced)", then on the
166 next screen select "Include this location in the search" and enter the
167 path or browse to the folder containing the "linux-cdc-acm.inf" file.
168 Windows will complain that the Gadget Serial driver has not passed
169 Windows Logo testing, but select "Continue anyway" and finish the
172 On Windows XP, in the "Device Manager" (under "Control Panel",
173 "System", "Hardware") expand the "Ports (COM & LPT)" entry and you
174 should see "Gadget Serial" listed as the driver for one of the COM
177 To uninstall the Windows XP driver for "Gadget Serial", right click
178 on the "Gadget Serial" entry in the "Device Manager" and select
182 Installing the Linux Host ACM Driver
184 To use the Linux ACM driver you must configure the Linux host side
188 Once the gadget serial driver is loaded and the USB device connected
189 to the Linux host with a USB cable, the host system should recognize
190 the gadget serial device. For example, the command
209 If the host side Linux system is configured properly, the ACM driver
210 should be loaded automatically. The command "lsmod" should show the
214 Installing the Linux Host Generic USB Serial Driver
216 To use the Linux generic USB serial driver you must configure the
218 Serial Converter support", and for the "USB Generic Serial Driver".
220 Once the gadget serial driver is loaded and the USB device connected
221 to the Linux host with a USB cable, the host system should recognize
222 the gadget serial device. For example, the command
239 You must load the usbserial driver and explicitly set its parameters
240 to configure it to recognize the gadget serial device, like this:
248 If everything is working, usbserial will print a message in the
255 Once the gadget serial driver and the host driver are both installed,
256 and a USB cable connects the gadget device to the host, you should
257 be able to communicate over USB between the gadget and host systems.
260 On the gadget side run "minicom -s" to configure a new minicom
261 session. Under "Serial port setup" set "/dev/ttygserial" as the
264 Under "Modem and dialing" erase all the modem and dialing strings.
266 On a Linux host running the ACM driver, configure minicom similarly
267 but use "/dev/ttyACM0" as the "Serial Device". (If you have other
268 ACM devices connected, change the device name appropriately.)
270 On a Linux host running the USB generic serial driver, configure
271 minicom similarly, but use "/dev/ttyUSB0" as the "Serial Device".
272 (If you have other USB serial devices connected, change the device
275 On a Windows host configure a new HyperTerminal session to use the
277 set automatically when HyperTerminal connects to the gadget serial
278 device, so you can leave them set to the default values--these
281 With minicom configured and running on the gadget side and with
282 minicom or HyperTerminal configured and running on the host side,
283 you should be able to send data back and forth between the gadget
284 side and host side systems. Anything you type on the terminal
285 window on the gadget side should appear in the terminal window on
286 the host side and vice versa.