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.
Hi Chris, I upgraded to 4.3 and I got a problem
I want to use OutputPort and pwm in same pins.
but when i dispose pwm and the netduino puls will missing.
Kenny.
code :
PWM motor= new PWM(PWMChannels.PWM_PIN_D9, 500, 0.5, true);
JJJ -- we don't recommend using beta firmware for production projects.
Until NETMF 4.3 QFE1 ships, you'll want to stick with the production 4.2 SDK and firmware.
Chris
Well, the world is moving on, VS2012 is mainstream and 2013 is now released. With 10 months of no development and hardly any attention at all I'm beginning to feel I've bought the wrong device and I regret it. A shame, it wasn't that cheap at all although it definitely has it good points. But without updates for almost a year now it's beginning to really really suck.
Why don't you release a beta 2 with the latest .net 4.3 and new iwp stack?
Why don't you release a beta 2 with the latest .net 4.3 and new iwp stack?
The current beta is running the latest .NET MF 4.3 release (.NET MF 4.3 RTM). We usually move pretty quickly to support the latest and greatest. Once .NET MF 4.3 QFE1 is released, we'll be pushing out a new beta pretty quickly.
The differences between 4.2 and 4.3 are pretty minor, since most of the new 4.3 features actually got pushed into .NET MF 4.2 QFE2. And the latest production Netduino 4.2 firmware is built on top of that.
Chris
Hi neographikal,
The differences between 4.2 and 4.3 are pretty minor, since most of the new 4.3 features actually got pushed into .NET MF 4.2 QFE2. And the latest production Netduino 4.2 firmware is built on top of that.
Chris
Chris, neographikal ment the bug in the network stack, the netduino hangs when internet goes down. That's what i discovered at the begin of this year (did explain it with a movie). I really hope it is solved with the QFE1.
Question regarding the ADC support in the upcoming firmware for NP2, has it changed much?
My problem is that when you read an analog input that has ground applied, it doesn't consistently read as 0. In fact, it can return a value as high as 10, simply grounded to the board's ground. That would indicate there is a source of noise causing this phenomenon. In an application note, http://www.st.com/st.../DM00050879.pdf STMicro indicates that:
It is recommended to configure the STM32F2/F4 ART with data cache + Instruction
cache enable and to disable the prefetch. This will avoid extra CPU accesses to the
Flash memory causing an additional noise which can significantly decrease the ADC
accuracy in some applications.
When looking at the 4.2.2 firmware and PK sources, I don't see anything in the code that would indicate this is being done. I'm guessing the cache is the source of the noise.
Hi Chris, I upgraded to 4.3 and I got a problem
I want to use OutputPort and pwm in same pins.
but when i dispose pwm and the netduino puls will missing.
...
motor.Dispose();
OutputPort pwmOut = new OutputPort(Pins.GPIO_PIN_D9, false);
NETMF has several bugs in the code for the disposal of hardware resources. We corrected them for our Mountaineer 4.3 release, but sometimes a workaround is possible with older code: does the problem disappear if after motor.Dispose() and before opening the new OutputPort, you call Debug.GC.Collect(true)? This lets the garbage collector force a finalization of disposable objects, which sometimes solves the problem.
jamidon -- we can take a look at that option.
Cuno -- the disposal bugs you patched in your project...were they done in managed or native code? Checked back into the NETMF trunk? If there's a specific bug we'd be happy to investigate and fix it on this side and contribute it to the core--or update with existing community updates.
Chris
Hi Kip,
I sat down with the program manager for NETMF in Seattle two weeks ago, to discuss progress on NETMF 4.3 QFE1.
QFE1 is getting closer; we're all pretty excited to move over the NETMF 4.3 core.
Speaking of 4.3...we have a few surprises in store, once NETMF 4.3 QFE1 ships. We've been busy this year, especially in the software department. Quite a few community members have been contributing behind the scenes too. We should have lots of love and kudos to share in the near future.
Chris
Hi Kip,
I sat down with the program manager for NETMF in Seattle two weeks ago, to discuss progress on NETMF 4.3 QFE1.
QFE1 is getting closer; we're all pretty excited to move over the NETMF 4.3 core.
Speaking of 4.3...we have a few surprises in store, once NETMF 4.3 QFE1 ships. We've been busy this year, especially in the software department. Quite a few community members have been contributing behind the scenes too. We should have lots of love and kudos to share in the near future.
Chris
I'm trying to develop a very small web server on a NetDuino plus 2, with v4.3.0 beta 1. The server just displays a single page when hit with any request. The first request works fine. The second one also, but then I get a System.NullReferenceException in System.Http.dll. This exception seems to be triggered completely out of my code, because I cannot catch it anywhere, not in any thread, and not in Main, nor does it report any call stack involving my code.
Any idea ?
(code follows; the static WebServer.Run() method is called from Main -- not reproduced here --- after making sure the board has an IP address.)
Thx,
Pyt.
public static class WebServer { #region Properties and fields //////private Socket _socket = null; private static readonly NetworkInterface _netIf = NetworkInterface.GetAllNetworkInterfaces()[0]; private const string _c_httpPrefix = "http"; private static Queue _contextQueue = new Queue(); #endregion #region Methods /// <summary> /// The web server's main routine. /// </summary> public static void Run() { HttpListener listener = new HttpListener(_c_httpPrefix); while (true) { try { if (!listener.IsListening) listener.Start(); // Whenever a request comes in, we queue the context, start a // new thread to handle the request, and go back to listening for // more requests. Several threads may thus be started in parallel // which will each be handling an incoming request. HttpListenerContext context = listener.GetContext(); // blocks until incoming request lock (_contextQueue) _contextQueue.Enqueue(context); Thread th = new Thread(new ThreadStart(_requestHandlerProc)); th.Start(); } catch (InvalidOperationException) { listener.Stop(); Thread.Sleep(200); } catch (ObjectDisposedException) { listener.Start(); } catch { Thread.Sleep(200); } } } private static void _requestHandlerProc() { HttpListenerContext context = null; try { lock (_contextQueue) context = (HttpListenerContext)_contextQueue.Dequeue(); if (context != null) { switch (context.Request.HttpMethod.ToUpper()) { case "GET": _processClientGetRequest(context); break; //////case "POST": ProcessClientPostRequest(context); break; } } } catch (Exception ex) { Utils.DebugPrintException(ex, "_requestHandlerProc"); } finally { if (context != null) context.Close(); } } private static void _processClientGetRequest(HttpListenerContext context) { Debug.Print("Request URL: " + context.Request.RawUrl); Debug.Print("Request Headers:"); Debug.Print(context.Request.Headers.ToString()); //Compose a response StringBuilder sbResp = new StringBuilder("<html><header><title>Energlass gateway</title></header><body><b>"); sbResp.Append(_netIf.IsDhcpEnabled ? "Dynamic IP = " : "Static IP = "); sbResp.Append("</b>"); sbResp.Append(_netIf.IPAddress); sbResp.Append("<p/>" + DateTime.Now.ToString()); sbResp.Append("</body></html>"); byte[] msgBody = Encoding.UTF8.GetBytes(sbResp.ToString()); context.Response.ContentEncoding = Encoding.UTF8; context.Response.ContentType = "text/html"; context.Response.ContentLength64 = msgBody.Length; context.Response.StatusCode = (int)HttpStatusCode.OK; context.Response.OutputStream.Write(msgBody, 0, msgBody.Length); } #endregion }
That's the first I've heard of a coming 4.3 QFE1 release from Microsoft. It's been over 10 months since anything was updated on netmf.codeplex.com. Can you ask someone over at MS to at least give us a little blog post about 4.3 QFE1 so we know they are alive over there...
Hi this is my first post in the Netduino Forums so please be kind...
I found the following blog post which does shed a bit of light on things with .NET Micro Framework 4.3 QFE1... The post is dated October 22, 2013 and the program manager - a person named ShiZhe Jiang - says the anticipated SDK update is "coming soon".
I didthe procedure forupdating thefirmware4.2.0to4.3.0on myNetduinoplus 2.
Everything isokbut now Ino longer abletodeploymy application ontheNetduinoplus 2.
I think itis the version ofUSBdrivercausingthe problem,it tells meit isstillversion4.2.0during thisprocedure, I havehadno errors.Is this normal?how elsetheupdate, Itryseveralwaywithoutsuccess.thank you
Hi Sebbasstt2,
When you open up Project Properties for your project in Visual Studio, does that Target Framework say ".NET Micro Framework 4.3"? When upgrading a board, you'll want to upgrade the project to target the same new version of NETMF.
The USB drivers are supported between the older and newer firmware releases. No need to change those.
If you're still experiencing issues, please copy the output from your Output window after you get the failure...and we can all help you diagnose the issue.
Chris
Hi gddnCode,
This firmware supports standard MicroSD cards (<4GB). You may be able to use an SDHC card--and we will be looking at ways to support more of those after 4.3 QFE1 ships.
Chris