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 16:49] – rjversluis | wio:wiopico-io16eth-en [2025/06/05 07:26] (current) – rjversluis | ||
---|---|---|---|
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===== | =====Features===== | ||
- | * Looking up the Rocrail server by mDNS. | + | |
- | * Transparent communication between WiFi and Ethernet. | + | |
- | * Same pin mapping as the [[: | + | * Transparent communication between WiFi and Ethernet. |
+ | * Same pin mapping as the [[: | ||
\\ | \\ | ||
Line 38: | Line 39: | ||
*ethcon=1 | *ethcon=1 | ||
</ | </ | ||
+ | This is bit 0 in options7.\\ | ||
A reboot is needed.\\ | 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 | ||
+ | </ | ||
\\ | \\ | ||
Line 47: | Line 82: | ||
* [[https:// | * [[https:// | ||
* [[https:// | * [[https:// | ||
- | * [[https:// | ||
wio/wiopico-io16eth-en.1748875799.txt.gz · Last modified: 2025/06/02 16:49 by rjversluis