2020-09-03 01:45 PM
Hi,
I'm developing a printer using a STM32F401. I created a USB VCOM project and change it to work as a printer.
This project we're sending the data to print through OUT EP (addr 0x01) and our purpose is receive status in IN EP (addr 0x81) as well. We have a desktop app that communicates with the printer and the app send data to printer to print out, request status and receive data from printer about the status. Today we're using a sniffer to see the communication.
At the time the printer works well on Windows and I can printer sending data through USB and data are received in OUT EP.
We're having trouble with status request (that is in IN EP).
The app works well requesting status and we can see it in sniffer, but the USB interrupt is not called.
We have doubt about the IN EP initialize, because OUT EP initialization is called prepareReceive, but this routine is not called in IN EP and for testing we included this routine to initialize IN EP, but the USB interrupt is not called when the app request status.
Who are able to help us receive data through IN EP, please?