Ghasem Ramezani
Ghasem Ramezani

Reputation: 2888

Read Data Transferred Between USB And OS, C++

We have some USB device that send continuously some raw data, And i should logs that data into log files.
So i tried using libusb on GNU/Linux and MS-Windows 10 but i recognized when we want to use libusb it's well take down the kernel driver and all that data will lost. How i could catch that raw data ?

NOTE: There is no any special device driver in mind, and we looking for a general way to get raw transferred data between USB and OS.

We use C++ with MSVC2017 on MS-Windows 10 and GCC 9 on Debian.

Upvotes: 0

Views: 389

Answers (1)

Erlkoenig
Erlkoenig

Reputation: 2754

Wireshark is capable of capturing USB data. In my experience, it works better on Linux.

Upvotes: 2

Related Questions