All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jean-Denis Girard <jd.girard@sysnux.pf>
To: linux-kernel <linux-kernel@vger.kernel.org>
Cc: linux-usb@vger.kernel.org
Subject: ttyUSB sendbreak problem
Date: Mon, 16 Feb 2009 13:29:12 -1000	[thread overview]
Message-ID: <4999F6C8.3050001@sysnux.pf> (raw)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi list,

I'm writing a program which communicates via modem with an embedded
device (electrical network monitoring). The frames are terminated by a
BREAK.

My program works fine when I use a Cyclades 8Yo multiports card, but
fails using USB to serial adapters (tried with pl2303 and FTDI
converters). I suspect that the BREAK are not passed correctly, but I
don't have equipment to check.

I've tried with:
 tcsendbreak(modem,0);
 ioctl(modem, TCSBRK,0);
 ioctl(modem, TCSBRKP, 0);

- From pl2303 debug mode, I see that pl2303_break_ctl is called:
 drivers/usb/serial/pl2303.c: pl2303_break_ctl - port 0
 drivers/usb/serial/pl2303.c: pl2303_break_ctl - turning break on
 drivers/usb/serial/pl2303.c: pl2303_write_bulk_callback - port 0
 drivers/usb/serial/pl2303.c: pl2303_send - port 0
 drivers/usb/serial/pl2303.c: pl2303_break_ctl - port 0
 drivers/usb/serial/pl2303.c: pl2303_break_ctl - turning break off

I found a few references of similar problems in the past, but it was for
older kernels (I'm using 2.6.28.4), so the question remains: should it
work or is there a known problem sending BREAK using ttyUSB?


Thanks,
- --
Jean-Denis Girard

SysNux                  Systèmes  Linux  en Polynésie française
http://www.sysnux.pf/   Tél: +689 50 10 40 / GSM: +689 79 75 27
-----BEGIN PGP SIGNATURE-----

iEYEARECAAYFAkmZ9sgACgkQuu7Rv+oOo/iFuQCeJSaxikghrQhjS68WKU0Hc//7
wZQAn2XMnmunfW2avO/uPFQDrw+s9INO
=AB0j
-----END PGP SIGNATURE-----

             reply	other threads:[~2009-02-16 23:44 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-16 23:29 Jean-Denis Girard [this message]
2009-02-17  0:22 ` ttyUSB sendbreak problem Thiago Galesi
2009-02-17  3:14 ` Greg KH

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4999F6C8.3050001@sysnux.pf \
    --to=jd.girard@sysnux.pf \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.