Re: Unable to open Serial Port

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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 :\
.



Relevant Pages

  • Re: Unable to open Serial Port
    ... What exactly is "showing COM1 is available"? ... Did you look in the registry? ... Actually tobey suggested that by just adding the support for serial port ... catalog view doesn't actually give you a serial port on the target device ...
    (microsoft.public.windowsce.app.development)
  • Re: Unable to open Serial Port
    ... I checked out in registry it is listed in HKLM/Drivers/Active in 04 with ... Actually tobey suggested that by just adding the support for serial port ... catalog view doesn't actually give you a serial port on the target device ... port that what all serial ports are available and it did showed COM1. ...
    (microsoft.public.windowsce.app.development)
  • Re: Unable to open Serial Port
    ... Actually tobey suggested that by just adding the support for serial port in ... is it possible to see the serial port without their respective driver loaded ... port that what all serial ports are available and it did showed COM1. ... now as i have only one serial port on the target device i have ...
    (microsoft.public.windowsce.app.development)
  • Re: Unable to open Serial Port
    ... port that what all serial ports are available and it did showed COM1. ... that COM1 serial port is available but driver is not loaded. ... now as i have only one serial port on the target device i have unchecked ... opening the serial port whether it is open or not. ...
    (microsoft.public.windowsce.app.development)
  • Re: Unable to open Serial Port
    ... Actually tobey suggested that by just adding the support for serial port ... catalog view doesn't actually give you a serial port on the target device ... Actually i did check before opening ... port that what all serial ports are available and it did showed COM1. ...
    (microsoft.public.windowsce.app.development)