Hi everybody.

I'm working on an headless device. The only way I have to communicate
with it is a serial port.
I was wondering how can I launch a command line application and redirect
everything on this serial output ?
What are the components I have to include in my image ?

Thanks for answers !

Re: Redirect console output by Luca

Luca
Tue Apr 22 08:15:34 PDT 2008

You should add the following registry keys:

[HKEY_LOCAL_MACHINE\Drivers\Console]
"OutputTo"=dword:1 // Redirects CMD to COM1
"COMSpeed"=dword:19200 // Speed of serial connection

(never tried, it's from the docs)
--

Luca Calligaris
www.eurotech.it

"alex" <alex@discussions.microsoft.com> ha scritto nel messaggio
news:F50758A5-F889-456D-B9FE-554393AF7888@microsoft.com...
> Hi everybody.
>
> I'm working on an headless device. The only way I have to communicate
> with it is a serial port.
> I was wondering how can I launch a command line application and redirect
> everything on this serial output ?
> What are the components I have to include in my image ?
>
> Thanks for answers !



Re: Redirect console output by Erwin

Erwin
Tue Apr 22 08:16:03 PDT 2008

;[HKEY_LOCAL_MACHINE\Drivers\Console]
"OutputTo"=dword:1 ; Redirects CMD to COM1
"COMSpeed"=dword:2580 ; Speed of serial connection 0x2580 = 9600bps

Do a search in this newgroup, this item has been covered a lot,

Hope this helps,

Erwin Zwart

"alex" <alex@discussions.microsoft.com> wrote in message
news:F50758A5-F889-456D-B9FE-554393AF7888@microsoft.com...
> Hi everybody.
>
> I'm working on an headless device. The only way I have to communicate
> with it is a serial port.
> I was wondering how can I launch a command line application and redirect
> everything on this serial output ?
> What are the components I have to include in my image ?
>
> Thanks for answers !



Re: Redirect console output by alex

alex
Tue Apr 22 08:41:04 PDT 2008

Thanks Luca !

I will try it, Where did you find this documentation ? On the MSDN library ?

"Luca Calligaris" wrote:

> You should add the following registry keys:
>
> [HKEY_LOCAL_MACHINE\Drivers\Console]
> "OutputTo"=dword:1 // Redirects CMD to COM1
> "COMSpeed"=dword:19200 // Speed of serial connection
>
> (never tried, it's from the docs)
> --
>
> Luca Calligaris
> www.eurotech.it
>
> "alex" <alex@discussions.microsoft.com> ha scritto nel messaggio
> news:F50758A5-F889-456D-B9FE-554393AF7888@microsoft.com...
> > Hi everybody.
> >
> > I'm working on an headless device. The only way I have to communicate
> > with it is a serial port.
> > I was wondering how can I launch a command line application and redirect
> > everything on this serial output ?
> > What are the components I have to include in my image ?
> >
> > Thanks for answers !
>
>
>

Re: Redirect console output by Bruce

Bruce
Tue Apr 22 10:01:16 PDT 2008

A quick search in PB 6.0 help for "redirect" finds this information.

--
Bruce Eitman (eMVP)
Senior Engineer
Bruce.Eitman AT EuroTech DOT com

EuroTech Inc.
www.EuroTech.com

"alex" <alex@discussions.microsoft.com> wrote in message
news:5D92F6EC-6A73-42A2-9635-FEA425858886@microsoft.com...
> Thanks Luca !
>
> I will try it, Where did you find this documentation ? On the MSDN library
> ?
>
> "Luca Calligaris" wrote:
>
>> You should add the following registry keys:
>>
>> [HKEY_LOCAL_MACHINE\Drivers\Console]
>> "OutputTo"=dword:1 // Redirects CMD to COM1
>> "COMSpeed"=dword:19200 // Speed of serial connection
>>
>> (never tried, it's from the docs)
>> --
>>
>> Luca Calligaris
>> www.eurotech.it
>>
>> "alex" <alex@discussions.microsoft.com> ha scritto nel messaggio
>> news:F50758A5-F889-456D-B9FE-554393AF7888@microsoft.com...
>> > Hi everybody.
>> >
>> > I'm working on an headless device. The only way I have to communicate
>> > with it is a serial port.
>> > I was wondering how can I launch a command line application and
>> > redirect
>> > everything on this serial output ?
>> > What are the components I have to include in my image ?
>> >
>> > Thanks for answers !
>>
>>
>>



Re: Redirect console output by K

K
Tue Apr 22 15:56:53 PDT 2008

In the other hand, the following registry setting will redirect the output
to debug output if you still keep your Serial Debug Output.
[HKEY_LOCAL_MACHINE\Drivers\Console]
"OutputTo"=dword:ffffffff

Since COM port could not be opened more than once instance, in may case, the
CMD.EXE is already the instance that occupied COM port so that when
launching an external command line mode utility (for example the PING,
IPCONFIG and etc) the output may not be shown on serial port.
A more productivity implementation could be have a CONSOLE daemon just like
the implementation of TELNETD which will handle all of the I/O by itself and
then redirect to the serial port.
The sample code of TELNETD could be found on
PUBLIC\SERVERS\SDK\SAMPLES\TELNETD.

"Bruce Eitman [eMVP]" <beitman.nospam@applieddata.net.nospam> wrote in
message news:uuad7pJpIHA.3976@TK2MSFTNGP03.phx.gbl...
>A quick search in PB 6.0 help for "redirect" finds this information.
>
> --
> Bruce Eitman (eMVP)
> Senior Engineer
> Bruce.Eitman AT EuroTech DOT com
>
> EuroTech Inc.
> www.EuroTech.com
>
> "alex" <alex@discussions.microsoft.com> wrote in message
> news:5D92F6EC-6A73-42A2-9635-FEA425858886@microsoft.com...
>> Thanks Luca !
>>
>> I will try it, Where did you find this documentation ? On the MSDN
>> library ?
>>
>> "Luca Calligaris" wrote:
>>
>>> You should add the following registry keys:
>>>
>>> [HKEY_LOCAL_MACHINE\Drivers\Console]
>>> "OutputTo"=dword:1 // Redirects CMD to COM1
>>> "COMSpeed"=dword:19200 // Speed of serial connection
>>>
>>> (never tried, it's from the docs)
>>> --
>>>
>>> Luca Calligaris
>>> www.eurotech.it
>>>
>>> "alex" <alex@discussions.microsoft.com> ha scritto nel messaggio
>>> news:F50758A5-F889-456D-B9FE-554393AF7888@microsoft.com...
>>> > Hi everybody.
>>> >
>>> > I'm working on an headless device. The only way I have to communicate
>>> > with it is a serial port.
>>> > I was wondering how can I launch a command line application and
>>> > redirect
>>> > everything on this serial output ?
>>> > What are the components I have to include in my image ?
>>> >
>>> > Thanks for answers !
>>>
>>>
>>>
>
>



Re: Redirect console output by Luca

Luca
Tue Apr 22 22:30:03 PDT 2008

As I wrote at the bottom of my message, and as Bruce says, it is in PB help:
it is my first choice when I look
for some help about a Windows CE subject

--

Luca Calligaris
www.eurotech.it

"alex" <alex@discussions.microsoft.com> ha scritto nel messaggio
news:5D92F6EC-6A73-42A2-9635-FEA425858886@microsoft.com...
> Thanks Luca !
>
> I will try it, Where did you find this documentation ? On the MSDN library
> ?
>
> "Luca Calligaris" wrote:
>
>> You should add the following registry keys:
>>
>> [HKEY_LOCAL_MACHINE\Drivers\Console]
>> "OutputTo"=dword:1 // Redirects CMD to COM1
>> "COMSpeed"=dword:19200 // Speed of serial connection
>>
>> (never tried, it's from the docs)
>> --
>>
>> Luca Calligaris
>> www.eurotech.it
>>
>> "alex" <alex@discussions.microsoft.com> ha scritto nel messaggio
>> news:F50758A5-F889-456D-B9FE-554393AF7888@microsoft.com...
>> > Hi everybody.
>> >
>> > I'm working on an headless device. The only way I have to communicate
>> > with it is a serial port.
>> > I was wondering how can I launch a command line application and
>> > redirect
>> > everything on this serial output ?
>> > What are the components I have to include in my image ?
>> >
>> > Thanks for answers !
>>
>>
>>



Re: Redirect console output by alex

alex
Tue Apr 22 23:43:01 PDT 2008

Thanks you all for your answers !
I will try these solutions.

"K. S. Huang" wrote:

> In the other hand, the following registry setting will redirect the output
> to debug output if you still keep your Serial Debug Output.
> [HKEY_LOCAL_MACHINE\Drivers\Console]
> "OutputTo"=dword:ffffffff
>
> Since COM port could not be opened more than once instance, in may case, the
> CMD.EXE is already the instance that occupied COM port so that when
> launching an external command line mode utility (for example the PING,
> IPCONFIG and etc) the output may not be shown on serial port.
> A more productivity implementation could be have a CONSOLE daemon just like
> the implementation of TELNETD which will handle all of the I/O by itself and
> then redirect to the serial port.
> The sample code of TELNETD could be found on
> PUBLIC\SERVERS\SDK\SAMPLES\TELNETD.
>
> "Bruce Eitman [eMVP]" <beitman.nospam@applieddata.net.nospam> wrote in
> message news:uuad7pJpIHA.3976@TK2MSFTNGP03.phx.gbl...
> >A quick search in PB 6.0 help for "redirect" finds this information.
> >
> > --
> > Bruce Eitman (eMVP)
> > Senior Engineer
> > Bruce.Eitman AT EuroTech DOT com
> >
> > EuroTech Inc.
> > www.EuroTech.com
> >
> > "alex" <alex@discussions.microsoft.com> wrote in message
> > news:5D92F6EC-6A73-42A2-9635-FEA425858886@microsoft.com...
> >> Thanks Luca !
> >>
> >> I will try it, Where did you find this documentation ? On the MSDN
> >> library ?
> >>
> >> "Luca Calligaris" wrote:
> >>
> >>> You should add the following registry keys:
> >>>
> >>> [HKEY_LOCAL_MACHINE\Drivers\Console]
> >>> "OutputTo"=dword:1 // Redirects CMD to COM1
> >>> "COMSpeed"=dword:19200 // Speed of serial connection
> >>>
> >>> (never tried, it's from the docs)
> >>> --
> >>>
> >>> Luca Calligaris
> >>> www.eurotech.it
> >>>
> >>> "alex" <alex@discussions.microsoft.com> ha scritto nel messaggio
> >>> news:F50758A5-F889-456D-B9FE-554393AF7888@microsoft.com...
> >>> > Hi everybody.
> >>> >
> >>> > I'm working on an headless device. The only way I have to communicate
> >>> > with it is a serial port.
> >>> > I was wondering how can I launch a command line application and
> >>> > redirect
> >>> > everything on this serial output ?
> >>> > What are the components I have to include in my image ?
> >>> >
> >>> > Thanks for answers !
> >>>
> >>>
> >>>
> >
> >
>
>
>

Re: Redirect console output by K

K
Wed Apr 23 09:29:33 PDT 2008

You may also like to visit the http://sourceforge.net/projects/ixdp4xx
The BSP do provide a CONSOLED which is designed for the head-less device.

"alex" <alex@discussions.microsoft.com> wrote in message
news:17FBD135-6B1C-4DEC-9307-E79036C9BE49@microsoft.com...
> Thanks you all for your answers !
> I will try these solutions.
>
> "K. S. Huang" wrote:
>
>> In the other hand, the following registry setting will redirect the
>> output
>> to debug output if you still keep your Serial Debug Output.
>> [HKEY_LOCAL_MACHINE\Drivers\Console]
>> "OutputTo"=dword:ffffffff
>>
>> Since COM port could not be opened more than once instance, in may case,
>> the
>> CMD.EXE is already the instance that occupied COM port so that when
>> launching an external command line mode utility (for example the PING,
>> IPCONFIG and etc) the output may not be shown on serial port.
>> A more productivity implementation could be have a CONSOLE daemon just
>> like
>> the implementation of TELNETD which will handle all of the I/O by itself
>> and
>> then redirect to the serial port.
>> The sample code of TELNETD could be found on
>> PUBLIC\SERVERS\SDK\SAMPLES\TELNETD.
>>