kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
From: dhylands@gmail.com (Dave Hylands)
To: kernelnewbies@lists.kernelnewbies.org
Subject: plz help with the serial port pgm....
Date: Tue, 22 Nov 2011 23:21:16 -0800	[thread overview]
Message-ID: <CABi1daFPaHwNtX12P0qXeJHa-qThw1ix3AeqNJGkpfLUkB2XhA@mail.gmail.com> (raw)
In-Reply-To: <CAP=3ETGOqBjOrPA+GnNcK7AQeB=hrviWO=q9ROqN9ycT8gSKQg@mail.gmail.com>

Hi shibin

On Tue, Nov 22, 2011 at 9:48 PM, shibin k reeny <shibinkreeny@gmail.com> wrote:
> rs232 read pgm is not working when i connect in loopback but write is
> wroking plz help...

Rather than trying to debug your program, I'll point you at this document:
http://tldp.org/HOWTO/Serial-Programming-HOWTO/

and point at some sample code which I wrote a while ago, which I know works:
http://svn.hylands.org/host/sertest/sertest.c

-- 
Dave Hylands
Shuswap, BC, Canada
http://www.davehylands.com

      reply	other threads:[~2011-11-23  7:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-23  5:48 plz help with the serial port pgm shibin k reeny
2011-11-23  7:21 ` Dave Hylands [this message]

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=CABi1daFPaHwNtX12P0qXeJHa-qThw1ix3AeqNJGkpfLUkB2XhA@mail.gmail.com \
    --to=dhylands@gmail.com \
    --cc=kernelnewbies@lists.kernelnewbies.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;
as well as URLs for NNTP newsgroup(s).