Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

Netduino 3 Wifi

Disable WiFi

  • Please log in to reply
8 replies to this topic

#1 Rossi

Rossi

    Member

  • Members
  • PipPip
  • 10 posts

Posted 29 June 2015 - 02:40 PM

Hi Sir,

can I disable wifi programmatically?

 

Regards

 

 

Alex



#2 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 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

#3 Nevyn

Nevyn

    Advanced Member

  • Members
  • PipPipPip
  • 1072 posts
  • LocationNorth Yorkshire, UK

Posted 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


#4 Roy Salisbury

Roy Salisbury

    Advanced Member

  • Members
  • PipPipPip
  • 32 posts

Posted 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

 

 



#5 Rossi

Rossi

    Member

  • Members
  • PipPip
  • 10 posts

Posted 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



#6 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 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

#7 Rossi

Rossi

    Member

  • Members
  • PipPip
  • 10 posts

Posted 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



#8 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 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

#9 Rossi

Rossi

    Member

  • Members
  • PipPip
  • 10 posts

Posted 02 July 2015 - 07:59 PM

Hi Chris,
unfortunately unable to send the board in sleep mode Netduino not be used in my projects.
I can use only battery pack.

 

 

 

Thanks

 

Alex






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.