Search found 173 matches

by ESP_ondrej
Fri Apr 26, 2024 7:14 am
Forum: ESP-IDF
Topic: ESP32 EMAC receive not working
Replies: 8
Views: 464

Re: ESP32 EMAC receive not working

Why you don't want to use callback? Using `mac->receive` is not designed to be called from user code.
by ESP_ondrej
Thu Apr 25, 2024 8:30 am
Forum: ESP-IDF
Topic: Not getting an ip address using the basic ethernet example
Replies: 5
Views: 300

Re: Not getting an ip address using the basic ethernet example

It seems your board is able to receive frames so the Rx path works. Now, check if Tx path works too. Connect your board to a PC and capture traffic using e.g. Wireshark to see if your board sends DHCP request. You can also try to run loopback test to see if there is no issue with RMII (https://githu...
by ESP_ondrej
Thu Apr 25, 2024 8:17 am
Forum: ESP-IDF
Topic: ESP32 EMAC receive not working
Replies: 8
Views: 464

Re: ESP32 EMAC receive not working

It's pretty straight forward, just register your callback function to the Ethernet handler. See examples: https://github.com/espressif/esp-idf/blob/master/examples/network/simple_sniffer/main/cmd_sniffer.c#L300 https://github.com/espressif/esp-idf/blob/master/components/esp_eth/test_apps/main/esp_et...
by ESP_ondrej
Wed Apr 24, 2024 1:01 pm
Forum: ESP-IDF
Topic: Not getting an ip address using the basic ethernet example
Replies: 5
Views: 300

Re: Not getting an ip address using the basic ethernet example

Do you have your custom board or how did you connect IP101 to ESP32?
by ESP_ondrej
Wed Apr 24, 2024 12:57 pm
Forum: ESP-IDF
Topic: ESP32 EMAC receive not working
Replies: 8
Views: 464

Re: ESP32 EMAC receive not working

Hi, you are using the driver incorrectly. If your goal is to have your "custom" function to process received Ethernet frames, you need to register a call back function using `esp_eth_update_input_path`.
by ESP_ondrej
Fri Apr 05, 2024 7:08 am
Forum: Hardware
Topic: Hardware advice for Ethernet socket
Replies: 7
Views: 2146

Re: Hardware advice for Ethernet socket

@DrMickeyLauer, here's the example of SPI Ethernet switch I found: https://www.microchip.com/en-us/product/LAN9352
by ESP_ondrej
Tue Apr 02, 2024 7:32 am
Forum: Hardware
Topic: Hardware advice for Ethernet socket
Replies: 7
Views: 2146

Re: Hardware advice for Ethernet socket

Speaking of supported multiple Ethernet port ICs, we support KSZ8863. However, you've already figured it out by yourself as I've seen on Github ;)
by ESP_ondrej
Wed Mar 27, 2024 2:48 pm
Forum: ESP-IDF
Topic: ESP32-WROOM and KSZ8863RLL device questions on IP and sending packets
Replies: 8
Views: 853

Re: ESP32-WROOM and KSZ8863RLL device questions on IP and sending packets

Great to hear you found the issue. One point regarding I would like to be able to disable the ability for the PC to connect to my LAN unless the packets are allowed by the ESP32 code. I'm not sure if "two port mode" is feasible for this use case. This mode is intended to provide your device two inde...
by ESP_ondrej
Wed Mar 27, 2024 11:20 am
Forum: ESP-IDF
Topic: ESP32-WROOM and KSZ8863RLL device questions on IP and sending packets
Replies: 8
Views: 853

Re: ESP32-WROOM and KSZ8863RLL device questions on IP and sending packets

I tried it on my test board and "two_ports_mode" example works as expected. I got IP address at both ports. Do you use exact version of "two_ports_mode"? Or do you use some modified version of yours?
by ESP_ondrej
Mon Mar 25, 2024 9:32 am
Forum: Hardware
Topic: GPIO4 can't be used for UART when Ethernet is enabled
Replies: 6
Views: 1776

Re: GPIO4 can't be used for UART when Ethernet is enabled

That's strange... The only thing which crossed my mind is the GPIO4 can be IO MUXed to EMAC_TX_ER function (see section 4.10 IO_MUX Pad List in TRM). Therefore make sure the GPIO4 is properly configured.