2013年6月16日 星期日

[ USB HID ] 讀取多功能電表教學資源分享





Uni-Trend UT61E 

2 則留言:

  1. HIDAPI在Linux的測試步驟
    1.下載HIDAPI
    https://github.com/downloads/signal11/hidapi/hidapi-0.7.0.zip

    2.安裝相關套件
    sudo apt-get install libudev-dev pkg-config libudev-dev

    3.解開hidapi-0.7.0.zip
    unzip hidapi-0.7.0.zip

    4.進入Linux目錄
    cd hidapi-0.7.0/linux/

    5.編繹函式庫與測試程式
    make

    6.測試程式
    sudo ./hidtest

    以下是我電腦的輸出結果
    Device Found
    type: 1a86 e008
    path: 0002:0002:00
    serial_number: (null)
    Manufacturer: (null)
    Product: (null)
    Release: 1200
    Interface: 0

    Device Found
    type: 046d c521
    path: 0003:0002:00
    serial_number: (null)
    Manufacturer: Logitech
    Product: USB Receiver
    Release: 5701
    Interface: 0

    Device Found
    type: 046d c521
    path: 0003:0002:01
    serial_number: (null)
    Manufacturer: Logitech
    Product: USB Receiver
    Release: 5701
    Interface: 1

    回覆刪除