lkml.org 
[lkml]   [2008]   [Feb]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: Handshaking on USB serial devices
    On Thursday 14 February 2008, Krzysztof Halasa wrote:
    >Gene Heskett <gene.heskett@gmail.com> writes:
    >> Apparently they do not Alan, the pl2303 in particular is a problem child,
    >> throwing several lost com errors a day when doing nothing more strenuous
    >> than talking to my belkin UPS from apcupsd, very small packets there, 20
    >> bytes I believe at several second intervals.
    >
    >Is your UPS using "modern" hardware handshaking (CTS = PC can send,
    >with RTS practically always asserted)? Or perhaps the "old",
    >"half-duplex" V.24-style (RTS asserted before TX and then waiting for
    >CTS)?
    >
    >Are you sure it uses hw handshaking at all? Most (all?) UPSes I used
    >had only TxD and RxD (for RS-232).

    ATM, its plugged into a USB port, but for some reason was not recognized at
    the last bootup. And I just installed the rpm for a newer version of apcupsd
    when I found apcupsd was logging an error and exiting about 2 seconds after
    being started by the 'service' utility. So I'm a bit puzzled. From the
    dmesg at boot time there is no mention of it being found, from the current
    dmesg, after unplugging the USB cable from the back of it and replugging it
    about a second later, and got this:

    [180077.652645] usb 1-1.1: USB disconnect, address 6
    [180080.387154] usb 1-1.1: new low speed USB device using ehci_hcd and address
    11
    [180080.586706] usb 1-1.1: configuration #1 chosen from 1 choice
    [180081.339062] hiddev97hidraw3: USB HID v1.11 Device [Belkin Belkin UPS] on
    usb-0000:00:02.2-1.1

    As to why it wasn't found at bootup, call me bumfuzzled. Uptime is about 2d
    3h and I wasn't aware it wasn't running until I wanted to see if anything was
    different about how it handled my belkin, which is not well, but it does take
    care of the graceful shutdown.

    I just found this:
    [root@coyote ~]# dmesg |grep -A2 'address 6'
    [ 30.990194] usb 1-1.1: new low speed USB device using ehci_hcd and address
    6
    [ 31.183832] usb 1-1.1: configuration #1 chosen from 1 choice
    [ 31.190504] usb 1-1.1: can't set config #1, error -32
    --
    [180077.652645] usb 1-1.1: USB disconnect, address 6
    [180080.387154] usb 1-1.1: new low speed USB device using ehci_hcd and address
    11
    [180080.586706] usb 1-1.1: configuration #1 chosen from 1 choice

    So something wasn't available at bootup. And I'm still puzzled...

    --
    Cheers, Gene
    "There are four boxes to be used in defense of liberty:
    soap, ballot, jury, and ammo. Please use in that order."
    -Ed Howdershelt (Author)
    The most important early product on the way to developing a good product
    is an imperfect version.


    \
     
     \ /
      Last update: 2008-02-15 00:13    [W:0.022 / U:0.520 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site