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

Looking for a simple TCP -> Serial Example


  • Please log in to reply
4 replies to this topic

#1 mb02155

mb02155

    New Member

  • Members
  • Pip
  • 1 posts

Posted 02 September 2012 - 07:45 PM

Hello, I am looking for some simple sample code that demonstrates the Netduino Plus listening for a connection on a TCP port, when a connection is made it will continaully listen for data received from the TCP connection and send directly out the Netduino's Serial port. Does anyone have any sample code like this that they would be willing to share? Thanks, Marty

#2 caEstrada

caEstrada

    Advanced Member

  • Members
  • PipPipPip
  • 84 posts

Posted 09 September 2012 - 04:36 PM

Hello,

I am looking for some simple sample code that demonstrates the Netduino Plus listening for a connection on a TCP port, when a connection is made it will continaully listen for data received from the TCP connection and send directly out the Netduino's Serial port.

Does anyone have any sample code like this that they would be willing to share?

Thanks,
Marty



Marty,

I am working on something like that, hopefully this week I can post some samples...regards,

#3 Kem

Kem

    Member

  • Members
  • PipPip
  • 17 posts

Posted 10 September 2012 - 03:10 PM

Hi all, my first post here. I have been playing around with mbed before and I bought a Netduino+ last week. I was used to having easy serial pass through via the USB port, but I must admit that I love the fact that it is used for debugging :D So, I made my first Netduino program and saw that you where looking for the same functionality. Hope you like it. You can connect with multiple telnet sessions. They will all receive the data received from the serial port. Data send from any telnet session will be send to the serial port. Cheers, Erik

Attached Files


  • Howie Goodell likes this

#4 Fahdil

Fahdil

    Advanced Member

  • Members
  • PipPipPip
  • 59 posts
  • LocationJakarta, Indonesia

Posted 04 October 2012 - 09:10 PM

Dear Kem, May I see you schematic? Are just using TCP/ip port. I'm sorry, I just newbie on netduino

#5 Kem

Kem

    Member

  • Members
  • PipPip
  • 17 posts

Posted 07 October 2012 - 10:28 AM

Dear Kem,

May I see you schematic? Are just using TCP/ip port. I'm sorry, I just newbie on netduino


Hi Fahdil,

Don't be sorry for being a newbie, there's only one way to get rid of that, and that's playing around with the Netduino and asking for help from time to time :)

I've just plugged in an ethernet cable into my Netduino Plus, and connected something that talks serial to one of the two UARTS on the Netduino.

UART1 (pins 0 RX and 1 TX)
UART2 (pins 2 RX and 3 TX)

http://www.netduino....oplus/specs.htm




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.