Bizarre data in serial port communication

Questions about Wine on Linux
Locked
User avatar
narcisgarcia
Newbie
Newbie
Posts: 3
Joined: Wed Jul 04, 2012 11:58 am

Bizarre data in serial port communication

Post by narcisgarcia »

Using Wine 1.5.22 on Ubuntu 12.04 (32-bit).

I'm trying to use a .exe application to control an external machine through RS232 port of a PC computer. Already done the "com1" link to /dev/ttyS0 and checked the serial settings (baud rate, bits, etc.) in the application.

Testing:

- With the serial port terminal Tera Term natively in MS/Windows XP, the communication is good.
- With the serial port terminal "cutecom" natively in GNU/Linux, the communication is good.
- With the serial port terminal Tera Term under Wine, the communication transmits garbage.

I've checked the log debugging with WINEDEBUG="+comm" variable, but the only thing I understand is that the serial port is being opened with the expected parameters.

What can I do to find the problem?
lahmbi5678
Level 7
Level 7
Posts: 823
Joined: Thu Aug 27, 2009 6:23 am

Re: Bizarre data in serial port communication

Post by lahmbi5678 »

Wine's serial port support is far from being perfect. The things you could try: install latest wine, run from command line, post terminal output. Make sure, that you've got the necessary rights to access serial port, either manually set the rights of /dev/ttyS0 or add your user to the necessary group, see e.g. http://www.witch.westfalen.de/Wine-HOWTO/ch-serial.html (I'm not really sure, if this still applies to latest distros/kernels).

If all else fails, you'll have to file a bug report.
Locked