本社群由Nantou.py使用者社群以及國立虎尾科技大學電機資訊學院負責維護,它是一群熱愛智慧生活科技以及Python的專業教師所組成,大家一同快樂地研究有關數位生活中人工智慧、大數據、物聯網、雲端服務、APPS、福祉科技、感知網路服務、車載網路服務、及網際網路等資通訊技術,並運用這些資通訊以及Python技術來提升我們的日常生活品質,建立更好的生活環境。
HIDAPI在Linux的測試步驟1.下載HIDAPIhttps://github.com/downloads/signal11/hidapi/hidapi-0.7.0.zip2.安裝相關套件sudo apt-get install libudev-dev pkg-config libudev-dev3.解開hidapi-0.7.0.zipunzip hidapi-0.7.0.zip4.進入Linux目錄cd hidapi-0.7.0/linux/5.編繹函式庫與測試程式make6.測試程式sudo ./hidtest以下是我電腦的輸出結果Device Found type: 1a86 e008 path: 0002:0002:00 serial_number: (null) Manufacturer: (null) Product: (null) Release: 1200 Interface: 0Device Found type: 046d c521 path: 0003:0002:00 serial_number: (null) Manufacturer: Logitech Product: USB Receiver Release: 5701 Interface: 0Device Found type: 046d c521 path: 0003:0002:01 serial_number: (null) Manufacturer: Logitech Product: USB Receiver Release: 5701 Interface: 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
謝謝
刪除