BLE connection problem on Mi 10 Lite 5G - Xiaomi Mi 10 Lite Questions & Answers

Hi,
I have a Mi 10 Lite 5G and I have problems to connecting to an external device using BLE. I try to connect to an UpSens that is a air quality monitor.
It's the first smartphone that gives me this problem. Generally I connect the smartphone to the monitor using it's app from playstore, and I can see the data measured on the smartphone in realtime, a measure every second, so the ble connection see a packet of data every second. But with this smartphone I can see the device, I connect to it, but after one packet received from it the connection will be lost. I see on the air monitor the icon that the connection is enstablished, but after 1 second the connection goes down.
I know that with recents androids in order to use BLE, the app needs location(GPS) permission/authorization. In this smartphone the app I use to connect to air monitor have all permissions granted, but I have seen that the system app "Bluetooth" have not the location permission, and I can't change the option.
Have you same info or idea to fix this problem? Could be like I think a problem of permissions on the system app?
Thanks in advance

Related

Wifi stops working after being left for a while (still connected)

Having an issue with the Tab 2 where you go to pick it up and start browsing after it has been sitting around a while (not sure if the time matters, but it seems like after sitting for most of the day) and the wifi is still connected, but nothing works than needs data. It acts like it would if you had not internet connection. Toggling the wifi off and on will fix the issue and notificaitons and emails start pouring in.
Anyone else have this problem? I found a similar issue on the 7.7 forums but nobody reported a solution and I am not even sure if it would have worked on the Tab 2 anyways. I am thinking about making a script that toggles the wifi automatically if it detects it can't connect to the internet. But that is a little ridiculous needing to do that. It shouldn't be losing connection in the first place.
Hi Pirate
it's a bit depending on the ROM you have installed - but since Android 4 you have a quite reliable setting. The default behavior of Android devices is to deactivate the wifi connection when it goes to sleep.
Some ROMs don't recognize the disconnection and the switch/button still shows "Wifi on" although disconnected.
First step: go to settings / wifi settings, hit the menu button (top right three dots) and check the advanced settings.
Somewhat like "Keep WLAN active in standby" - set this to always.
That should solve it already under android 4.x
If this doesn't help, look into Play Store - search for "wifi keep alive". But for the SGT 2 you shouldn't need it
Greetz - Chris
It was already set to "Always" so I don't think that will help. I will look at that app to see what it does.
Sent from my Nexus 7 using Tapatalk HD
wifi turns off when not in use to save battery. I think it might be a default even if you have it set to always on.
guncrasher said:
wifi turns off when not in use to save battery. I think it might be a default even if you have it set to always on.
Click to expand...
Click to collapse
The problem is that it never comes back on. Well it shows the wifi icon and the signal and everything but it just doesn't have any data connection. Any apps that use data act like wifi is off. The only way to get it to start working again is to toggle wifi or reboot. I also forgot to mention it is the stock ROM, only rooted. It got the OTA a few days ago too and it has happened since then.
You're not alone
Skurvy_Pirate said:
Having an issue with the Tab 2 where you go to pick it up and start browsing after it has been sitting around a while (not sure if the time matters, but it seems like after sitting for most of the day) and the wifi is still connected, but nothing works than needs data. It acts like it would if you had not internet connection. Toggling the wifi off and on will fix the issue and notificaitons and emails start pouring in.
Anyone else have this problem? I found a similar issue on the 7.7 forums but nobody reported a solution and I am not even sure if it would have worked on the Tab 2 anyways. I am thinking about making a script that toggles the wifi automatically if it detects it can't connect to the internet. But that is a little ridiculous needing to do that. It shouldn't be losing connection in the first place.
Click to expand...
Click to collapse
It's the same effing stuff people suggest to every wifi glitch out there.
To people who think it's due to the wifi sleep policy: although I've set it to always, why would wifi not resume, after screen is turned on? It's not the wifi that gets disconnected, it's the internet (or the download speed) that stops working.
To people who suggest it's a power saving feature under low battery conditions: Sorry, I've tested it while charging and with full battery.
To people with the above two arguments: Connection to some routers works perfect with the phone. Like when I turn on the hotspot on another phone, the wifi works great. Also, wifi on the other phone from the same source (laptop used as internet access point) works well.
To people who suggest resetting the router or wifi on phone: The internet does start working again, but only for a few minutes. Even if the screen is turned on, the internet may stop working mid-download.
The actual situation is that the phone disconnects from the internet, but keeps showing a connection to wifi. Like I used connectify hotspot to create an access point, and after a few minutes, the phone moved from "connected clients" list to the "previously connected clients", even as the phone showed connected to wifi with even the download arrows blinking, but no internet (or download speed). This only happens with certain sources (of wifi). And other phones may work well with the same source.
I have tried (several times and in different orders and permutations) the following to no effect:
1. Resetting the router.
2. Resetting the wifi on laptop.
3. Resetting the wifi on phone.
4. Restarting the phone and laptop.
5. Static IPs, gateways and DNSs. (Even though the problem was not with connecting to wifi and even internet works momentarily after resetting wifi).
6. Turning off items controlling wireless network in wireless connection properties.
7. Turning off firewall.
Waiting for a savior.
I know this isn't super helpful but I had the same bug you describe on the previous version of carbon. When I updated to the latest it seems to have stopped.
Sent from my GT-p5113 using xda premium
I had similar issue with my aTab Phone 4 and TP-Link TL-WR941ND (OpenWRT)
After disabling WMM capability in the router the problem disappeared!
Change router lease time to "2weeks"
Sent from my GT-I8190N using XDA Premium 4 mobile app
Same issue.
karankahlon said:
It's the same effing stuff people suggest to every wifi glitch out there.
To people who think it's due to the wifi sleep policy: although I've set it to always, why would wifi not resume, after screen is turned on? It's not the wifi that gets disconnected, it's the internet (or the download speed) that stops working.
To people who suggest it's a power saving feature under low battery conditions: Sorry, I've tested it while charging and with full battery.
To people with the above two arguments: Connection to some routers works perfect with the phone. Like when I turn on the hotspot on another phone, the wifi works great. Also, wifi on the other phone from the same source (laptop used as internet access point) works well.
To people who suggest resetting the router or wifi on phone: The internet does start working again, but only for a few minutes. Even if the screen is turned on, the internet may stop working mid-download.
The actual situation is that the phone disconnects from the internet, but keeps showing a connection to wifi. Like I used connectify hotspot to create an access point, and after a few minutes, the phone moved from "connected clients" list to the "previously connected clients", even as the phone showed connected to wifi with even the download arrows blinking, but no internet (or download speed). This only happens with certain sources (of wifi). And other phones may work well with the same source.
I have tried (several times and in different orders and permutations) the following to no effect:
1. Resetting the router.
2. Resetting the wifi on laptop.
3. Resetting the wifi on phone.
4. Restarting the phone and laptop.
5. Static IPs, gateways and DNSs. (Even though the problem was not with connecting to wifi and even internet works momentarily after resetting wifi).
6. Turning off items controlling wireless network in wireless connection properties.
7. Turning off firewall.
Waiting for a savior.
Click to expand...
Click to collapse
Same issue. also using connectify and also tried all things you have described. If you find any solution please let me know.
I had the same problem on my Huawei Honor. You need to set static IP in wifi settings (when connecting to AP, press "show advanced settings").
Mine settings were:
IP adress: 192.168.1.75 (make sure other devices are not connected with this IP)
Gateway: 192.168.1.254 (it could be different. Use the same as you're using to connect to your router)
Network prefix length: 24
DNS 1: 8.8.8.8
DNS 2: 4.4.4.4
No option for static IP in connectify
jopsinas said:
I had the same problem on my Huawei Honor. You need to set static IP in wifi settings (when connecting to AP, press "show advanced settings").
Mine settings were:
IP adress: 192.168.1.75 (make sure other devices are not connected with this IP)
Gateway: 192.168.1.254 (it could be different. Use the same as you're using to connect to your router)
Network prefix length: 24
DNS 1: 8.8.8.8
DNS 2: 4.4.4.4
Click to expand...
Click to collapse
There is no option in connectify for static IP and in USB wifi dongle also there is no option to set static IP.
Help!
---
---
Same issue
karankahlon said:
It's the same effing stuff people suggest to every wifi glitch out there.
To people who think it's due to the wifi sleep policy: although I've set it to always, why would wifi not resume, after screen is turned on? It's not the wifi that gets disconnected, it's the internet (or the download speed) that stops working.
To people who suggest it's a power saving feature under low battery conditions: Sorry, I've tested it while charging and with full battery.
To people with the above two arguments: Connection to some routers works perfect with the phone. Like when I turn on the hotspot on another phone, the wifi works great. Also, wifi on the other phone from the same source (laptop used as internet access point) works well.
To people who suggest resetting the router or wifi on phone: The internet does start working again, but only for a few minutes. Even if the screen is turned on, the internet may stop working mid-download.
The actual situation is that the phone disconnects from the internet, but keeps showing a connection to wifi. Like I used connectify hotspot to create an access point, and after a few minutes, the phone moved from "connected clients" list to the "previously connected clients", even as the phone showed connected to wifi with even the download arrows blinking, but no internet (or download speed). This only happens with certain sources (of wifi). And other phones may work well with the same source.
I have tried (several times and in different orders and permutations) the following to no effect:
1. Resetting the router.
2. Resetting the wifi on laptop.
3. Resetting the wifi on phone.
4. Restarting the phone and laptop.
5. Static IPs, gateways and DNSs. (Even though the problem was not with connecting to wifi and even internet works momentarily after resetting wifi).
6. Turning off items controlling wireless network in wireless connection properties.
7. Turning off firewall.
Waiting for a savior.
Click to expand...
Click to collapse
1. I have had the exact same issue for (atleast) the past 2 years. Have survived by repeatedly turning wifi on and off.
2. I too use connectify. This issue doesnt seem to happen on every wifi connection (just like your case). Even more specifically, it seems to happen ONLY when I connect my phone to the hotspot created via my laptop (connectify).
3. Even when the internet is actually working, some apps do not seem to recognise that(take some time to realize it is working), while others are able to connect instantly. Specifially, whatsapp is unable to send/receive messages for about 1-2 mins, after which I receive a whole bunch of messages at once.
This does not seem to be an issue due to connectify as well. I have tried creating a hotspot from my laptop without using connectify as well, but unfortunately, nothing changed. Further, this does not happen when my phone connects to a hotspot created via connectify by some other pc. The wifi and internet work perfectly fine when connected to a hotspot created via my friends computer.
Further, this problem happens only when a mobile connects to the hotspot. Doesn't occur when another laptop/PC connects (not sure about tablets).
I have looked into every nook and cranny on the internet, explored every forum for any working solution, but have been unsuccessful. In fact, this is the first place where I saw the exact same problem as mine, and was wondering if you have found any solution to it .
karankahlon said:
It's the same effing stuff people suggest to every wifi glitch out there.
To people who think it's due to the wifi sleep policy: although I've set it to always, why would wifi not resume, after screen is turned on? It's not the wifi that gets disconnected, it's the internet (or the download speed) that stops working.
To people who suggest it's a power saving feature under low battery conditions: Sorry, I've tested it while charging and with full battery.
To people with the above two arguments: Connection to some routers works perfect with the phone. Like when I turn on the hotspot on another phone, the wifi works great. Also, wifi on the other phone from the same source (laptop used as internet access point) works well.
To people who suggest resetting the router or wifi on phone: The internet does start working again, but only for a few minutes. Even if the screen is turned on, the internet may stop working mid-download.
The actual situation is that the phone disconnects from the internet, but keeps showing a connection to wifi. Like I used connectify hotspot to create an access point, and after a few minutes, the phone moved from "connected clients" list to the "previously connected clients", even as the phone showed connected to wifi with even the download arrows blinking, but no internet (or download speed). This only happens with certain sources (of wifi). And other phones may work well with the same source.
I have tried (several times and in different orders and permutations) the following to no effect:
1. Resetting the router.
2. Resetting the wifi on laptop.
3. Resetting the wifi on phone.
4. Restarting the phone and laptop.
5. Static IPs, gateways and DNSs. (Even though the problem was not with connecting to wifi and even internet works momentarily after resetting wifi).
6. Turning off items controlling wireless network in wireless connection properties.
7. Turning off firewall.
Waiting for a savior.
Click to expand...
Click to collapse
I'm having the exact same prob on my ZTE Grand x V 970
It started when i had kitkat and i couldnt even "fix it" restarting the wifi, i had to reset the phone in order to have my wifi work for like 2-5 mins and then stops recieving data, tried to reconnect and stays on turning on wifi.. Now i changed to the stock Rom and the problem is still there but at least now i can "fix it" restarting the wifi connection until certain point.
Issue sharing internet with Connectify from PC
Go to:
Control Panel\Network and Internet\Network and Sharing Center
On the left column, click on CHANGE ADAPTER SETTINGS.
You should be in: Control Panel\Network and Internet\Network Connections by now.
Then click on: Microsoft Virtual Miniport Adapter and click on Properties, then click on the 'Configure' button in the 'Networking' tab. From this window, go to the 'Power Management' tab and uncheck 'Allow the computer to turn off this device to save power'.
This works for me. Try this out
If this doesn't work further, you can try out mHotspot for the same purpose.
I've had the same issue, with the wifi saying it's connected even though it isn't.
This thread is 4 years old and this issue still hasn't been fixed. What a shame.
Same issue here on OnePlus 3 even after factory reset.
I have this same problem after the security patch Mid March to Jan 1, 2019. The WIFI doesn't show in the top status bar, but toggling wifi off/on fixes it till the next overnight. I did make one change to my wireless about that same time and that was moving the min connect speed from 6Mbps to 12Mbps to help with bandwidth issues being cause by devices using low speeds and having several SSID broadcast. My S7 and Tab A both work fine - so I think it was something in the security patch.

[Q] Auto Connect Nexus 5 Bluetooth to Macbook Pro for Smart Lock

I would like to have my Nexus 5, (Android 5), automatically link to my Macbook Pro, (10.10), via bluetooth, whenever it's in range, and stay connected as long as it's in range for the purposes of engaging Smart Lock.
I've paired them from both directions, and I can send a file from the Nexus 5 to the MBP. If I try to use the "Connect to Network" choice from the MBP bluetooth preferences I get a "Network is Unavailable" message on the MBP. Unfortunately, for any of these activities the BT connection lasts for no more than the time it needs to transfer the file, or a few seconds otherwise.
I don't need to do anything via the bluetooth connection between computer and phone, I just want it to automatically connect and stay connected when in range, or failing that, let me manually connect and stay connected when in range. If there's some BT app that can achieve this, please feel free to point me in that direction.
Thanks

Tp-Link Wireless Router DoS Protection blocks connectivity of Smartphone. How can I s

Hi.
Just bought TP-LINK archer c60 wireless router.
My smartphone Samsung Note 5, while connected to the wifi, after a while loses the access to the internet without losing the wifi connection. This problem occurs only in the smartphone. My computer/laptop is not affected at all.
After a few days I detected that the DoS Protection of the router was the reason for that.
Using the app Whatsapp, I sent a message while DoS protection was on and the smartphone was having the internet access blocked. THe message didn't get to the internet and the clock icon besides the message indicated that.
As soon as I turned the DoS protection off, the Whatsapp message got access to the internet and the clock icon turned to the tick symbol indicating that the message was sent to the Internet.
So, what I need to know is:
1) Why is that happening? Is that something related to the settings of the smartphone or some app might be causing the problem?
2) How can I solve it in order to keep DoS protection on in the router? Turning it off solves the problem, but I want to keep it on.
Again, computers and as far as I know other smartphones are not suffering from the same block. The wifi connection is not lost and no indication of limitations appear in the smartphone's screen. The problem occurs after a few hours usually, but when the connection gets blocked, it usually requires the router to be restarted 2 or 3 times to get the Internet access again. Of couse, now that I know that the DoS protection is causing the block, I can immediately remove the block disabling it. But if I keep the DoS protection on, usually one simple restart in the router is not enough to get the internet access again in the smartphone.
Thank you.

Android Hotspot - show data used by connected devices

Hallo
I have an Android 7 phone (Cubot Note Plus, rooted) which I just use as a WiFi Hotspot for my main phone, tablet and computers, when travelling.
The data plan I have is not that big, so I would like to know which connected devices are using how many data of my plan. Is there a way to check this?
In the data used, I only see the whole hotspot data, but not each connected device's data consumption.
Is there maybe an app to see that? Root is available, so maybe with Tasker (which is installed)?
Thanks for hints.
frank
Now I found this answer at StackExchange:
How to view devices connected to hotspot on Android?​I think this could solve my question, will try that app (Hotspot Manager...
Nothing was it. That old app "Hotspot Manager" does not work anymore, if I even get it as download from some strange sources.
I dont find any app to manage the Hotspot on an Android device like a real hotspot.
I could find the connected devices (IP, MAC) with:
Code:
ip neigh
but that was it, no managing possible.
It should be easy to write at least an app to block some devices and with root it really should be possible to get info about the traffic etc. and really manage the own hotspot.
Strange that this is so rarely needed.
More and more I use my phone (or my old phone) as Hotspot, using my 10 GB Traffic in month for other devices.
I would like to see a bit more than just that my traffic is now nearly consumed by some connected devices and so on.
Maybe I just didnt search well enough...

please help me monitor my hotspot

I have a
KAZUNA ETALK MYFLIX
Model: KAZ-N20
Hardware version: Ninja5_MB_1V1
Build number: N20_R039
Android: 10
I use it to run a hotspot for about 8 devices at a time in a area where there is no other access to internet but someone keeps using up the data and i cant figure out who it is is there a tool or utility for android that allows me to identify the devices connected and monitor or see their data usage and disconnect the culprit evenni its identified bynip address of the devices connected then i could use netcut or wifi thief to disconnect them
Please if anybody knows of a tool i can use to monitor and identify devices data usage please share so i can find it an learn how to use it
Set a long password for access to the hotspot and at least WPA2 / PSK. It may also be that your phone is sending data that you cannot identify.
ze7zez said:
Set a long password for access to the hotspot and at least WPA2 / PSK. It may also be that your phone is sending data that you cannot identify.
Click to expand...
Click to collapse
I can see the number of devices connected so its not someone connecting thats not suposed to be on its just im trying to narrow down who is useing the data by downloading alot or streaming so i need something that allows me to monitor connected devices data useage/network traffic
So i guess there isnt a app for this
It's a question of whether your hotspot even keeps statistics on individual usage.
Then the question of whether that's accessible through an API.
And finally, how you want to access it.
This is an unrelated hot spot, but it may give you some ideas.
I wrote a CGI program so that I could get some info easily instead of the web interface.
No, it doesn't have individual data usage.
https://forum.xda-developers.com/t/verizon-mifi-8800l-hot-spot-mods-hacking.4323669/post-87316097

Categories

Resources