2 Dec 2010 23:58
Re: HID Report Communication with USB RFID Reader
Dan Streetman <ddstreet <at> ieee.org>
2010-12-02 22:58:59 GMT
2010-12-02 22:58:59 GMT
2010/12/2 Tóth András <totha <at> iit.bme.hu> > > Hello > > Fist excuse me: > > Yes I have hard problems because I think I'm a little bit stupid. :( Not at all, USB in general is hard to discuss. > > After: > > I have spoken about the URB 7! The snoop trace says that the first >eight byte is the response to the URB 7 packet. I thought that the >numbers of the URBs are not correct, but in this case the problem >is that I have sent the setup packet with the right data content, and >it is also in wireshark too, but the JAVA API has thrown USB >STALL exception. As you think this packet is in the right format >and has the right data content. URB 7, ok, that's the interrupt in buffer. Like I said, you have to submit a UrbIrp to the interrupt endpoint so the system will start polling the endpoint. Once the endpoint has data to send to you, it will put it in that UsbIrp's buffer and return it to you. For interrupt in endpoints, you should always have a pending UsbIrp, and you can queue up several to ensure the endpoint is continually polled. So are you submitting at least a single UsbIrp to the interrupt endpoint/pipe that URB 7 corresponds to?(Continue reading)
RSS Feed