四联光电智能照明论坛

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 2700|回复: 0
打印 上一主题 下一主题

Using the cyusb_linux GUI for Devices with a Custom VID/PID – KBA91950

[复制链接]
  • TA的每日心情
    开心
    2018-12-28 16:25
  • 817

    主题

    1556

    帖子

    1万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

    积分
    14941
    跳转到指定楼层
    楼主
    发表于 2016-11-14 10:51:01 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

    原文地址:http://www.cypress.com/knowledge ... tom-vidpid-kba91950

    **
    Question:
    How do you make a device with a custom vendor identification (VID) number / product identification (PID) number visible on the cyusb_linux GUI?

    Answer:
    By default, the cyusb_linux GUI (Control Center equivalent for Linux) only shows devices with a Cypress® VID (0x04B4) and PIDs contained in the /etc/cyusb.conf file.

    If you are using a Cypress VID (0x04B4) and any PID that is not present in the /etc/cyusb.conf file, you will have to add the VID (0x04B4) and the PID to the end of the /etc/cyusb.conf file. You will need root permissions to do this. If the cyusb_linux GUI is already open, close it and start it again. The device will now appear in the cyusb_linux GUI.

    If you are using a non-Cypress VID, follow the steps below. For this example, the VID is 0x04FF and the PID is 0xFF.

    1.Add the VID and PID in /etc/cyusb.conf as shown in Figure 1. You will need root permissions.
    Figure 1. FX3™ Custom VID-PID Added to cyusb.conf File


    2.For a non-Cypress VID, you will need to make changes in the /etc/udev/rules.d/88-cyusb.rules file as well. You will need root permissions. Copy lines four and five of the 88-cyusb.rules file and paste it back into the file with ATTR{idVendor}==”04b4” changed to ATTR{idVendor}==””, as shown in Figure 2.
    Figure 2. ATTR{idVendor}==”04ff” Added in the 88-cyusb.rules File


    3.Close and restart the cyusb_linux GUI. The device with a custom VID/PID will now appear in the GUI as shown in Figure 3.
    Figure 3. Device with VID=0x04ff and PID=0x00ff Now Appears in the cyusb_linux GUI
    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    QQ|Archiver|手机版|小黑屋|Silian Lighting+ ( 蜀ICP备14004521号-1 )

    GMT+8, 2024-5-14 20:35 , Processed in 1.093750 second(s), 23 queries .

    Powered by Discuz! X3.2

    © 2001-2013 Comsenz Inc.

    快速回复 返回顶部 返回列表