I am hoping to get a bit of insight into the link speed of the ESP32 in AP mode. My objective is to send 3 ADC channels over the link.
I've set the ESP32 to run at 240MHz.
To start, I did a simple test to determine how fast the ADC could run. Here it is:
Code: Select all
ctr = 0
while (True):
if ctr == 1:
start = time.ticks_ms()
txData1 = input1.read()
txData2 = input2.read()
txData3 = input3.read()
if ctr == 1000:
print(time.ticks_ms() - start)
ctr = 0
ctr += 1
Then sending it through the link - I basically put the 3 reads into a list, terminate and send it.
Code: Select all
sendList = txData1,txData2,txData3,ctr
conn.send(str(myList)+'\n')
Is there something going on - does the link speed need to be set, or is it not the correct way to send data over the link? I found in the documentation that even a UDP link should get 1Mbps, but this is nowhere close.
Can anyone provide some feedback on where I should be looking to find out more or fix this?
Thanks!