Skip to content

Support for ethernet PHY IP101 #3554

Closed
Closed
@dslc

Description

@dslc

Hardware:

Board: ESP32-Ethernet-Kit V1.1
Core Installation version: 1.0.2
IDE name: Arduino IDE

Description:

I know that the IP101 ethernet phy is supported in the ESP IDF - but am hoping to use the Arduino library for a particular project. When testing the ESP32 ethernet kit I noticed that the IP101 is not officially supported in Arduino ESP32.

However ... After making some trivial modifications to the ETH.h and ETH.cpp files, it seems that the SDK actually supports it. The sketch below - adapted from this example works after the afore-mentioned tweaks.

Please see the patch attached.

I have only tested this change very briefly though. Is there a reason that ETH_PHY_IP101 is not offered in ETH.h?

Sketch:

Here is the sketch. It seems to work after applying the patch attached. (I have only tested it very briefly.)

The phy address for the IP101 on the ethernet kit is 1.

#include <ETH.h>

#define ETH_ADDR        1
#define ETH_POWER_PIN   5
#define ETH_TYPE        ETH_PHY_IP101

// snip

void setup()
{
  Serial.begin(115200);
  WiFi.onEvent(WiFiEvent);
  ETH.begin(ETH_ADDR, ETH_POWER_PIN, ETH_PHY_MDC, ETH_PHY_MDIO, ETH_TYPE);
}

phy_ip101.patch.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: StaleIssue is stale stage (outdated/stuck)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions