Fons Botman <[EMAIL PROTECTED]> writes:
> Hello
>
> I would like to trace (failing :-{) communication between two other IRDA devices.
>What would be the best way to do that with linux-irda?
> irdadump does not work when the devices talk to each other and switch to another
>speed.
> Do I need another state in the state machine which can follow the SNMR comands
>directed to other devices?
> The stack in these states should not reply to XID frames, it can be confusing to
>have the tracer as an extra party in the conversation.
> I would like to use the stack because it contains the device drivers for all linux
>irda-devices.
> Are there more issues or solutions?
> (changing the device speed from userspace came to mind, but looks less clean)
What you need to do is to implement (as Pavel) pointed out is the
ifr_bandwidth field of an ioctl call. You could intercept this in
irda_device (once for all), or do it in each of the device driver.
We should also have an ioctl which could tell IrLAP to be silent (ifconfig
down will work, but then you will stop frames from reaching irdadump as
well)
Then you must modify irdadump, so it will switch speed once it sees the UA
after the SNRM.
This is something I would like/need to do myself, so I'll like to help you
if you need it. I have problems with the Palm III and the Ericsson, where
the link goes down for no particular reason :-(
-- Dag
--
/ Dag Brattli | The Linux-IrDA Project /
// University of Tromsoe, Norway | Infrared communication for Linux //
/// http://www.cs.uit.no/~dagb | http://www.cs.uit.no/linux-irda/ ///
_______________________________________________
Linux-IrDA mailing list - [EMAIL PROTECTED]
http://www.pasta.cs.UiT.No/mailman/listinfo/linux-irda