iw2evk
Magenta (Italy), 02.09.2023, 18:40 (edited by iw2evk, 03.09.2023, 11:02) |
problem setting DOSBOX X com and lpt on Lubuntu (DOSX) |
Hi all,
i've installed dosbox x on lubuntu 20.04
i've some problems with com and lpt1 ports.
I use usb ports on my O.s. (usb0)
On my config file i've called
serial1 = directserial realport:COM1 realport:usb0
serial2 = directserial realport:COM2 realport:usb0
and lpt1 for use with a eprom programmer
parallel1 = Reallpt:LPT1 realport:/dev/usb0
i receive this error on log.txt
Serial1: BASE 3f8h
Serial1: Opening COM1
Serial1: Serial Port "COM1" could not be opened.
System error 9.
Serial2: BASE 2f8h
Serial2: Opening COM2
Serial2: Serial Port "COM2" could not be opened.
System error 9.
Invalid type for LPT1.
Where is the error ?
Thanks
Roberto |
bocke
04.09.2023, 00:16
@ iw2evk
|
problem setting DOSBOX X com and lpt on Lubuntu |
What exactly are you trying to do? Access USB to serial and USB to parallel adapters via DOSBOX-X?
It's likely you are entering the wrong parameters. COM1 and COM2 don't exist in Linux.
What might exist depends on the kind of serial adapter. Is it a physical adapter? Is it USB to serial adapter?
COM1 would traditionaly be /dev/ttyS0.
USB adapter might have the name similar to /dev/ttyUSB0.
PCI(Ex) to serial adapters would have /dev/ttySx, where x is the number after the builtin serial ports on the motherboard.
Edit:
This means... For USB to serial, you should try something along these lines:
serial1=directserial realport:/dev/ttyUSB0 |
Rugxulo
Usono, 04.09.2023, 05:39
@ iw2evk
|
problem setting DOSBOX X com and lpt on Lubuntu |
Perhaps this recent freedos-user thread will help?
[Freedos-user] USB serial & DOSBox (Bryan Kilgallin, 24 July 2023) |
iw2evk
Magenta (Italy), 04.09.2023, 08:29
@ Rugxulo
|
problem setting DOSBOX X com and lpt on Lubuntu |
Ok,
i've setting in doxbox x the 2 com port using linux usb port
serial1 = serial1=directserial realport:ttyS0
serial2 = serial1=directserial realport:ttyS0
seem working
Serial1: BASE 3f8h
Serial2: BASE 2f8h
now i want to redirect the lpt1 on dosbox x to usb port on linux.
At this port i want to connect a usb to lpt adapter for controlling a dos eprom programmer using lpt port.
On my notebook i don't have any lpt port..
I've setting in cfg file
parallel1 = parallel1=reallpt realport:ttyS0
but ...
Invalid type for LPT1.
MPU-401 Registering I/O ports as if IBM PC MPU-401 at base 330h
i've also added in linux my user to group Lp without result.. |
bocke
11.09.2023, 15:42
@ Rugxulo
|
problem setting DOSBOX X com and lpt on Lubuntu |
So, you can just name the device and not the full path? That's useful to know. I might need it soon.
For LPT... Under Linux LPT is lp, but the counting goes from 0, not 1. So:
LPT1 = lp0
LPT2 = lp1
and so on.
According to this link, they would also be available under:
/dev/parportn (/dev/parport0)
So, if you have builtin parallel port on mb, you can try using parport0.
USB printer connected via USB to LPT would be /dev/usb/lp0. But according to this link, it will also be avialable as /dev/usblp0 so I guess you can use usblp0 in this case. |
bocke
11.09.2023, 15:50
@ bocke
|
problem setting DOSBOX X com and lpt on Lubuntu |
What I linked above is a page about a printer setup from dosbox-x site. It gives the following example:
[parallel]
parallel1=reallpt realport:/dev/parport0
Although they note that your username should also be in the 'lp' user group. If it isn't you can try adding it via usermod:
sudo usermod -a -G lp username
They also note:
"in the case of a USB parallel port adapter the first parallel port will be /dev/usblp0, but it is unclear if a USB parallel port adapter will work".
So YMMV with USB to LPT adapters. |
iw2evk
Magenta (Italy), 12.09.2023, 08:35
@ bocke
|
problem setting DOSBOX X com and lpt on Lubuntu |
Hi
>
> "in the case of a USB parallel port adapter the first parallel port will be
> /dev/usblp0, but it is unclear if a USB parallel port adapter will
> work".
>
> So YMMV with USB to LPT adapters.
i've tred the suggested setting but not work :
Serial1: BASE 3f8h
Serial2: BASE 2f8h
Invalid type for LPT1. |
bocke
12.09.2023, 16:18
@ iw2evk
|
problem setting DOSBOX X com and lpt on Lubuntu |
>
> i've tred the suggested setting but not work :
>
> Serial1: BASE 3f8h
> Serial2: BASE 2f8h
> Invalid type for LPT1.
I'm sorry I don't currently have USB to LPT adapter or a parallel printer to test.
You might try posting an issue on DOSBOX-X GitHub:
https://github.com/joncampbell123/dosbox-x/issues |
iw2evk
Magenta (Italy), 13.09.2023, 08:40
@ bocke
|
problem setting DOSBOX X com and lpt on Lubuntu |
Ok, asked as "request of enanchement"
>
> You might try posting an issue on DOSBOX-X GitHub:
> https://github.com/joncampbell123/dosbox-x/issues |