|
From: Fares M. <f.m...@sh...> - 2024-07-29 22:55:31
|
First of all thank you Tim for responding. Ok let me make my situation clear . I have an audio digital signal coming from a microphone on the device. I'm streaming an FFT(Fast Fourrier Transform) of this signal digital throught a Usb interface. The interface uses 5 endpoints (4 input and one output) the input/output is as you know from the host perspective. The usb device driver uses a bulk transfer to stream the FFT data. From the device side i'm ok but from the host side i want to receive the FFT data and plot it (amplitude on the y axe and frequency on the x axe) using a QT graphical user interface application. I just want at least to stream a constant string "hello world" and then plot it on a graphical interface. How can the libusb library be helpful in receiving the data stream using bulk transfer and how can it work along with the QT framework ? The device that i'm using is this one : https://www.st.com/en/evaluation-tools/steval-stwinkt1b.html The application that runs on the device is this one : https://github.com/STMicroelectronics/x-cube-memsmic1 I want to rebuild a new graphical user interface Using QT framework and i want to understand how can i integrate the libusb library with it. Sorry for my bad english. It would be kind of you if you help me with this project. Best regards Fares Mahjoub ________________________________ From: Tim Roberts <ti...@pr...> Sent: Monday, July 29, 2024 11:04:09 PM To: lib...@li... <lib...@li...> Subject: Re: [libusb] Integrating libusb library with a QT application EXTERNAL SENDER - This email originated from an external domain. Please take care when clicking links or opening attachments. Fares MAHJOUB wrote: I'm receiving a stream of data coming from that USB device configured as Windows Compatible ID device, This means that when i plug in the device to my Windows machine, my OS recognizes the device and installs WinUSB driver. For more information, you can read this article https://github.com/pbatard/libwdi/wiki/WCID-Devices#user-content-STM32. My problem is, how can I use your library to read a data stream coming from this device and then visualise this data stream on a QT graphical user application. If you guys have any resources or any advice for me on how to develop this type of application, I would appreciate it. None of us know what you mean by "visualize this data stream". Every USB device is different. There are already tools that can show you the USB traffic as packets, including Wireshark. What are you expecting beyond that? -- Tim Roberts, ti...@pr...<mailto:ti...@pr...> Providenza & Boekelheide, Inc. |