> > > > Is it possible to send a report to the pc without receiving one? > > > Yes it is possible, For example USB Mouse/Keyboard are input only HID > > devices. > > > Check the Microchip HID Mouse Example, on which PIC will send packets, > > without > > > recieving any one. > > I am using the modified mouse example from Lakeview Research. I made a > > modification of my own whereby when I receive the Report, I send it back > > twice (instead of just once, as was originally). But then, on the pc, I > > tried to > > read twice, but the 2nd read blocked (which to my mind means - no data) > > so I can't see that it is working. > > > > Are you taking care of following things, > * IOProcess shouldn't stall for long time ( If IOProcess lesser than > 500 us is better) > * Don't transmit two packets back to back , It won't work. Use statemachine, and > only after first packet is transmitted, transmit the second packet. > (!mHIDTxIsBusy()) ) > { > HIDTxReport(..); //won't work > HIDTxReport(..); //won't work > } I am using this: while(mHIDTxIsBusy()) { // Service USB interrupts. USBDriverService(); } // The report will be sent in the next interrupt IN transfer. HIDTxReport(transmit_buffer, HID_INPUT_REPORT_BYTES); while(mHIDTxIsBusy()) { // Service USB interrupts. USBDriverService(); } // The report will be sent in the next interrupt IN transfer. HIDTxReport(transmit_buffer, HID_INPUT_REPORT_BYTES); I am not sure about 500us, I use VB6 speed, no extra commands between Reports. I will try again just to be sure. Do you know what to do to increase Report size to maximum 64? Andy. > > > regards, > palani > -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist