Re: Unable to open Serial Port
- From: Sekhon <Sekhon@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 22 Jun 2009 23:00:01 -0700
Hi Tobey,
Thanks for replying to my query. Actually i did check before opening the
port that what all serial ports are available and it did showed COM1. I think
that COM1 serial port is available but driver is not loaded. Now about what
you said that to set up the registry for the device, interrupt to use, etc.
How can i setup the registry to load the driver for the device and does it
have to be at OSDesign stage? What all variables are required?
Thank You
"Paul G. Tobey [eMVP]" wrote:
Is there a COM1? Check the registry, HKEY_LOCAL_MACHINE\Drivers\Active.
branch, for an item that corresponds to your serial port. It's NOT the case
that somehow simply adding Serial Port support to the operating system will
make there be a serial port, just because you have serial port hardware.
You have to set up the registry for *YOUR* device to tell the driver where
the port hardware can be found, what interrupt to use, etc.
Paul T.
"Sekhon" <Sekhon@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:B13989DF-0A9D-4DE1-8480-FACCFDFF5F16@xxxxxxxxxxxxxxxx
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?
- Follow-Ups:
- Re: Unable to open Serial Port
- From: Bruce Eitman [eMVP]
- Re: Unable to open Serial Port
- References:
- Unable to open Serial Port
- From: Sekhon
- Re: Unable to open Serial Port
- From: Paul G. Tobey [eMVP]
- Unable to open Serial Port
- Prev by Date: Re: Unable to open Serial Port
- Next by Date: Re: Unable to open Serial Port
- Previous by thread: Re: Unable to open Serial Port
- Next by thread: Re: Unable to open Serial Port
- Index(es):
Relevant Pages
|