Bangle.js 2 - Barometer always 0 [Solved] #6557
Replies: 1 comment
-
Posted at 2022-03-04 by malaire I can't reproduce that. For example following code gives correct results for me with Bangle.js 2 and 2v12.89
Posted at 2022-03-04 by Indridi Hi,
Could the sensor have gotten damaged? Just 2 days ago, the barometer was working, and matching wonderfully with the local met office readings. Posted at 2022-03-05 by Indridi I tried a firmware reset, to rule out that something I have installed was causing this. No change. Then I tried completely draining the battery (I understand that at least some of the components on the board always have electricity, unless the battery is dead). Leaving the GPS on for a night makes sure everything is thoroughly dead. After charging, barometer works again! Possibly related to this: I was working on some code that powers up the barometer, makes a reading and powers it down again every X minutes. Some logic that re-tries if the barometer returns 0 or Indriði Posted at 2022-03-07 by @gfwilliams Glad you got it sorted! It's a surprise you could completely confuse it though. Just so you know, Posted at 2022-07-27 by user147320 Thank you! My cause may be similar, although i did not try power-cycling it myself.
and i call it every minute by
which seems to confuse the sensor. Posted at 2022-07-29 by user147320 It happened again and now i am relatively certain it is not only my code, unless i understood something fundamentally wrong.
and it still happened. My best guess is, that it is a problem that my clock-face and the recorder access the pressure at the same time, but i currently do not know how to verify or circumvent this except never displaying the pressure or temperature while the recorder records it. Furthermore keeping the clock powered off for a while does not help, is there any other way to reset the sensors except draining the battery (which i am afraid will damage the battery)? Posted at 2022-08-01 by @gfwilliams Does this happen all the time, or is it just occasional calls that give you bad readings? You could try calling What firmware version do you have? I did make some improvements to setBarometerPower in a recent build, so if you try one of the
I'm afraid not - the sensors should be reset via software normally, but if the hardware has got 'locked up' then draining battery is the only way. I wouldn't worry about damage to the battery though - if only done a few times it's unlikely to be an issue - I let watches run flat here all the time and never have problems. However it's extremely rate hardware gets locked up - if something like this happens routinely then it's unlikely to be a 'hardware lockup' that is the issue Posted at 2022-08-01 by user147320
When it happened every reading before a reboot returned the last valid values, every reading after a reboot returned a 0 for temperature and pressure. Every single reading until the battery was flat.
I use 2.14. I was not aware of 2.14.149 and will try it out.
I know that Recorder accesses the Barometer in the background.
I cannot think of another explanaition since rebooting and powering off for a few minutes did not help and Indridi found that a firmware reset did not help either. Posted at 2022-08-03 by user147320 In two days on 2.14.149 i had no problems with wrong readings, so that may have solved it Posted at 2023-06-20 by user155800 Hi folks! The pressure was working as soon as it arrived (and I started installing the first apps). Tryed factory reset, power off but nothing... Same as above... I'm now trying draining battery with GPS during night, as suggested by Indridi. My only concern is that the firmware is much newer than the one that was creating the problem to the other friends above...I'm worried about HW problems but let's see tomorrow morning... Keep you posted, mates! Alessandro Posted at 2023-06-21 by user140377 Also happens from time to time to me. You can try the attached file, install it as baroreset.settings.js from the IDE and go to settings->applications->baroreset. Use at your own risk. Attachments: Posted at 2023-06-21 by d3nd3-o0 Is this bug only occuring to those who have the SPL07_001 sensor? Posted at 2023-06-21 by d3nd3-o0
Posted at 2023-06-21 by @gfwilliams @user155800 sorry to hear this - I thought the issue was solved! If draining it doesn't fix it, it'd be worth trying that I think it's quite unlikely the barometer would have a hardware failure if it was working originally. Posted at 2023-06-21 by user155800 Hi mates! I'm so glad to announce that, after the switch on, this morning, the barometer was perfectly working! Anyway, to prevent future conditions like this, I'll for sure install, in advance, the app posted by user140377 (btw. thanks again!). Really glad to be part of such an active community (and thanks Gordon to have created it!!). Wish you all a wonderful night. Alessandro Posted at 2023-06-22 by @gfwilliams Great - glad that fixed it! Please let me know if this is a common occurrence, and maybe there's something we can do in the firmware to fix it Posted at 2023-06-23 by user155800 I'll keep you posted for sure, Gordon. Posted at 2023-08-17 by user156258 I got a Bangle.js 2 earlier this week, and (after upgrading to the 2.18 firmware within the first hour or so I had it) so far the barometer has apparently stopped returning readings once yesterday and twice this morning; the baroreset script has worked every time. Honestly, I'm probably going to switch back to a Pebble as soon as my replacement arrives in the next week or so, but could help with troubleshooting in the near-term future. Posted at 2023-08-18 by user155800 Hi mates, sorry for haven't provided updates and thanks to user156258 for the trigger. After that, everything is working great! Alessandro Posted at 2023-08-29 by user140377 Now also as bootloader script.. Attachments: Posted at 2023-11-09 by @gfwilliams There's been an issue filed about this: espruino/BangleApps#3086 Just to let you know I have now fixed this in a firmware update - the sensor is now automatically reset each time it is powered on. It's in cutting edge builds, or in 2v20 when that gets released Posted at 2023-11-09 by user140377 testing bleeding edge built...will report if errors comes back. I have seen this error a few weeks ago two times in a row, it is not easy to reproduce. Posted at 2024-01-13 by user140377 FyI: Have not seen the issue with the new firmware version until today. Seems to be fixed, thank you. Posted at 2024-01-13 by d3nd3-o0 @user140377 Can you test it? I am curious, also its great coincidence that you revived this thread on the same day i raise that issue. If unrelated. :P |
Beta Was this translation helpful? Give feedback.
-
Posted at 2022-03-04 by Indridi
Hi,
I'm fiddling with the barometer on Bangle.js 2.
On the releases 2v12, I had the issue that the first sample was always undefined (but fine after that). On 2v12.70, everything seemed to be ok, also the first sample. Then, for no good reason, I updated to 2v12.89, and now all calls to the barometer return 0 (also for temperature and altitude).
I can't figure out which git commit Id corresponds to 2v12.70, so I can't go back to verify that everything works there still. But in the IDE, I can confirm that the barometer is on, and that this is reproducible.
Greetings
Indriði
Beta Was this translation helpful? Give feedback.
All reactions