Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto power off after external power disconnected #56

Open
gorzynsk opened this issue Jan 3, 2024 · 12 comments
Open

Auto power off after external power disconnected #56

gorzynsk opened this issue Jan 3, 2024 · 12 comments

Comments

@gorzynsk
Copy link

gorzynsk commented Jan 3, 2024

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
Copy link
Owner

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
Copy link
Author

gorzynsk commented Jan 4, 2024

Yes, exactly.

@richonguzman
Copy link
Owner

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

@gorzynsk
Copy link
Author

gorzynsk commented Jan 4, 2024 via email

@richonguzman
Copy link
Owner

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
Copy link
Author

gorzynsk commented Jan 8, 2024 via email

@richonguzman
Copy link
Owner

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
Copy link
Author

gorzynsk commented Jan 10, 2024 via email

@richonguzman
Copy link
Owner

So , what you propose:

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

@gorzynsk
Copy link
Author

gorzynsk commented Jan 12, 2024 via email

@valentintintin
Copy link
Collaborator

valentintintin commented Mar 22, 2024

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

  • When board powered via USB : normal operation
  • When powered via Battery :
  • 1 : if moving, normal operation
  • 2 : if standing for X minutes (set in JSON), power off for an amount of time (set in JSON), at wake up reboot etc
  • Interrupt when USB is connected to wake up without waiting for the sleep time out

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants