wio:wiopico-io16eth-en
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
wio:wiopico-io16eth-en [2025/06/02 07:49] – rjversluis | wio:wiopico-io16eth-en [2025/06/05 07:26] (current) – rjversluis | ||
---|---|---|---|
Line 1: | Line 1: | ||
[[: | [[: | ||
[[: | [[: | ||
- | ======WIO Pico Eth====== | + | ======WIOpico 16 I/O ETH====== |
[[: | [[: | ||
**[[: | **[[: | ||
Line 19: | Line 19: | ||
- | | {{https:// | + | | {{: |
- | | W5500-EVB-Pico | + | | 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 [[: | + | The W5500 is controlled by SPI and the WIOpico-ETH will use the same pin mapping as the [[: |
+ | \\ | ||
+ | |||
+ | =====Features===== | ||
+ | * Only available for Pico's without WiFi shield. ✔️ | ||
+ | * Looking up the Rocrail server by mDNS. ✔️ | ||
+ | * Transparent communication between WiFi and Ethernet. ✔️ | ||
+ | * Same pin mapping as the [[: | ||
+ | |||
+ | \\ | ||
+ | =====Setup===== | ||
+ | Use the following terminal command to activate the EthCon in WIO:\\ | ||
+ | < | ||
+ | *ethcon=1 | ||
+ | </ | ||
+ | This is bit 0 in options7.\\ | ||
+ | A reboot is needed.\\ | ||
+ | {{: | ||
+ | |||
+ | |||
+ | \\ | ||
+ | =====Wiring===== | ||
+ | {{: | ||
+ | |||
+ | |||
+ | \\ | ||
+ | =====Ethernet Library===== | ||
+ | To be able to set the hostname the Ethernet Library must be modified.\\ | ||
+ | In '' | ||
+ | <code cpp> | ||
+ | const char* g_DhcpHostName = ""; | ||
+ | void DhcpClass:: | ||
+ | </ | ||
+ | <code cpp> | ||
+ | // OPT - host name | ||
+ | buffer[16] = hostName; | ||
+ | // ***** start NEW code lines | ||
+ | if( strlen( g_DhcpHostName ) > 0 ) { | ||
+ | buffer[17] = strlen(g_DhcpHostName); | ||
+ | strcpy((char*)& | ||
+ | } | ||
+ | else { | ||
+ | // ***** end NEW code lines | ||
+ | buffer[17] = strlen(HOST_NAME) + 6; // length of hostname + last 3 bytes of mac address | ||
+ | strcpy((char*)& | ||
+ | printByte((char*)& | ||
+ | printByte((char*)& | ||
+ | printByte((char*)& | ||
+ | } // ***** NEW code line | ||
+ | </ | ||
\\ | \\ | ||
=====Links===== | =====Links===== | ||
- | * https:// | + | * [[https:// |
+ | * [[https:// | ||
wio/wiopico-io16eth-en.1748843353.txt.gz · Last modified: 2025/06/02 07:49 by rjversluis