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

Page : 1 2 3 4 Prev 5 6 Next 7 8 9 10
Wed, 26 Jul 2023, 05:32
Jayenkai
Oh, ok.. One Derp-point for me!
Wed, 26 Jul 2023, 09:41
spinal
OK, first attempt to get somewhere...



Set up every service that the ArduinoBLE library supports, start them all up and see if anything happens when gadgetbridge tries to send a notification...


Nope, nothing... It doesn't use those then.






A bit more digging, gadgetbridge apparently uses UART, so standard-ish serial streams, something that BLE was not intended to use, but.... there's a libary https://github.com/Uberi/Arduino-HardwareBLESerial

Lets try those examples and see if anything happens.

-=-=-
Check out my excellent homepage!
Wed, 26 Jul 2023, 09:48
Jayenkai
Good luck! That looks crazy!
Wed, 26 Jul 2023, 10:44
spinal
AHA!!



Can't seem to send messages back though, keep getting an error about malformed messages, but it doesn't 'keep' the error nor does it fit in the message box that pops up, so I can't tell what's wrong to fix it.
However, successful attemp to set the time on the watch by gadgetbridge.

-=-=-
Check out my excellent homepage!
Wed, 26 Jul 2023, 11:03
Jayenkai
Woohoo!
Wed, 26 Jul 2023, 11:04
spinal
Turns out it needs a full stop at the end...



There doesn't seem to be much I'd need to tell the app, but it looks like dismissing notifications or calls will be possible.

-=-=-
Check out my excellent homepage!
Wed, 26 Jul 2023, 11:20
Jayenkai
That sounds handy!
Wed, 26 Jul 2023, 12:19
Kuron
However, successful attemp to set the time on the watch by gadgetbridge.

WooHoo!!!
Thu, 27 Jul 2023, 01:47
spinal
hmmmm, the low power mode stops the BLE from working.... that's not helpful.

-=-=-
Check out my excellent homepage!
Thu, 27 Jul 2023, 04:23
spinal
Hmm, I seem to have killed the BLE chip
that's the problem with all these wires and things, once accidental short and the important part fries.

|edit| false alarm. For some reason multiple arduino bluetooth sketches just didn't work.
Now they all do again. go figure.

-=-=-
Check out my excellent homepage!
Thu, 27 Jul 2023, 05:07
Jayenkai
*phew*

Might be a good idea to take photos after every tweak, so you can backtrack if need be.

-=-=-
''Load, Next List!''
Sat, 29 Jul 2023, 04:45
spinal
Added the arduino code to my github, I'll do that now and then.

https://github.com/spinalcode/spnlwtch

Having a lot of trouble adding power saving features. There are 2 versions of the board manager for arduino, one works for the BLE serial code and not anything timer based, including under clocking. The other apparently works for timers but not the BLE serial code

As it stands, reading the amps being pulled from the battery, it might ba capable fo around 2 days on a single charge. I was hoping for a lot longer since the sales page for the board says it can run on aboue 3 milliamps and I'm using about twice that.

-=-=-
Check out my excellent homepage!
Sat, 29 Jul 2023, 08:03
Kuron
Based on this thread, I need to mosey over to adafruit. I was able to bring my Meggy Jr RGB I bought and built from them, but sadly had to leave behind my Fuzebox I bought and built from them. Based on Spinal's latest toy, he has my interest up.
Sat, 29 Jul 2023, 15:13
spinal
Instead of using a new timer to watch for changes in milliseconds and adding to the current time that way, I've switched to calculating the current time from millis();
As gadgetbridge give the current time at setup (unix timestamp) and I need to convert from that anyway, why not just bring millis() into it and recalculate when rendering the screen... very mino saving on power, might get an extra few minutes out of the battery.

-=-=-
Check out my excellent homepage!
Sun, 30 Jul 2023, 02:52
spinal
Realtime battery test, little over a day.

Not great for a watch...

-=-=-
Check out my excellent homepage!
Sun, 30 Jul 2023, 02:55
Jayenkai
I dunno, sounds better than a lot of modern day watches I've heard about lately, and you've got off-the-shelf components, not like a super-optimised battery, or anything.
I'd say a day's pretty good.

-=-=-
''Load, Next List!''
Sun, 30 Jul 2023, 02:58
Jayenkai
Additional thought. What happens if you hook it up to the phone via USB? Will it charge?! And how long would it take to recharge that way?! And thinking ahead, could you maybe integrate a small connector into the strap somehow?!!

-=-=-
''Load, Next List!''
Sun, 30 Jul 2023, 03:07
spinal
The charge reate is 100mA, the battery I'm using is 170mAh so should be under 2 hours to charge fully.

-=-=-
Check out my excellent homepage!
Sun, 30 Jul 2023, 03:09
Jayenkai
Aw, I was hoping it could do a super-fast charge if sat beside the phone for a few minutes. Aw well, never mind.

-=-=-
''Load, Next List!''
Sun, 30 Jul 2023, 08:42
Kuron
Spinal will come up with something like the self-winding watches. Little generator to charge it as you wear it and your arm is moving.
Tue, 01 Aug 2023, 15:57
spinal
Slightly satisfying....




-=-=-
Check out my excellent homepage!
Tue, 01 Aug 2023, 16:12
Jayenkai
Woohoo!
Is that an actual text message, or is that pre-programmed test?

-=-=-
''Load, Next List!''
Tue, 01 Aug 2023, 19:54
Kuron
Badass!
Tue, 01 Aug 2023, 21:59
cyangames
Awesome!
Wed, 02 Aug 2023, 00:02
spinal
Actual text message!
Wed, 02 Aug 2023, 00:06
Kuron
Spinal Rocks!!
Page : 1 2 3 4 Prev 5 6 Next 7 8 9 10