BBC Micro

BeebEm - BBC Micro and Master 128 Emulator

BBC Micro

Home

Help Contents

Download Software

BeebEm Website


Serial Port

In addition to connecting to the standard serial ports on the PC the serial port emulation in BeebEm has options to connect via TCP/IP to a local or remote IP address. You can use ROMs such as CommSoft or CommStar to connect to a Viewdata BBS, MUD server or any other type of server.

The serial IP features are selected via the RS423 dialog box, accessed from the Select RS423 Destination menu option. You can use the "tcpser" package, which emulates a modem. Select 127.0.0.1 and 25232 as the IP Address and Port. Download a prebuilt Windows binary of tcpser.zip. The tcpser source code is available here.

Run the follwoing command fire up an instance suitable for the localhost setting to talk to:

tcpser -v 25232 -p 6400 -l 4 -s 9600

This will also allow incoming connections, as that does all the answering business and passes the caller onto the Beeb via the pre-existing connection. This handles the handshake lines if you enable ip232 mode, so dropping RTS will drop an outward connection. Similarly DCD going up will be passed through to CTS.

Add the Commstar.rom to your ROM configuration (see ROM Software) and start up BeebEm. In the RS423 dialog box, select "IP", IP Address "127.0.0.1", and Port "25232". Click OK to close the dialog box then select "RS432 On/Off" from the Comms menu. Type *COMMSTAR to start CommStar. In Commstar:

  • Press M to switch to mode 0
  • Press A to turn off Auto line feed
  • Press I and then R a few times to set the receive baud to 9600
  • Press C to enter chat mode

You should now be able send commands to the modem (tcpser), try typing "AT", you should get "OK" back. You can now "dial" into a server using the "ATD" command. Try connecting to the Ishar MUD server using "ATDishar.com:9999".

To make a direct connection to a server, put the server's IP address and port into the RS423 dialog box.

An additional option, "IP232 Mode", determines if the handshake lines are sent down the TCP/IP link or just generated locally from the presence of a valid connection.

A second additional option, "IP232 Raw comms", disables special processing of charater 255 (used with tcpser, so leave Raw mode off when using tcpser).

If on startup, or when ticking the "RS423 On/Off" menu option, BeebEm cannot connect to the specified server, or if it loses connection subsequently, it will report an error and disable RS423. Select the menu option again to try to re-connect and re-enable.

BeebEm will emulate the correct RX baud rate. This makes for a very realistic experience when talking at 1200 baud to a Viewdata host! TX is just sent out as fast as it will go.


Copyright © 2020 Mike Wyatt