[COLUG] Dosbox serial ports Dosemu (more)
charles morrison
charlie2 at ledgible.com
Wed Dec 5 22:22:38 EST 2007
charles morrison wrote:
> /It is not really hard to setup dosemu. I've used it with a couple
> of apps
> that make use of serial devices both normal and usb based. Like you
> said,
> for non-game apps it is the better choice.
>
> Pat/
> /
> /I decided to try Dosemu since it had a configuration file which would
> allow me to set up the com port of my choice, used as COM1/2.
>
> Dosemu recognises the com port but nothing goes out the port.
>
> I have modified my udev file to detect when this USB to serial cable
> is inserted, and renamed the port as COM1. When the renaming occurs
> the port is configured as:
>
> crw-rw---- 1 root dialout 188, 0 2007-12-05 15:37 COM1
>
> When Dosemu starts, it recognises this port. I can tell because I set
> COM2 to the same port and Dosemu said that the port was already in use
> for COM2 and refused to use it. I also get a message when I set it to
> an invalid port which states the port is not present. On COM1, I get
> no error message, which says to me that Dosemu recognised the port and
> that the port is a good one.
>
> Still, I get no blinky lights on my port and my program which is set
> up to be full duplex thinks it is getting an echo back from a device
> which is not connected. I have shorted pins 8-9 which are the CTS and
> RTS pins to make sure handshaking is not a problem.
>
> I have played with the udev file to set other groups and permissions,
> and anything other than the above causes an error message, such as
> permission denied.
>
> I really believe I am minutes from having this thing working, but need
> some ideas on what I can try next, with Dosemu.
>
> Charlie Morrison
>
Well, I did some playing and found that after I fixed the loopback
wiring on the RS232 side, I then used under Dosemu the command /echo
(text file) > /dev/COM1/, the data was actually blinking my lights, so I
know that everything is connected and is recognized by Dosemu, and will
send data out the port.
I then turned on the debug output and tried it again, and found the
following line in the ~/.dosemu/boot.log file:
/SER: directory /var/lock namestub LCK.. binary No
SER: /dev/COM1 port 0 int 0/
Later in the boot.log file I have:
/SERIAL $Id: ser_init.c 1769 2007-05-04 05:59:48Z bartoldeman $
registering /dev/COM1 for serial
PKT: Cannot allocate TAP device (dynamic): Permission denied/
My program running under dosemu (which we have used for 10 years under
DOS) doesn't send anything out the serial port, but an echo > command
under dosemu works.
Looks to me like the /port 0 int 0/ might be the problem.
Can anyone give me some ideas on what to try next?
Charlie Morrison
--
Charlie Morrison
American LED-gible, Inc
1776 Lone Eagle Street
Columbus, OH 43228 USA
614-851-1100
FAX 614-851-1121
We use ISO 26300 document standards available through Open Office at http://www.openoffice.org
More information about the colug432
mailing list