-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|107|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-




spinal

QOTD - August 2023

19th August 2023

A good few years back, I sent out loads of job applications with a cover letter starting ''Dear Sir / Mad man'' and I wondered why it took so ling to get a job.


spinal

SpinalWatch

19th August 2023

It's weird, I would manually force the buffer and the copy to be different, but then it would only decide that where I'd put the text was different and the background wouldn't be.
I was calling clearSceeenBuffer() in my setup, so I'd expec*snip*


spinal

SpinalWatch

18th August 2023

Added the screen functions back, reverted to the original 'send full screen' rather than only the dirty lines, for some weird reason it isnt dirtying the lines properly and I can't be bothered to find out why.


spinal

Best way to clone a Windows install?

18th August 2023

socoder.net
Macrium Reflect trial version worked for me. I think you can even tell it that your'e using an SSD so wit will set the sector sizes correctly etc.


spinal

SpinalWatch

18th August 2023

So far so good. I've started adding the screen functions back and it's not crashed yet. Ble is still working, slightly slower for some reason, although the power saving 'deep sleep' seems to be working fine and not killing the Ble like it d*snip*


spinal

QOTD - August 2023

18th August 2023

My swimming was never great, I can 'not drown' quite well, but actual 'swimming'...!


spinal

SpinalWatch

18th August 2023

OK, Started from scratch, First I got the BLE code working and connecting, no problems yet.
Then I added all of the power saving code, one item at a time and still working (power at 1.9mA).
Left it running for a while, no crashing, sent multiple notifica*snip*


spinal

UFOlogy

17th August 2023

Well, that seems to have blown over already.


spinal

SpinalWatch

16th August 2023

However, I did just notice that I wasn't freeing some pointers after use, perhaps that's what was causing the random crashes....


spinal

SpinalWatch

16th August 2023

Reverting back to version 1, just before switching to gadgetbridge for the notifications.
First I'll get it to connect, then accept the time etc. and go from there again.


spinal

SpinalWatch

15th August 2023

bah, it's crashing more than ever now.
Time to start over.


spinal

SpinalWatch

15th August 2023

[code]
inline void drawPixel(int x, int y, uint8_t color){
if(x<0 || y<0 || x>=WIDTH || y>=HEIGHT) return;
uint16_t x8 = x>>3;
if(color > 1){
color = GreyPattern[(x&1)+2*(y&1)];
}
if (color){
sBuff[x8 *snip*


spinal

SpinalWatch

15th August 2023

[quote]Well, if that's workable. Might be tricky overnight, though.[/quote]
If I remove all the power saving code, then it only gets a couple of hours battery, especially if I stick a couple of LED's on there also.


spinal

SpinalWatch

14th August 2023

Got a work around, I'll have to check it every half hour though and copy+paste into a doc. ¯\\_(ツ)_/¯


spinal

SpinalWatch

14th August 2023

Searching for random ble uart apps on the play store that can log the incomming data and save it. so far nothing working.


spinal

SpinalWatch

14th August 2023

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 res*snip*


spinal

SpinalWatch

14th August 2023

I don't think so, which is what makes it odd :-P


spinal

SpinalWatch

14th August 2023

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.


spinal

SpinalWatch

13th August 2023

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.


spinal

SpinalWatch

13th August 2023

Nope, randomly crashed again... grrrr


spinal

QOTD - August 2023

13th August 2023

1 real pair
3 trainers (1 proper trainers, 2 baseball boots)
2 slippers


spinal

Windows Password Woes

13th August 2023

I tell you whats slightly more infuruating than windows not accepting your correct passsword...
[spoiler]
Apple not letting you reset your security questions, but more than happy to reset your password.
Then you can't log in on a new device because*snip*


spinal

SpinalWatch

13th August 2023

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*snip*


spinal

SpinalWatch

12th August 2023

OK, the problem boils down to sleeping 'too long' I need to find a balance between power usage and not crashing :-P
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,*snip*


spinal

SpinalWatch

12th August 2023

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...
[code]
void getMessages(){
bleSerial.poll();
while (bleSerial.availableLines() > 0) {
ch*snip*

Newer Posts More - Older Posts