Re: Disable debug messages on serial port.
- From: "Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam DOT com>
- Date: Mon, 8 Sep 2008 09:14:27 -0700
Remember that you can call any serial port at all on the system "COM1:".
There is no association between the serial port at address 0x378 and
COM<anything>. That association occurs entirely under the control of your
registry settings. A common problem with Windows CE is assuming that the
port that DOS calls COM1 will also be called COM1 in Windows CE. It might
be, if you set up the registry that way, but it might not and frequently
will not be if you are using a serial port for serial debug messages. The
x86 BSPs usually use what DOS would call COM1 for that, so they instead call
the port that DOS would call COM2 COM1 instead.
Paul T.
"BrownB" <cristian.brunelli@xxxxxxxxxxx> wrote in message
news:ac448980-8b72-48cb-9da9-62e4009ed5e0@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hello, I found a big security problem, here is the description.
I use a WinCE5 board to communicate through COM1 to my device, which
is a high voltage system. I'm working on the USB at the moment, so
that I need to attach and detach a USB device from the board.
Suddenly, the COM controlled system starts with an unwanted task: to
grow its voltage over its maximum. I had to stop it by turning it off
very quick, otherwise serial damages could occur on the board.
Now, I found what was wrong: on the COM port, keeped open by my
application to constantly communicate with the controlled system, are
sent ERROR MESSAGES SENT BY THE USB HOST DRIVER.....
The error message is this:
CQueuedPipe::ISP1161Hc_ServePTD - error(5),Count(1),
CQueuedPipe::ISP1161Hc_ServePTD - error(5),Count(2),
Now, the image I'm using is a Release image, but the COM I use (and I
can't change it ) is the debug port, where I get boot messages from my
WinCE board.
I think that this could be very harmful: imagine what could happen if
we want to use COM port to communicate with a dangerous system!!!
Have anyone experienced a similar fact? How could I be shure that the
COM port is not used to send debug messages? Thanks.
BrownB
.
- References:
- Disable debug messages on serial port.
- From: BrownB
- Disable debug messages on serial port.
- Prev by Date: Re: Problem in adding .NET CF 3.5 to CE 5.0
- Next by Date: Re: Write protection or hiding specific partion
- Previous by thread: Re: Disable debug messages on serial port.
- Next by thread: Re: Disable debug messages on serial port.
- Index(es):
Relevant Pages
|