Continuous stream of USB data never generates callback?

65 views
Skip to first unread message

James Newton

unread,
Dec 31, 2015, 12:59:41 AM12/31/15
to DroidScript
I've had great success with DroidScript working with the BusPirate via USB OTG. Amazingly enough, it even seems to manage binary data communication without a problem! However, there is an issue that is stopping me on one front...

If the device connected sends a continuous stream of data... just one byte after another... DroidScript or perhaps the phone, can't be sure which as I only have one OTG capable device, just never sees any data, and communications are totally cut off. e.g. I can't send a signal to the device telling it to stop sending data. 

I'm assuming that something is waiting for a gap in the received data... a pause... and then passing on all the data to that point in one batch. but when there is never a pause... the buffers overflow? or something?

Wondering if anyone else has seen this? 

Any chance the logic in the code could be published? e.g. is there anything I can do to avoid the issue?


Dave Smart

unread,
Dec 31, 2015, 7:54:54 AM12/31/15
to androi...@googlegroups.com
Hi James,

Have you set the correct baud rate?

Can you post some sample code here please.

(there is no pause in the code, it should send every character it receives to the callback)
Reply all
Reply to author
Forward
0 new messages