Search found 31 matches
- Thu Jun 20, 2024 4:37 pm
- Forum: ESP-IDF
- Topic: Ethernet packet loss with ESP-NOW (idf v4.4.6)
- Replies: 9
- Views: 97556
Re: Ethernet packet loss with ESP-NOW (idf v4.4.6)
Umm, isn't it possible to use GPIO17 as RMII clock input? I was going to test the existing hardware with an external clock oscillator to see if Ethernet would work reliably, but I can't configure the GPIO17 pin as clock input. :-( EDIT: I couldn't find any information about this in Tech Ref Manual (...
- Tue Jan 16, 2024 2:16 pm
- Forum: ESP-IDF
- Topic: Ethernet packet loss with ESP-NOW (idf v4.4.6)
- Replies: 9
- Views: 97556
Re: Ethernet packet loss with ESP-NOW (idf v4.4.6)
Shouldn't there be a warning in the ESP32 documentation about this? "If you plan on using WIFI and Ethernet, you CAN NOT use the ESP32 as the PHY master clock source." or something..
- Sun Jan 14, 2024 8:35 am
- Forum: ESP-IDF
- Topic: Ethernet packet loss with ESP-NOW (idf v4.4.6)
- Replies: 9
- Views: 97556
Re: Ethernet packet loss with ESP-NOW (idf v4.4.6)
Thanks for the reply! The PCB is a 6-layer one and the Ethernet signals are routed in the inner layers. I'm using an external antenna with ESP32, so (most of) the RF radiation is outside the board. Power supply has a 2 A regulator and all the chips and ESP32 have multiple bypass capacitors next to t...
- Sat Jan 13, 2024 6:28 pm
- Forum: ESP-IDF
- Topic: eth2ap gets ethernet link down and up repeatedly
- Replies: 12
- Views: 73925
Re: eth2ap gets ethernet link down and up repeatedly
I'm afraid I have run into this same problem, see https://www.esp32.com/viewtopic.php?f=13&t=37757 I'm using a LAN8710A PHY and get the PHY clock from GPIO17. Has anyone found a solution to this problem? I have several hundred boards out there - didn't notice the problem before because we were using...
- Sat Jan 13, 2024 5:01 pm
- Forum: ESP-IDF
- Topic: Ethernet packet loss with ESP-NOW (idf v4.4.6)
- Replies: 9
- Views: 97556
Re: Ethernet packet loss with ESP-NOW (idf v4.4.6)
I have been monitoring DMAMISSEDFR_REG, but no lost frames are reported (as far as I can tell, the driver doesn't access this register - if it does, it clears the register by reading it). One strange thing: When I keep calling esp_now_send(), the Ethernet LED blinks, although the software is not tra...
- Fri Jan 12, 2024 4:39 pm
- Forum: ESP-IDF
- Topic: Ethernet packet loss with ESP-NOW (idf v4.4.6)
- Replies: 9
- Views: 97556
Re: Ethernet packet loss with ESP-NOW (idf v4.4.6)
Some additional information: ESP-NOW reception is not a problem. If one ESP32 is only receiving packets over ESP-NOW, no ICMP packets are lost on Ethernet. But if I use a simple software to transmit ESP-NOW packets at 100 ms or 50 ms intervals, some ICMP packets are lost almost every second. I can s...
- Thu Jan 11, 2024 6:07 pm
- Forum: ESP-IDF
- Topic: Ethernet packet loss with ESP-NOW (idf v4.4.6)
- Replies: 9
- Views: 97556
Re: Ethernet packet loss with ESP-NOW (idf v4.4.6)
So far, I have tried: - forcing lwip to CPU1, no help - setting mac_config.rx_task_prio = 5, no help - setting lwip task priority to max-1, no help - enabling ETH_CMD_S_FLOW_CTRL, no help - measuring time spent in my ESP-NOW receive callback: max 140 µs in worst case - setting ethernet and lwip buff...
- Thu Jan 11, 2024 1:41 pm
- Forum: ESP-IDF
- Topic: Ethernet packet loss with ESP-NOW (idf v4.4.6)
- Replies: 9
- Views: 97556
Ethernet packet loss with ESP-NOW (idf v4.4.6)
I have been writing a communication system which uses ESP-NOW and the protocol is working quite nicely now. However, on the "router" system which passes messages between ESP-NOW nodes and Ethernet, I see UDP packet loss whenever there are packets flowing over ESP-NOW. Same with ping (ICMP) if ESP-NO...
- Sun Dec 17, 2023 3:42 pm
- Forum: ESP-IDF
- Topic: How to use i2s in full-duplex mode
- Replies: 23
- Views: 68179
Re: How to use i2s in full-duplex mode
Here's my i2s init code which works in 4.4.6 (full duplex): i2s_config_t i2s_config_0 = { .mode = (i2s_mode_t)(I2S_MODE_MASTER | I2S_MODE_TX | I2S_MODE_RX), .sample_rate = I2S_SAMPLE_RATE, .bits_per_sample = I2S_BITS_PER_SAMPLE_32BIT, .channel_format = I2S_CHANNEL_FMT_RIGHT_LEFT, // .communication_f...
- Tue Dec 12, 2023 7:44 pm
- Forum: ESP-IDF
- Topic: ESP-NOW: What happens if all peers are given the same MAC address?
- Replies: 7
- Views: 44094
Re: ESP-NOW: What happens if all peers are given the same MAC address?
I'm also interested in using the same MAC for all nodes, but is it possible to use encryption with this system? Does the encryption system have some kind of a separate counter or state machine for each node, so it would break if there were multiple nodes with the same MAC address? Besides, I haven't...