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/02 07:58] – [Links] rjversluiswio:wiopico-io16eth-en [2025/06/05 07:26] (current) rjversluis
Line 1: Line 1:
 [[:english|{{ :hardware.png}}]][[:english|{{ :rocrail-logo-32.png}}]] [[:english|{{ :hardware.png}}]][[:english|{{ :rocrail-logo-32.png}}]]
 [[:wio:wiopico-io16eth-fr|{{ icons:fr.png|French Version}}]][[:wio:wiopico-io16eth-de|{{ icons:de.png|Deutsche Version}}]][[:wio:wiopico-io16eth-en|{{ icons:uk.png|English Version}}]] [[:wio:wiopico-io16eth-fr|{{ icons:fr.png|French Version}}]][[:wio:wiopico-io16eth-de|{{ icons:de.png|Deutsche Version}}]][[:wio:wiopico-io16eth-en|{{ icons:uk.png|English Version}}]]
-======WIO Pico Eth======+======WIOpico 16 I/O ETH======
 [[:wio:overview-en|{{ :wio:wiologo.png}}]] [[:wio:overview-en|{{ :wio:wiologo.png}}]]
 **[[:wio:overview-en|WIO Overview]]** -> **[[:arduino:wio-overview-en|WIOesp & WIOpico]]** **[[:wio:overview-en|WIO Overview]]** -> **[[:arduino:wio-overview-en|WIOesp & WIOpico]]**
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}} | 
-|  W5500-EVB-Pico  |  Raspberry Pi Pico 1  |  W5500  |  W5500  | \\+|  Raspberry Pi Pico 1  |  W5500  |  W5500  | \\
  
 =====Description===== =====Description=====
 Goal is to provide a Pico with an ethernet connection W5500.\\ Goal is to provide a Pico with an ethernet connection W5500.\\
-The W5500 is controlled by SPI and the WIOpico-ETH will use the same pan mapping as the [[:wio:wiopico-io16can-en|WIOpico 16 I/O CAN]].\\+The W5500 is controlled by SPI and the WIOpico-ETH will use the same pin mapping as the [[:wio:wiopico-io16can-en|WIOpico 16 I/O CAN]].\\
  \\  \\
  
 =====Features===== =====Features=====
-  * Looking up the Rocrail server by mDNS. +  * Only available for Pico's without WiFi shield. ✔️ 
-  * Transparent communication between WiFi and Ethernet. +  * Looking up the Rocrail server by mDNS. ✔️ 
-  * Same pin mapping as the [[:wio:wiopico-io16can-en|WIOpico 16 I/O CAN]].+  * Transparent communication between WiFi and Ethernet. ✔️ 
 +  * Same pin mapping as the [[:wio:wiopico-io16can-en|WIOpico 16 I/O CAN]]. ✔️
  
 + \\
 +=====Setup=====
 +Use the following terminal command to activate the EthCon in WIO:\\
 +<code>
 +*ethcon=1
 +</code>
 +This is bit 0 in options7.\\
 +A reboot is needed.\\
 +{{:wio:wiomaintenanceoptions.png?400}}\\
 +
 +
 + \\
 +=====Wiring=====
 +{{:wio:wiopico-eth-wiring.jpg?0x400}} {{:wio:wiopico-eth-fritzing.jpg?0x400}} {{:wio:w5500-mini.jpg?0x400}}\\
 +
 +
 + \\
 +=====Ethernet Library=====
 +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/extended:\\
 +<code cpp>
 +const char* g_DhcpHostName = ""; // ***** NEW code line
 +void DhcpClass::send_DHCP_MESSAGE(uint8_t messageType, uint16_t secondsElapsed)
 +</code>
 +
 +
 +<code cpp>
 + // OPT - host name
 + buffer[16] = hostName;
 + // ***** start NEW code lines
 + if( strlen( g_DhcpHostName ) > 0 ) { 
 + buffer[17] = strlen(g_DhcpHostName);
 + strcpy((char*)&(buffer[18]), g_DhcpHostName);
 + }
 + else {
 + // ***** end NEW code lines
 + buffer[17] = strlen(HOST_NAME) + 6; // length of hostname + last 3 bytes of mac address
 + strcpy((char*)&(buffer[18]), HOST_NAME);
 +
 + printByte((char*)&(buffer[24]), _dhcpMacAddr[3]);
 + printByte((char*)&(buffer[26]), _dhcpMacAddr[4]);
 + printByte((char*)&(buffer[28]), _dhcpMacAddr[5]);
 + } // ***** NEW code line
 +</code>
  
  \\  \\
 =====Links===== =====Links=====
-  * [[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]]+
  
  
wio/wiopico-io16eth-en.1748843924.txt.gz · Last modified: 2025/06/02 07:58 by rjversluis