User Tools

Site Tools


wio:wiopico-io16eth-en

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
wio:wiopico-io16eth-en [2025/06/04 07:17] – [Ethernet Library] rjversluiswio:wiopico-io16eth-en [2025/06/09 09:36] (current) rjversluis
Line 19: Line 19:
  
  
-| {{https://docs.wiznet.io/assets/images/w5500_evb_pico_side-da676c5d9c41adedc0469b9f1810b81b.png?0x200}} | {{:wio:pico.png?0x200}} | {{:wio:w5500.jpg?0x200}} | {{:wio:w5500-2.jpg?0x200}} | +| {{:wio:pico.png?0x200}} | {{:wio:w5500.jpg?0x200}} | {{:wio:w5500-2.jpg?0x200}}   {{https://docs.wiznet.io/assets/images/w5500_evb_pico_side-da676c5d9c41adedc0469b9f1810b81b.png?0x200}} | 
-|  W5500-EVB-Pico  |  Raspberry Pi Pico 1  |  W5500  |  W5500  | \\+|  Raspberry Pi Pico 1  |  W5500  |  W5500   W5500-EVB-Pico  | \\
  
 =====Description===== =====Description=====
Line 46: Line 46:
  \\  \\
 =====Wiring===== =====Wiring=====
-{{:wio:wiopico-eth-wiring.jpg?0x400}} {{:wio:wiopico-eth-fritzing.jpg?0x400}}\\+{{:wio:wiopico-eth-wiring.jpg?0x400}} {{:wio:wiopico-eth-fritzing.jpg?0x400}} {{:wio:w5500-mini.jpg?0x400}}\\
  
  
Line 52: Line 52:
 =====Ethernet Library===== =====Ethernet Library=====
 To be able to set the hostname the Ethernet Library must be modified.\\ To be able to set the hostname the Ethernet Library must be modified.\\
-In ''Arduino/libraries/Ethernet/src/Dhcp.cpp'' the following code must be added:\\+In ''Arduino/libraries/Ethernet/src/Dhcp.cpp'' the following code must be added/extended:\\
 <code cpp> <code cpp>
-const char* g_DhcpHostName = "";+const char* g_DhcpHostName = ""; // ***** NEW code line
 void DhcpClass::send_DHCP_MESSAGE(uint8_t messageType, uint16_t secondsElapsed) void DhcpClass::send_DHCP_MESSAGE(uint8_t messageType, uint16_t secondsElapsed)
 </code> </code>
Line 62: Line 62:
  // OPT - host name  // OPT - host name
  buffer[16] = hostName;  buffer[16] = hostName;
- if( strlen( g_DhcpHostName ) > 0 ) {+ // ***** start NEW code lines 
 + if( strlen( g_DhcpHostName ) > 0 ) { 
  buffer[17] = strlen(g_DhcpHostName);  buffer[17] = strlen(g_DhcpHostName);
  strcpy((char*)&(buffer[18]), g_DhcpHostName);  strcpy((char*)&(buffer[18]), g_DhcpHostName);
  }  }
  else {  else {
 + // ***** end NEW code lines
  buffer[17] = strlen(HOST_NAME) + 6; // length of hostname + last 3 bytes of mac address  buffer[17] = strlen(HOST_NAME) + 6; // length of hostname + last 3 bytes of mac address
  strcpy((char*)&(buffer[18]), HOST_NAME);  strcpy((char*)&(buffer[18]), HOST_NAME);
Line 73: Line 75:
  printByte((char*)&(buffer[26]), _dhcpMacAddr[4]);  printByte((char*)&(buffer[26]), _dhcpMacAddr[4]);
  printByte((char*)&(buffer[28]), _dhcpMacAddr[5]);  printByte((char*)&(buffer[28]), _dhcpMacAddr[5]);
- }+// ***** NEW code line
 </code> </code>
  
Line 80: Line 82:
   * [[https://docs.arduino.cc/libraries/ethernet|Arduino Ethernet Library]] -> //Ethernet//   * [[https://docs.arduino.cc/libraries/ethernet|Arduino Ethernet Library]] -> //Ethernet//
   * [[https://github.com/arduino-libraries/ArduinoMDNS/tree/master|Arduino mDNS Library]] -> //ArduinoMDNS//   * [[https://github.com/arduino-libraries/ArduinoMDNS/tree/master|Arduino mDNS Library]] -> //ArduinoMDNS//
-  * [[https://docs.wiznet.io/Product/iEthernet/W5500/w5500-evb-pico|W5500-EVB-Pico]] -> //Pico clone with W5500 on board// +  * [[https://arduino-pico.readthedocs.io/en/latest/ethernet.html|Pico Ethernet Library]] 
-  * [[https://shop.wiznet.eu/en/w5500-evb-pico-poe.html|W5500-EVB-Pico PoE]] -> //Pico clone with W5500 on board and PoE//+  * https://docs.wiznet.io/Product/iEthernet/W5500/w5500-evb-pico#pin-out
  
  
wio/wiopico-io16eth-en.1749014240.txt.gz · Last modified: 2025/06/04 07:17 by rjversluis