Taustascannausongelma, android 7

Hei,

KÀytössÀ 6 anturia, joiden lÀhettÀmÀn datan kerÀÀ vanha android puhelin.
KerÀtty data lÀhetetÀÀn http palvelimelle kÀsiteltÀvÀksi.
Toiminut useamman vuoden ilman sen suurempia ongelmia.
VielÀ n. kuukausi sitten toimi ok, mutta nyt taustascannaus tuntuu loppuvan aina itsestÀÀn.
Kun sovelluksen aktivoi esim. aamulla, yön aikana ei ole kertynyt tuloksia, mutta hetken pÀÀstÀ uusia alkaa tulla nÀkyviin.
Muistikuvaa ei ole, ettÀ alkoiko ongelmat Ruuvi station pÀivityksen jÀlkeen.
PÀivitin nyt kaikki anturit uusimpiin versioihin ja patterit on hyvÀssÀ hapessa.
Ei ole auttanut asiaan.

Versiota:
Anturit v3.31.1
Ruuvi station 2.5.6
Taustascannaus pÀÀllÀ (bluetooth)
Historiatietojen tallenusvÀli 10 sek (kokeiltu muitakin arvoja).

Puhelin Honor 7 lite, android 7
Bluetooth pÀÀllÀ, sijainti pÀÀllÀ
Ruuvi station luvitettu olemaan pÀÀllÀ koko ajan.

Alkaa konstit olla lopussa. MitÀ kannattaisi kokeilla ?

Google translates as:
Hey,

There are 6 sensors in use, the data sent by which is collected by an old android phone.
The collected data is sent to the http server for processing.
Worked for several years without major problems.
About a month ago it worked ok, but now the background scan always seems to stop by itself.
When you activate the application in the morning, for example, no results have been accumulated during the night, but after a while new ones start to appear.
There is no snapshot of whether the problems started after the Ruuvi station update.
I now updated all the sensors to the latest versions and the batteries are in good condition.
It hasn’t helped.

Version:
Sensors v3.31.1
Screw station 2.5.6
Background scanning on (bluetooth)
Historical data recording interval 10 sec (tried other values).

Phone Honor 7 lite, android 7
Bluetooth on, location on
The screw station is allowed to be on all the time.

I’m starting to run out of skills. What should you try?

Hei @ruuvipertti , pyysin kehittÀjÀÀ katsomaan tÀtÀ.

Honorin Android OS7 puhelimet taitaa olla aika vahvasti optimoituja, tÀssÀ ainakin muutama vinkki, joita kannattaa vielÀ katsoa puhelimen asetuksista (tÀmÀ ehdotus internetin syövereistÀ):

Sovelluksen virrankulutus-optimointien poistaminen Android-kÀyttöjÀrjestelmÀssÀ:

  • Settings

    • Power Saving
    • Protected Apps
    • Enable Ruuvi Station
  • Settings

    • Battery
    • App Launch
    • Select Ruuvi Station and enable ‘Run in background’
  • Settings

    • Apps

    • Select ‘Settings’ at the bottom of the screen

    • ‘Special Access’

    • Ignore optimizations

    • Select Ruuvi Station and tap Allow

  • Settings

    • Apps
    • Select Ruuvi Station
    • Battery
    • Disable the ‘Power-intensive prompt’ setting
    • Change the ‘Launch’ setting to ‘Manage manually’ and enable all ‘Manage manually’ settings

Hei,

Kiitos neuvoista. NÀitÀ olen sÀÀdellyt, mutta apua niistÀ ei ole tullut.
Kokeilin asentaa myös vanhemman ohjelmaversion ruuvi:sta, mutta siitÀkÀÀn ei ollut apua.
En nyt pÀÀse jÀljille, ettÀ nukahtaako ruuvi sovellus vai bluetooth yhteys.
Taidan kokeilla euraavaksi uudemmalla puhelimella.

Samsungin puhelimissa (ja osassa muita) oli esimerkiksi kesÀllÀ paljon pahoja ongelmia Bluetoothin kanssa, jonka korjaaminen kesti puhelinvalmistajilla kuukausia (tai melkein 6kk). Aika usein ongelmat johtuvat puhelinten pÀivityksistÀ, mitkÀ taas sitten rikkovat sovelluksia. Varsinkin vanhempien puhelimien kanssa tulee haasteita uudempien kÀyttöjÀrjestelmÀ ja ohjelmistoversioiden kanssa.

Hei,

Bluetooth toimii honorissakin taustalla, koska bluetooth kuulokkeet toimivat vaikka puhelin on nÀyttö pimeÀnÀ. NÀin oletan. Ruuvi station ei kuitenkaan kerÀÀ dataa taustalla.
Uudemmassa oneplus puhelimessa (android 12), ruuvi station sovellus toimii myös taustalla, ilman ongelmia. On nÀmÀ melkoisia kapuloita.

ruuvipertti responded to Marko:
Thanks for the advice. I have adjusted these, but they have not helped.
I also tried installing an older program version from ruuvi, but that didn’t help either.
Now I can’t find out whether the ruuvi application or the bluetooth connection is falling asleep.
I think I’ll try to use a newer phone.

Lauri added:
Samsung phones (and some others) had, for example, a lot of bad problems with Bluetooth in the summer, which took phone manufacturers months (or almost 6 months) to fix. Quite often, problems are caused by phone updates, which in turn break applications. Especially with older phones, there will be challenges with newer operating systems and software versions.

ruuvipertti replied
Bluetooth works even in the background, because bluetooth headphones work even if the phone’s screen is dark. I assume so. However, Ruuvi station does not collect data in the background.
On a newer oneplus phone (android 12), the ruuvi station application also works in the background, without problems. These are quite a bunch.