Skip to content

Pico W, RF antenna off with sleep? #7

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

Open
UsuallyErrored opened this issue Aug 29, 2022 · 1 comment
Open

Pico W, RF antenna off with sleep? #7

UsuallyErrored opened this issue Aug 29, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@UsuallyErrored
Copy link

I've used both picosleep on a non-w pico for awhile now, works great! But I'm running into an issue with the pico w. If you start up the wifi:

wlan = network.WLAN(network.STA_IF)
wlan.active(True)

Past this point I believe there is currently no way to turn off the pico W RF antenna.

wlan.disconnect()
wlan.active(False)

Does nothing. After starting wifi, that 1.5mA during sleep jumps to 2.2mA during machine.lightsleep() and picosleep(). No it's not insane, but if I could get mA back down to 1.5, I could gain 20 days of usage.

I don't know if people make use of keeping the rf on during sleep periods. Id assume if one is truly chasing efficency theyd want to have their current draw during sleep periods be as low as possible, and then restart the antenna after. I figure this is a nice way to make picosleep more useful then machine.lightsleep. I really don't know how hard this would be to implement, but I figure I'd bring it to your attention.

Thanks

@UsuallyErrored UsuallyErrored added the enhancement New feature or request label Aug 29, 2022
@julianoes
Copy link

I'm trying the same thing but for me the WLAN connection only works once, or sometimes twice, then everything just turns unresponsive. Have you seen that before?

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

No branches or pull requests

2 participants