On 2 Sep 1999, Dag Brattli wrote:
>
> How are you sending something? In most cases, the sending will initiate a
> discovery by itself so you don't have to do this stuff yourself. OBEX is
> however not fixed yet. Are you using OBEX?
>
Yes I am, and it do work ok if you want to send to the first device you
find, but I'd like to choose one specific if there are more than one
discovered.
>
> Yes, Thomas pointet out that getsockopt should probably not block, and
> since a discovery operations takes some amount of time to complete (if
> discovery is not running and the cache is therefore empty), it will only
> initiate the discovery and not wait for the result. You will have to call
> it multiple times to read the result. The cache is flushed after 3 seconds,
> so you must do the next discovery within that timeframe.
>
> The error value returned is -EAGAIN which should tell the app to try
> again. The docs for IrSock (Win) states the same!
>
Ok, I get it. I had some trouble with getting obex to try to send to the
correct address at first since the Palm V changes addresses each time it
sees a new discovery sequence (why?) and the cache contained the older one
at some points when I was turning on/off the discovery manually. When I
tried to set the discovery timeout to 1 sec the Palm V went crazy and
reported different addresses in almost every response.
And another question (that I've asked before), when I've sent something
from the linuxbox, irlap resends a number of receive ready (?) frames
which renders the irlink unusable for about ten seconds (or 24*500msec).
I dont know if it wants the other device to reply but the Palm V stays
silent. Is it possible to avoid this? A few irdadump lines :
11:45:32.367959 i:cmd > ca=d2 pf=1 nr=6 ns=7 LM slsap=3d dlsap=02 TTP
credits=1
OBEX DISC
11:45:32.391981 i:rsp < ca=d2 pf=1 nr=0 ns=6 LM slsap=02 dlsap=3d TTP
credits=1
OBEX SUCCESS
11:45:32.403141 i:cmd > ca=d2 pf=1 nr=7 ns=0 LM slsap=3d dlsap=02 DISC
11:45:32.891598 rr:cmd > ca=d2 pf=1 nr=7
11:45:33.391866 rr:cmd > ca=d2 pf=1 nr=7
...
thanks alot for the help. and great work on these irda drivers btw.
/tomas
_________________________________________________________
Tomas Carlsson <[EMAIL PROTECTED]>
_______________________________________________
Linux-IrDA mailing list - [EMAIL PROTECTED]
http://www.pasta.cs.UiT.No/mailman/listinfo/linux-irda