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

Talking to WPF


  • Please log in to reply
5 replies to this topic

#1 futileboy

futileboy

    New Member

  • Members
  • Pip
  • 3 posts

Posted 11 August 2010 - 08:44 PM

I'm working on a WPF application where I'm currently using an Arduino and interface via a serial communication. I'd like to talk to the Netduino instead. What's the best practice for passing information back and forth from the Netduino and a desktop application?

#2 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 11 August 2010 - 09:06 PM

I'm working on a WPF application where I'm currently using an Arduino and interface via a serial communication. I'd like to talk to the Netduino instead. What's the best practice for passing information back and forth from the Netduino and a desktop application?


futileboy, welcome to the community!

Use an RS232 shield (CuteDigi) or a USB-to-TTL adapter and send/receive data via serial to your computer. There are two serial ports on the Netduino (D0/D1 and D2/D3) including one with flow control.

We're working on a way to send data over the USB deploy/debug cable in the future. More on that in the future.

A WPF app matched with a Netduino could be pretty cool! Can you say more about what you're building? Or at least share when you're done?

#3 futileboy

futileboy

    New Member

  • Members
  • Pip
  • 3 posts

Posted 11 August 2010 - 09:25 PM

futileboy, welcome to the community!

Use an RS232 shield (CuteDigi) or a USB-to-TTL adapter and send/receive data via serial to your computer. There are two serial ports on the Netduino (D0/D1 and D2/D3) including one with flow control.

We're working on a way to send data over the USB deploy/debug cable in the future. More on that in the future.

A WPF app matched with a Netduino could be pretty cool! Can you say more about what you're building? Or at least share when you're done?


I'm really enjoying the device so far.

The application I'm working on uses the Parallax RFID reader which is talking to the Netduino as a serial device on D0 so, I'd have to look at D2/D3 for getting data out. Having a way to talk over the USB would be huge, since it would keep the whole solution smaller, simpler and cheaper.

I would be happy to share once I get something that's ready to share.

I'm looking to port this WPF PING sensor application over to the Netduino as well.

#4 Szymon

Szymon

    Advanced Member

  • Members
  • PipPipPip
  • 108 posts
  • LocationPoland, Krakow

Posted 15 August 2010 - 06:16 PM

I'm really enjoying the device so far.

The application I'm working on uses the Parallax RFID reader which is talking to the Netduino as a serial device on D0 so, I'd have to look at D2/D3 for getting data out. Having a way to talk over the USB would be huge, since it would keep the whole solution smaller, simpler and cheaper.

I would be happy to share once I get something that's ready to share.

I'm looking to port this WPF PING sensor application over to the Netduino as well.


Hi futileboy,
If all you want is get the RFID data to PC you actually don't need netduino for that. You can simply connect it directly with the FTDI Serial-to-USB cable.
http://www.adafruit....&products_id=70
http://www.sparkfun....roducts_id=9718

Or you can just get the USB version of the same Parallax RFID reader.
http://www.parallax....17/Default.aspx

Then it will show as virtual comport that you can access using System.IO.Ports.SerialPort class (I should have some sample code if you need help).

#5 futileboy

futileboy

    New Member

  • Members
  • Pip
  • 3 posts

Posted 17 August 2010 - 05:11 AM

Hi futileboy,
If all you want is get the RFID data to PC you actually don't need netduino for that. You can simply connect it directly with the FTDI Serial-to-USB cable.
http://www.adafruit....&products_id=70
http://www.sparkfun....roducts_id=9718

Or you can just get the USB version of the same Parallax RFID reader.
http://www.parallax....17/Default.aspx

Then it will show as virtual comport that you can access using System.IO.Ports.SerialPort class (I should have some sample code if you need help).


That's good advice. And I've looked at going straight to the USB version of the RFID reader. My big motivation for using the Netduino though is that I'd like to add more then one sensor and even some other inputs (switches, knobs, etc) and have it do all the physical device handling. That way, I only plug one device into the system and get an array of data out of it.

#6 Szymon

Szymon

    Advanced Member

  • Members
  • PipPipPip
  • 108 posts
  • LocationPoland, Krakow

Posted 17 August 2010 - 05:44 AM

That's good advice. And I've looked at going straight to the USB version of the RFID reader. My big motivation for using the Netduino though is that I'd like to add more then one sensor and even some other inputs (switches, knobs, etc) and have it do all the physical device handling. That way, I only plug one device into the system and get an array of data out of it.


In this case you could try to turn your netduino into a proper HID USB device. I haven't tried it yet myself but there is a sample in the .NET MF SDK that shows how to make a virtual mouse.

Here is also excellent article written by Michel Verhagen on GuruCE that shows how to communicate with .NET application using WinUSB driver: http://guruce.com/bl...cation-over-usb Looks like bit more work but it might be worth to give it a try.

In both cases you will probably loose ability to debug on the device via USB so you will need serial cable anyway. I surly can't wait until netduino guys figure out how to make this easier.




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.