0

I'm working on an Arduino project that sends and receives text to/from a C# application via ENC28J60 in a LAN network. Whenever C# sends a request to Arduino (In text), Arduino responds to it by sending also a text. What is the best way to do this? I'm newbie in network programming (Or whatever it's called). Thanls in advance :)

dda
1,5951 gold badge12 silver badges17 bronze badges
asked Dec 25, 2017 at 14:46
4
  • 1
    Use a TCP socket. Give the Arduino a static IP address, run a TCP server, and have the C# application open the connection as a TCP client. Commented Dec 25, 2017 at 15:24
  • @tttapa: you mean ENC28J60 is useless here ? Commented Dec 25, 2017 at 15:25
  • 2
    No, you need the ENC28J60 to connect the Arduino to the LAN. TCP is a network protocol that works on top of the physical connection that's established by the ENC. This could be useful (it was written for the ESP8266, a WiFi chip for Arduino, but the principle is the same. Commented Dec 25, 2017 at 15:28
  • github.com/ntruchsess/arduino_uip/tree/master/examples found this on github. I think its what youre talking about. Commented Dec 25, 2017 at 20:34

1 Answer 1

1
answered Dec 26, 2017 at 8:13
1
  • 1
    The netcat/ncat/nmap familiy of tools is also handy for those tests. They run in Linux and Windows. Commented Dec 26, 2017 at 8:38

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.