STM32F407 USB Device HS mode interrupt transmission jitter
I use STM32F407 USB2.0 HS to send data periodically. The USB mode is high-speed mode. I configure the breakpoint IN transmission as the interrupt transmission mode. I use CDC_Transmit to send data. Each time it is judged that the last transmission is completed before sending data, and the time of interrupting the transmission is The interval is 1ms. I built a FIFO for the USB packet. The rate of USB packet generation is 2ms. I measured the time interval for each write and send data to USB and found that the maximum time interval will increase as the measurement time increases. Generally, the maximum interval for half an hour is 100ms, and for one hour it will be around 180ms. Our host computer is written in python, using the libusb library, and runs on the Windows 11 operating system. Can you guys see what the problem is?
