DFR0342 WizNet 5500 Sketches

My goal is to use the DFR0342 to control a relay module - DFR0017 - from a web page and my iPhone. Since I'm an Arduino newbie, I thought I'd start with the WebServer example sketch found on the DFR0342 product details page. I got the sketch code working. I expected to be able to upload the compiled sketch to the DFR0342 and then rely on the board's POE Ethernet connection to provide the power and the network connection to do what I want to do via the Internet. Unfortunately, I discovered that the sketch and what happened on the web page required the USB connection and I had to open the serial monitor within the Arduino IDE and then the Ethernet connection came to life and I was able to see the strings of text show up on the web page.
The sketch I got to work is here:
http://www.dfrobot.com/wiki/index.php?title=W5500_Ethernet_with_POE_Mainboard_SKU:_DFR0342
I tried the WebServer sketch in the Library folder before getting the DFR0342 example sketch to work. The library's WebServer sketch did not work right out of the box until I modify it by adding the following code (per the DFR0342 example sketch).
1. Define W5500 SPI “SS” pin and “Reset” Pin:
2. Setup function:
So I'm left wondering if the DFR0342 will always require a serial connection via a USB cable connected to my computer, in addition to the network cable, to control a relay via a web page or IPhone app?
The sketch I got to work is here:
http://www.dfrobot.com/wiki/index.php?title=W5500_Ethernet_with_POE_Mainboard_SKU:_DFR0342
I tried the WebServer sketch in the Library folder before getting the DFR0342 example sketch to work. The library's WebServer sketch did not work right out of the box until I modify it by adding the following code (per the DFR0342 example sketch).
1. Define W5500 SPI “SS” pin and “Reset” Pin:
Code: Select all
#define SS 10U //D10----- SS
#define RST 11U //D11----- Reset
2. Setup function:
Code: Select all
void setup() {
pinMode(SS, OUTPUT);
pinMode(RST, OUTPUT);
digitalWrite(SS, LOW);
digitalWrite(RST,HIGH); //Reset
delay(200);
digitalWrite(RST,LOW);
delay(200);
digitalWrite(RST,HIGH);
delay(200); //Wait W5500
So I'm left wondering if the DFR0342 will always require a serial connection via a USB cable connected to my computer, in addition to the network cable, to control a relay via a web page or IPhone app?
2016-03-30 22:14:54 Hi,
The USB cable is not needed anymore once you finished the code uploading.
Btw, I am interested at IoT, are you familiar with this area? I may ask something from you
Thanks in advance.
Leff
The USB cable is not needed anymore once you finished the code uploading.
Btw, I am interested at IoT, are you familiar with this area? I may ask something from you

