SOTAmat / SOTAcat

CAT control for Elecraft KX radios and SOTAMAT
https://sotamat.com
Other
9 stars 2 forks source link

create option for disable deep-sleep #32

Closed jeffkowalski closed 3 months ago

jeffkowalski commented 4 months ago

Perhaps deep-sleep is not useful when connected to certain SSIDs, like the home network, where it may be presumed the SOTAcat is plugged in to charge.

We offer this in advance of truly detecting charging state via hardware input. Meanwhile, it's useful for debugging.

poynting commented 4 months ago

I think staying alive when connected to certain APs is a good option.

I also have USB charge detection working. I just put a voltage divider on the 5V rail and use GPIO3 to read it. In the idle task, if the GPIO is high, I keep blinks at 1 (but we could just as easily reset the user action time). I'll certainly be adding this USB detect feature to my next revision hardware, so I think it's good to consider both as complimentary approaches.

jeffkowalski commented 4 months ago

Excellent. I'm eager to get my hands on your next-gen implementation, even if it's a breadboard schematic. It's the future. And - off topic - we should find a time to hike and wrestle this stuff.

poynting commented 4 months ago

I'm almost there, I just wanted to get some of these hanging chads tested on real hardware before I commit the changes to fab. You're on the list to get some beta hardware, hopefully shipping next week. I'm in the bay area somewhat regularly, so we'll have to connect next time I'm down that way.

jeffkowalski commented 3 months ago

The disabling is implemented in a different, but equally effective way in 291d80bfc8abe82192830115ed9175bd09b1c3ff: when battery > 80% (i.e. charged and still plugged in).