Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

4ch goes into reboot loop if gpio7 gpio7 are configured for ds18b20 #5

Closed
aequitas opened this issue Jan 29, 2017 · 6 comments
Closed
Labels
question Type - Asking for Information

Comments

@aequitas
Copy link

using: v3.9.5
device: Sonoff ch4 v1.1

Setting GPIO7 or GPIO8 to 4 (DS18x20) results in the device rebooting. There is serial and MQTT output. Website is not accessible.

Other modes not experimented, GPIO2 does not exhibit this issue so my problem is resolved.

@arendst
Copy link
Owner

arendst commented Jan 30, 2017

Thnx for the feedback.

That behaviour was kind of expected as pins GPIO07 and GPIO08 are being used to connect the flash chip to the ESP8285. As the flash interface is using DOUT mode these pins are the data pins being used.

For the moment I will remove the pins from the configuration in version 3.9.8 until I have the 4CH myself and can do some more testing but I'm afraid they will be gone forever.

@arendst arendst added the question Type - Asking for Information label Jan 30, 2017
arendst added a commit that referenced this issue Jan 30, 2017
3.9.8 20170130
* Remove GPIO07 and GPIO08 from user selectable (#5)
@arendst arendst closed this as completed Jan 30, 2017
arendst added a commit that referenced this issue Jan 30, 2017
3.9.8 20170130
* Remove GPIO07 and GPIO08 from user selectable (#5)
@aequitas
Copy link
Author

When looking at the PCB layout pin 7 and 8 seem to be routed towards an unpopulated space for a 2.5 jack connector. Much like the TH10. There are two jumpers disconnecting the jack connector from the ESP. I think there was some intent for expansion here. GPIO7 and GPIO8 are SPI according to the datasheet. But without CS (2.5 jack only has 4 lines) I don't think that is the intended type.

arendst added a commit that referenced this issue Jan 30, 2017
3.9.9 20170130
* Add command status 10 showing sensor data
* Fix hlw status messages if hlw is disabled
* Remove GPIO07 and GPIO08 from user selectable (#5)
@arendst
Copy link
Owner

arendst commented Jan 30, 2017

You're right. But the pins are also used by the flash on the ESP8285 die so that's probably why they refrained from using the 2.5 jack...

@aequitas
Copy link
Author

Maybe the flash could be disabled after the program is initially loaded into memory to f ree up those pins or disabled during IP with the peripheral?

If you need a 4ch to test I can miss mine for a couple of days, did I guess correct you also live in the Arnhem region?

@arendst
Copy link
Owner

arendst commented Jan 30, 2017

As there is more of us I live in the Groningen region ;-)

The flash is physically connected to these pins. Every time you switch your relay the state is also written to flash to preserve it's last state at next power on. In fact all settings are stored in flash and some of them are updated when you change them.

Perhaps some wizzkid can make it work but I do not see a bright future ahead with this option...

@aequitas
Copy link
Author

That's a bit to much of a travel for me :).

If I ever need the pins or get bored I will try to work out a solution. I don't know yet if the flash has a CS connected to the ESP but if it does it should be implementable by adding proper locking for sensor read and flash writes.

ascillato added a commit that referenced this issue Jun 5, 2018
arendst pushed a commit that referenced this issue Jul 21, 2018
Update andrethomas/Sonoff-Tasmota from arendst/Sonoff-Tasmota
curzon01 pushed a commit to curzon01/Tasmota that referenced this issue Sep 6, 2018
3.9.8 20170130
* Remove GPIO07 and GPIO08 from user selectable (arendst#5)
curzon01 pushed a commit to curzon01/Tasmota that referenced this issue Sep 6, 2018
3.9.8 20170130
* Remove GPIO07 and GPIO08 from user selectable (arendst#5)
curzon01 pushed a commit to curzon01/Tasmota that referenced this issue Sep 6, 2018
3.9.9 20170130
* Add command status 10 showing sensor data
* Fix hlw status messages if hlw is disabled
* Remove GPIO07 and GPIO08 from user selectable (arendst#5)
curzon01 pushed a commit to curzon01/Tasmota that referenced this issue Sep 7, 2018
Update andrethomas/Sonoff-Tasmota from arendst/Sonoff-Tasmota
arendst pushed a commit that referenced this issue Oct 4, 2018
arendst pushed a commit that referenced this issue Oct 6, 2019
arendst pushed a commit that referenced this issue Jan 6, 2021
mepunit added a commit to shivankittech/smart-home-base-firmware that referenced this issue Aug 18, 2021
mepunit added a commit to shivankittech/smart-home-base-firmware that referenced this issue Aug 18, 2021
mepunit added a commit to shivankittech/smart-home-base-firmware that referenced this issue Aug 18, 2021
GwangrokBaek referenced this issue in zigbang/Tasmota Aug 19, 2021
Flash 및 MDNS 에러 수정 & LED MQTT 제어 기능 추가
GwangrokBaek referenced this issue in zigbang/Tasmota Mar 31, 2022
Flash 및 MDNS 에러 수정 & LED MQTT 제어 기능 추가
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Type - Asking for Information
Projects
None yet
Development

No branches or pull requests

2 participants