-
How do you tell Tasmota that you're using a hardware Serial port?? But in my program, I do an " if (D6100Serial->hardwareSerial())" , but it never executes... My program runs fine, but I'm curious about the proper use and selection of hardware serial ports...
|
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 6 replies
-
On ESP32, it's always hw serial Tasmota/tasmota/xnrg_15_teleinfo.ino Line 645 in f66574c |
Beta Was this translation helpful? Give feedback.
-
And hardwareSerial() returns true only for serial 0, the one used for console |
Beta Was this translation helpful? Give feedback.
-
why is that?? just curious??
~~ _/) ~~~~ _/) ~~~~ _/) ~~~~ _/) ~~
Tom Lafleur
…On Mon, Apr 25, 2022 at 2:36 PM Barbudor ***@***.***> wrote:
And hardwareSerial() returns true only for serial 0, the one used for
console
https://github.com/arendst/Tasmota/blob/f66574ca55d4c20c92331d8c3b7ae3bed87ba9a0/lib/default/TasmotaSerial-3.5.0/src/TasmotaSerial.cpp#L224
—
Reply to this email directly, view it on GitHub
<#15461 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABC4EKZ2JW7LRLJ3BP6VPWTVG4F7NANCNFSM5UJZZR6A>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Does that mean only UART1 is usable in Tasmota on an esp32c3? I have an esp32c3 in cdc mode, meaning console logging is done via the internal USB port of the ESP. Is there a way I can use both ports and configure them separately? |
Beta Was this translation helpful? Give feedback.
-
Disclaimer, I have just started to explore the possibilities of the Tasmota platform, so I don't always know what I am doing. I have tested two devices: lolin32 with oled
Then it happily receives the OBIS ASCII telegram with the transmit enable port is hard wired to the 5 Volt from the USB. On Tasmota I have assigned the RX_ser and RX_bridge to GPIO 16 and hardcoded the invert flag in Next thing I tried, was to modify user_config_override.h:
Seems that the Any ideas? |
Beta Was this translation helpful? Give feedback.
On ESP32, it's always hw serial
See this driver
Tasmota/tasmota/xnrg_15_teleinfo.ino
Line 645 in f66574c