Not sure about the age, years old though, the oldest ones I have. Definitely the Sonoff basic, almost certainly sonoff R1s.
The odd thing is they’ll run – connect, operate the relay - with SonoffTH, and will connect with MppDevice. But as soon as I install MppRelay built with 2.6.3 they won’t connect and I need to put them on USB to change them back to 2.4.2.
This (from the "Info" button) works:
SDK:2.2.1(cfd48f3)/Core:2.4.2/lwIP:1.4.0rc2/BearSSL:6d1cefc
and this does not:
SDK:2.2.2-dev(a58da79)/Core:2.6.3=20603000/lwIP:STABLE-2_1_2_RELEASE/glue:1.2-16-ge23a07e/BearSSL:89454af
Very repeatable which I did many times because I couldn't believe it at first - figured my network was infected with gremlins and spent a while trying to exterminate them... But it's an odd enough problem that I could see it differing in other devices (presumably different ESP8266 chip versions). SonoffPOW and SonoffTH run just fine, but I have one NodeMCU 0.9 with the same symptoms. Other devices like an ESP8285 wall switch (thank goodness, what a pain to flash with USB) run just fine too. Luckily the sonoffs were spliced into power cords so relatively easy to get at.
Until I can figure it out, 1.11 is built on 2.4.2 except for devices using PWM (MppBulb, MppColor, and MppPWM) - 2.4.2 has a bug where wifi communication causes flickering in the PWM timing, fixed in 2.6.3.
https://hackaday.com/2019/01/04/underclocking-the-esp8266-leads-to-wifi-weirdness/
I just uploaded MppPublishv3.zip in the download section. It’s the first library that had 1.12.0. MppRelay was 2.0.0 by that time but I don’t think that’ll matter.
I have access to old versions on google drive, but they warn they’re not permanent. It’s not something needed often enough that I’d want to bother making externally accessible.
FWIW I’ve tried many versions of libraries with my crappy sonoffs before giving up on them. I think they’re just crappy… If you take the problematic version of the binary and run it in a different device (wemos or nodemcu) I bet it works just fine. When I take a problematic sonoff and power it through my PC/USB and monitor with MppArduino it also runs just fine. But as soon as I put the crappy thing back together and power it from the wall, it won’t stay connected. Frustrating…
Those errors from the wifi chip are coming from the espressif library, if you do suspect it’s broken in a later library you could always try building with back level espressif versions to see if that changes anything (BTDT, it didn’t).
--
You received this message because you are subscribed to the Google Groups "MppDevices" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mppdevices+...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/mppdevices/9930c090-427c-4145-bbb5-1f16180d5fben%40googlegroups.com.