All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michael Westermann <mw@microdata-pos.de>
To: linux-serial@vger.kernel.org
Subject: Re: Connect with various serial devices
Date: Thu, 11 Dec 2003 13:29:14 +0100	[thread overview]
Message-ID: <20031211132914.I12637@microdata-pos.de> (raw)
In-Reply-To: <32780.192.168.192.123.1071144774.squirrel@www.clientes.sedifa.com>; from informatic@sedifa.com on Thu, Dec 11, 2003 at 01:12:54PM +0100

Hello,
On Thu, Dec 11, 2003 at 01:12:54PM +0100, Albert Cervera Areny wrote:
> Thanks for your suggestion, in fact now we can receive data from the note
> dispenser and see the 'Ok' response. We keep on beeing unable to use the
> other devices though. It seems that for some strange (to us) reason,
> devices are not receiving data correctly (as they would do the appropiate
> thing even if we didn't receive any response). Do you have any ideas on
> why the sent data shouldn't be received correctly by the device? I've
> looked at the speed, parity, CS and Bstop parameters but they are right.
> Could there be any other reason for that strange behaviour in some of the
> devices?
I think the Card-Reader need 9600/8bit/None Parity and CRTSCTS

t.c_cflag 		= baud|parity|bits|stop ;
t.c_cflag 		|= CRTSCTS;

Use tcdrain with caution, tcdrain blocks forever without a device ! 
better use in a timed loop;

ioctl(fd, TIOCOUTQ, &bytes)  bytes = bytes in outqueue

Michael

  reply	other threads:[~2003-12-11 12:29 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-10 20:33 Connect with various serial devices Albert Cervera Areny
2003-12-11  1:38 ` whitnl73
2003-12-11  8:14   ` Albert Cervera Areny
2003-12-11  9:33     ` Michael Westermann
2003-12-11 12:12       ` Albert Cervera Areny
2003-12-11 12:29         ` Michael Westermann [this message]
2003-12-11 13:08           ` Albert Cervera Areny
2003-12-11 13:27             ` Michael Westermann
2003-12-15 19:00               ` Albert Cervera Areny
2003-12-16  7:23                 ` Michael Westermann
2003-12-11 14:47             ` Gerald Emig

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=20031211132914.I12637@microdata-pos.de \
    --to=mw@microdata-pos.de \
    --cc=linux-serial@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.