Serial I/O to Window

T

Tom Lake

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
 
S

SC Tom

Tom Lake said:
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?
 
T

Tom Lake

"SC Tom" wrote in message

Tom Lake said:
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
 
S

SC Tom

Tom Lake said:
"SC Tom" wrote in message



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.
 
R

Rob

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,
 
T

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.

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
 
T

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.

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
 
A

Adrian C

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.
 
T

Tom Lake

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
 
A

Adrian C

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 ?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top