[prev in list] [next in list] [prev in thread] [next in thread]
List: rxtx
Subject: Re: [Rxtx] Port-Enumeration fails
From: Moritz Gmelin <moritz.gmelin () gmx ! de>
Date: 2004-07-13 11:37:45
Message-ID: 0EE458A2-D4C1-11D8-AF54-000A95BC7E8A () gmx ! de
[Download RAW message or body]
That sounds reasonable,
it matches the other problem that I had mentioned before, where the
writeArray does not return....
M.
Am 12.07.2004 um 23:56 schrieb Trent Jarvi:
> On Mon, 12 Jul 2004, Moritz Gmelin wrote:
>
>> Hi,
>>
>> I have a problem on Windows, with
>> CommPortIdentifier.getPortIdentifiers();
>>
>> As soon as I approach a generic IrDA device to my USB-IrDA Dongle
>> (configured to be COM4) the call to getPortIdentifiers does not return
>> anymore.
>> It just hangs and cannot event be killed. If I disconnect the dongle
>> or
>> turn the IrDA-Device off, it will return after a while.
>> It does not happen with all IrDA devices (with my Palm, I don't have
>> that problem).
>> Also, it does only happen in Windows.
>>
>> ??????
>>
>>
>
> It sounds like w32, IrDA reads and writes are not timing out. This
> probably has something to do with the nature of the connections and the
> driver underneath. With rxtx, enumerating the ports involves opening
> the
> port and trying a timed out read. It sounds like this is not timing
> out
> in the situation you describe.
>
> I dont have a generic solution for this off had. It is possible to
> just
> have the testRead() code in SerialImp.c try to open and close the port
> but
> not read. It is possible to use specified ports. I suspect that this
> is
> going to have more problems than enumeration. Someone with the
> hardware
> is going to need to examine the issue in more detail.
>
> I'm really curious why that read does not timeout though. It would be
> interesting to look at the w32 api structure with and without the IrDA
> setup you mention.
>
> --
> Trent Jarvi
> taj@www.linux.org.uk
> _______________________________________________
> Rxtx mailing list
> Rxtx@linuxgrrls.org
> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx
>
_______________________________________________
Rxtx mailing list
Rxtx@linuxgrrls.org
http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic