Linux Serial subsystem development
 help / color / mirror / Atom feed
From: Karl Palsson <karlp-PhA6lrgffZtPR4JQBCEnsQ@public.gmane.org>
To: "Kijam López" <kijamve-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: Greg KH
	<gregkh-hQyY1W1yCW8ekmWlsbkhG0B+6BGkLq7r@public.gmane.org>,
	linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	linux-serial-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: Driver CH341 USB Adapter Serial Port not Works in Linux
Date: Mon, 14 Apr 2014 10:13:20 +0000	[thread overview]
Message-ID: <20140414101320.GA19305@palmtree.beeroclock.net> (raw)
In-Reply-To: <CAMkwOQa4Wm9vnyDce_tkf3J=h73A3NfX3oAwTaOUeEVduStC4Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>



On Sun, Apr 13, 2014 at 08:51:56PM -0430, Kijam López wrote:
> The following code works for me correctly in Windows, but Linux does
> not work. I am using the same PC, both operating systems are installed
> native. I do not use virtual machine. I need to work on Linux. I have
> tried in different linux distributions and does not work anywhere.
[snip]
>       if(!serial.setParity(QSerialPort::EvenParity))
>             qCritical()<<"Error in setParity";

the ch34x driver does not (yet) support parities other than None.  It doesn't report a
failure though, it just simply ignores it altogether.

If you're actually working with an even parity device, you're going to have all sorts of
not-fun.  I've got a patch here: http://www.spinics.net/lists/linux-usb/msg105238.html
but I've not (yet) resubmitted it after Johan Hovold's comments

Cheers,
Karl P
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2014-04-14 10:13 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-14  0:49 Driver CH341 USB Adapter Serial Port not Works in Linux Kijam López
2014-04-14  1:20 ` Greg KH
2014-04-14  1:21   ` Kijam López
2014-04-14  1:44     ` Greg KH
2014-04-14  4:46       ` Kijam López
2014-04-14  5:23         ` Greg KH
2014-04-14  5:32           ` Kijam López
2014-04-14  6:36             ` Kijam López
     [not found]               ` <CAMkwOQZe2Gr8YFXGOqdBMiG6nTJj-waJRa9sR2xcnwRuLpRAOA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-04-14  6:42                 ` Kijam López
     [not found]     ` <CAMkwOQa4Wm9vnyDce_tkf3J=h73A3NfX3oAwTaOUeEVduStC4Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-04-14 10:13       ` Karl Palsson [this message]
2014-04-14 16:25         ` Kijam López

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=20140414101320.GA19305@palmtree.beeroclock.net \
    --to=karlp-pha6lrgffztpr4jqbcensq@public.gmane.org \
    --cc=gregkh-hQyY1W1yCW8ekmWlsbkhG0B+6BGkLq7r@public.gmane.org \
    --cc=kijamve-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=linux-serial-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox