Android Question Bluetooth - transmission suspension

konradarcisz

New Member
Licensed User
Longtime User
Hello,

I faced the problem during data transmission via Bluetooth (testing plate with BTM-222 module + phone with Android with bluetooth 4.0) .
To the testing plate I have connected 2 temperature sensors and 2 humidity sensors. Values from the sensors are transmitted to the BlueTerm ( bluetooth terminal ) on my phone and:

- after 30min ( sometimes 3 min more ore less) transmission is suspended ( transmission speed : one line of data ( 4 values ) per 5s)

And now:
strange thing ! When I increased transmission speed , so transmission is continuous ( max speed )
everything is ok.

Also when I had connected my testing plate with BTM-222 module through the wire with another testing plate with BTM-222 everyting was ok , and there was no transimission suspension. From this I can be sure that promlem is not with my testing plate.


Do You happen to know what can be wrong ? Maybe somebody has experience with this?
I appreciate all suggestions.


Thank You
 

konradarcisz

New Member
Licensed User
Longtime User
Hello Erel,


Data which were sent from testing plate contains prefix mode:
I made a mistake in my first post: in fact I've put 6 temperatures sensors ; 2 humidity sensor ; proximity sensor , and additional information about speed of the motor SPD , so 10 values not 4.
Below You can find frame of data which was sent to the phone:

at the begining there is a prefix - 4 bytes with values respectively: < 0, 0, 0, 87>
and then informations from the sensors where <character> means plus(+) or minus(-) depends on temperature.

Original shape of the frame below:
< 0, 0, 0, 87>T1=<character>xx.x T2=<character>xx.x T3=<character>xx.x T4=<character>xx.x T5=<character>xx.x T6=<character>xx.x H1=xxx H2=xxx OBR=xx SPD=xxx<LF>


I tested also below example, but with standard speed : one line of data ( 10 values ) per 5s) and situation with transmission suspension was like I mentioned in the first post, but with constant transmission suspension occured after 2 lines of data

http://www.b4x.com/android/forum/threads/android-bluetooth-bluetoothadmin-tutorial.14768/#content
I didn't put any changes to the code.

Do have some ideas , what can be wrong?

Thank you very much.
 
Upvote 0
Top