vendredi 24 janvier 2014

[Q] DNA bluetooth throughput problem (app development related) topic




This probably isn't the greatest place to post this but I was desperate to find some place with DNA-specific information. I have an app that reads from a bluetooth connection created using createInsecureRfcommSocketToServiceRecord (reads from a serial port UUID). The capsule summary is the paired device is a Garmin GPS that transmits data every second and the bundles are around 2000 bytes.

This should be no problem for a bluetooth connection and as expected it works perfectly on my old Motorola Photon 4G and my Galaxy Tab 10.1. But on my totally stock ROM (4.2.2, Sense 5.0) Droid DNA the throughput starts at the correct 2000 bytes/sec and then like clockwork, falls down to around 500bytes/sec after only 5-6 seconds of being connected. I've tried upping the thread priority plus my app stays in the foreground with the screen on the whole time. Nothing alters the behavior at all. I'm kind of going crazy over here. Any ideas?

Code was provided in this post:

http://stackoverflow.com/questions/2...with-data-rate

Thanks for reading!





Aucun commentaire:

Enregistrer un commentaire