Hi!
I've written a small test program:
import os,time,select,sys
port=os.environ.get("GSMPORT","/dev/ircomm0")
s=time.time()
fd=open(port,"r+",0)
print time.time()-s,"secs opening IrDA connection."
fd.write("+++ATZ\r")
fd.write("ATZ\r")
s=time.time()
while s+5>time.time():
inp,out,err=select.select([fd,],[],[],0.1)
if len(inp)>0:
sys.stdout.write(fd.read(1))
sys.stdout.flush()
Now, I've discovered, that it seems that open() takes up to 90 seconds
to connect to the phone :( (It's quite fast when the "sending" icon is on
on the S25. It takes an eternity if it is off. :( )
I'm using 2.2.12+irda3, and I've been wondering if I can somehow speed up
this (discovery?) time.
Andreas
--
Andreas Kostyrka | [EMAIL PROTECTED]
phone: +43/1/7070750 | phone: +43/676/4091256
MTG Handelsges.m.b.H. | fax: +43/1/7065299
Raiffeisenstr. 16/9 | 2320 Zwoelfaxing AUSTRIA
_______________________________________________
Linux-IrDA mailing list - [EMAIL PROTECTED]
http://www4.pasta.cs.UiT.No/mailman/listinfo/linux-irda