Hi!!!
I’m trying to connect two bluetooth devices: a mobile and an external device. I developed this app a few years ago for Windows Mobile and right now I’m programming the app for Android.
In order to develop my app I use:
· AsyncStreams in regular mode, because de buffer length is not fix.
· The function AsyncStreamsNewData to receive the data inputs.
· A Service Module for communications running in background.
¿Problems? When the app starts, New data event raises without problems, with buffer length between 1 and 125 bytes with a high frequency, but after some seconds, the communication is more and more slow, and suddenly the buffer length is 1008 bytes and AsyncStreamscrashs so the app doesn’t receive any more streams.
I have checked the app for Windows Mobile, and a 1008 buffer length never happens.
I’m trying to connect two bluetooth devices: a mobile and an external device. I developed this app a few years ago for Windows Mobile and right now I’m programming the app for Android.
In order to develop my app I use:
· AsyncStreams in regular mode, because de buffer length is not fix.
· The function AsyncStreamsNewData to receive the data inputs.
· A Service Module for communications running in background.
¿Problems? When the app starts, New data event raises without problems, with buffer length between 1 and 125 bytes with a high frequency, but after some seconds, the communication is more and more slow, and suddenly the buffer length is 1008 bytes and AsyncStreamscrashs so the app doesn’t receive any more streams.
I have checked the app for Windows Mobile, and a 1008 buffer length never happens.