2012-12-22

AVR NET-IO: Receive UDP packets

Some month ago I post an article about sending UDP - now it's time to write about receiving UDP.

Again my equipment is:
  • Pollin AVR NETIO Board
  • Arduino 1.0.3
  • avr-netino (Project)

Patch tcpip.cpp

To enable UDP receiving a patch of the tcpip.cpp file is needed. The patched file can be found here. You need to overwrite the original file libraries/EtherCard/tcpip.cpp with the patched one.

Arduino program

Arduino program to receive UDP packets:

Example script to send UDP

Here is a small example how to send UDP packets to avr-netio board:

Keine Kommentare

Kommentar veröffentlichen