pointing wine to the usb serial adapter


Forum: Apps
Topic: pointing wine to the usb serial adapter
started by: geomort

Posted by geomort on May 13 2008,17:48
I think I know how to do this if I can find the where to do it.

I have wine loaded though MyDsl extentions and the serial adapter is seen as ttyUSB0 in dmesg.

I tried mknod /dev/usb/ttyUSB0 c 188 0 and DSL reported that the file already exists.

From the wine documentation it looks like I need to edit win.ini to point wine to the linux device with com4=/dev/usb/ttyUSB0

I don't no where to do this.  Looked in /ramdisk/dsl/.wine/dosdevices
found a win.ini but there is mostly county code information and I was looking for a [serial ports] entry to edit.

Am I on the right track?

Would #ln -s /dev/usb/ttyUSB0 com4 do the trick?

geomort

Posted by WDef on May 14 2008,21:05
Please start by telling us what Windows application you are trying to run under wine.
Posted by geomort on May 16 2008,04:15
Thanks for getting back to me.
I have a USB to serial adaptor that I want to use to load code into a PIC processor device.  The program that handshakes with the device and loads the code is a simple windows command line program called prog.exe.  It works in DSL using the wine extention and a real serial port.  The USB to serial adapter is seen as /dev/ttyUSB0.  I need to assign it a com port in wine for the prog.exe program.  I need to know where the file is I need to edit in wine for the com ports.  Wine documentation lists /dosdevices/win.ini with the section [serial ports] to be edited.  I haven't found the right file to edit in DSL.  Maybe I need to add a configuration file to the extention somewhere for wine to use?
geomort.

geomort

Posted by ^thehatsrule^ on May 16 2008,04:39
Try looking in ~/.wine
Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.