Kirk Bateman <[EMAIL PROTECTED]> writes:

> Forwarded to this mailing list... because no-one seems to read the
> [EMAIL PROTECTED] :-)

I think people read it, the problem is that people never post there ;-)

> > I'm trying to implement IrDA stuff on an embedded system...
> > 
> > Is this the correct response to a Discovery Request
> > 
> > FF FF FF FF FF FF FF FF FF FF C0 FE BF 01 ss ss ss ss dd dd dd dd 01
> > 02
> > 00 cc cc C1
> > 
> > assuming:
> > default parameters (9600 etc..)
> > six slot request

Discovery flags are normally not used by response frames (IrLAP page 29),
and only to signal change of address. But it should't harme to set the
number of slots.

> > this is response to slot 2

The slot number field is undefined in response frames (IrLAP page 30), so
you can code whatever you like there.

> > cc = frame check sequence

If you fail here, you have problems because your frame will be dropped
silently ;-)

> > and assuming I haven't bothered to send any device info
> > 
> > I'm testing this with IR-Ping on a palm 3... I am receiving the
> > request
> > no problem... 
> > but it doesnt seem happy accepting my response.
> > 
> > Any help please ???

Here is an example of a discovery of a Palm III from Linux using 
"irdadump -x" :

09:43:04.344951 xid:cmd 49d415d3 > ffffffff S=6 s=0 (14) 
        ff3f01d315d449ffffffff010000
         . ? . . . . I . . . . . . .
09:43:04.434944 xid:cmd 49d415d3 > ffffffff S=6 s=1 (14) 
        ff3f01d315d449ffffffff010100
         . ? . . . . I . . . . . . .
09:43:04.435699 xid:rsp 49d415d3 < 0431321d S=6 s=0 Dag Brattli hint=8220 [ 
PDA/Palmtop IrOBEX ] (28) 
        febf011d323104d315d4490100008220004461672042726174746c69
         . . . . 2 1 . . . . I . . . .   . D a g   B r a t t l i
09:43:04.524907 xid:cmd 49d415d3 > ffffffff S=6 s=2 (14) 
        ff3f01d315d449ffffffff010200
         . ? . . . . I . . . . . . .
09:43:04.614906 xid:cmd 49d415d3 > ffffffff S=6 s=3 (14) 
        ff3f01d315d449ffffffff010300
         . ? . . . . I . . . . . . .
09:43:04.704910 xid:cmd 49d415d3 > ffffffff S=6 s=4 (14) 
        ff3f01d315d449ffffffff010400
         . ? . . . . I . . . . . . .
09:43:04.794908 xid:cmd 49d415d3 > ffffffff S=6 s=5 (14) 
        ff3f01d315d449ffffffff010500
         . ? . . . . I . . . . . . .
09:43:04.884956 xid:cmd 49d415d3 > ffffffff S=6 s=* dagbnb hint=0500 [ PnP Computer ] 
(22) 
        ff3f01d315d449ffffffff01ff000500646167626e62
         . ? . . . . I . . . . . . . . . d a g b n b

376 packets received by filter

To me it looks like you don't have any discovery info in your response
frames. At least you should have the hintbits. (IrLMP page 29)

Hope this helps!

-- 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://www4.pasta.cs.UiT.No/mailman/listinfo/linux-irda

Reply via email to