Talking to WPF
#1
Posted 11 August 2010 - 08:44 PM
#2
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
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
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
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
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