From: Amit Virdi <amit.virdi@st.com>
To: <netdev@vger.kernel.org>
Subject: Testing IRDA device driver
Date: Wed, 13 Apr 2011 12:10:20 +0530 [thread overview]
Message-ID: <4DA54554.7020500@st.com> (raw)
Hi All,
For the past few days I've been trying to test a driver that I've
written for DICE Fast IrDA controller. As per my requirements, I need to
use IrCOMM as the upper layer.
I'm using the same kernel image on the both the boards. When I run
irattach on either of the boards I can see discovery protocol being
initiated and completing successfully (cat /proc/net/irda/discovery
giving output with other ends's device's MAC address as the daddr) but
I'm struggling to test the driver further.
I've observed that the discovery request/response sequence goes on for 5
minutes. After this, the discovery process stops. On the master side, I
could see no IrLAP frame being sent/received and also the output of cat
/proc/net/irda/discovery is NULL. However, on the slave side, the cat
/proc/net/irda/discovery output shows the master side!!
If I run irattach on the slave side also, no DISCOVERY message is
exchanged and then, the output of slave side also doesn't show anything.
Sometimes, I start getting log "IrLAP, no activity on link!" and then
ircomm_close() API is called from within the stack.
If, I try to run getty on /dev/ircomm0, it does not work!
If I try to transfer data using
echo "1234567890" > /dev/ircomm0
on the master side, and
cat /dev/ircomm0
on the slave side, I can see SNRM command, UA response, RR command,
IrLMP connect/disconnect etc. However, the data transfer actually didn't
happen. I cannot see the string "1234567890" on the slave side.
Please suggest what I'm missing/doing wrong. I need to transfer data
from one device to another to complete the testing. I shall be very much
thankful for suggestions/advice.
Thanks n Regards
Amit Virdi
next reply other threads:[~2011-04-13 6:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-13 6:40 Amit Virdi [this message]
[not found] ` <4DA830EF.701@st.com>
2011-04-19 10:14 ` Testing IRDA device driver Amit Virdi
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=4DA54554.7020500@st.com \
--to=amit.virdi@st.com \
--cc=netdev@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 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).