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

Using an existing USB for Netduino application


  • Please log in to reply
3 replies to this topic

#1 Vojkan

Vojkan

    New Member

  • Members
  • Pip
  • 2 posts

Posted 30 November 2010 - 06:38 PM

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".

#2 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

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 Vojkan

Vojkan

    New Member

  • Members
  • Pip
  • 2 posts

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 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

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

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.