I'm trying to use wine to run software that configures an ignition controller through a serial port.
I'm using Ubuntu 17.04 and Wine 2.0.2 with an old keyspan USB Serial adapter.
The controller specifies the settings it needs as:
Code: Select all
Bits Per Second: 38400
Data Bits: 8
Parity: None
Stop Bits: 1
Flow Control: none
Code: Select all
stty -F /dev/ttyUSB0 38400 cs8 raw -cstopb -parenb -ixon
I setup the COM1 port in wine and I can launch wine and the windows app. Once launched the USB Serial adapter light blinks indicating data is being sent but in the Wine Command Prompt I just see this message over and over:
Code: Select all
Open COM1
timed out
closing serial port
Open COM1
If I try sending the controller 'C' again I get no response. When I check the serial port settings they have been changed. Here is the before and after settings as reported from stty:
To save your eyes the settings that have changed are:
Code: Select all
eof =
min =
hupcl
clocal
ignbrk
noflsh
So, I'm thinking, but could be wrong, that the new port settings are messing up the communication.
Does Wine change the serial port settings somehow? Is there some way to stop it or configure what it changes them to?