Hello

On Fri, Jun 03, 2005 at 03:17:51PM +0200, Peer Janssen wrote:
> Package: setserial
> Version: 2.17
> 
> 
> I'm trying to use an USB-to-Serial device, model: "U232-P9" (see 
> http://www.mct.com.tw/prod/rs232.html).
> 
> Plugging it in, it is correctly recognized:
> 
> 
> root> tail /var/log/messages
> Jun  3 14:14:55 lxw2 kernel: drivers/usb/serial/usb-serial.c: USB Serial 
> support registered for Generic
> Jun  3 14:14:55 lxw2 kernel: usbcore: registered new driver 
> usbserial_generic
> Jun  3 14:14:55 lxw2 kernel: usbcore: registered new driver usbserial
> Jun  3 14:14:55 lxw2 kernel: drivers/usb/serial/usb-serial.c: USB Serial 
> Driver core v2.0
> Jun  3 14:14:55 lxw2 usb.agent[8496]:      pl2303: loaded successfully
> Jun  3 14:14:55 lxw2 kernel: drivers/usb/serial/usb-serial.c: USB Serial 
> support registered for PL-2303
> Jun  3 14:14:55 lxw2 kernel: pl2303 2-2:1.0: PL-2303 converter detected
> Jun  3 14:14:55 lxw2 kernel: usb 2-2: PL-2303 converter now attached to 
> ttyUSB0
> Jun  3 14:14:55 lxw2 kernel: usbcore: registered new driver pl2303
> Jun  3 14:14:55 lxw2 kernel: drivers/usb/serial/pl2303.c: Prolific 
> PL2303 USB to serial adaptor driver v0.11

Ok.

> 
> So it is advertised as ttyUSB0.
> Fine. But now I cannot get hold of or change the parameters with setserial:
> 
> 
> root> setserial -g  /dev/ttyUSB0
> Cannot get serial info: Invalid argument
> root> setserial -v -g /dev/ttyUSB0
> Cannot get serial info: Invalid argument
> root> setserial /dev/ttyUSB0
> Cannot get serial info: Invalid argument
> 
> 
> There is no mention of USB serial devices in the --help or setserial 
> manpage.

The reason is that USB devices was not invented when setserial was written. Or 
maybe
it was but it was not the purpose of setserial.

> If another tool has to be used for USB devices, a reference in said 
> documentation would be very helpful.

I can agree on that.

> 
> On the contrary, the following command works just fine:
> 
> root> statserial /dev/ttyUSB0
> 
> [displays line status] But I still don't know how to set/get the baud rate.
> 
> 
> Now what? How can I know/set the parameters of this port which the 
> kernel correctly advertised in its log?

I have not used any USB to serial device so I need some input from
someone else.

I found a number of good links on google:
http://info.ccone.at/INFO/Mail-Archives/redhat/Feb-2004/msg01083.html
http://www.die.net/doc/linux/HOWTO/Serial-HOWTO-9.html
http://snow.nl/dist/xhtmlc/ch04s02.html

This may be links of help.

Regards,

// Ola

> Greetings
> Peer
> 
> 
> 

-- 
 --------------------- Ola Lundqvist ---------------------------
/  [EMAIL PROTECTED]                     Annebergsslingan 37      \
|  [EMAIL PROTECTED]                 654 65 KARLSTAD          |
|  +46 (0)54-10 14 30                  +46 (0)70-332 1551       |
|  http://www.opal.dhs.org             UIN/icq: 4912500         |
\  gpg/f.p.: 7090 A92B 18FE 7994 0C36  4FE4 18A1 B1CF 0FE5 3DD9 /
 ---------------------------------------------------------------


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to