Windows 7 Forums


Reply
Thread Tools

Serial I/O to Window

 
 
Tom Lake
Guest
Posts: n/a
Thanked:
 
      06-02-2011
I have a program that does text-only I/O to a window. I'd like to be able to
redirect the I/O
for that one window to a serial port. I've searched all over and the best I
could find was a
program that lets me type on a serial terminal and have it show up in the
window but the
output from the window doesn't go to the serial port. I need both input and
output from/to
the window. I don't believe a serial terminal program such as TeraTerm will
do what I want.
I'm using Windows 7 Ultimate 64-bit.

Any help? TIA

Tom Lake

 
Reply With Quote
 
 
 
 
SC Tom
Guest
Posts: n/a
Thanked:
 
      06-02-2011

"Tom Lake" <> wrote in message
news:is7ujp$iih$...
>I have a program that does text-only I/O to a window. I'd like to be able
>to redirect the I/O
> for that one window to a serial port. I've searched all over and the best
> I could find was a
> program that lets me type on a serial terminal and have it show up in the
> window but the
> output from the window doesn't go to the serial port. I need both input
> and output from/to
> the window. I don't believe a serial terminal program such as TeraTerm
> will do what I want.
> I'm using Windows 7 Ultimate 64-bit.
>
> Any help? TIA
>
> Tom Lake


Is there something connected to the serial port?
--
SC Tom

 
Reply With Quote
 
 
 
 
Tom Lake
Guest
Posts: n/a
Thanked:
 
      06-02-2011
"SC Tom" wrote in message news:is811n$noh$...


"Tom Lake" <> wrote in message
news:is7ujp$iih$...
>I have a program that does text-only I/O to a window. I'd like to be able
>to redirect the I/O
> for that one window to a serial port. I've searched all over and the best
> I could find was a
> program that lets me type on a serial terminal and have it show up in the
> window but the
> output from the window doesn't go to the serial port. I need both input
> and output from/to
> the window. I don't believe a serial terminal program such as TeraTerm
> will do what I want.
> I'm using Windows 7 Ultimate 64-bit.
>
> Any help? TIA
>
> Tom Lake


Is there something connected to the serial port?
--
SC Tom
Yes, a dumb serial terminal (Teletype ASR-33)
No SSH, no telnet, no nothing.

Tom L

 
Reply With Quote
 
SC Tom
Guest
Posts: n/a
Thanked:
 
      06-02-2011

"Tom Lake" <> wrote in message
news:is847m$hi$...
> "SC Tom" wrote in message news:is811n$noh$...
>
>
> "Tom Lake" <> wrote in message
> news:is7ujp$iih$...
>>I have a program that does text-only I/O to a window. I'd like to be able
>>to redirect the I/O
>> for that one window to a serial port. I've searched all over and the
>> best I could find was a
>> program that lets me type on a serial terminal and have it show up in the
>> window but the
>> output from the window doesn't go to the serial port. I need both input
>> and output from/to
>> the window. I don't believe a serial terminal program such as TeraTerm
>> will do what I want.
>> I'm using Windows 7 Ultimate 64-bit.
>>
>> Any help? TIA
>>
>> Tom Lake

>
> Is there something connected to the serial port?
> --
> SC Tom
> Yes, a dumb serial terminal (Teletype ASR-33)
> No SSH, no telnet, no nothing.
>
> Tom L
>


Are you trying to display the text output on the terminal's monitor? Will
the Copy command work like it does with a printer? For example,

copy c:\test.txt >com2

Not sure at all on that; I haven't worked with dumb terminals in forever.
--
SC Tom

 
Reply With Quote
 
Rob
Guest
Posts: n/a
Thanked:
 
      06-02-2011
On 02/06/2011 13:09, Tom Lake wrote:
> I have a program that does text-only I/O to a window. I'd like to be
> able to redirect the I/O
> for that one window to a serial port. I've searched all over and the
> best I could find was a
> program that lets me type on a serial terminal and have it show up in
> the window but the
> output from the window doesn't go to the serial port. I need both input
> and output from/to
> the window. I don't believe a serial terminal program such as TeraTerm
> will do what I want.
> I'm using Windows 7 Ultimate 64-bit.
>
> Any help? TIA
>
> Tom Lake


Try starting the application from a command prompt with
standard I/O redirection symbols. eg (assuming 1st serial port):

myprog.exe >com1 <com1

This may or may not work (depends on how the program was written)
but worth a try.
HTH,
--
Rob

 
Reply With Quote
 
Tom Lake
Guest
Posts: n/a
Thanked:
 
      06-03-2011
> Is there something connected to the serial port?
> --
> SC Tom
> Yes, a dumb serial terminal (Teletype ASR-33)
> No SSH, no telnet, no nothing.
>
> Tom L
>


Are you trying to display the text output on the terminal's monitor? Will
the Copy command work like it does with a printer? For example,

copy c:\test.txt >com2

Not sure at all on that; I haven't worked with dumb terminals in forever.

The program runs an emulator which then creates one or more "terminal"
windows.
It's those terminal windows that I want to redirect to serial ports.

Tom L

 
Reply With Quote
 
Tom Lake
Guest
Posts: n/a
Thanked:
 
      06-03-2011
Try starting the application from a command prompt with
standard I/O redirection symbols. eg (assuming 1st serial port):

myprog.exe >com1 <com1

This may or may not work (depends on how the program was written)
but worth a try.

Thanks, but the program runs an emulator which then creates one or more
"terminal" windows. It's those terminal windows that I want to redirect to
serial ports.

Tom L

 
Reply With Quote
 
Adrian C
Guest
Posts: n/a
Thanked:
 
      07-02-2011
On 03/06/2011 09:29, Tom Lake wrote:
> Try starting the application from a command prompt with
> standard I/O redirection symbols. eg (assuming 1st serial port):
>
> myprog.exe >com1 <com1
>
> This may or may not work (depends on how the program was written)
> but worth a try.
>
> Thanks, but the program runs an emulator which then creates one or more
> "terminal" windows. It's those terminal windows that I want to redirect
> to serial ports.
>


So this application has a server bit (doing stuff), and a client bit
(the emulator). What configuration options does the _server_ have to use
real terminals connected via named ports (rather than the emulator), or
is it talking to the client via a network TCP socket?

About all that you'll do with applying redirection comands to the
emulator program is replace the PC keyboard with the keyboard from the
dumb terminal. You need to bypass this part of the application completely.


--
Adrian C


 
Reply With Quote
 
Tom Lake
Guest
Posts: n/a
Thanked:
 
      07-02-2011

So this application has a server bit (doing stuff), and a client bit
(the emulator). What configuration options does the _server_ have to use
real terminals connected via named ports (rather than the emulator), or
is it talking to the client via a network TCP socket?

The server has no configuration options. If it did use TCP/IP or Telnet or
something, I could intercept the I/O for my own use.

It uses a windows library called wxWidgets for its I/O.

Tom L
 
Reply With Quote
 
Adrian C
Guest
Posts: n/a
Thanked:
 
      07-03-2011
On 02/07/2011 11:37, Tom Lake wrote:
>
> So this application has a server bit (doing stuff), and a client bit
> (the emulator). What configuration options does the _server_ have to use
> real terminals connected via named ports (rather than the emulator), or
> is it talking to the client via a network TCP socket?
>
> The server has no configuration options. If it did use TCP/IP or Telnet
> or something, I could intercept the I/O for my own use.
>
> It uses a windows library called wxWidgets for its I/O.
>
> Tom L


wxWdiget is a documented resource.

If you are of a programming mind with the necessary tools [1][2] you
could discover which calls are being made to that library and engineer
some wrapper code over it, to do the redirection. Perhaps usefully,
wxWdiget [3] can have a 'communication toolbox' [4] (or other stuff)
added to talk serial.


[1] - http://www.rohitab.com/apimonitor

[2] - Lanuages, Compilers, etc...

[3] - http://www.wxwidgets.org/

[4] - http://wxcode.sourceforge.net/showcomp.php?name=wxCtb

Depends how deep you want to go in this ?

--
Adrian C
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Gaming better on Window 7 or Window vista? nemesis0248 Gaming 7 07-22-2012 04:34 PM
Window 7 x86 vs Window 7 x64? rashiem General Discussion 7 07-21-2010 03:47 AM
Reclaiming the XP Home windows serial key? MICHAEL55 General Discussion 4 03-12-2010 02:31 AM
how to get VGA serial from CLI or cmd suneez Hardware 3 12-23-2009 12:36 AM
Serial for 32 bit or 64 bit? Cameron General Discussion 2 10-21-2009 09:39 AM


All times are GMT +1. The time now is 02:18 AM.
W7Forums is an independent website and is not affiliated with Microsoft Corporation.