If you need to use serial ports created by Serial-to-USB (S2U) adaptors in MacOS with your Windows apps running in Wine, you’ll need to map them so that Wine can correctly detect and use them. For the Wine version of the Bookman Desktop Manager 1.3, I needed to map the port it used to COM1:
- Unplug all of your S2U adapters to begin
- Run
ls /dev/tty.usb*to list all of the devices pre-existing for your machine - Plug in the S2U device you intend to use with Wine and then run the command from #2
- Find the new entry in the list, ex:
/dev/tty.usbserial-1410 - Find the Wineskin / Winery / CrossOver
.appfile. This is the wrapper around your Windows app. - Right click on the
.appfile and select “Show Package Contents”; the wrapper is actually a directory. - Then proceed into
Contents/Resources. There is adosdevicesdirectory here that exposes all files (including device files, such as the COM port) which Wine can access during a run of the Windows program - Open a terminal window and type
cdthen drag thedosdevicesdirectory from the Finder window into the terminal to get the full path. Hit Enter to go into that directory. - If you type
pwdinto the terminal you should now see the full path of thedosdevicesdirectory. - Run
ln -s MACOS_DEV_TTY com1, replacingMACOS_DEV_TTYwith the result from #4; ex:ln -s /dev/tty.usbserial-1410 com1. This creates a symbolic link file insidedosdeviceswhich maps the device file from MacOS to Wine. - Run your Wine app as normal, you should now be able to select COM1 in your app and use the serial port.
As for the BDM3.1 app I was using, that now worked perfectly on MacOS through this mapping procedure and spared me the experience of relying on Windows. A great success!