Estimote / Android-Fleet-Management-SDK

Estimote Fleet Management SDK for Android
https://developer.estimote.com
MIT License
836 stars 451 forks source link

Nexus 4 ranging in service + wifi #46

Closed jbruchanov closed 10 years ago

jbruchanov commented 10 years ago

I put the code example into a service. It works fine, but in the time of Ranging it seems that wifi is "blocked" and i'm not able to use it. (net requests failing for time out).

Any ideas what can be wrong or N4 has some "share" hw implementation for BT+WIFI ?

wiktor commented 10 years ago

Nexus 4's antenna is shared between Bluetooth and WiFi which both operates on 2.4 GHz.

That means that WiFi turned on can degrade Bluetooth performance.

jbruchanov commented 10 years ago

well so it means that active bluetooth using blocks wifi :( is there a list of similar devices ?

wiktor commented 10 years ago

No, this is only known problem for Nexus 4.

beyondsanity commented 10 years ago

I'm experiencing the same issue on Motorola Moto G with Android 4.4.2. Did you find some kind of workaround?

wiktor commented 10 years ago

@beyondsanity Right now only Nexus 4 is known to have this problem. How do you observe this problem?

beyondsanity commented 10 years ago

I made a sample App that uses internet connection and a BLE scan service. I start the App with BLE and Wi-fi on, the user can login correctly with my servers (using Wi-fi). After the login i start the BLE scan service, the scan service works and find the beacons. When i find a beacon i try to download an image from my server.

This last operation causes the wi-fi connection to fall. The wifi icon in the status bar disappears and the request to the server goes to timeout.

I tried using different servers and different wi-fi connections with the same results. The Scanner code is based on your samples, i tried using both monitoring and ranging mode with no success.

beyondsanity commented 10 years ago

I made another test based directly on your Sample App and had the same results. I simply added a webview to the notification demo. When a beacon is found the webview try to load the Google homepage but it goes to timeout.

test made on Motorola Moto G with Android 4.4.2

finishingmove commented 10 years ago

@wiktor @beyondsanity I can confirm this issue on the Moto G with Android 4.4.4

zioolek commented 10 years ago

@wiktor @beyondsanity @finishingmove I also confirm the issue for Moto G with Android 4.4.4

kenneth-yes-tap commented 10 years ago

@wiktor This issue is also confirmed for Moto X on Android 4.4.4.

helmi-kechaou commented 10 years ago

This issue is also confirmed for Asus Memopad on Android 4.3. My workarround is to stop ranging while I send cloud request and upon reception of responses I re start ranging. It works but, it's really a primitive workarround.

victorraft commented 9 years ago

This seems to happen in all the Nexus devices, the Samsung Galaxy S4 mini and a lot of Motorola. How do you guys are dealing with it? Some kind of workaround available? Please share, I can't distribute an app that messes the user's wifi.