Posted by xphree
on November 11, 2009 at 8:06 AM PST
I have the next scenario:
- A device transmiting (via Bluetooth) information: frames of 112 bytes each one containing 56 ECG signal data.
- A mobile phone that receives the signal with an StreamConnection an a InputStreamReader, processing the data and painting in a Canvas.. the code of receiving is something like the next:
But the problem is that the transmissión is SO SLOW and the painting of the signal is taking a long time to paint.. i think that the reader.read(buffer) is taking more time than expected.. is there a way to receive the signal in a better and efficient way? is there a tip about the BUFFER size? override the InputStream Class? a better method to achieve more speed in the transmission?
Thank you for any help or idea about this,