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

Computer + Netduino Integration


  • Please log in to reply
6 replies to this topic

#1 dyadica

dyadica

    Member

  • Members
  • PipPip
  • 17 posts

Posted 24 August 2010 - 08:23 PM

Hi, Chris has suggested that I post this here so here goes:

The following details simple 2 way Communication with a Windows Forms App - Rudimentary packet handling has been implemented via inclusion of an additional byte to the beginning of the packet which details the length of the string to be sent to the Netduino.

Once received the device filters the incoming data and recreates the string. A simple switch statement is then used to trigger functionality.

To see it in action, check out the video here:

http://www.youtube.com/watch?v=7hgvBMmS5Tc

Netduino Serial 1.0.zip

I have attached the source to this post, hope its of help to someone, cheers, dyadica

#2 Websteria

Websteria

    Member

  • Members
  • PipPip
  • 25 posts

Posted 24 August 2010 - 09:16 PM

Hi, Chris has suggested that I post this here so here goes:

The following details simple 2 way Communication with a Windows Forms App - Rudimentary packet handling has been implemented via inclusion of an additional byte to the beginning of the packet which details the length of the string to be sent to the Netduino.

Once received the device filters the incoming data and recreates the string. A simple switch statement is then used to trigger functionality.

To see it in action, check out the video here:

http://www.youtube.com/watch?v=7hgvBMmS5Tc

Netduino Serial 1.0.zip

I have attached the source to this post, hope its of help to someone, cheers, dyadica



So how did you hook this up to your serial port? Did you use a serial cable and just take the appropriate pins and wire them to the arduino?

Also, would it be possible to do this via USB communication instead of Serial, or will it be?

Thanks!

#3 dyadica

dyadica

    Member

  • Members
  • PipPip
  • 17 posts

Posted 24 August 2010 - 09:38 PM

Hi I used a USB to Serial TTL Cable (OEM FTDI Cable) such as this one. I just used the TXD and RXD lines (remember to cross them).

I plan to move over to USB in the long term, however am awaiting on the development of the netduino HID driver as detailed in this origional thread. In the long term I also plan to try and integrate a sparkfun BlueSMiRF Gold.

Currently I am working on further developing the package management for this system and plan to update this thread soon with a new iteration that faccilitates input to the computer via an accelerometer - yup you guessed it Im trying to build my own wiimote :)

#4 PaulS

PaulS

    New Member

  • Members
  • Pip
  • 7 posts

Posted 24 August 2010 - 10:05 PM

I tried this out with a XBee on an XBee Explorer USB connected to the COM port I selected in the form, and an XBee on a shield on the Netduino, and they chat happily back and forth. Thanks for posting this.

#5 greg

greg

    Advanced Member

  • Members
  • PipPipPip
  • 169 posts
  • LocationChicago, IL

Posted 24 August 2010 - 11:57 PM

I tried this out with a XBee on an XBee Explorer USB connected to the COM port I selected in the form, and an XBee on a shield on the Netduino, and they chat happily back and forth.

Thanks for posting this.


yeah - XBee = mucho goodness. My netduino talks to my PC all the time. :)

#6 dyadica

dyadica

    Member

  • Members
  • PipPip
  • 17 posts

Posted 19 May 2011 - 08:40 PM

Hi folks, I have updated the example to use Hari's SerialPortHelper class to handle management of the serial ports. The advantage of this is that with provision of ReadLine functionality there is no longer any need to detail the length of each set of data being sent back and forth. This simplifies the code greatly :)

For more info and to see the code in action check out the following videos:

1. Updated WinForm example

http://www.youtube.com/watch?v=4LqIwx1Dvek

2. Netduino - XNA example

http://www.youtube.com/watch?v=fJEjDibe-Q8

The source will be available shortly via my website (just gone down grr) as soon as its back up (next few hours I hope)

Cheers, d

#7 Paul Bates

Paul Bates

    New Member

  • Members
  • Pip
  • 9 posts
  • LocationDearborn, Mi

Posted 27 September 2011 - 01:23 PM

Hi I want to use a Netduion+ as a remote serial port for my pc. I have a serially connected device to a win 7 pc, and I want to move that device remotely on my LAN, connect to a Netduion+ UART and present a logical serial port on the PC to access it as a COMx: Port. A couple of questions 1) is that possible with this method? 2) Is it possible to use VB.net with this on the netduino+, the PC or both? Thanks! Paul




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.