View previous topic :: View next topic |
Author |
Message |
bosje Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/gallery/Zelda/Zelda_-_Ingo.jpg)
Joined: 01 Nov 2002 Posts: 75 Location: Utrecht
|
Posted: Sat Mar 18, 2006 10:49 am Post subject: usb-serial cable under wine/cxoffice |
|
|
Hi,
I have a program that (so far) only runs under windows wine/cxoffice. This app needs to communicate with an external device through a rs232 port. My linux-box however has no serial ports. So I got me a usb-serial cable, compiled and loaded the modules.
lsusb:
Code: | pl2303 18628 0
usbserial 24544 1 pl2303
|
dmesg:
Code: | usb 2-2: new full speed USB device using uhci_hcd and address 2
usbcore: registered new driver usbserial
drivers/usb/serial/usb-serial.c: USB Serial Driver core v2.0
drivers/usb/serial/usb-serial.c: USB Serial support registered for PL-2303
pl2303 2-2:1.0: PL-2303 converter detected
usb 2-2: PL-2303 converter now attached to ttyUSB0
usbcore: registered new driver pl2303
drivers/usb/serial/pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.12
|
so it seems that hardware an driver-wise all is correct.
in cxoffice config I put:
Code: |
[serialports]
"Com1" = "/dev/ttys/USB0"
|
The applications however still refuses to communicate with the external device through the com1 (/dev/ttyUSB0). On my desktop PC which has a rs232 port, the app does communicate with the device under cxoffice. So the problem seems to be the usb-serial conversion?
Any help greatly appreciated.
Thanks
Mike
Kernel 2.6.14
Hardware: acer aspire 1357lmi |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Slammer Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/39039009244fd688c6ecdb.jpg)
Joined: 28 Mar 2003 Posts: 270 Location: Greece
|
Posted: Fri May 19, 2006 7:28 am Post subject: |
|
|
The serial port handling of wine has changed. The config file is not used any more (for versions 0.9.x)
The correct way to assign a physical serial port to wine, is using symlinks in the directory ~/.wine/dosdevices
Make a symlink, com1 to /dev/ttyUSB0 (or to your tty device). _________________ Keep Slamming... |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
bosje Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/gallery/Zelda/Zelda_-_Ingo.jpg)
Joined: 01 Nov 2002 Posts: 75 Location: Utrecht
|
Posted: Fri May 19, 2006 7:46 am Post subject: |
|
|
OK, thanks.
It's confusing since the com port allocation is still in the cxoffice config file. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
/carlito Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/771466582465a5e7215b9f.jpg)
Joined: 31 Dec 2004 Posts: 451 Location: Belgium
|
Posted: Sun Aug 13, 2006 9:07 am Post subject: |
|
|
Slammer wrote: | The serial port handling of wine has changed. The config file is not used any more (for versions 0.9.x)
The correct way to assign a physical serial port to wine, is using symlinks in the directory ~/.wine/dosdevices
Make a symlink, com1 to /dev/ttyUSB0 (or to your tty device). |
Thank you for this solution! I've been dualbooting my system only to download PBX databases via RS232, thanks to you, I no longer need to reboot! _________________
.O.
..O
OOO
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|