I have the same problem.
Hardware - PNA (JJ-connect2100wide) atlas4 with WinCE 6 (r2).
What I see is that most of GPS applications i tested on it are able to
detect GPS port as COM1
and work ok.
I'm trying to build my own tiny GPS application with compact framework
3.5
And when I try to call
serialPort.open()
I have absolutely same exception. I make a lot of attempts opening
port as "COM1" as "COM1:" and "\\.\COM1:" e.t.c
No success.. Exception is the same..At least when port name is valid.
Attempts to open port with wrong name rise other exception.
More.. I found some other C# projects most of which are proven to work
ok on other devices..
All of them fail with the same exception.
Doesn't matter I got binary and run it on my PNA or I comple it
myself and run it in debug mode.
Always I get exception.
My conclusion was that problem is related to using .NETCF
As other software can work on the same port.
My guess is that .NET CF opens COM1 as debugging port
so it becomes unavailable for application.
I was able to find in registry some key defining
COM1 as "Debugging port for atlas4 board"
So I guess this is a reason..
The question is how to disable using COM1 as debugging port for .NET
CF applications?
On 14 дек, 23:54, "DickGrier" <dick_grierNOS...@msn.com> wrote:
> Sorry, I don't have any suggestion. Â*Open should not throw an error,unless
> the port selected is unavailable. Â*So, my best guess (still) is a driver
> failure. Â*I suppose that this might actually be caused by a hardwarefault,
> but I've not seen it.
>
> Dick
>
> --
> Richard Grier, Consultant, Hard & Software 12962 West Louisiana Avenue
> Lakewood, CO 80228 303-986-2179 (voice) Homepage:www.hardandsoftware.net
> Author of Visual Basic Programmer's Guide to Serial Communications, 4th
> Edition ISBN 1-890422-28-2 (391 pages) published July 2004, Revised July
> 2006.