richonguzman / LoRa_APRS_Tracker

LoRa APRS Tracker with Tx and Rx capabilities, Messages, Wx, Winlink and more...
MIT License
168 stars 45 forks source link

Auto power off after external power disconnected #56

Open gorzynsk opened 6 months ago

gorzynsk commented 6 months ago

It would be great if tracker sends position on external power off and shut downs.

Scenario: install it in a car, autostart on turning the key on. Then after parking send position od turning key off and clean shutdown.

richonguzman commented 6 months ago

Hi

Do you mean to create a "car" mode that when usb power is provided it turns on and works as usual , and when car turns off (and usb is off) it sends a "power off " beacon and do a clean shutoff procedure?

gorzynsk commented 6 months ago

Yes, exactly.

richonguzman commented 6 months ago

But what would be the difference than using it without 18650 battery and shutting it off when the car is off ?

gorzynsk commented 6 months ago

The difference would be in last report with speed 0 km/h and exact parking spot.

czw., 4 sty 2024, 14:42 użytkownik Ricardo Guzman (Richonguzman) < @.***> napisał:

But what would be the difference than using it without 18650 battery and shutting it off when the car is off ?

— Reply to this email directly, view it on GitHub https://github.com/richonguzman/LoRa_APRS_Tracker/issues/56#issuecomment-1877115344, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA6CBLQWEY6SZQZWCV74SEDYM2WVLAVCNFSM6AAAAABBL477KKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZXGEYTKMZUGQ . You are receiving this because you authored the thread.Message ID: @.***>

richonguzman commented 6 months ago

aha! now I get it, you want the last spot to be where you leave the Car/bike

what about just pushing the middle button to force Tx beacon ? or do you want a menu to save it as Last position and turn off automatic?

Are we always talking about T-Beams? as other boards won't allow for "turning off" from software command

gorzynsk commented 5 months ago

Well, if the tracker would send a position at a parking spot automatically I would mount it fixed in the car and react only if a message arrives. I cannot trust myself to push a button each time (-: I'm so absentminded that I forget to take the tracker from my car and it drains battery in my garage.

A... and yes - t-beams are most common as trackers here. The ones without GPS and battery are used as digi/i-gate.

czw., 4 sty 2024 o 22:13 Ricardo Guzman (Richonguzman) < @.***> napisał(a):

aha! now I get it, you want the last spot to be where you leave the Car/bike

what about just pushing the middle button to force Tx beacon ? or do you want a menu to save it as Last position and turn off automatic?

Are we always talking about T-Beams? as other boards won't allow for "turning off" from software command

— Reply to this email directly, view it on GitHub https://github.com/richonguzman/LoRa_APRS_Tracker/issues/56#issuecomment-1877767826, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA6CBLQ7Y2EGEPXYPCYJ4ODYM4LQVAVCNFSM6AAAAABBL477KKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZXG43DOOBSGY . You are receiving this because you authored the thread.Message ID: @.***>

richonguzman commented 5 months ago

maybe this?

if the tracker have not moved for 15min , it would send a beacon and turn itself off ?

or turn itself off after 3 or 4 not moving positions (at 15 min between beacons)?

gorzynsk commented 5 months ago

Yes, it makes sense.

pon., 8 sty 2024 o 11:50 Ricardo Guzman (Richonguzman) < @.***> napisał(a):

maybe this?

if the tracker have not moved for 15min , it would send a beacon and turn itself off ?

or turn itself off after 3 or 4 not moving positions (at 15 min between beacons)?

— Reply to this email directly, view it on GitHub https://github.com/richonguzman/LoRa_APRS_Tracker/issues/56#issuecomment-1880769824, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA6CBLSLYKGZYC3HGUWZ4PLYNPFQJAVCNFSM6AAAAABBL477KKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBQG43DSOBSGQ . You are receiving this because you authored the thread.Message ID: @.***>

richonguzman commented 5 months ago

So , what you propose:

Add a mode to turn itself off if not moving for 15 min?

gorzynsk commented 5 months ago

Still the best user experience would be to send a beacon after power is removed from USB port and turn off. Of course there may be a way to turn that feature on and off.

Best regards Kuba

śr., 10 sty 2024 o 13:55 Ricardo Guzman (Richonguzman) < @.***> napisał(a):

So , what you propose:

Add a mode to turn itself off if not moving for 15 min?

— Reply to this email directly, view it on GitHub https://github.com/richonguzman/LoRa_APRS_Tracker/issues/56#issuecomment-1884800502, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA6CBLRVRECR45QONAK2EN3YN2FVTAVCNFSM6AAAAABBL477KKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBUHAYDANJQGI . You are receiving this because you authored the thread.Message ID: @.***>

valentintintin commented 3 months ago

Well, nice feature that I was coding on my side here : https://github.com/richonguzman/LoRa_APRS_Tracker/tree/issue_56_auto_power_off

In this case, I can leave the tracker in place, I can check the position of my car without thinking about the battery, switch it on etc

Michael-AUG commented 1 month ago

I've just seen that this is the feature I was asking for, so I'll +1 this request and delete mine. Thanks :)