16.12.2019»»понедельник

Dosbox Use Serial Port

16.12.2019
Active5 years, 11 months ago
  1. Parallel Port
  2. How To Print In Dosbox
  3. How To Use Dosbox
  4. Dosbox Use Serial Port In Ubuntu 16 04
  5. Dosbox Com

I too could use the serial support in vDos. My applicatoin requires bi-directional communication with COM1 for control of a hardware device and the ability to print to LTP1. Seems DOSBox works fine with its serial port implementation for the hardware support but I can't print to LTP1. VDos prints just fine but I cannot control the hardwre from. DOSBox is capable of timing-compatible implementation of the serial ports, which can enable older hardware and software dependent on serial port timing to work; however, some USB devices that are supported by the host OS can act as a replacement for older serial port. Using my Dell Latitude laptop with a docking station that has a physical serial port as COM 1. I can sucessfully run the program using DOSBox and communicate to the device every time under both Windows 7 and Windows 10 using that physical COM port. However I am trying to get a USB - Serial adapter working. In order to allow DOSBox to use the serial ports of the computer you need to change the settings. I do this in the conf file to have it in one location serial # serial1-4 - set type of device connected to com port. The only thing left to know, is you need to go into whatever app you are using and tell it that the serial port to use is ‘com1’ as that is what we mapped earlier. DOSbox allows you to map serial1 serial2 serial3 serial4 to four external serial devices, they are treated as com1 com2 com3 and com4 respectively.

I'm trying to find a way to run an old Dos based application that uses a printer connected to the parallel port, I don't think Dosbox supports lpt.

I am interested both in using that printer and in trying to emulate the printer somehow and connect a USB based printer.

Sathyajith Bhat
53.8k30 gold badges160 silver badges254 bronze badges
OfirOfir
1,3541 gold badge8 silver badges15 bronze badges

migrated from stackoverflow.comJan 17 '10 at 6:57

This question came from our site for professional and enthusiast programmers.

4 Answers

You can use one of the patched/forked versions of DOSBox that support printing. There are a few.

One I've recently started using is Taewoong's enhanced 'ykhwong' version (as of writing, it was last updated Oct. 12. 2011):

Parallel Port

Included Patches:

Direct3D with pixelshaders, OpenglHQ, Innovation, Glide, zip/7z mount, Beep, NE2000 Ethernet, Graphis user interface (menu), Save/Load states, Vertical sync, CPU flags optimization, Various DOS commands (PROMPT VOL, LABEL, MOUSE, etc) and CONFIG.SYS commands (DEVICE, BUFFERS, FILES, etc), Continuous turbo key, Core-switch key, Show details (from menu bar), Nice DOSBox icon, Font patch (cp437), MAKEIMG command, INTRO, Ctrl-break patch, DBCS support patch, Automatic mount, Printer output, MT-32 emulation (MUNT), MP3CUE, Overscan border, Stereo-swap, SDL_Resize, MemSize128, Internal 3dfx voodoo chip emulation, Amstrad & PS/1 sound emulation, Fluidsynth soundfont support, Timidity++ backend support, CGA w/ Monochrome Monitor Support, Improve PC Speaker emulation accuracy patch, etc.

It allows redirecting LPT1 (through LPT3) to an actual LPT port, a printer file (.prn), or to the virtual printer. The valid options in the Parallel/Dongle dialog are reallpt, printer, file and disabled.

If you set it up to send to the virtual printer, it can 'print' to a graphic file (.PNG, .BMP, .PS), or to a Windows printer on the host (it pops up Windows a print dialog):

bwDraco
37.8k37 gold badges146 silver badges180 bronze badges
Ƭᴇcʜιᴇ007Ƭᴇcʜιᴇ007
102k16 gold badges164 silver badges229 bronze badges

I somehow doubt that proper emulation of the parallel port was a priority for the DosBox devs.

Id did find this patch someone wrote in 2006:

which links to what is apparently a DosBox fork support forum?

Depending on how bad you want this, honestly, your best option might be getting older hardware and running DOS natively on it.

Alternately you might try running it in a true virtual machine like VirtualBox, VMWare, Xen, Virtual PC, etc.

Jeff AtwoodJeff Atwood
17.9k29 gold badges92 silver badges116 bronze badges

Use WinPrint for this:

Takes standard printer output produced by a DOS application, and forwards it to a default Windows printer. Converts code page, strips empty pages, supports BOX DRAWINGS chars. Works on all Windows platforms. Written in Borland DELPHI.

It's specifically designed to help you print from old DOS programs onto new, USB connected printers.

alexalex
15.6k7 gold badges49 silver badges74 bronze badges

How To Print In Dosbox

DOSBOX MegaBuild from here : http://home.arcor.de/h-a-l-9000/

Edit config file DOSBOX Megabuild like this

Change to

Port capturing:

And you can print on USB Printer in Windows 7 64bit (and any other I think - without any printfil programs).

Dosbox Use Serial PortDave
23.7k9 gold badges46 silver badges65 bronze badges
MarcinMarcin

Not the answer you're looking for? Browse other questions tagged printerparallel-portdosbox or ask your own question.

Active4 months ago

I have done serial port RS-232 connection in C++ using 16-bit compiler (I was using Turbo C++ IDE). It included header file bios.h which contain all the required functions for reading values from the port. Now I want to read value from serial port using C++ 32-bit Mingw compiler. I am using Dev CPP as my IDE. Here I could not find bios.h. Are there any special header files available for this purpose in Mingw? I am using 32-bit compiler now because in my college project I got to use Exception handling which I guess is not supported in Turbo C. Please help me out.

Windows 2000 professional sp4 download iso. It is used to compress the file and can easily send to other while preserving the original file quality.

iammurtazaiammurtaza
4122 gold badges9 silver badges26 bronze badges

1 Answer

Please take a look here:

  • RS-232 for Linux and Windows1)
  • Windows Serial Port Programming2)
  • Using the Serial Ports in Visual C++3)

1)You can use this with Windows (incl. MinGW) as well as Linux. Alternative you can only use the code as an example.

2)Step-by-step tutorial how to use serial ports on windows

3)You can use this literally on MinGW

Here's some very, very simple code (without any error handling or settings):

Now you can use WriteFile() / ReadFile() to write / read bytes.Don't forget to close your connection:

olloUse

How To Use Dosbox

ollo

Dosbox Use Serial Port In Ubuntu 16 04

20.5k11 gold badges84 silver badges136 bronze badges

Dosbox Com

Not the answer you're looking for? Browse other questions tagged c++serial-portmingw or ask your own question.