Re: Redirected console on serial doesnt show any output

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



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






.



Relevant Pages

  • Re: bluetooth XP SP2 Cannot Set BT COM port
    ... I cleared a settings in the registry ... This made my Widcomm software to add bt enabled port starting with COM5. ... Drivers->Com, even if the property explicitly told the right driver. ... I do not see the differernces in the registry nor elsewhere, ...
    (microsoft.public.pocketpc.activesync)
  • Re: Redirected console on serial doesnt show any output
    ... We then ran a console app which just does some printf/scanf. ... fine - it's stdout/stdin are redirected properly over the serial port. ... I dont think this is the problem because I had connected both COM2 and ... I am lost here as i expected it to just work after the registry settings. ...
    (microsoft.public.windowsce.embedded)
  • Re: Printers are showing ports NE00, nothing prints out
    ... then reinstall each without having to tamper with the registry. ... There may be a third party port monitor causing this. ... Also make sure you have a USB Monitor key with a value Driver=usbmon.dll. ... at a loss as to where I can delete these settings, ...
    (microsoft.public.windowsxp.print_fax)
  • Serial Port driver registry settings.
    ... We have created two registry for two COM ports i.e. ... (Contents of Serial1.reg for COM1) ... (Contents of Serial2.reg for COM2) ... when we try to open port COM2, we are able to open the port and ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Serial Port driver registry settings.
    ... Don't create a registry entry for the port being used for debug. ... (Contents of Serial1.reg for COM1) ... (Contents of Serial2.reg for COM2) ...
    (microsoft.public.windowsce.platbuilder)