Hello!
Greetings to the Netduino community.
A few weeks ago I purchased Arduino and started to work on some project. It seems to me that Netduino is more engineer friendly than Arduino mostly because of using .NET Micro Framework. I would like to know if it is possible to use an existing USB for communicating with the host in my Netduino application or I need some additional "USB shield".
Using an existing USB for Netduino application
Started by Vojkan, Nov 30 2010 06:38 PM
3 replies to this topic
#1
Posted 30 November 2010 - 06:38 PM
#2
Posted 30 November 2010 - 06:55 PM
Hi Vojkan,
Welcome to the Netduino community!
You can send data to the PC via the serial port (Debug.Print) for viewing in Visual Studio, but you'll need an RS232 shield to send data to your computer for now.
We're working on a firmware update which will enable bi-directional USB communication from the Netduino aside from deploy/debug. We've finished most of it, but we're still working on a bugfix for the Atmel port code...
Chris
#3
Posted 30 November 2010 - 07:34 PM
Hi Chris!
Thank you for the reply.
I know this is out of the scope of my previous question but I searched over this web site and I couldn't find how Netduino can handle time critical processes? What is the minimal timeframe user application can handle?
#4
Posted 30 November 2010 - 07:39 PM
I know this is out of the scope of my previous question but I searched over this web site and I couldn't find how Netduino can handle time critical processes? What is the minimal timeframe user application can handle?
Hi Vojkan,
Since C# is managed code, any real-time or absolutely time critical tasks should be handled in native C++ code. You can integrate both together (compiling your C++ code into the firmware and exposing C# methods to activate it--or using processor interrupts, etc.)
The big things to remember is that .NET Micro Framework is cooperatively multitasked and the garbage collector runs on the foreground thread...so your microcontroller may spend a few ms every once in a while doing garbage collection (unless a native code function is running).
Chris
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users