FabGL icon indicating copy to clipboard operation
FabGL copied to clipboard

UART emulation?

Open majenkotech opened this issue 3 years ago • 7 comments

Do you have plans to create an emudev for the 16550 (or 16450, or even 8250) UART? This would massively enhance the PCEmulator and allow it to actually communicate with the outside world. It would be useful too if it were possible to choose where the serial connects to (physical UART, or a TCP socket, ideally with ttynvt compatibility).

majenkotech avatar Feb 22 '22 10:02 majenkotech

I'm working on 16450 and 8250 emulation (no FIFO). There are already some commits, so you can test it.

Something still doesn't work: for example I'd like to run LAPLINK to transfer files from PC to ESP32-PC, but I still can't do it!

At the moment the emulated UART is connected to USB serial connection.

fdivitto avatar Jun 23 '22 14:06 fdivitto

Awesome. Right now I am transferring msdos kermit zip file using xmodem in the windows 3 terminal at 9600 baud :)

majenkotech avatar Jun 29 '22 18:06 majenkotech

Awesome. Right now I am transferring msdos kermit zip file using xmodem in the windows 3 terminal at 9600 baud :)

Hi guys. Majen - could you send me an email, please? I have some questions about establishing connection via the Windows 3.0 Terminal (mainly to do with hardware cabling...need a null modem?, some USB size adapters??), and I don't want to bog down this issue thread. Thanks, Dave

fishhack66 avatar Jul 05 '22 22:07 fishhack66

Awesome. Right now I am transferring msdos kermit zip file using xmodem in the windows 3 terminal at 9600 baud :)

Hi guys. Majen - could you send me an email, please? I have some questions about establishing connection via the Windows 3.0 Terminal (mainly to do with hardware cabling...need a null modem?, some USB size adapters??), and I don't want to bog down this issue thread. Thanks, Dave

There is no cabling needed. The connection is only available through the USB port at the moment, so use whatever COM or TTY port the ESP32 identifies as.

majenkotech avatar Jul 07 '22 13:07 majenkotech

I have noticed a lot of DOS programs I have tried to try and get communication going have caused the screen to blank / flash / readjust over and over again. I don't know if it's just these programs at fault, or if it's something to do with the communication, but it's annoying...

majenkotech avatar Jul 07 '22 15:07 majenkotech

Incidentally, the best way I have found of transferring files so far is using XModem with Procomm on the DOS side and Minicom on the Linux side. I'm just in the process of seeing if it's possible to use epppd and mTCP to connect DOS to the network :)

majenkotech avatar Jul 07 '22 15:07 majenkotech

There is a free and nice tool I'm using on both sides (real PC and ESP32 emulated), to transfer files, using a UI like laplink. It is File Maven:

http://www.briggsoft.com/fmdos.htm

If you run it on an emulated PC (like dosbox) you should slow down it to 8Mhz otherwise it could not reliability communicate.

Of course there other ways: I like for example c-kermit, which runs on almost all OS and platforms (included CP/M).

fdivitto avatar Jul 13 '22 20:07 fdivitto