Netduino home hardware projects downloads community

Jump to content

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


Member Since 08 Nov 2012
Offline Last Active Dec 24 2012 12:54 PM

Posts I've Made

In Topic: Netduino Plus 2 Native OneWire Temp Sensor

14 November 2012 - 10:31 PM

Does this also works for the Netduino Plus Version 1 ?

Also at the tick you create a new string everytime, i myself would make a public static string and fill that evertime.

string debugString = tempReadingTimestamp.ToString();

So i would change this to:

debugString = tempReadingTimestamp.ToString();

and at the the static declarations at the top:

static DateTime tempReadingTimestamp = DateTime.Now;

static string debugString;

Thanks, I've made quite a few improvements and the code is a bit different now but I dont believe it will work with the original netduino plus because it needs to support native onewire. I believe there is a custom firmware with it's own onewire implementation that you can go with though.

In Topic: Netduino Plus 2 Native OneWire Temp Sensor

12 November 2012 - 03:06 AM

Could garbage collection be at issue? Similar to http://forums.netdui...tes-five-times/

In Topic: Netduino Plus 2 Native OneWire Temp Sensor

12 November 2012 - 01:15 AM

Hi nickNetduino,

To all your code stopping? Or is the web server code still working but the LED stops blinking?


The output in the previous post is where I have totally disabled the webserver and both timers still appear to stop. With the webserver enabled, it appears to stay running even after the 2 timers die.

In Topic: Netduino Plus 2 Native OneWire Temp Sensor

12 November 2012 - 12:30 AM

Hmm, very curious.

Can you put a Debug.Print at the front of the LED blinking function, and one at the beginning of the web server "accept" code?

And then we can see if the timer is stopped being called?

If so, there may be a NETMF bug to fix. Adventure :)


Ok here is the latest... I've disable the web server entirely and the thing still hangs so I'm thinking the sensor reading code is screwing something up so back to my first post and hopefully someone can spot a big bug. Here is the debug output:

LED BLINK 11/11/2012 20:27:26
LED BLINK 11/11/2012 20:27:27
LED BLINK 11/11/2012 20:27:28
11/11/2012 20:27:29 Temp Inside: 67.4 Temp Outside: 42.8
LED BLINK 11/11/2012 20:27:31
LED BLINK 11/11/2012 20:27:31
LED BLINK 11/11/2012 20:27:32
LED BLINK 11/11/2012 20:27:33
LED BLINK 11/11/2012 20:27:34
LED BLINK 11/11/2012 20:27:35
LED BLINK 11/11/2012 20:27:36
LED BLINK 11/11/2012 20:27:37
LED BLINK 11/11/2012 20:27:38
11/11/2012 20:27:39 Temp Inside: 67.3 Temp Outside: 42.6
LED BLINK 11/11/2012 20:27:41
LED BLINK 11/11/2012 20:27:41

In Topic: Netduino Plus 2 Native OneWire Temp Sensor

12 November 2012 - 12:03 AM


Hmm, it may just be the OneWire code taking a lot of time then. Do you have a feel for how long the actual OneWire transaction takes?


I think the stutter is ok after doing more research... The reads may take a full second. What really is buggin me now is after ~5 mins running, the led stops totally (randomly high or low) BUT the webserver still responds.

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.