Netduino home hardware projects downloads community

Jump to content


Photo

Serial.read via USB? yu know like on the good ol Arduino.


  • Please log in to reply
47 replies to this topic

#1 sweddle

sweddle

    Member

  • Members
  • PipPip
  • 12 posts

Posted 05 October 2010 - 10:25 PM

OK I have been having fun with my lil Netduino happily hacking away in VS 2010 and C# woohoo! with my Arduino off to the side like an old pair of shoes, some good shoes they where but time to move on to the new better easy way of coding; The Netduino! One nice thing was Serial.read an easy to use way of communicating from the PC to microcontroller via the already connected built right in USB port (just like the Netduino built right in and providing power)... It was easy to make apps in VB.net and C# to control the Arduino and items attached to it.. Ummm am I missing something??? is there no netduino Serial.read in C# for the Netduino that will allow it to take commands via the (already connected, providing power and code load) USB port??? I so hope I'm missing something and the post I see about HID USB, no dice working on it and you got to hook up ANOTHER connection via a USB FTDI cable to Pin X and X.... Oh pleas tell me im missing something, Perhaps like; Debug.Read or Debug.Get USB.Read? another other then yet a 2nd set of wires from the same PC and a FTDI chip/part LOL... if I need to use an FTDI to do USB to Serial guess I could allays use my Arduino to do the conversion/connection it has FTDI built in. Hoping I'm missing something, thanks. Shane

#2 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7117 posts
  • LocationNew York, NY

Posted 05 October 2010 - 10:37 PM

Hi sweddle, We're working on some USB communication options, but for now you'll want to use one of the 2 UARTs and a USB-to-UART cable (or use your Arduino as a USB-to-UART converter as you mentioned). By default, the .NET Micro Framework uses the USB communication channel for deployment/debugging instead... Chris

#3 sweddle

sweddle

    Member

  • Members
  • PipPip
  • 12 posts

Posted 06 October 2010 - 04:53 PM

working on some USB communication options


Sweeet! I look forward to see how it works, Thanks!
Shane

#4 Yves

Yves

    New Member

  • Members
  • Pip
  • 3 posts

Posted 09 October 2010 - 12:37 AM

Hi Chris,

Do you have some kind of timeframe for the availability of the communication over USB? Just an estimate, nothing carved in stone of course ;)

By the way I am new to netduino and I am really excited about this platform.

Thank you,

Yves

Hi sweddle,

We're working on some USB communication options, but for now you'll want to use one of the 2 UARTs and a USB-to-UART cable (or use your Arduino as a USB-to-UART converter as you mentioned).

By default, the .NET Micro Framework uses the USB communication channel for deployment/debugging instead...

Chris



#5 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7117 posts
  • LocationNew York, NY

Posted 09 October 2010 - 02:54 AM

Do you have some kind of timeframe for the availability of the communication over USB? Just an estimate, nothing carved in stone of course ;)


Hi Yves,

We've finished the code for the device and PC side, but we have two more pieces to go:
1. Tweaks to the Atmel USB code in the .NET MF to enable PC->device HID communciation
2. Code to enable multi channel communication from device to PC (speculative)

I don't have a timeframe, but it will take quite a bit of work to pull everything together. We're working on it, but it's second priority behind the v4.1.1 updates... I know that it will be a cool feature though...

Chris

#6 ajcg1973

ajcg1973

    Advanced Member

  • Members
  • PipPipPip
  • 71 posts

Posted 09 October 2010 - 07:55 AM

Hi Yves,

We've finished the code for the device and PC side, but we have two more pieces to go:
1. Tweaks to the Atmel USB code in the .NET MF to enable PC->device HID communciation
2. Code to enable multi channel communication from device to PC (speculative)

I don't have a timeframe, but it will take quite a bit of work to pull everything together. We're working on it, but it's second priority behind the v4.1.1 updates... I know that it will be a cool feature though...

Chris


Please don't wait for item #2 to finish before the release of item #1! I'm so anxious to use the Netduino as a Human Interface Device that I don't mind at all if I have to program/debug with the serial port.

#7 Yves

Yves

    New Member

  • Members
  • Pip
  • 3 posts

Posted 19 October 2010 - 05:17 PM

Hi Yves,

We've finished the code for the device and PC side, but we have two more pieces to go:
1. Tweaks to the Atmel USB code in the .NET MF to enable PC->device HID communciation
2. Code to enable multi channel communication from device to PC (speculative)

I don't have a timeframe, but it will take quite a bit of work to pull everything together. We're working on it, but it's second priority behind the v4.1.1 updates... I know that it will be a cool feature though...

Chris


Hi Chris,

Thank you for your responsiveness and for keeping the community updated. I will keep watching this post for more information. Yes this would be a very cool and useful feature indeed!

Yves

#8 JammerX19

JammerX19

    New Member

  • Members
  • Pip
  • 2 posts

Posted 22 October 2010 - 02:22 AM

Adding a bump for the serial feature. Just got my Netduino today and was a little disappointed in the lack of Serial comm. Looking forward to the update :)

#9 Snympi

Snympi

    New Member

  • Members
  • Pip
  • 7 posts

Posted 04 November 2010 - 08:07 AM

Another bump. All in good faith though. I suppose with the Netduino Plus the networking option could also be used for comms but serial via USB is still tops. Got 3 Netduino's yesterday - completely sold on the idea :) Pieter

#10 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7117 posts
  • LocationNew York, NY

Posted 04 November 2010 - 03:44 PM

JammerX19, Snympi: Welcome to the Netduino community! There are three new pieces of code required to get bi-directional comm up and running over USB. USB/serial deployment selection: Completed (part of the new v4.1.0.5 firmware) USB HID C# library for PC and Netduino: Completed UsbClient update to Atmel .NET MF C++ code: In development (Secret Labs + Atmel + Microsoft + community) So we're most of the way there...but one piece to go. Once v4.1.0.5 ships next week, we'll be doubling down to coordinate the necessary fixes to enable a few different PC<->Netduino communication scenarios. Chris

#11 Yves

Yves

    New Member

  • Members
  • Pip
  • 3 posts

Posted 04 November 2010 - 04:15 PM

JammerX19, Snympi:

Welcome to the Netduino community!

There are three new pieces of code required to get bi-directional comm up and running over USB.

USB/serial deployment selection:
Completed (part of the new v4.1.0.5 firmware)

USB HID C# library for PC and Netduino:
Completed

UsbClient update to Atmel .NET MF C++ code:
In development (Secret Labs + Atmel + Microsoft + community)

So we're most of the way there...but one piece to go. Once v4.1.0.5 ships next week, we'll be doubling down to coordinate the necessary fixes to enable a few different PC<->Netduino communication scenarios.

Chris


Chris,

This is great. Thank you for keeping us posted on this.

Yves

#12 darkside40

darkside40

    Member

  • Members
  • PipPip
  • 18 posts

Posted 15 November 2010 - 03:33 PM

Any news to this issue? Would be interesting to combine the serial Values of the Netduino with a .Net App running on the PC.

#13 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7117 posts
  • LocationNew York, NY

Posted 15 November 2010 - 04:38 PM

darkside40, The last piece is the long haul piece. I'll post something when we have beta bits. In the meantime, you can certainly use a serial shield and communicate with the PC via an RS232 cable... Thank you for your enthusiasm, Chris

#14 ZeroSkyX

ZeroSkyX

    New Member

  • Members
  • Pip
  • 2 posts

Posted 19 January 2011 - 10:59 PM

Any news on the topic? I'm really dying to see that feature :D Best regards Simon

#15 Leonard

Leonard

    New Member

  • Members
  • Pip
  • 2 posts

Posted 30 January 2011 - 11:00 PM

Is this available yet? I really need to communicate to the Netduino and I'd like to use the existing USB connection.

#16 Jim

Jim

    Member

  • Members
  • PipPip
  • 21 posts

Posted 08 February 2011 - 07:52 PM

Is there any news on this yet? I just ordered the Netduino and am looking forward to using it with a temperature sensor which would need to send back temperature information to the PC. I could order a USB FTDI cable but they are ~$20! I only paid $35 for the Netduino, why should I spend $20 on a cable to communicate with it. The other option is a RS-232 shield but they are ~$12. It looks like you're pretty close to getting this request figured out, is there any time frame yet?

#17 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7117 posts
  • LocationNew York, NY

Posted 08 February 2011 - 08:53 PM

We've made some progress on the final piece (UsbClient), but are still working on it. More as it develops... Chris

#18 Jim

Jim

    Member

  • Members
  • PipPip
  • 21 posts

Posted 08 February 2011 - 11:52 PM

Is there any news on this yet? I just ordered the Netduino and am looking forward to using it with a temperature sensor which would need to send back temperature information to the PC. I could order a USB FTDI cable but they are ~$20! I only paid $35 for the Netduino, why should I spend $20 on a cable to communicate with it. The other option is a RS-232 shield but they are ~$12.

It looks like you're pretty close to getting this request figured out, is there any time frame yet?



Great! Are we talking days/weeks/months here?

#19 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7117 posts
  • LocationNew York, NY

Posted 09 February 2011 - 01:05 AM

Great! Are we talking days/weeks/months here?


Unfortunately, as it's a joint endeavor (Atmel+Microsoft+Secret Labs) I don't know 100% for sure. We're _really_ close...but it's that last 1-10% that seems to take forever.

Chris

#20 br549

br549

    New Member

  • Members
  • Pip
  • 9 posts

Posted 12 March 2011 - 08:47 PM

darkside40,
In the meantime, you can certainly use a serial shield and communicate with the PC via an RS232 cable...

I just recently purchased two netduino's. I got the netduino reading an LM335A temperature sensor and tried to read that data via a virtual com port into a windows app. I was surprised to find out the netduino doesn't show up as a virtual com port! Looking forward to using this functionality once you get it up and running.

Does anyone have a sample of using a RS232 shield or a 3.3V USB-to-TTL cable to do this?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2010-2014 Secret Labs LLC  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.