Search found 36 matches

by MikeMyhre
Sun Mar 31, 2024 12:08 am
Forum: ESP-IDF
Topic: Ping session starts, no callbacks or results
Replies: 0
Views: 268

Ping session starts, no callbacks or results

I am using the KSZ8863RLL in two port mode. I have two ethernet ports each with a different IP address on my LAN. IDF version 5.2.1 and am using the ping example code with a couple changes for debugging and binding to network interfaces. It appears to work without errors, but results in no pings rea...
by MikeMyhre
Fri Mar 29, 2024 2:52 pm
Forum: General Discussion
Topic: Freeing default UART ISR in ESP-IDF v5.2
Replies: 7
Views: 2821

Re: Freeing default UART ISR in ESP-IDF v5.2

Here is what I came up with when using IDF v5.2 For conversion from IDF V4 to V5 drop the 'install driver' and uart_isr_free/register commands. Keep the uart_param_config functions and use esp_intr_alloc to hook the interrupt. Something like this: #include "hal/uart_ll.h" #include "soc/interrupts.h"...
by MikeMyhre
Wed Mar 27, 2024 3:52 pm
Forum: ESP-IDF
Topic: ESP32-WROOM and KSZ8863RLL device questions on IP and sending packets
Replies: 8
Views: 1311

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 ind...
by MikeMyhre
Wed Mar 27, 2024 1:29 pm
Forum: ESP-IDF
Topic: ESP32-WROOM and KSZ8863RLL device questions on IP and sending packets
Replies: 8
Views: 1311

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

I found the issue. I had missed one line .pmac_mode = KSZ8863_PORT_MODE.
It was still in switch mode.
Thanks for the confirmation!
I have two IPs now. ;-)
by MikeMyhre
Wed Mar 27, 2024 12:59 pm
Forum: ESP-IDF
Topic: ESP32-WROOM and KSZ8863RLL device questions on IP and sending packets
Replies: 8
Views: 1311

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? Thanks for the update. I started with the 'simple switch' which did do a DHCP on one port. Then I m...
by MikeMyhre
Tue Mar 26, 2024 5:33 pm
Forum: General Discussion
Topic: Freeing default UART ISR in ESP-IDF v5.2
Replies: 7
Views: 2821

Re: Freeing default UART ISR in ESP-IDF v5.2

It feels like this doesn't answer my original question. After a driver install specifying the UART operating parameters, is there no longer a way to use a custom interrupt? Should I convert back to a previous version of ESP-IDF where this was still possible? Why was this functionality removed? I se...
by MikeMyhre
Tue Mar 26, 2024 3:49 pm
Forum: ESP-IDF
Topic: ESP32-WROOM and KSZ8863RLL device questions on IP and sending packets
Replies: 8
Views: 1311

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

I found this document that explains the reasoning behind the L2 Tap control and read() write() file options: https://docs.espressif.com/projects/esp-idf/en/v5.2.1/esp32s2/api-reference/network/esp_netif.html?highlight=bind I still don't understand why I am not getting an IP address on any of the thr...
by MikeMyhre
Mon Mar 25, 2024 1:56 pm
Forum: ESP-IDF
Topic: ESP32-WROOM and KSZ8863RLL device questions on IP and sending packets
Replies: 8
Views: 1311

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

I am using framework idf-v5.2.1 I have one port connected to my LAN and another port connected to a PC. 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. That is why I chose the two port mode. I thought since storm contro...
by MikeMyhre
Sun Mar 24, 2024 10:45 pm
Forum: ESP-IDF
Topic: ESP32-WROOM and KSZ8863RLL device questions on IP and sending packets
Replies: 8
Views: 1311

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

I have a board I have designed that uses the KSZ8863RLL switch from microchip. I am using the Two Ports mode from this example: https://github.com/espressif/esp-eth-drivers/tree/master/ksz8863/examples/two_ports_mode This chip is a three port switch with SPI interface. One port goes to the ESP32 and...
by MikeMyhre
Fri Dec 22, 2023 6:41 pm
Forum: ESP-IDF
Topic: ESP32 and W5500 ethernet performance
Replies: 6
Views: 62525

Re: ESP32 and W5500 ethernet performance

Could you please clarify what do you mean by W5500 EMAC mode? See below for same performance comparison (for ESP32). +---------------------+---------+------------+---------+ | Proto / direction | EMAC | KSZ8851* | W5500* | +---------------------+---------+------------+---------+ | TCP Rx [Mbps] | 3...