R rodmcm Active Member Licensed User Longtime User Aug 26, 2019 #1 I have ported a program on an ESp32 from WIFI to Bluetooth. No other changes I was using a looper to sample a digital in for frequency measurement The answers I now get are some 10 times less than I got with WIFI I ran the looper program from the tutorial along with the BT and got 345.8 loops per millisecond, well down from the ESP32: 1750 loops per millisecond in the tutorial.. Can anyone explain this please I also tried to run the Tutorial looper along with my looper. It would not work. I had to disable my looper to get it to work
I have ported a program on an ESp32 from WIFI to Bluetooth. No other changes I was using a looper to sample a digital in for frequency measurement The answers I now get are some 10 times less than I got with WIFI I ran the looper program from the tutorial along with the BT and got 345.8 loops per millisecond, well down from the ESP32: 1750 loops per millisecond in the tutorial.. Can anyone explain this please I also tried to run the Tutorial looper along with my looper. It would not work. I had to disable my looper to get it to work
Erel B4X founder Staff member Licensed User Longtime User Aug 26, 2019 #2 What is the problem? Why is the number of loops per milliseconds important? If your program does more things than just running a loop then the numbers will be lower. Upvote 0
What is the problem? Why is the number of loops per milliseconds important? If your program does more things than just running a loop then the numbers will be lower.
KMatle Expert Licensed User Longtime User Aug 26, 2019 #3 rodmcm said: I now get are some 10 times less than I got with WIFI Click to expand... Don't know what your are doing exactly. Note that BT is MUCH slower than Wifi. So if you transfer data in a loop and count how many data your send, you - of course - get less "loops" (loop = send data one time). If I'm wrong: Please show us your code to understand what you mean. Upvote 0
rodmcm said: I now get are some 10 times less than I got with WIFI Click to expand... Don't know what your are doing exactly. Note that BT is MUCH slower than Wifi. So if you transfer data in a loop and count how many data your send, you - of course - get less "loops" (loop = send data one time). If I'm wrong: Please show us your code to understand what you mean.
R rodmcm Active Member Licensed User Longtime User Aug 28, 2019 #4 Yes I realise the number is lower with other activities. what surprised me was that it is 2 times slower running BT compared with WIFI for the same program. I am using the looper to trigger analog reads for wave sampling and the lesser rate affects the sampling Upvote 0
Yes I realise the number is lower with other activities. what surprised me was that it is 2 times slower running BT compared with WIFI for the same program. I am using the looper to trigger analog reads for wave sampling and the lesser rate affects the sampling