Hi,
I am now working on a project that reads data from an I2C sensor and send the data through serial(2).
I am using Core0 for reading data from i2C and Core1 for sending data through serial(2) with serial.write command.
However, I found that i2c reading time is affected by serial.write although the those two commands are in two different cores.
When I comment the serial.write command, the i2c reading time is 12ms. When I uncomment the serial.write command, the i2c reading time increase to 19ms. The time difference almost equals the time it takes to execute the serial.write command. I would like to ask whether the i2c and serial communication will lock each other even they are in two different cores. Any help would be appreciated.
Thanks in advance and please let me know if any further information is needed.
esp32 I2C and Serial communication conflict
-
- Posts: 1
- Joined: Mon Jul 08, 2019 3:05 pm
Who is online
Users browsing this forum: No registered users and 81 guests