[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Will Wine Support Win Apps that use serial communications ?

On Thu, 2012-04-26 at 15:49 -0500, shane wrote:
> I have a Win App that communicates via a COM port to another device. Does Wine support apps that have serial communication via COM ports?
It depends.

Some programs work, some don't. Some work with 'proper' serial ports,
e.g. those with a genuine UART chip (8250, 16550) on the motherboard or
a multiport adapter card but won't work with a USB->serial adapter.

I think the issue is that Microsoft support for serial ports is
non-existent. AFAIK neither DOS nor Windows has ever provided a serial
comms API, so programs that use serial ports need to deal with the bare
metal themselves. Some use roll-your-own code while others use third
party libraries such as COMM-DRIV. As a result, about all you can do is
suck it and see, but beware that you'll need to do something about
serial port access permissions because standard login users can't see
serial ports. I added a UDEV rule to make my serial ports accessible to
all (see
http://www.libelle-systems.com/free/wine/serial_port_access.html for
details) while others make the user a member of the group that owns the
serial ports. I think this varies from distro to distro: it is 'uucp'
under Fedora but people using other distros (Debian and derivatives such
as Ubuntu?) have said it is 'dialout'.

I have a couple of quite old WfW/W95 programs that work under wine, both
from the same source. One used to work but no longer does: I've given up
on it because it uses a form of DRM that relies on hiding stuff on disk
got bored with needing a new key every time I upgraded Linux. The other
one 'just works' and has continued to do so over many Wine upgrades.
Both programs have been perfectly capable of finding all six serial
ports without any need for sym-linking etc. but both have refused to
recognise a USB serial adapter no matter what I've tried.



[Index of Archives]     [Gimp for Windows]     [Photo]     [Red Hat]     [Samba]     [Hot Springs]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux