123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|739|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> Off Topic -> SpinalWatch

Page : 1 2 3 4 5 6 7 Prev 8 9 Next 10
Fri, 11 Aug 2023, 13:42
spinal
Not a clue
Fri, 11 Aug 2023, 14:06
spinal
Changed sprinf to snprinf when reading the notifications, should prevent an overflows with incomming text.

-=-=-
Check out my excellent homepage!
Sat, 12 Aug 2023, 07:05
spinal
Didn't help, this time it crashed after maybe 12 hours?

Added a RAM counter...



Starts with the max amount of expected free RAM, and tries to malloc some space, counting doen in 256 byte increments until its possible. Quite slow, but might reveal something. I'm outputting the free RAM under the time.

Currently after first starting the device, I get 127232 bytes free. I'll have a look in a few hours, see if that's any different.

-=-=-
Check out my excellent homepage!
Sat, 12 Aug 2023, 09:56
spinal
Ok, just checked, same free memory, so it's probably not a leak that I've caused. However, I sent a test notification and it froze.
So I might definitely be something to do with either receiving ble data or handling the received data.


...closer...

-=-=-
Check out my excellent homepage!
Sat, 12 Aug 2023, 09:57
Jayenkai
Bit by bit!!
Sat, 12 Aug 2023, 10:05
Kuron
hmm 12 hours is a good run. That long, a small memory leak would be my guess. Will be interesting to see what you find.
Sat, 12 Aug 2023, 14:26
spinal
OK, about to set off the next test. Leaving in the ble library and allowing it to accept messages, but I am remobing all of my 'do something' regarding messages.
Lest see if it's my fault or not.

-=-=-
Check out my excellent homepage!
Sat, 12 Aug 2023, 14:35
Jayenkai
*fingers crossed*
Sat, 12 Aug 2023, 15:14
Kuron
What is the over under on it being Spinal's fault?

I have faith in Spinal, it is not his fault. Glitch in the library he will have to fix.
Sat, 12 Aug 2023, 15:32
spinal
OK, after leaving it running a while, removing an y code that 'does anything' with the received messages, so my function now looks like this...



Sent it a test notification from my phone and.....

> Reveal 🔎

-=-=-
Check out my excellent homepage!
Sat, 12 Aug 2023, 16:55
spinal
OK, the problem boils down to sleeping 'too long' I need to find a balance between power usage and not crashing

If I sleep for about 2/3 of a second, the power usage is about 2mA, I 'll continue testing tomorrow, or in the future at least, to see if that is short enough sleep time to not kill whatever is dying.

-=-=-
Check out my excellent homepage!
Sat, 12 Aug 2023, 17:07
Jayenkai
Hmm..
Maybe have it do bursts..?
Sleep for 3/4 a second, then be active for 1/4 a second, that kind of thing.
So that if something happens, it has 1/4 second to deal with it..

-=-=-
''Load, Next List!''
Sun, 13 Aug 2023, 01:38
spinal
OK, just checked today, and it's still responding. I'll leave it at that. I can't be bothered to research if ble needs to keep in contact constantly, or if I could get away with completely stopping and restarting it once a second etc. the power saving wouldn;t be worth it. 1.8mA vs 2mA wouldn't result is much extra time.

Now to spend the day doing something else, without any progress

|edit|
I really need to come up with a way to log the battery reading so I can estimate percentage. I wonder if I can use the gadgetbridge debug log to do that...

-=-=-
Check out my excellent homepage!
Sun, 13 Aug 2023, 03:33
Jayenkai
\O/yeay\o/
Sun, 13 Aug 2023, 06:26
spinal
Nope, randomly crashed again... grrrr
Sun, 13 Aug 2023, 06:58
Kuron
Damn.
Sun, 13 Aug 2023, 08:31
spinal
tried a different test now, see if that changes anything.

|edit|

OK, switching of all power saving attempts and sending the battery reading every minute until it dies.
Shouldn't take more than a couple of hours to track battery percentage.

-=-=-
Check out my excellent homepage!
Sun, 13 Aug 2023, 12:01
Kuron
Apple's ski goggles have a battery pack to strap to the waist. So you do have some wiggle room when it comes to acceptable battery size nowadays.

Back around '84 I had a watch that was a B&W TV screen. Tiny little thing and it had a long cable and a tuner/battery pack that went around your waist. Apple is taking us back to those days.
Mon, 14 Aug 2023, 01:31
spinal
bugger, after being on all night, it's stil running and reporting the battery value but.... it's lost 10 hours somewhere!

Time to restart and this time, send the time that it thinks it is as well as the battery level.

-=-=-
Check out my excellent homepage!
Mon, 14 Aug 2023, 02:37
Jayenkai
10 hours?!

.. Was it even on that long!?!
Mon, 14 Aug 2023, 03:34
spinal
I don't think so, which is what makes it odd

-=-=-
Check out my excellent homepage!
Mon, 14 Aug 2023, 06:45
Kuron
So... A watch that takes you ten hours in the past... Spinal has invented a time machine!
Mon, 14 Aug 2023, 11:24
spinal
Well, that's a day wasted.

After loggin the battery, current time, start time etc to the gadgetbridge app, once the watch lost power, I went to 'capture' the log (the app just dumps the log to a file at that point) and the thing wasn't responding. Not only that, it refust to respond until I reconnected the watch (by simply powering it on) at that point guess what.... Because the watch had re-connected the log was f*cking empty, nothing had happened!!!!!

All day wasted.

-=-=-
Check out my excellent homepage!
Mon, 14 Aug 2023, 11:44
Kuron
Damn.
Mon, 14 Aug 2023, 13:36
spinal
Searching for random ble uart apps on the play store that can log the incomming data and save it. so far nothing working.

-=-=-
Check out my excellent homepage!
Mon, 14 Aug 2023, 13:48
Kuron
Have you checked the flux capacitor?
Page : 1 2 3 4 5 6 7 Prev 8 9 Next 10