Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
usb-serial cable under wine/cxoffice
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
bosje
Tux's lil' helper
Tux's lil' helper


Joined: 01 Nov 2002
Posts: 75
Location: Utrecht

PostPosted: Sat Mar 18, 2006 10:49 am    Post subject: usb-serial cable under wine/cxoffice Reply with quote

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
View user's profile Send private message
Slammer
Bodhisattva
Bodhisattva


Joined: 28 Mar 2003
Posts: 270
Location: Greece

PostPosted: Fri May 19, 2006 7:28 am    Post subject: Reply with quote

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
View user's profile Send private message
bosje
Tux's lil' helper
Tux's lil' helper


Joined: 01 Nov 2002
Posts: 75
Location: Utrecht

PostPosted: Fri May 19, 2006 7:46 am    Post subject: Reply with quote

OK, thanks.
It's confusing since the com port allocation is still in the cxoffice config file.
Back to top
View user's profile Send private message
/carlito
Guru
Guru


Joined: 31 Dec 2004
Posts: 451
Location: Belgium

PostPosted: Sun Aug 13, 2006 9:07 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum