Error with RMT-based IR reception when using Ethernet at the same time

jmaibaum
Posts: 4
Joined: Mon Sep 17, 2018 11:58 am

Error with RMT-based IR reception when using Ethernet at the same time

Postby jmaibaum » Fri Oct 05, 2018 7:59 am

Hello everyone,

I have the following issue with an application that uses the RMT module for infrared transmission and reception (code adapted from the esp-idf example on sending and receiving the NEC protocol (https://github.com/espressif/esp-idf/tr ... _nec_tx_rx) for use on Arduino.

The application also uses WiFi, and everything works like a charm in this setup.

Now, I've recently started trying to get the EMAC interface working (using a Waveshare LAN8720 PHY, see https://www.waveshare.com/lan8720-eth-board.htm). Basically I've been following the official Arduino example. https://github.com/espressif/arduino-es ... TH_LAN8720. This part works, I can access the web server running on my ESP32, but now IR reception stops working (IR transmission still works). On the serial console I see the following error popping up once I try to enable IR reception:

Code: Select all

Trying to enable IR...
E (2120) rmt: RMT[0] ERR
E (2120) rmt: status: 0x14000040
The "rmt: status:" part is different each time, but the error is reported every time.

When switching the whole application back to WiFi everything works again. To be clear: "switching to WiFi" means throwing out all the ETH headers and calls, and recompiling. Equivalently, "switching to Ethernet" means throwing out all the WiFi headers and calls, and recompiling.

As the documentation for both the EMAC interface on the Arduino API level is very sparse, I'm currently out of ideas.

The only thing I can think of is that there might be an issue because the RMT is using the APB_CLOCK source and the PHY providing an external 50MHz clock signal?

Do you have any ideas?

jmaibaum
Posts: 4
Joined: Mon Sep 17, 2018 11:58 am

Re: Error with RMT-based IR reception when using Ethernet at the same time

Postby jmaibaum » Tue Oct 09, 2018 9:07 am

Just an observation that I made during further investigation: The error only appears if there is actually an IR signal coming in. So, as long as there is no incoming signal, there is no error, even after enabling (i.e. installing the IR recv rmt driver config), but as soon as I activate my transmitting device, the error appears on the serial monitor.

jmaibaum
Posts: 4
Joined: Mon Sep 17, 2018 11:58 am

Re: Error with RMT-based IR reception when using Ethernet at the same time

Postby jmaibaum » Tue Oct 23, 2018 11:26 am

I have created a minimal test sketch that shows the issue, and have also reported my problem on Github, see https://github.com/espressif/arduino-esp32/issues/1993 .

Who is online

Users browsing this forum: No registered users and 7 guests