Re: Redirected console on serial doesnt show any output
- From: "Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam DOT com>
- Date: Tue, 26 Jun 2007 08:52:24 -0700
Yes, it sounds like things are at least close to right. Remember that,
depending on how the registry is set up and whether or not it is persistent,
you can also get into a state where which port is which can change from one
boot to the next, depending on the order in which the registry is enumerated
by the Device Manager.
If we assume that you know which port is which, though, I think I'd next try
using the default serial port setting (removing the COMSpeed entry), and
setting Hyperterminal to 19200 (what other settings are you using, data
bits, stop bits, and parity?).
Paul T.
"Ayush" <Ayush@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:214F0211-377C-4571-9620-4B2DE031CF41@xxxxxxxxxxxxxxxx
Hi Paul,
Thanks for the reply.
I dont think this is the problem because I had connected both COM2 and
COM3
to my PC and ran two instances of HyperTerminal - I was not getting the
console on either.
Another (unrelated) observation is that earlier we were able to
successfully
run an application which reads data from COM2 and writes to COM3, and
vice-versa. This means that the serial drivers should be fine.
I am lost here as i expected it to just work after the registry settings.
Also, I'm not sure how to debug further - should I put prints in serial
driver ?
regards,
ayush
"Paul G. Tobey [eMVP]" wrote:
The most-common cause of this sort of thing is misinterpreting which port
on
your hardware is COM2 or COM3. For example, on x86 devices, people often
assume that, hey, this port is the one that would be COM1 for DOS, so
that
must be COM1. However, that's absolutely not the case. Verify that your
COM port driver settings are pointing the port that will be assigned COM2
to
the port that you're actually connected to.
Paul T.
"Ayush" <Ayush@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:50E8C1A6-911D-4B7E-AC86-8E1102C169C2@xxxxxxxxxxxxxxxx
Hi,
I'm working on a platform which has three com ports. The first is
being
used by KITL. I'm trying to redirect cmd.exe to COM2. I've added the
following registry settings to my platform.reg:
[HKEY_LOCAL_MACHINE\Drivers\Console]
"OutputTo"=dword:2
"COMSpeed"=dword:1C200
When I connect the serial cable to PC, run HyperTerminal (Baud: 115200,
FlowControl: Off), and start cmd.exe from the Windows CE command prompt
using
"s cmd.exe", I am not seeing the redirected console output. I dont get
the
prompt or output from any commands like "dir".
I can see the log message "Console redirected to COM2 for process
0x3070002"
on the visual studio output window, so I know COM2 should be
redirecting.
I
have tried the same with COM3 also, but there's no difference.
Our BSP is based on WinCE 6.0, and I have VS SP1, Platform Builder SP1,
as
well as the wince 6.0 monthly updates till Apr 2007 installed.
Does anybody have any suggestions on why this could be happening ?
thanks,
ayush
.
- Follow-Ups:
- References:
- Re: Redirected console on serial doesnt show any output
- From: Paul G. Tobey [eMVP]
- Re: Redirected console on serial doesnt show any output
- From: Ayush
- Re: Redirected console on serial doesnt show any output
- Prev by Date: Re: Is there a better way to debug performance problems. Windows CE 6.
- Next by Date: Re: Need Mutex for Serial Port Use?
- Previous by thread: Re: Redirected console on serial doesnt show any output
- Next by thread: Re: Redirected console on serial doesnt show any output
- Index(es):
Relevant Pages
|