This is a quick port of SerialBridge 68k.
I altered the template so that it defaults to serial.device unless specified
otherwise.
That way if for example you wanted to share a modem between your A1 and another
Amiga or some other device, you only need to specify the units, buffer, and
baud, like:
'SerialBridge 0 1 1024 115200'
instead of the more tedious:
'SerialBridge device0=serial.device device1= etc...
I don't have any hardware handy to test it so let me know if it works :-P
-=-=-=-=- Original ReadMe -=-=-=-=-
This program allows you to make a bridge between two serial devices.
"For what purpose ?" you may ask. Well..
I have a Commodore 64 with serial port and wanted to telnet to C64 BBS's on the
internet. I use NovaTerm on my C64 with a Turbo232 Cartidge. You can get some
gateway software for "other" operating systems, which act as Hayes modem
emulators which will allow you to use the C64 via null modem to the PC and
connect to telnet BBS's. Amiga OS already has the excellent telser.device to
allow any software on the Amiga using a serial port to connect over the internet
instead, so to get my c64 connected, all I had to do was to make a bridge
between the Amiga's built in serial port and telser.device (and connect the C64
to the Amiga with a null modem cable).
I first searched Aminet and did find a program that would do the job
(called serial router) however, it used only a 1 byte buffer which meant
high speed communication wouldn't be possible. I decided to write my own. I
guess some ideas may come from the serial router source, so thanks to the
author for the original idea.
Anyway this small program was born.
I guess it can have some other uses also. If you have an amiga with a modem,
and more than one serial port, you could share the modem with another computer
connected with null modem. I guess you can do the opposite with telser device
and run some bbs software on the c64 and have people connect to you over the
internet also, but I have not tested this.
Usage:
SerialBridge ?
Device1/K/A,Unit1/N/A,Device2/K/A,Unit2/N/A,Buffer/N/A,Baud/N/A,Mode/N,Length/N,
StopBits/N:
so for example:
SerialBridge serial.device 0 telser.device 0 512 19200
will bridge between serial.device unit 0 and telser.device unit 0
with a buffer of 512 bytes and a baudrate of 19200bps
SerialBridge will default to an 8N1 connection (8 bits / 1 stop bit/ no parity).
It also defaults to 7 wire RTS/CTS handshaking. If you have only a 3 wire
serial cable you will need to change the serial mode.
This isn't particular user friendly in this version
128 SERF_XDISABLED - xOn-xOff feature disabled mask
64 SERF_EOFMODE - EOF mode enabled mask
32 SERF_SHARED - non-exclusive access mask
16 SERF_RAD_BOOGIE - high-speed mode active mask
8 SERF_QUEUEDBRK - queue this Break ioRqst mask
4 SERF_7WIRE - RS232 7-wire protocol mask
2 SERF_PARTY ODD - parity feature enabled mask
1 SERF_PARTY_ON - parity-enabled mask
To set the option you want you need to add up the masks.
So for example the default option are SERF_7WIRE + SERF_RAD_BOOGIE +
SERF_XDISABLED or 148
------------------------------------------------------------------------------
If you need any help/support you can email me at buzztotem.fix.no
Thanks to Barry McConnel, author of Serial Router for some ideas I got from
his source and also big thanks to Sam Yee for the excellent telser.device.
You use this program at your own risk. I cannot be held responsible for your
computer blowing up etc.
| |