美文网首页
在crossOver中使用USB设备

在crossOver中使用USB设备

作者: crocodile_b | 来源:发表于2017-07-05 14:33 被阅读254次

    CrossOver can't connect directly to hardware ports or devices on your computer. This can cause problems if the Windows program you're trying to use needs to communicate with a USB device. A potential workaround is to manually map a device entry from the native OS to a symlink in the bottle containing your Windows app, and then hope that the Windows app sees the COM port and can use it to connect to the device.

    crossover不能直接使用电脑的硬件,所以需要通过软连接映射的方式将设备映射到串口来实现

    The first thing you need to do is discover which /dev entry is being created when you connect the USB device to the computer. Disconnect the device from your computer and run the following commands in a Terminal:
    先把设备拔了,执行下面的命令

    cd /dev
    
    ls > ~/disconnect.txt
    

    Connect the device, wait a moment for your computer to recognize it, and run the command:
    再插回去

    ls > ~/reconnect.txt
    

    两个文件进行比较

    diff ~/disconnect.txt ~/reconnect.txt
    

    If there is a new device entry listed use that name as (device-entry) in the following steps.
    用比出来有差异的名字,来替代命令中的(device-entry),bottle-name就是需要用这个设备的容器名
    Mac OS:

    cd ~/Library/Application\ Support/CrossOver/Bottles/(bottle-name)/dosdevices
    ln -s /dev/(device-entry) com1
    

    Linux:

    cd ~/.cxoffice/(bottle-name)/dosdevices
    ln -s /dev/(device-entry) com1 
    

    With luck your Windows program should now be able to use COM1 to access the USB device.
    运气好的话就能用了。。。

    来自:https://www.codeweavers.com/support/wiki/mac/faq/usbtoserial

    相关文章

      网友评论

          本文标题:在crossOver中使用USB设备

          本文链接:https://www.haomeiwen.com/subject/dckqhxtx.html