Open 1250364116 opened 2 months ago
It is not possible. The performance of RP2040 only allows for the buffer capture with the decoding after that. And the capture time is limited by the buffer size
You will need need to build the full version of the sniffer to have a continuous capture.
What if one core only captures and saves the data in a two dimensional array, when the logger reaches the end of the first array buffer size, the capture would restart and saves the data in the second array while in the other core we process the first array datas and after completion of processing wait for other array to be filled with new datas?
در تاریخ چهارشنبه ۲۸ اوت ۲۰۲۴، ۱۷:۰۷ Alex Taradov @.***> نوشت:
It is not possible. The performance of RP2040 only allows for the buffer capture with the decoding after that. And the capture time is limited by the buffer size
You will need need to build the full version of the sniffer to have a continuous capture.
— Reply to this email directly, view it on GitHub https://github.com/ataradov/usb-sniffer-lite/issues/18#issuecomment-2315343440, or unsubscribe https://github.com/notifications/unsubscribe-auth/A2VUWY5JWBLR63MKUBAR4KTZTXHATAVCNFSM6AAAAABNHVUUEWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMJVGM2DGNBUGA . You are receiving this because you authored the thread.Message ID: @.***>
You can't print over USB fast enough to output all the data. The speed of the device USB and capture USB is the same. And printing the data, expands the actual size a lot, since it is now represented in a human-readable format.
You can probably figure out something, especially if you don't print all the data. But I have no interest in implementing that. If you really need the continuous transfer, then use the full sniffer. It is more expensive, of course, but it is way more functional.
Hi, your program always needs a start button to be pushed to capture the data, and it will stop after a few moments. how it will be if I try to make the logger to capture the data continuously without any start command? Is there any consideration I need to make about changing the program in this way?