I don't think I'm quite sure that I understand you
but, let's start from the scratch:
1- I'm using mikroC to make a HID usb device, note that it is HID, with reading and writing buffer of 64 bytes. ( you also have to consider VID and PID numbers, it must be the same in the pic code and the android app)
2- You should build the circuit and try it with a computer either by any HID terminal or vb.net app.
3- when you are sure that it works, then try to connect it with your android phone.
4- first let your android app try to read from the pic, and make sure it works, then move to sending to the pic from the android app.
notice this code:
Sub Timer1_Tick
If ( HIDstreams.IsInitialized = True ) Then
Log( HIDstreams.BulkTransfer(inEndpoint,RxPlcBuffer,64,300))
End If
End Sub
This code will
not show the data in the log window, but it just indicates that some bytes have been received, while the received data is in the
RxPlcBuffer, this code is repeated every 1 second, so should modify it if some data is received.
for example:
if you make the pic send a 64 byte to the android when you press a button, it will show that some bytes have been received in the log window. because the code in a timer, the code will be repeated again, but the result is different, in the log there will be 0 byte received unless u push the button again.
does that make sense ?