AminetAminet
Search:
83361 packages online
About
Recent
Browse
Search
Upload
Setup
Services

comm/misc/serialbridge.lha

Mirror:Random
Showing:m68k-amigaosppc-amigaosppc-morphosi386-arosi386-amithlonppc-warpupppc-powerupgeneric
No screenshot available
Short:Bridges between serial devices (with source)
Author:buzz at totem.fix.no
Uploader:buzz totem fix no
Type:comm/misc
Architecture:m68k-amigaos >= 2.0.4
Date:2006-02-03
Download:http://aminet.net/comm/misc/serialbridge.lha - View contents
Readme:http://aminet.net/comm/misc/serialbridge.readme
Downloads:592

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 buzz at totem.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.


Contents of comm/misc/serialbridge.lha
 PERMSSN    UID  GID    PACKED    SIZE  RATIO METHOD CRC     STAMP          NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[generic]                 6221   11000  56.6% -lh5- 7ddf Feb  3 21:26 serialbridge/serialbridge
[generic]                 2130    8521  25.0% -lh5- 14ae Feb  3 21:27 serialbridge/serialbridge.c
---------- ----------- ------- ------- ------ ---------- ------------ -------------
 Total         2 files    8351   19521  42.8%            Feb  3 23:23

Aminet © 1992-2021 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>