arendst / Tasmota

Alternative firmware for ESP8266 and ESP32 based devices with easy configuration using webUI, OTA updates, automation using timers or rules, expandability and entirely local control over MQTT, HTTP, Serial or KNX. Full documentation at
https://tasmota.github.io/docs
GNU General Public License v3.0
22.02k stars 4.78k forks source link

[FR] Simple Serial Bridge for Sonoff Basic/TH #4451

Closed aenertia closed 5 years ago

aenertia commented 5 years ago

I appreciate there are some discussions on this already - but most are tied to MQTT based applications. I have a slightly different use case.

Use Case

I have a Sonoff basic attached to my 3D printer to signal/control hard power resets. Most 3D printer boards provide UART pins. The Sonoff has UART pins also...

What I basically would like is a TCP socket to UART bridge (there are several implementations of this for the esp around). Having this implemented in Tasmota would be nice however as it removes the need for a 2nd ESP in the box.

In this setup the RX/TX pins are connected to the TX/RX (via level shifter) of the 3D printer board and then a TCP socket is exposed (think telnet) ; most Slicers/Octoprint etc can then be told to hit the Tasmota on the listening port and 'Viola!' instant Wifi printer.

Add a D1 Mini etc specifically for this purpose ^ - As mentioned seems dumb given there is already one sitting there controlling the PSU.

ascillato commented 5 years ago

Hi,

MQTT to Serial bridge feature is already implemented in Tasmota. If you don't want to use MQTT you will need another type of solution.

Tasmota is aimed to home automation. For a TCP<->UART bridge you will need an specific firmware.

ascillato2 commented 5 years ago

Closing this issue as it has been answered.

Support Information

See Wiki for more information. See Chat for more user experience.

aenertia commented 5 years ago

I understand ; and am aware of the MQTT serial commands.

I guess this could be rephrased as a ; provide TCP socket to GPIO feature.

On Mon, 26 Nov 2018 at 13:15, Adrian Scillato notifications@github.com wrote:

Closed #4451 https://github.com/arendst/Sonoff-Tasmota/issues/4451.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/arendst/Sonoff-Tasmota/issues/4451#event-1985627738, or mute the thread https://github.com/notifications/unsubscribe-auth/AARer7bqblHhRT5B0nIvZCPRy3gTcZ4aks5uyzKegaJpZM4YyDX5 .

emontnemery commented 5 years ago

@aenertia This is what you want: https://github.com/jeelabs/esp-link

aenertia commented 5 years ago

Yes ; but it doesn't flash to Sonoff's I've been talking with the maintainer and he has a pull against espurna for the funtionality.

Espeasy also includes this (ser2net) by default as part of their normal plugin set.

There are a lot of home automation reasons/use cases for this ; including snooping Prorietary HVAC panels sensors/data logging from the Uart pins; and other applications which are IOT/HomeAutomation based.

I hope this feature is reconsidered for inclusion.

On Tue, 27 Nov 2018 at 00:29, emontnemery notifications@github.com wrote:

@aenertia https://github.com/aenertia This is what you want: https://github.com/jeelabs/esp-link

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/arendst/Sonoff-Tasmota/issues/4451#issuecomment-441607518, or mute the thread https://github.com/notifications/unsubscribe-auth/AARer3SC-UwgU6r8VwjlgQ3Z6wX-G6TUks5uy9CEgaJpZM4YyDX5 .