Replies: 5 comments 7 replies
-
No it's not possible. Serial requires 2 wires by design, you can't short TX-TX from both sides. OneWire (I2C) is designed both electrically and protocol-wise to support bidirectional communications and handle smoothly collisions. |
Beta Was this translation helpful? Give feedback.
-
The idea is to use open colector output. so both sides can pull down the
line and also receive on it if set hi.
Is up to protocols if there are collisions.
El lun, 12 jul 2021 a las 12:37, s-hadinger ***@***.***>)
escribió:
… No it's not possible. Serial requires 2 wires by design, you can't short
TX-TX from both sides. OneWire (I2C) is designed both electrically and
protocol-wise to support bidirectional communications and handle smoothly
collisions.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#12632 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACXBW4J2A7X4L23NGTO47D3TXMD3XANCNFSM5AHA2JYA>
.
|
Beta Was this translation helpful? Give feedback.
-
Imho a lot of troubles (hard and software) to save one GPIO/wire. |
Beta Was this translation helpful? Give feedback.
-
I had a look at |
Beta Was this translation helpful? Give feedback.
-
Well. then at first thanks to all. By the way really nice work on tasmota. |
Beta Was this translation helpful? Give feedback.
-
Topic is slow bidirectional communication without RF or bluetooth or wifi
In Arduino it is possible to init softserial with one single gpio: RX=TX=GPIOn.
#include
#define RXPIN 10
#define TXPIN 10
SoftSerial myserial(RXPIN,TXPIN)
This would enable bidirectional communication over one wire with common Ground GND connected between both systems.
Is this possible with Tasmotas softserial implementation?
Even with slow baudrate 300baud ?
I would suggest for example to define one peripheral GPIO with "Serbr RX" or "Serial RX" and an additional option command SETOPTIONxx 1 to define that GPIO_RX = GPIO_TX in the tasmotaserial.h
IMHO: 1-wire protocol seems to be a bad solution because it neds a complicate slave implementation for one side of both systems.
Beta Was this translation helpful? Give feedback.
All reactions