Hi Sir,
can I disable wifi programmatically?
Regards
Alex
  | ||||||||||||||
8 replies to this topic
#1Posted 29 June 2015 - 02:40 PM Hi Sir, can I disable wifi programmatically?
Regards
Alex #2Posted 30 June 2015 - 06:48 PM
Hi Alex,
Netduino 3 Wi-Fi hardware supports disabling Wi-Fi...but there's no software support for that quite yet. Potential workaround: if you wanted to use reflection to snag the /CC_HIB OutputPort reference from the CC3100 driver, you could drive the pin low to put the Wi-Fi chip in hibernate mode. We are also currently working on a special "debug build" of the Netduino 3 firmware which doesn't include the network drivers by default... Once that is out, you could use that build and easily disable the Wi-Fi radio...but in full disclosure that debug build isn't really designed to be continually updated to the latest-and-greatest firmware. Chris #3Posted 30 June 2015 - 08:31 PM Sounds like this is actually an interesting use case. I can imagine a scenario where you take a reading say once per hour, wake up the WiFi, send the data and then turn the WiFi off again. Makes sense in a low power scenario.
Regards, Mark To be or not to be = 0xFF
Blogging about Netduino, .NET, STM8S and STM32 and generally waffling on about life Follow @nevynuk on Twitter #4Posted 01 July 2015 - 01:20 AM I asked this about a week ago and posted my results with trying to put the device into hibernate mode. Long story short .. if your doing it for power savings, it does not gain anything (or does not work).
http://forums.netdui...ifi-power-down/
Roy
#5Posted 02 July 2015 - 08:22 AM Hi Chris, I want use net duino in this scenario: read data once per day, wake up the WiFi, send the data and then turn the WiFi off. I have low power in my battery pack.
If it is not possible, I must look another product.
Alex #6Posted 02 July 2015 - 09:03 AM
Hi Alex,
What is the capacity of your battery pack? How are you waking up the device? By using Thread.Sleep to wait for ~24 hours? Chris #7Posted 02 July 2015 - 09:27 AM Hi Chris, my battery pack is 2000/mA,and yes,I use Thread.Sleep
P.S. How I can Disable WIFI LED and Withe Led on the board?
Alex #8Posted 02 July 2015 - 06:25 PM
Hi Alex,
The stock NETMF firmware keeps the MCU in wake mode due to the USB debugging functionality, so there's currently no way to put the board in deep sleep. This is something that could potentially be added (with a debug detect switch) in a custom or future firmware release. [There is some infrastructure there in NETMF--with PowerState.] The Wi-Fi LED and power LEDs can be turned off by setting them to a low level. The respective pins are PC13 [(Cpu.Pin)0x2D] for the power LED, PC9 [(Cpu.Pin)0x29] for the link (green) LED and PA8 [(Cpu.Pin)0x08] for the state (amber) LED. Here's a copy of the board schematic: http://www.netduino....i_schematic.pdf Chris #9Posted 02 July 2015 - 07:59 PM Hi Chris,
Thanks
Alex 0 user(s) are reading this topic0 members, 0 guests, 0 anonymous users | ||||||||||||||
|
||||||||||||||
This webpage is licensed under a Creative Commons Attribution-ShareAlike License. | ||||||||||||||