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 14:27:05 +0100	[thread overview]
Message-ID: <20031211142704.J12637@microdata-pos.de> (raw)
In-Reply-To: <32779.192.168.192.123.1071148124.squirrel@www.clientes.sedifa.com>; from informatic@sedifa.com on Thu, Dec 11, 2003 at 02:08:44PM +0100

On Thu, Dec 11, 2003 at 02:08:44PM +0100, Albert Cervera Areny wrote:
> 
> > 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
> 
> According to the Card-Reader documentation, the parameters are: 8 bit, 1
> bit stop, even parity ant the speed is automaticalli recognized, and I've
> tried 9600 (and others too). Trying with the CRTSCTS doesn't work either.

Test with strace ?
or i

stty -F /dev/ttyS0 raw clocal ispeed 9600 parenb -parodd -echo [crtscts]

check with

stty -a -F /dev/ttyS0

cat /dev/ttyS0 > /tmp/xxxx&
printf "aa\x0d"  > /dev/ttyS0	(example) 

test with 

ls -l /tmp/xxxx
hexdump /tmp/xxxx

check the interrpts with 
cat /proc/interrupts (/proc/stat)


> 
> PS: ioctl(TIOCOUTQ) returns 0 in bytes; So it seems everything is sent,
> isn't it?
the queue is empty, it's all transmitted. 

Michael

  reply	other threads:[~2003-12-11 13:27 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
2003-12-11 13:08           ` Albert Cervera Areny
2003-12-11 13:27             ` Michael Westermann [this message]
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=20031211142704.J12637@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.