Comm Ports

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
dsmithnc
Level 1
Level 1
Posts: 6
Joined: Thu Dec 17, 2009 9:31 pm

Comm Ports

Post by dsmithnc »

How do you go about configuring comm ports in Wine? I have a usb to serial adapter that is using ttyUSB1 under linux. The program I want to use under wine shows only the standard Windows comm ports; i.e, com1, com2, etc. How can I redirect those to ttyUSB1?

dick
íÁËÓÉÍ âÕÎØËÏ×

Comm Ports

Post by íÁËÓÉÍ âÕÎØËÏ× »

i finded .wine/dosdevice/com1 and created link on /dev/ttyUSB1 and privilegies chmod 777
Martin Gregorie

Comm Ports

Post by Martin Gregorie »

On Sat, 2010-03-27 at 12:25 -0500, dsmithnc wrote:
How do you go about configuring comm ports in Wine? I have a usb to
serial adapter that is using ttyUSB1 under linux. The program I want
to use under wine shows only the standard Windows comm ports; i.e,
com1, com2, etc. How can I redirect those to ttyUSB1?
It seems to depend on the adapter. I have one I got from pFranc (the GPS
connector guy) that works perfectly under Linux but Wine has never been
able to see it. Defining it as COM3 with the commands

cd .wine/dosdevices
ln -s /dev/ttyUSB1 COM3:

might work for you though it never did for me.

Instead I bought a PCI 6-way serial card, plugged it in and Wine uses it
without any complaints. These cards are pretty cheap, no more expensive
than a USB->serial adapter, and most distros can use them without
needing any drivers, etc. As mine has four D-9 connectors I just use the
two serial ports on the mother board and the first four on the PCI card.
I'd need a separate adapter plate for the extra two ports but am out of
adapter slots. If you do this you need to edit /boot/grub/grub.conf to
add

8250.nr_uarts=6

to the kernel command line. Add it to the first kernel in the menu and
it will be automatically copied each time there's a kernel upgrade.
However, if you do a clean install you need to remember to add it to
grub.conf

Once I'd made that edit my Win application reported seeing COM1 - COM6
without any other changes being needed and they worked immediately.


Martin
perryh

Comm Ports

Post by perryh »

Martin Gregorie <[email protected]> wrote:
I bought a PCI 6-way serial card ...
Slick. Getting a bit OT, but where would one find such a device?
I'd need a separate adapter plate for the extra two ports but
am out of adapter slots.
Many cases have other openings through which the ribbon cables can
exit; if all else fails you may be able to squeeze them between one
of the plates and the case, or remove some card's plate entirely --
they are often bolted rather than riveted to the card. Yes, this
results in having those ports' DB9's hanging loose instead of bolted
into place.
Locked