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

Save Custom Settings


  • Please log in to reply
53 replies to this topic

#41 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 20 June 2011 - 06:32 AM

If EnableStaticIP writes to flash, will each call to it write, or only if changed? Reason I ask is because I call EnableStaticIP in the NetworkAvailabilityChanged handler, and when a socket exception occurs.

Is this a bad idea? If so, what should be in the NetworkAvailabilityChanged handler?

I would recommend changing the IP settings only when they need changing. It's best to assume that changing the IP configuration will write to the setting sector in flash.

Chris

#42 ColinR

ColinR

    Advanced Member

  • Members
  • PipPipPip
  • 142 posts
  • LocationCape Town, South Africa

Posted 20 June 2011 - 06:49 AM

I would recommend changing the IP settings only when they need changing.


OK, what code should go into the NetworkAvailabilityChanged handler?

#43 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 20 June 2011 - 01:07 PM

OK, what code should go into the NetworkAvailabilityChanged handler?

Are you using a Static IP or DHCP?

If you're using a Static IP, you shouldn't need to do anything in the NetworkAvailabilityChanged handler. And actually, same goes for DHCP--it _should_ automatically get an address.

If these are not happening properly in the latest .NET MF 4.2 beta, then we should file a bug report on netmf.codeplex.com. Now's the perfect time to fix bugs in the NETMF lwIP implementation...before NETMF 4.2 goes gold.

Chris

#44 FrankVDL

FrankVDL

    New Member

  • Members
  • Pip
  • 2 posts

Posted 13 November 2011 - 03:07 PM

Okay, option #3 sounds like a possible winner :)

We'll dig into it and make sure we're not exposing any nasty "gotchas". The space is very limited, and some of it is already taken (by the USB name, networking, etc.). My biggest worry is what would happen if the data were written only partially before a reset...and then the device might not be able to boot. Since the whole sector might have to be re-written all at once.

We'll dig into it. I'll post more when I have some good info...

Chris

Chris,

Any progress on this ?

Frank.

#45 Charles

Charles

    Advanced Member

  • Members
  • PipPipPip
  • 192 posts

Posted 14 November 2011 - 05:37 AM

I would recommend changing the IP settings only when they need changing. It's best to assume that changing the IP configuration will write to the setting sector in flash.

Chris


Ouch!!!! Writing the IP address to flash with every call is a nasty side effect for that subroutine - I have been calling it in a function that runs every single time my test N+ boots! I wonder how many writes I have left in the config block??? I wonder how many other people are burning up there N+'s by not knowing that?

Seriously - There needs to be an optional Boolean parameter added to that function that tells it to just change the IP, not write it to the config sector. Even better, make it so you HAVE to tell it to write the new IP into flash before it does!

#46 Charles

Charles

    Advanced Member

  • Members
  • PipPipPip
  • 192 posts

Posted 18 November 2011 - 04:06 AM

No comments?

#47 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 18 November 2011 - 04:13 AM

Hi Frank,

Any progress on this ?

We're looking at implementing a wrapper around the new simple storage feature in .NET MF 4.2.

Chris

#48 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 18 November 2011 - 04:15 AM

Hi Charles,

Seriously - There needs to be an optional Boolean parameter added to that function that tells it to just change the IP, not write it to the config sector. Even better, make it so you HAVE to tell it to write the new IP into flash before it does!

This might be a good recommendation to make for the .NET Micro Framework "vNext". Could you post a feature request for this at netmf.codeplex.com?

Chris

#49 mboRacing

mboRacing

    New Member

  • Members
  • Pip
  • 1 posts

Posted 11 January 2012 - 06:38 AM

Hi Frank,

We're looking at implementing a wrapper around the new simple storage feature in .NET MF 4.2.

Chris


Hey there, is this still in work, so we can give hope on this ?

Martin

#50 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 14 January 2012 - 04:18 AM

Hi Martin,

Hey there, is this still in work, so we can give hope on this ?

Yes there is still some work on this, but there is relatively little room left after all the new 4.2 features.

It looks like there is some progress on bugfixes for the 4.2 core (netmf.codeplex.com). Once the firmware goes gold, we'll be able to dig into this with more speed.

Chris

#51 ccfoo242

ccfoo242

    Member

  • Members
  • PipPip
  • 16 posts

Posted 19 April 2012 - 07:17 PM

Hi, sorry to bug you, but am I correct in understanding that this feature will NOT be available in 4.2 due to size constraints?

#52 pmengal

pmengal

    New Member

  • Members
  • Pip
  • 1 posts

Posted 07 September 2012 - 11:20 AM

Hi Martin,

Yes there is still some work on this, but there is relatively little room left after all the new 4.2 features.

It looks like there is some progress on bugfixes for the 4.2 core (netmf.codeplex.com). Once the firmware goes gold, we'll be able to dig into this with more speed.

Chris


Chris any news about that feature? Thanks a million

#53 John West

John West

    Advanced Member

  • Members
  • PipPipPip
  • 51 posts

Posted 16 February 2014 - 08:57 PM

Chris, did this ever get done?



#54 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 16 February 2014 - 10:24 PM

Hey John, We're going to pull this feature over from our AGENT codebase. It should be making it into a Netduino 4.3.x release for Netduino 2, Netduino Plus 2 and Netduino Go a bit later this year. Chris




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.