Wine 下的程序无法识别 COM 端口

Wine 下的程序无法识别 COM 端口

我在 Ubuntu 14.04 上,当我执行 ls 时,/dev/ttyS*我看到系统在启动时自动创建了 32 个端口。但是当我在 Wine 下启动程序时(在 Wine 下安装 scantool.net 的说明),他们看不到任何 COM 端口。

编辑

根据Wine 文档我需要做的就是创建到 USB 设备的符号链接。

lsusb
Bus 003 Device 002: ID 0403:6001 Future Technology Devices
International, Ltd FT232 USB-Serial (UART) IC

lsmod | grep ftdi
ftdi_sio               52885  0 
usbserial              45141  1 ftdi_sio

ls -al /dev/ttyUSB0
crw-rw---- 1 root dialout 188, 0 אוק 16 07:21 /dev/ttyUSB0

ln -s /dev/ttyUSB0 ~/.wine/dosdevices/com1
ls -al ~/.wine/dosdevices/com1
lrwxrwxrwx 1 sailorbob sailorbob   12 אוק 16 08:24 com1 -> /dev/ttyUSB0

sudo adduser sailorbob dialout
[sudo] password for sailorbob: 
Adding user `sailorbob' to group `dialout' ...
Adding user sailorbob to group dialout
Done.

好的,所以它仍然没有出现在 Wine 中的扫描工具下。

编辑2

因此我尝试运行这个命令:

stty -F /dev/ttyUSB0 -a
stty: /dev/ttyUSB0: Device or resource busy

我不确定它怎么会忙,因为另一端没有连接任何东西。

编辑3

拔下并重新插入扫描工具,现在我看到以下内容:

~/.wine/dosdevices$ stty -F com1 -a
speed 115200 baud; rows 0; columns 0; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^H; eof = ^D; eol = <undef>; eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S;
susp = ^Z; rprnt = ^R; werase = ^W; lnext = ^V; flush = ^O; min = 100; time = 2;
-parenb -parodd cs8 -hupcl -cstopb cread clocal -crtscts
-ignbrk brkint ignpar -parmrk -inpck -istrip -inlcr -igncr -icrnl ixon -ixoff -iuclc -ixany -imaxbel -iutf8
-opost -olcuc -ocrnl -onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
-isig -icanon iexten -echo echoe echok -echonl -noflsh -xcase -tostop -echoprt echoctl echoke

然而 Wine 下的 scantool 程序仍然看不到 com 端口。

作为诊断步骤,有什么方法可以验证该端口是否可以通过 Wine 访问?

相关内容