-
I'll be interfacing to a variety of serial devices in coming weeks and months and I have a few questions. I've done a fair bit of web searching and forum reading (but have not dug into C code) and the answers are not clear to me. I'd like to stick with the Tasmota web/console environment, so I ask my questions in the context of "no-programming-in-C-code". Question 1 - I really want to understand the difference between GPIOs defined as "Serial" and "SerBr". For Received data, what is the difference in: (A) "availability" of data? (what is it available to - console? rules? other?) (B) built-in processing by Tasmota? (published via MQTT unless setoption147; other?); and (C) functions for handling the data? (no equivalent functions to SerialSend). For Q2, I'll start off the list of differences below and invite any confirmations, corrections and additions. ESP32:
ESP8266
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
While ESP32 is flexible about which pins you connect to the built-in UART controllers, you still only have three (for ESP32 and ESP32-S3), or two for the other ESP32 variants supported by Tasmota, but with USB CDC, this does not mean that all 3 or 2 are freely available. No pins are predefined as serial, unless you count USB CDC usage. You do not get more UART controllers with Berry, even if you can choose to only use half. Basically, you are still pretty low on available serial devices. With With ESP8266, the serial driver will also use hardware serial for gpio 15/13, not only gpio 1/3. TCP serial bridge is not another UART, and software serial usually not recommended for bridging. If you have different sensor drivers having their own usage of serial, I think that you can have extra pins for additional software serial, but not recommended due to timing constraints with software serial being resource-heavy. In general, if you want to do "your own" serial processing with rules or MQTT bridging, I'd recommend to stick with |
Beta Was this translation helpful? Give feedback.
-
sfromis, Thanks VERY much for you time and help! Much appreciated. :-) |
Beta Was this translation helpful? Give feedback.
While ESP32 is flexible about which pins you connect to the built-in UART controllers, you still only have three (for ESP32 and ESP32-S3), or two for the other ESP32 variants supported by Tasmota, but with USB CDC, this does not mean that all 3 or 2 are freely available. No pins are predefined as serial, unless you count USB CDC usage. You do not get more UART controllers with Berry, even if you can choose to only use half. Basically, you are still pretty low on available serial devices.
With
USE_SERIAL_BRIDGE
being default for standard Tasmota builds (with the exception of some specialized builds), and the tool TasmoCompiler not being part of the Tasmota project, any issues with standard…