remap tx and rx on s20

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
bobbybeans
Normal user
Posts: 119
Joined: 26 Feb 2017, 17:30

remap tx and rx on s20

#1 Post by bobbybeans » 14 Jun 2017, 22:25

Hey there. somebody a while told me it is possible to remap the tx and rx but first I have to disable it. Currently i have firmware r147. however i don't see the options.. Is it there somewhere that I am missing or do i have to update the the latest version? it so what version?

User avatar
toffel969
Normal user
Posts: 469
Joined: 03 Jan 2017, 10:58
Location: Germany

Re: remap tx and rx on s20

#2 Post by toffel969 » 15 Jun 2017, 10:42

bobbybeans wrote: 14 Jun 2017, 22:25 Hey there. somebody a while told me it is possible to remap the tx and rx but first I have to disable it. Currently i have firmware r147. however i don't see the options.. Is it there somewhere that I am missing or do i have to update the the latest version? it so what version?
I don't think you can just remap. You can however use gpio 1&3 for sensors/actors/i2c. Therefore you have to disable serial in advanced tab. After a reboot you should then be able to chose gpio 1/3 as SDA/scl or when configuring a sensor
Domoticz on Raspi 2 -- 14 ESP units (hacked Sonoff,NodeMCUs, Wemos, self-built units) running with RC140- Mega 2.0.0 dev8

bobbybeans
Normal user
Posts: 119
Joined: 26 Feb 2017, 17:30

Re: remap tx and rx on s20

#3 Post by bobbybeans » 21 Jun 2017, 11:24

hey there just an update for everyone in r148 in the advance settings you can disable serial then upon reboot you can use those as standard IO pins.
remap was the wrong terminology my bad

LisaM
Normal user
Posts: 513
Joined: 11 Apr 2017, 18:29

Re: remap tx and rx on s20

#4 Post by LisaM » 21 Jun 2017, 12:07

bobbybeans wrote: 21 Jun 2017, 11:24 hey there just an update for everyone in r148 in the advance settings you can disable serial then upon reboot you can use those as standard IO pins.
remap was the wrong terminology my bad
There is a risk in using gpio1/3 for sensors, at bootup the sensors might get confused by the serial output the esp is doing...

bobbybeans
Normal user
Posts: 119
Joined: 26 Feb 2017, 17:30

Re: remap tx and rx on s20

#5 Post by bobbybeans » 22 Jun 2017, 21:45

but wouldn't that be counter productive of the option to disable serial? if you select disable serial It should disable it? I understood it as disable serial, disables the entire serial unless you put it back into flash mode?

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: remap tx and rx on s20

#6 Post by Shardan » 22 Jun 2017, 21:52

You can always flash, even if serial is disabled.

Disabling stops serial monitoring and you can't send commands via serial to the ESP.
This can be reverted if you enable serial again - disconnect sensors/actors before re-enabling!

Anyways there are some disadvantages.
Using them as sensor input might bring some sensors into trouble, others might work.
Using them as output will definitely trigger actors on Tx on bootup as the ESP always
sends some data on bootup.

Regards
Shardan
Regards
Shardan

User avatar
toffel969
Normal user
Posts: 469
Joined: 03 Jan 2017, 10:58
Location: Germany

Re: remap tx and rx on s20

#7 Post by toffel969 » 27 Jun 2017, 15:51

Expirience thus far with GPIO 1&3

Output:
Relais -- flicker on boot depending on application this is acceptable or not
MOSFET -- ESP will not boot !!! (not sure if it was 1 or 3 or both)

Input:
DHT11 -- works on both
I2C -- works


It is probably best to avoid them, but, sometimes the only choice (if you want I2C on a SONOFF for example)
Domoticz on Raspi 2 -- 14 ESP units (hacked Sonoff,NodeMCUs, Wemos, self-built units) running with RC140- Mega 2.0.0 dev8

LisaM
Normal user
Posts: 513
Joined: 11 Apr 2017, 18:29

Re: remap tx and rx on s20

#8 Post by LisaM » 02 Jul 2017, 01:26

https://www.letscontrolit.com/forum/vie ... f=2&t=3263
GPIO 13/15 are also available on the S20....

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 40 guests