Replies: 2 comments 4 replies
-
Sending 1 byte is no simpler than sending 200, the only difference is the length of the packet. All configuration of the radio still must take place. You can enable the SPI debug level to see how many SPI transactions there are. It will skew the timing benchmark because debug takes place over Serial, but it will at least show the amount of transactions and when they happen. I would also verify what is the actual SPI clock speed when the ESP32 at 10 MHz. |
Beta Was this translation helpful? Give feedback.
-
Forgive me if I'm wrong, but 10MHz is 10e6, so a single clock cycle is 10e-6 or 1us (microsecond), which to me would look like a byte should also take in the order of microseconds - how would you end up with 1 byte taking 40ms? |
Beta Was this translation helpful? Give feedback.
-
I have an ESP32 underclocked to 10mhz, I realise that simply sending 1 byte takes 40mS
For science I have tried at 20Mhz where it takes just half as long (20mS) and at 40Mhz also half as long, 10mS which is already an acceptable figure but unfortunately I need to keep the CPU clock at 10Mhz for power reasons.
It's probably not the fault of this library at all, but I would like to know where so much time may be wasted or hopefully how to improve this.
Beta Was this translation helpful? Give feedback.
All reactions