netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Testing IRDA device driver
@ 2011-04-13  6:40 Amit Virdi
       [not found] ` <4DA830EF.701@st.com>
  0 siblings, 1 reply; 2+ messages in thread
From: Amit Virdi @ 2011-04-13  6:40 UTC (permalink / raw)
  To: netdev

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-04-19 10:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-13  6:40 Testing IRDA device driver Amit Virdi
     [not found] ` <4DA830EF.701@st.com>
2011-04-19 10:14   ` Amit Virdi

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).