<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-CN">
		<id>http:///https//wiki.microduino.cn/index.php?action=history&amp;feed=atom&amp;title=Microduino_W5500_Network_%282%29</id>
		<title>Microduino W5500 Network (2) - 版本历史</title>
		<link rel="self" type="application/atom+xml" href="http:///https//wiki.microduino.cn/index.php?action=history&amp;feed=atom&amp;title=Microduino_W5500_Network_%282%29"/>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=Microduino_W5500_Network_(2)&amp;action=history"/>
		<updated>2026-06-06T03:14:38Z</updated>
		<subtitle>本wiki的该页面的版本历史</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=Microduino_W5500_Network_(2)&amp;diff=7927&amp;oldid=prev</id>
		<title>2015年3月10日 (二) 08:22 1304410487@qq.com</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=Microduino_W5500_Network_(2)&amp;diff=7927&amp;oldid=prev"/>
				<updated>2015-03-10T08:22:33Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;zh-CN&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;←上一版本&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;2015年3月10日 (二) 08:22的版本&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l51&quot; &gt;第51行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第51行：&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Debugging==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Debugging==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Step 1: First, make sure &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;there is &lt;/del&gt;_02_Microduino_Ethernet_WIZ library in &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;the &lt;/del&gt;IDE&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;. If no, please download one &lt;/del&gt;and put it into libraries folder of your &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;IDE and restart &lt;/del&gt;IDE. &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Step 1: First, make sure &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;you have &lt;/ins&gt;_02_Microduino_Ethernet_WIZ library in &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;your &lt;/ins&gt;IDE and put it into libraries folder of your IDE. &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Step 2: If there still exists Ethernet library in the libraries folder of your IDE, it needs to be deleted since the previous Ethernet is compiled according to W5100.&amp;#160; &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Step 2: If there still exists Ethernet library in the libraries folder of your IDE, it needs to be deleted since the previous Ethernet is compiled according to W5100.&amp;#160; &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>1304410487@qq.com</name></author>	</entry>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=Microduino_W5500_Network_(2)&amp;diff=7920&amp;oldid=prev</id>
		<title>1304410487@qq.com：Created page with &quot;{| style=&quot;width: 800px;&quot; |- | ==Purpose== This course will show you how to use DHCP server to configure network parameter automatically, enabling your Microduino to acquire IP...&quot;</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=Microduino_W5500_Network_(2)&amp;diff=7920&amp;oldid=prev"/>
				<updated>2015-03-10T03:15:07Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;{| style=&amp;quot;width: 800px;&amp;quot; |- | ==Purpose== This course will show you how to use DHCP server to configure network parameter automatically, enabling your Microduino to acquire IP...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{| style=&amp;quot;width: 800px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
==Purpose==&lt;br /&gt;
This course will show you how to use DHCP server to configure network parameter automatically, enabling your Microduino to acquire IP address accordingly. &lt;br /&gt;
&lt;br /&gt;
==Equipment==&lt;br /&gt;
*'''[[Microduino-Core]]'''&lt;br /&gt;
*'''[[Microduino-USBTTL]]'''&lt;br /&gt;
*'''[[Microduino-W5500]]'''&lt;br /&gt;
*'''[[Microduino-RJ45]]'''&lt;br /&gt;
&lt;br /&gt;
*Other hardware equipment  &lt;br /&gt;
**USB cable   One&lt;br /&gt;
&lt;br /&gt;
==DHCP==&lt;br /&gt;
&lt;br /&gt;
Generally, you can find a DHCP (Dynamic Host Configuration Protocol) server in local network. DHCP distributes network parameters (IP address, mask, gateway and DNS) to internal network device automatically. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here is a simple introduction of how it works: &lt;br /&gt;
&lt;br /&gt;
You need a device (Client) with IP address, send a '''DISCOVERY''' broadcasting data package—which will reach the whole network of the device, and “discover” a functional DHCP server;  &lt;br /&gt;
&lt;br /&gt;
If there are more than one DHCP servers functional, they will respond to a '''OFFER''' package and “suggest” Client set available IP address;    &lt;br /&gt;
&lt;br /&gt;
Client selects the IP address and send a '''REQUEST''' data package to the corresponding server, asking the permission of using the address;  &lt;br /&gt;
&lt;br /&gt;
We suggest set server of the IP address and return an '''ACK''' to confirm associated IP address.  &lt;br /&gt;
&lt;br /&gt;
[[File:DHCPShow.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
Luckily, the acquisition of IP address mentioned above has been achieved in library file of dhcp.cpp.&lt;br /&gt;
Next, we’ll compile a simple example to present the use of DHCP server. &lt;br /&gt;
&lt;br /&gt;
==Schematic==&lt;br /&gt;
&lt;br /&gt;
*Microduino-W5500&lt;br /&gt;
*Microduino-RJ45&lt;br /&gt;
*Microduino-Core&lt;br /&gt;
*Microduino-USBTTL&lt;br /&gt;
Stack them and then plug in network cable. &lt;br /&gt;
&lt;br /&gt;
As follows:  &lt;br /&gt;
[[File:MicroduinoW5500Show.png|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
==Program==&lt;br /&gt;
&lt;br /&gt;
[[https://github.com/Microduino/Microduino_Tutorials/tree/master/Microduino_Advanced_Tutorial/W5500Code/MicroduinoW5500Two MicroduinoW5500Two]]&lt;br /&gt;
&lt;br /&gt;
==Debugging==&lt;br /&gt;
&lt;br /&gt;
Step 1: First, make sure there is _02_Microduino_Ethernet_WIZ library in the IDE. If no, please download one and put it into libraries folder of your IDE and restart IDE. &lt;br /&gt;
&lt;br /&gt;
Step 2: If there still exists Ethernet library in the libraries folder of your IDE, it needs to be deleted since the previous Ethernet is compiled according to W5100.  &lt;br /&gt;
 &lt;br /&gt;
Then you need to change _02_Microduino_Ethernet_WIZ so that the library function can be corresponding with the pin of Microduino-W5500:  &lt;br /&gt;
&lt;br /&gt;
Find w5100.h in utility folder of _02_Microduino_Ethernet_WIZ library.  &lt;br /&gt;
&lt;br /&gt;
Change #define wiz_cs_pin 8	//CS_PIN of the code to #define wiz_cs_pin 10	//CS_PIN.   &lt;br /&gt;
&lt;br /&gt;
Step 3: Interpret the code:  &lt;br /&gt;
  // start the Ethernet connection:&lt;br /&gt;
  Serial.println(&amp;quot;Trying to get an IP address using DHCP&amp;quot;);&lt;br /&gt;
  if (Ethernet.begin(mac) == 0) {&lt;br /&gt;
    Serial.println(&amp;quot;Failed to configure Ethernet using DHCP&amp;quot;);&lt;br /&gt;
    // initialize the ethernet device not using DHCP:&lt;br /&gt;
  #if defined(WIZ550io_WITH_MACADDRESS)&lt;br /&gt;
    Ethernet.begin(ip, gateway, subnet);&lt;br /&gt;
  #else&lt;br /&gt;
    Ethernet.begin(mac, ip, gateway, subnet);&lt;br /&gt;
  #endif  &lt;br /&gt;
  }&lt;br /&gt;
The code above uses DHCP to assign IP address firstly. So, if the assignment failed, you need to assign the IP address defined previously.  &lt;br /&gt;
&lt;br /&gt;
Step 4: Download the code and pass compile. &lt;br /&gt;
&lt;br /&gt;
Step 5: If everything works fine, you can open the serial port and acquire IP address assigned by DHCP.  &lt;br /&gt;
[[File:MicroduinoW5500DHCP1.png|600px|center|thumb]]&lt;br /&gt;
With the IP, you can have a ping connection with your Microduino.&lt;br /&gt;
 [[File:MicroduinoW5500DHCP2.png|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
==Result==&lt;br /&gt;
&lt;br /&gt;
If you can check your DHCP server (Usually, you can find it in the DHCP client of our router), you will see a newly connected device.  &lt;br /&gt;
&lt;br /&gt;
==Video==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>1304410487@qq.com</name></author>	</entry>

	</feed>