Skip to main content

Using WIZnet Ethernet Library for ioShield-A

Connecting to the Internet using the W5500 powered Ethernet Shield

Arduino Ethernet Library

from : http://arduino.cc/en/Reference/Ethernet

Arduino Ethernet Shield allows an Arduino board to connect to the internet. It can serve as either a server accepting incoming connections or a client making outgoing ones. The library supports up to four concurrent connection (incoming or outgoing or a combination).

For more details, please visit : Arduino Ethernet Library Page.

Before COMPILING THE SOFTWARE, Download and install Arduino 1.0.5 from the Arduino software page.

Update Ethernet Library

To use ioShiled-A(WIZ550io), you need to update new WIZnet Ethernet Library. Because ioShield-A use W5500 new chipset instead of W5100 which is used original Ethernet Shield.

The first step is to download the latest version of the Wiznet Ethernet Library from GitHub.


How to update the Ethernet library.

  1. Open the archive and extract the file "WIZ_Ether_Library.zip" to a convenient spot (I use the Desktop).
  2. Put(Overwrite) the "Ethernet" folder in this library to the libraries folder in the Arduino Installation Folder (for example, normaly you can find Arduino libraries folder as "C:\Program Files\Arduino\libraries\".), <del> or select "Sketch -> Import Library... -> Add Library..." in Aruino IDE, and select the folder loacation. and then, you can see the new directory in your "My Document/Arduino/libraries/".</del>

Change code depending WIZnet chip, W5100, W5200 or W5500

  1. Select the define variable in "Ethernet/utility/W5100.h". When you use WIZ550io, ioShield-Series, you uncomment "#define W5500_ETHERNET_SHIELD".
w5100.h

/*
* Copyright (c) 2013 by WIZnet <support@wiznet.co.kr>
* This file is free software; you can redistribute it and/or modify
* it under the terms of either the GNU General Public License version 2
* or the GNU Lesser General Public License version 2.1, both as
* published by the Free Software Foundation.
*/

#ifndef W5100_H_INCLUDED
#define W5100_H_INCLUDED

#include <avr/pgmspace.h>
#include <SPI.h>

typedef uint8_t SOCKET;

//#define W5100_ETHERNET_SHIELD // original ethernet shield from Arduino
//#define W5200_ETHERNET_SHIELD // Ethernet Shield version 2 from Seeed.
#define W5500_ETHERNET_SHIELD // ioShield Series

Examples

Now you are ready to go to "File -> Example -> Ethernet", and select examples what you want. There are many simple examples in Ethernet Library Folder as like


Basically, you can refer the usage for each examples in Arduino site.