Re: Redirected console on serial doesnt show any output
- From: Ayush <Ayush@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 26 Jun 2007 08:40:01 -0700
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:
- Re: Redirected console on serial doesnt show any output
- From: Paul G. Tobey [eMVP]
- Re: Redirected console on serial doesnt show any output
- References:
- Re: Redirected console on serial doesnt show any output
- From: Paul G. Tobey [eMVP]
- Re: Redirected console on serial doesnt show any output
- Prev by Date: Re: Redirected console on serial doesnt show any output
- Next by Date: Re: Is there a better way to debug performance problems. Windows CE 6.
- 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
|