Re: [Freedos-user] USB serial & DOSBox
Yes, Louis: Very cool! In my Ubuntu Home directory is the hidden directory ".dosbox". And within that, is the latest-version configuration file "dosbox-0.74-3.conf". At the end of that, I have edited a section thus. {[autoexec] # Lines in this section will be run at startup. # Belkin F5U409 Serial-USB interface. serial1=directserial realport:ttyUSB0 # You can put your MOUNT lines here. # Mount POLAR heart-monitor software directory. Change to it & run POLAR. mount c ~/snap/dosbox-jz/108/DOS/POLAR/ C: POLAR} So now launching DOSBox, changes to the heart-monitor software directory. Then that application opens. -- members.iinet.net.au/~kilgallin/ ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] USB serial & DOSBox
Very cool! On Tue, Jul 25, 2023 at 4:05 AM Bryan Kilgallin wrote: > Yay, Louis: > > > It should be at `/dev/ttyUSB0` and you should refer to realport > > `ttyUSB0` or something like that (`serial1=directserial > > realport:ttyUSB0`). > > Yes, I found that character device. > > lsusb lists the following. > > {Bus 001 Device 005: ID 050d:0109 Belkin Components F5U109/F5U409 PDA > Adapter} > > In DOSBox, at the C: prompt, I entered: > "serial1=directserial realport:ttyUSB0". > > Then I launched the POLAR software. and told the heart-monitor to > transmit. The POLAR software immediately received the data! > -- > members.iinet.net.au/~kilgallin/ > ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] USB serial & DOSBox
Yay, Louis: It should be at `/dev/ttyUSB0` and you should refer to realport `ttyUSB0` or something like that (`serial1=directserial realport:ttyUSB0`). Yes, I found that character device. lsusb lists the following. {Bus 001 Device 005: ID 050d:0109 Belkin Components F5U109/F5U409 PDA Adapter} In DOSBox, at the C: prompt, I entered: "serial1=directserial realport:ttyUSB0". Then I launched the POLAR software. and told the heart-monitor to transmit. The POLAR software immediately received the data! -- members.iinet.net.au/~kilgallin/ ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] USB serial & DOSBox
It should be at `/dev/ttyUSB0` and you should refer to realport `ttyUSB0` or something like that (`serial1=directserial realport:ttyUSB0`). This article ( https://www.cyberciti.biz/faq/find-out-linux-serial-ports-with-setserial/) gives a good example of how to manage serial ports (including USB connected) in Ubuntu. This article (https://www.scivision.dev/dosbox-linux-serial-port/) gives additional tips on how to set up serial ports for DOSBox on Linux. On Mon, Jul 24, 2023 at 6:32 PM Bryan Kilgallin via Freedos-user < freedos-user@lists.sourceforge.net> wrote: > My heart monitor is an old Polar Sport Tester 4000. > https://www.manualslib.com/manual/1393035/Polar-Electro-Sport-Testert.html > > Its interface box has an RS2323 socket. > > I had been downloading data to an old PC with a serial port. That PC > runs FreeDOS. VER/R reports "DOS version 7.10". > > My Ubuntu PC does not have a serial port. > > But I have a Belkin F5U409 USB-serial adaptor. My Linux kernel is > 5.19.0-50-generic. > > {The device is supported by kernel versions 2.6.0 and newer according to > the LKDDb: > > Ver Source Config By ID By Class > 2.6.0 - 6.3 drivers/usb/serial/mct_u232.c CONFIG_USB > CONFIG_USB_SERIAL > CONFIG_USB_SERIAL_MCT_U232 050d:0109 *} > > https://linux-hardware.org/?id=usb:050d-0109 > > That adaptor's LNK LED is on (green). > > The Ubuntu PC has DOSBox v0.74-3. It runs the POLAR software OK. That > can set serial port to COM1 or COM2. > > DOSBox Wiki says this. > > {Configuration:SerialPort > Jump to navigation > Jump to search > > serialX = device [parameter:value] > > device can be: dummy | modem | nullmodem | directserial > parameter is: irq > value is: > > for directserial: realport (required), rxdelay (optional). > for modem: listenport (optional). > for nullmodem: server, rxdelay, txdelay, telnet, usedtr, > transparent, port, inhsocket (all optional). > > Defaults: > serial1=dummy > serial2=dummy > serial3=disabled > serial4=disabled > > An example of how to configure an actual serial port for I/O use: > > serial1=directserial realport:com1} > > So in DOSBox, I enter that last line. > > Then I launch the POLAR software. > And I check its default serial port: > "THE SELECTED SERIAL PORT FOR HR INPUT IS: COM1". > > Then I instruct the heart monitor to transmit data. And the adapter's RX > LED illuminates red. But the POLAR software fails to detect data! > > Please advise. > -- > members.iinet.net.au/~kilgallin/ > > > ___ > Freedos-user mailing list > Freedos-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/freedos-user > ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] USB serial & DOSBox
Hi! Have you tried using dosemu2? They have active development and support, so even if it does not work out of the box, they should still be able to give you advice on how to make it work :-) Regards, Eric ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user