Comments (2)
This can likely be improved by software means but I doubt this is the proper place you'd receive the needed attention. Better check the communities with the MQQT or ESP32 libraries that you use.
There should be something like TCP_NODELAY in the mqqt options or maybe you can try UDP instead.
"The esp32 DOIT kit which runs WROOM-32", well ESP32-EVB also runs the same module (either ESP32-WROOM-32E or ESP32-WROOM-32UE depending if it has antenna).
It seems counterintuitive that uart is faster here than ethernet or mqtt over LAN.
Why? Which interface is easier to process and has less overhead? Ethernet requires huge software stack and UART is much simpler...
from esp32-evb.
I understand it has less overhead, but mqtt and ethernet are said to be faster based on all reference content available online. And it seems true too, since at control cycles of 0.04, mqtt takes around 4ms avg for round trip which is way less than usb serial's best time(which is around 8 to 10ms avg). This lag is when messages are getting piled up at a rate of 10ms(cc- 0.01) and there is a constant or increasing delay in their subsequent messages.
I will try with nodelay and UDP once and check. I'll have to check with the expressif communities, the mqtt and library communities are quite inactive.
Can I be sure that this is not a cpu processing issue? That at frequencies of 1kHz its not getting throttled?
Thanks for your response!
from esp32-evb.
Related Issues (20)
- ESP32-EVB vs ESP32-EVB-IND HOT 4
- Ethernet disconnects when relay is switching 240V HOT 43
- ESP32-WROOVER kit code don't work on ESP32-EVB HOT 1
- pdf for REV K HOT 1
- ESP32-EVB_Ethernet_v4.4 compilation error HOT 2
- Wifi to lan adapter. HOT 1
- 12VDC 5A power input... HOT 1
- J1939 canbus Supported HOT 3
- Ethernet problem HOT 3
- GPIO pins used by board hardware HOT 2
- Step CAD file of whole board ESP32-EWB HOT 1
- Reset / Power on is entering DownloadBoot mode HOT 2
- Lipo Battery with CAN and Ethernet HOT 3
- Is CAN library interrupt based HOT 1
- SD and MOD 2.8 TFT LCD HOT 1
- Power supply through barrel connector 5V/2A results in instable webserver HOT 1
- USB driver for MacOs Sonoma M2 HOT 2
- Question about the SD card's CS connection HOT 2
- External power supply via barrel connector not stable HOT 60
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esp32-evb.