Re: Unable to open Serial Port
- From: Ation <gation@xxxxxxxxx>
- Date: Mon, 22 Jun 2009 01:50:03 -0700 (PDT)
On 19 июн, 14:00, Sekhon <Sek...@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
hi,
I might be sound elaborate on the issue. I have a created an image for an
industrial controller device (x86 platform).What i now wanted to do is
programming on serial communication. I included the support for serial port,
now as i have only one serial port on the target device i have unchecked
enable KITL and enable kernel debugger from build options. While loading the
image in the target device with loadcepc i used the /c:0 switch in order to
suppress the debug serial port. Thereafter I built a simple program to open
com1 serial port on the target device and send a simple message to the other
end ( development pc listening on hyperterminal). But when i deploy this
program on target device it throws an IOException error. I checked before
opening the serial port whether it is open or not. I was not sure whether
debug serial has been suppressed or not beacuse i could see debug messages on
hyperterminal so i loaded the image locally as loadcepc /c:0 nk.bin after
which the messages were gone. But even then it is throwing an IOException
error.
If it shows then com1 is not open, then what could be the reason of
IOException while opening com1?
Hi. How do you open your serial port? Are you using Native code, like
CreateFile, or you are using managed code (C#, VB# etc)?
Cause there is some problem with opening serial ports via .net
framework. (some IOCTL are supported by the Bluetooth serial port
driver, but .Net want to use them).
Where exectly you got exceptilon?
What platform you are using ?(CE 5.00, 6.00) Last updates installing
can be usefull)
PS: sorry for my english :\
.
- References:
- Unable to open Serial Port
- From: Sekhon
- Unable to open Serial Port
- Prev by Date: SetWindowLong in windows mobile 6.
- Next by Date: Re: Unable to open Serial Port
- Previous by thread: Unable to open Serial Port
- Next by thread: Re: Unable to open Serial Port
- Index(es):
Relevant Pages
|