Questions tagged [.net-micro-framework]

.NET Micro Framework is a CLR and set of libraries that runs on tiny low-cost microcontrollers with limited resources. It brings the genuine .NET developing experience (Visual Studio, managed high level coding & garbage collection, the VS debugger) to the embedded world.

The .NET Micro Framework (NETMF) is an Open Source .NET platform for resource-constrained devices with at least 256 KBytes of flash and 64 KBytes of RAM.

It includes a small version of the .NET CLR and supports development in C#, Visual Basic .NET, and debugging (in an emulator or on hardware) using Microsoft Visual Studio.
It also features a subset of the .NET base class libraries, a GUI framework loosely based on Windows Presentation Foundation (WPF), a simplified TCP/IP stack, and additional libraries specific to embedded applications (e.g. serial communication - UART, SPI, I2C, direct reading/writing of data on the micro-controller pins, interrupts etc).

The .NET Micro Framework aims to make embedded development easier, faster, and less expensive by giving embedded developers access to the modern technologies and tools used by desktop application developers. Additionally, it allows desktop .NET developers to use their skills in the embedded world, enlarging the pool of qualified embedded developers.

Some popular hardware running .NET Micro Framework are

Resources

  • Official site: The official site of the project. News, examples, discussions... can be found there
  • Source code: CodePlex site of the project, where the source code can be found.
  • Netduino: A popular development boar running .NET Micro Framework. Pin compatible with the popular Arduino board.

Books

235 questions
60
votes
1 answer

Why do my array of structs take up so much memory?

Question: How does the Micro Framework allocate memory for an array of structs? BitBucket repository with code to replicate. Context and Detail I'm making a queue using a fixed sized array to insert delays in processing keystrokes from a USB…
ligos
  • 4,256
  • 2
  • 25
  • 34
48
votes
6 answers

Initializing ArrayList with constant literal

Can the ArrayList below be initialized directly without the need for aFileExt string array? private static string[] aFileExt = {"css", "gif", "htm", "html", "txt", "xml" }; private System.Collections.ArrayList alFileTypes = new…
MandoMando
  • 5,215
  • 4
  • 28
  • 35
28
votes
4 answers

What is the difference betweet Netduino and .NET Gadgeteer?

I wanted to learn .NET Microframework and found that there is (among others) Netduino which is somehow compatible with Arduino. Recently .NET Gadgeteer came to public. There was a lot of enthusiasm, so it looks like important step for .NET…
stej
  • 28,745
  • 11
  • 71
  • 104
21
votes
4 answers

Writing C# debug output to .txt file

I'm running code on a microcontroller with .NET Micro Framework, and I want my debug output to write to a text file. How does this work?
755
  • 2,991
  • 3
  • 20
  • 34
19
votes
7 answers

Hardware for .NET Micro Framework

I would like start with .NET Micro Framework as my hobby project. What hardware devices would you recommend for that? Is there something like list of all hardware with support .NET Micro Framework?
MicTech
  • 42,457
  • 14
  • 62
  • 79
16
votes
6 answers

What is the best .NET Micro Framework dev board, for under US$300?

I'm looking for a relativity cheap .NET Micro Framework development board for use on a personal robotics project. I'd don't need much for I/O, but I want at least one serial port and one Ethernet port. I would prefer not to have to spend more than…
Eric Haskins
  • 8,505
  • 12
  • 38
  • 47
16
votes
4 answers

How to convert this hex string into a long?

I have: "0xE94C827CEB" in hex but as a string. Which is: 1002011000043 (dd mm yyyy HH mm ss) Unfortunately I don't know how to do the conversion if I only have it in string format, and I don't have a Convert.ToLong("0xE94C827CEB", 16) function…
Daniel Minnaar
  • 5,865
  • 5
  • 31
  • 52
15
votes
4 answers

.NET Micro Framework Tutorials?

I can't really seem to find any good .NET Micro Framework Tutorials on google. Does anyone know of any?
Kredns
  • 36,461
  • 52
  • 152
  • 203
14
votes
15 answers

How to tell an IP address with 4 LEDs?

I am developing a net-managed device with the .NET Micro Framework. Since the idea is to have a bunch of devices in an office, sometimes it is necessary for the user to know the IP address of a specific device. So I've been trying to come with…
AngryHacker
  • 59,598
  • 102
  • 325
  • 594
12
votes
0 answers

Any simple logging library that support .NET Micro Framework 4.2?

log4net and NLog have support for Compact Framework but not for Micro Framework. Are there any ports of those projects to Micro Framework?
Ricardo Sotolongo
  • 723
  • 11
  • 29
11
votes
5 answers

Draw a sphere using 3D pixels (voxels)

Can you suggest an algorithm that can draw a sphere in 3D space using only the basic plot(x,y,z) primitive (which would draw a single voxel)? I was hoping for something similar to Bresenham's circle algorithm, but for 3D instead of 2D. FYI, I'm…
Cristian Diaconescu
  • 34,633
  • 32
  • 143
  • 233
11
votes
5 answers

What is more efficient: List.Add() or System.Array.Resize()?

I'm trying to determine when it's more efficient to List.Add() versus using the Array.Resize() method. The documentation for Array.Resize says it makes a copy of the entire array, and places it into a new object. The old object would have to be…
makerofthings7
  • 60,103
  • 53
  • 215
  • 448
11
votes
4 answers

Netduino no "Console.WriteLine", Console does not exist in current context

I cannot seem to get my very simple netduino program to write to the debug console; VS throws an error The name 'Console' does not exist in the current context Any ideas what might cause it to not exist? using System; using System.Text; using…
wmarbut
  • 4,595
  • 7
  • 42
  • 72
9
votes
5 answers

Greater time resolution using .NET Micro Framework on Netduino board (for dimming an LED)?

I'm programming a Netduino board using the .NET Micro Framework 4.1 and want to get a higher time resolution than milliseconds. This is because I'm attempting to dim an LED by blinking it really fast. The issue is that the sample code uses…
John K
  • 28,441
  • 31
  • 139
  • 229
9
votes
1 answer

is there a pure C# ZeroConf , bonjour, or dns-sd available?

I'm building a .net-microframework app that uses Zeroconf. The existing zeroconf solutions all seem to either rely on dns-sd.dll or some other interop function of .net which is not supported in .netmf. Is there a pure C# version of zeroconf (or…
MandoMando
  • 5,215
  • 4
  • 28
  • 35
1
2 3
15 16