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

How to do Ethernet communication in netduino in c#


  • Please log in to reply
4 replies to this topic

#1 henryyao

henryyao

    Member

  • Members
  • PipPip
  • 19 posts

Posted 20 December 2012 - 01:31 AM

Hi everyone, Recently I got a project and netduino need to be a socket client to send out the control information to a socket server(let's say a video machine). The thing is I dont know if the video machine support TCP/ip or whatever, so I'd think of sending ethernet packets rather than using the IP layer. Is there a way to do such thing in VS C#? Since I did not find anything like "ProtocolType.Ethernet" in setting up a socket protocol.And things like "new IPEndPoint(IPAddress.Parse("10.11.0.122"), 4000);" are used in the IP socket, so another question is that what will be the corresponding thing in Ethernet. I'd really appreciated some examples if there is any. Thanks

#2 NooM

NooM

    Advanced Member

  • Members
  • PipPipPip
  • 490 posts
  • LocationAustria

Posted 20 December 2012 - 12:56 PM

iirc "ethernet" is just the connection, you need a protocol, like tcp, udp ...

#3 henryyao

henryyao

    Member

  • Members
  • PipPip
  • 19 posts

Posted 20 December 2012 - 03:25 PM

iirc "ethernet" is just the connection, you need a protocol, like tcp, udp ...


O, ok. But here is what in my mind: In a LAN, there is no need for the transmitter to determine the IP address when sending out a packet, so what if it just add a Ethernet head(which contains two MAC address) to the raw packet and then send it out? In this case, there wont be any TCPIP or UDP issue.
Please correct me if I was wrong.

#4 Nicky

Nicky

    Advanced Member

  • Members
  • PipPipPip
  • 78 posts
  • LocationDenmark

Posted 20 December 2012 - 04:07 PM

I don't think that you can do what you wan't without changing the firmware - or use another ethernet adapter, which uses an other driver, and then, if that driver allows it, you can do what you want.

ntools
TCP Listener (Beta) · FTP Server (Alpha)
Netduino Plus Go Module · Xml Parser
http://ntools.codeplex.com/


#5 henryyao

henryyao

    Member

  • Members
  • PipPip
  • 19 posts

Posted 20 December 2012 - 07:58 PM

I don't think that you can do what you wan't without changing the firmware - or use another ethernet adapter, which uses an other driver, and then, if that driver allows it, you can do what you want.


So I have to go with the TCP or UDP stuff, right?
The thing is the remote server may not support TCP/IP, so now I'm stuck




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.