[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <370106E9-5C39-4917-AE74-2ED5E376DA11@holtmann.org>
Date: Thu, 2 Jan 2014 13:41:28 -0800
From: Marcel Holtmann <marcel@...tmann.org>
To: Linus Torvalds <torvalds@...ux-foundation.org>
Cc: "David S. Miller" <davem@...emloft.net>,
Samuel Ortiz <samuel@...tiz.org>,
Network Development <netdev@...r.kernel.org>
Subject: Re: IrDA woes..
Hi Linus,
> Is anybody actually really using or maintaining irda any more? Because
> nothing seems to work. I think the following is *supposed* to work as
> a way to emulate having two irda dongles without actually having the
> hardware:
>
> - in terminal 1:
>
> socat PTY,link=/tmp/ttyS0 PTY,link=/tmp/ttyS1
>
> - terminal 2:
>
> irattach $(readlink /tmp/ttyS0) -s
> irattach $(readlink /tmp/ttyS1) -s
>
> - in terminal 3:
>
> echo "Duh" > /dev/ircomm0
>
> - in terminal 4:
>
> cat /dev/ircomm1
>
> (expecting to see "Duh" in terminal 4) but it really doesn't work for me.
if you are using the stir4200 driver then you are using an USB dongle that does not need the irattach to make it known to the IrDA subsystem. It will automatically make it known. For every IrDA dongle you attach you should see an irdaX with ifconfig.
The irattach (if I remember this correctly since this is long long time ago) is to take an IrDA device that is attached to a TTY and attach the IrDA ldisc to it to make it know to the IrDA subsystem. Not something that is needed for USB dongles with a proper driver. So the above should have never worked for you.
While the IrDA communication via /dev/ircommX is somehow possible, I do not remember how. What we used back in the days were IrDA sockets. I think if you look into Gnokii source you mind find an example on how to create an IrDA socket to talk to Nokia phone. Then again, this is so long time ago, I am not going to look at that since I am afraid that code is pretty ugly by todays standards.
Regards
Marcel
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists