Sonoff 4CH with ESPEasy

Moderators: grovkillen, TD-er, Stuntteam

Message
Author
DavidVT
Normal user
Posts: 18
Joined: 26 Nov 2016, 04:27

Re: Sonoff 4CH with ESPEasy

#31 Post by DavidVT » 23 Feb 2017, 20:57

Thank you for all the help!

I learned and used the dummy device for the switches on both units.
I used the dummy device x2 for the eight 1wire sensors on that unit.
I turned off send data for all the 'real' devices. That 'seems' to have lowered the load on the 1wire Sonoff.
Sonoff 4 channel with no Temp Sensors: 21%
Sonoff 4 channel with 8 one wire sensors: 34%

FYI: The portion of the rules for feeding the 3 dummy devices on the 1wire Sonoff looks like this:
--
On Clock#Time do // this event comes in every minute
TaskValueSet 20,1,[PowerSwitch1#Switch]
TaskValueSet 20,2,[PowerSwitch2#Switch]
TaskValueSet 20,3,[PowerSwitch3#Switch]
TaskValueSet 20,4,[PowerSwitch4#Switch]
TaskValueSet 4,1,[OneWire9211#Temp]
TaskValueSet 4,2,[OneWire9212#Temp]
TaskValueSet 4,3,[OneWire9213#Temp]
TaskValueSet 4,4,[OneWire9214#Temp]
TaskValueSet 6,1,[OneWire9215#Temp]
TaskValueSet 6,2,[OneWire9216#Temp]
TaskValueSet 6,3,[OneWire9217#Temp]
TaskValueSet 6,4,[OneWire9218#Temp]
endon
--

I did learn that I can place a slash in the Task name which really helped with the MQTT subscriptions.
On the one wire unit, I have two dummy devices for the OneWire sensors but want to subscribe only once.
So, the device names are "OneWire/A" and "OneWire/B".
The MQTT subscription is "/+/OneWire/#"
That gives me all 8 sensors readings from the Sonoff4ch and 1 sensor from a wifi Sonoff that has a device name "OneWire".
--
S4onoff2DevicePage1.PNG
S4onoff2DevicePage1.PNG (33.4 KiB) Viewed 19855 times
MQTTinspector.jpg
MQTTinspector.jpg (172.6 KiB) Viewed 19855 times
This should be my last post on this as it did run off the hardware topic quite a bit..
Thx again

paxi
Normal user
Posts: 121
Joined: 02 Feb 2017, 00:48
Location: Germany

Re: Sonoff 4CH with ESPEasy

#32 Post by paxi » 23 Feb 2017, 23:38

Great!

Depending on how often the pushbuttons are used I'd prefer to update the switch states immediately instead of once per minute:

Code: Select all

on PowerSwitch1#Switch do TaskValueSet 20,1,[PowerSwitch1#Switch]
;)

wrbrower
Normal user
Posts: 6
Joined: 16 Oct 2016, 17:18

Re: Sonoff 4CH with ESPEasy

#33 Post by wrbrower » 26 Feb 2017, 16:33

Remember when flashing ESP8285 devices (Like the SONOFF TOUCH - I have not tried flashing my SONOFF 4CH yet) use SPI Mode DOUT.
Attachments
Capture.PNG
Capture.PNG (20.09 KiB) Viewed 19822 times

manjh
Normal user
Posts: 472
Joined: 08 Feb 2016, 11:22

Re: Sonoff 4CH with ESPEasy

#34 Post by manjh » 25 May 2017, 15:07

I need a little push in the right direction.
This morning I flashed brandnew Sonoff 4CH with an ESP Easy bin that I found (I currently don't have the compile environment setup, so prefer a pre-compiled set).
Attached an FTDI device (no TX/RX crossing, as advised), and attached to a USB port.
Flashing went OK, I saw the MAC address showing up in the panel so communication was OK.
It took a minute or two to download the firmware into the device, and the log showed that everything was OK.

So I detached the whole thing and connected the mains. I expected ESP_0 to show up on Wifi, but that did not happen. Nothing.
Then detached the mains, repeated the whole procedure just to make sure. Same result.
I then kept serial (TX/RX) connected, detached ground and vcc, started the Arduino IDE as port monitor and plugged in the mains.
On 57600 baud, I could see the usual startup information coming up, but after that a lot of rubbush.
Unplug the mains and replug: same result. Tried other speeds but then no readable text is coming up.

Any hints, or advise?

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

Re: Sonoff 4CH with ESPEasy

#35 Post by Shardan » 25 May 2017, 18:26

Hello,

two things about this.
ESPEasy on the serial answers on 115200 Bd on the serial.

Second: The sonoff 4ch uses a little different chip. It is not the ESP8266, it's the ESP8285.
This chip has it's own flash built in and uses it a little different from the usual ESP8266 with external flash.

So you definitely need to compile your own ESP-firmware. The ready made .bin-files are for ESP8266.

You may use this version i've compiled for my own 4ch's.
ESPEasy_R148a_1024.zip
(281.09 KiB) Downloaded 621 times
Please anyone, be aware: This is not an official release, don't expect support for it.

Regards
Shardan
Regards
Shardan

manjh
Normal user
Posts: 472
Joined: 08 Feb 2016, 11:22

Re: Sonoff 4CH with ESPEasy

#36 Post by manjh » 26 May 2017, 18:07

I used a pre-compiled bin file, especially for the Sonoff 4CH.

But just to make sure, I installed the Arduino environment, downloaded the latest 2.0+ source, installed the libs in the right place, and downloaded the ESP board info set.
Then selected the right com port and board (ESP8285), and then recompiled and downloaded into the board without problems.

After that checked the serial monitor: nothing.

Next step was to disconnect vcc from my ftdi device, and plug in the mains.
I then saw something coming up on the serial monitor, readable at 74880 baud:

Code: Select all

 ets Jan  8 2013,rst cause:1, boot mode:(3,6)

load 0x4010f000, len 1384, room 16 
tail 8
chksum 0x2d
csum 0x2d
v4022eaa8
~ld
ƒÿÿ“ÿû»
Does this make sense to anyone? Since the Arduino compiler will download the firmware without complaints, I am guessing the hardware is OK.
But what is wrong then?

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

Re: Sonoff 4CH with ESPEasy

#37 Post by Shardan » 26 May 2017, 18:50

manjh wrote:
26 May 2017, 18:07

Next step was to disconnect vcc from my ftdi device, and plug in the mains.
I suggest to try another USB-TTL board with CH340G, PL2202 or similiar.
The FT232 on the cheap modules is a fake chip in most cases.
A genuine FT232 chip alone costs around 5€/piece in lots of 1000.
Compare the price you paid to that.....


Anyways, FTDI has taken measurements against those fakes:
The data you send to the ESP will be corrupted by the windows driver
if the driver detects a fake chip. As the flash programs can't do a
"read back and compare" it looks like flashing worked fine.
But some of the code has ben replaced by "FAKE CHIP DETECTED"
or something similiar this ruining the code.

(Note to myself: Make a prepared text for this... ;) )

Regards
Shardan
Regards
Shardan

manjh
Normal user
Posts: 472
Joined: 08 Feb 2016, 11:22

Re: Sonoff 4CH with ESPEasy

#38 Post by manjh » 26 May 2017, 20:37

I've used these ftdi units for several other flashes, without any problem. Most recently I flashed 4 Sonoff single channel units, and they work just fine. So I am guessing I must have the "real" chips... :D
FYI: I have two different FTDI converters, tried both.

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

Re: Sonoff 4CH with ESPEasy

#39 Post by Shardan » 27 May 2017, 00:17

Did you set DIO mode for flashing?

Otherwise your 4ch might be faulty.
Regards
Shardan

manjh
Normal user
Posts: 472
Joined: 08 Feb 2016, 11:22

Re: Sonoff 4CH with ESPEasy

#40 Post by manjh » 27 May 2017, 08:52

Shardan wrote:
27 May 2017, 00:17
Did you set DIO mode for flashing?

Otherwise your 4ch might be faulty.
Where in the Arduino IDE can I set DIO mode?

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

Re: Sonoff 4CH with ESPEasy

#41 Post by Shardan » 27 May 2017, 11:04

Sorry, i have to pass on that, i don't use the arduino ide for flashing.

I've compiled with the "Export Binary File" option and used the .bin file with the ESPtool delivered with the R14x versions.
Regards
Shardan

Bas Spiek
Normal user
Posts: 2
Joined: 11 Jun 2017, 18:12
Location: Heteren

Re: Sonoff 4CH with ESPEasy

#42 Post by Bas Spiek » 11 Jun 2017, 18:48

Have somebody solved this problem already? i also have a sonoff 4ch. flash looks ok no errors. but no esp01 on wifi.

Hope somebody kan help me, drives me crazy :shock:

manjh
Normal user
Posts: 472
Joined: 08 Feb 2016, 11:22

Re: Sonoff 4CH with ESPEasy

#43 Post by manjh » 11 Jun 2017, 19:21

Did you check what the unit gives back over serial? Set at 115K and see what comes out...

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

Re: Sonoff 4CH with ESPEasy

#44 Post by Shardan » 11 Jun 2017, 19:58

Which programmer did you use?
Regards
Shardan

Bas Spiek
Normal user
Posts: 2
Joined: 11 Jun 2017, 18:12
Location: Heteren

Re: Sonoff 4CH with ESPEasy

#45 Post by Bas Spiek » 13 Jun 2017, 21:53

Solved,

The programmer that came with the bin file (FlashESP8266.exe) did not work. Now i used the Nodemcu programmer and that worked well!!
Now i have ESPEasy_v2.0.0-dev10_normal_1024.bin flashed on my Sonoff 4 channel.


THX :D

ewaldharmsen
Normal user
Posts: 55
Joined: 16 Feb 2017, 09:23

Re: Sonoff 4CH with ESPEasy

#46 Post by ewaldharmsen » 21 Jun 2017, 08:01

thanks for this post!

I succesfully flashed my 4CH.

However I would like a few more GPIO pins.
I planned to solder pins for GPIO7 and 8, but they are not available in the ESP Easy GUI.

How can I add them?

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

Re: Sonoff 4CH with ESPEasy

#47 Post by Shardan » 21 Jun 2017, 15:16

Use of GPIO 7 / 8 is not recommendet as they are used for other purposes (SDIO/SPI).
That's why they are simply not built into the firmware.

Anyways yo may alter the firmware to your needs and compile it yourself.

Regards
Shardan
Regards
Shardan

manjh
Normal user
Posts: 472
Joined: 08 Feb 2016, 11:22

Re: Sonoff 4CH with ESPEasy

#48 Post by manjh » 11 Jul 2017, 13:09

I just received a fresh Sonoff 4CH this week, and tried to flash it. Before doing that I checked with the Sonoff app and found the unit in good working condition.
Then I tried to flash it with the "Captain-Slow" R148 bin file with the NodeMCU programmer. It appeared to load OK, but after that I tried to restart the Sonoff and looked for the Wifi access point, nothing there. Also tried to connect to serial and see what comes out. Nothing.

After that I tried the Arduino compiler, set it to the right device and size (1M), and compiled/loaded.
No complaints from the compiler, and the load went 100% OK.
Restarted the Sonoff, still no sign of it on Wifi or serial.

Any hints?


Edit: I found out that the combination of the right bin file with the proper loader is important.
I found a bin file named "ESPEasy_R148a_1024" (source unknown...) and combined it with the usual Esptool.exe and flash.cmd files. Then uploaded into my new 4CH and: success!
This solution was actually recommended a few postst above by Shardan, on 27 May 2017, 11:04. So I could have known.... :mrgreen:

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

Re: Sonoff 4CH with ESPEasy

#49 Post by Shardan » 11 Jul 2017, 15:16

Hello,

the R148a-file was published by me.
The main difference is that the sonoff 4ch uses a ESP8285, not an ESP8266 so it has to be compiled for this CPU.
They differ in the way memory is connected so the compiler has to take care for that.

Regards
Shardan
Regards
Shardan

cy80rg
Normal user
Posts: 8
Joined: 23 Aug 2017, 22:08

Noob question?

#50 Post by cy80rg » 23 Aug 2017, 22:22

Evening all,

Work in IT and pretty au fait with Raspberry Pi stuff (so vaguely intelligent, I like to think! ;) )

My new Sonoff 4 channel switch is my first project trying to flash EasyESP.

I've flashed stuff before, but I cant work out how to give the Sonoff enough power to boot?

I saw one video where the guy's Sonoff (pro) has a DC-in, but my non-pro doesnt have that.

I've been trying to work off this...
https://captain-slow.dk/2017/04/01/flas ... onoff-4ch/

By putting the voltage reg inline on my breadboard - but the Sonoff didnt power on at all, perhaps unsurprisingly.

Looking at that tut linked above, he's got seperate pins for 5v, VCC and 3.3v.
With the jumper between vcc & 3.3v, I beleive that just sets the "value" / output of VCC to 3.3v?
On my programmer, my 5v / 3.3v jumper is on a seperate jumper pins on the board.

Just running the Sonoff off the 3.3v on the programmer, the Sonoff booted, but then constantly rebooted due to the lack of ampage (as expected).

My programmers one of these...
Image

Any help on this please?

Thanks :)

cy80rg
Normal user
Posts: 8
Joined: 23 Aug 2017, 22:08

Noob - powering Sonoff for flash?

#51 Post by cy80rg » 23 Aug 2017, 22:37

More specifically, my issue is:

On his modd'ed programmer in that tutorial, he's got 3 pins - 1 VCC, 1 3.3v, 1 ground.

On my programmer, I have two pins - Vcc and ground.

Looking at his programmer / voltage reg, he's got the first two legs of the voltage reg going to VCC and 3.3, but then using a jumper to short them together / set 3/3v.
The 3rd leg of the reg is ground, which is easy enough.

On my programmer, I only have the one Vcc + voltage select on jumpers above the out put pins, so - in desperation - I figured that joining both Vin and OUT on the reg to the VCC on the programmer would be an equivalent... obviously not.

From the inline voltage reg (on my breadboard) I had Vin and OUt going to VCC on the programmer, with Ground going to Ground on the Sonoff.

Clearly I was incorrect - what should i have done?

sjp770
Normal user
Posts: 3
Joined: 24 Aug 2017, 03:49

Re: Sonoff 4CH with ESPEasy

#52 Post by sjp770 » 24 Aug 2017, 03:56

Any ideas if the Sonoff 4CH Pro is supported? Would love to have the RF support as well.

manjh
Normal user
Posts: 472
Joined: 08 Feb 2016, 11:22

Re: Sonoff 4CH with ESPEasy

#53 Post by manjh » 24 Aug 2017, 08:17

What you could do is connect tx/rx and ground, keeping the vcc pin open, and then connect the Sonoff to mains. Careful! :geek: :ugeek: :geek:

cy80rg
Normal user
Posts: 8
Joined: 23 Aug 2017, 22:08

Re: Sonoff 4CH with ESPEasy

#54 Post by cy80rg » 24 Aug 2017, 09:20

Thanks Manjh ,
I know it's easy to "ignore the dumb noob" when you guys are all at such a higher level :)

Much appreciate your help, I'll give that a try tonight.

Apart from "generally not poking things with a screw driver" when connected to the mains, and specific non no's?

From your advice, I plan to run a direct mains supply into the "wire clamp input" (no barrel input on this model)...

Is that correct?

manjh
Normal user
Posts: 472
Joined: 08 Feb 2016, 11:22

Re: Sonoff 4CH with ESPEasy

#55 Post by manjh » 24 Aug 2017, 14:06

cy80rg wrote:
24 Aug 2017, 09:20
Thanks Manjh ,
I know it's easy to "ignore the dumb noob" when you guys are all at such a higher level :)

Much appreciate your help, I'll give that a try tonight.

Apart from "generally not poking things with a screw driver" when connected to the mains, and specific non no's?

From your advice, I plan to run a direct mains supply into the "wire clamp input" (no barrel input on this model)...

Is that correct?
Don't worry if you're a noob or not (I doubt it), even Einstein started out as an absolute noob :)

The only thing you need to remember when you're working on the Sonoff 4CH when it is attached to mains: there will be leads on the bottom that are "live". So make sure you place the print in the bottom part of the housing, and place it on a very stable flat surface. Make sure the leads are out of the way so you can't accidentally pull the print from the table. Imagine what would happen if in a reflex you try to catch it...
All jokes aside, 230V is no joke to play around with.

So connect a wire with a plug to the "mains in", connect tx/rx (remember: no crossing for this device!), and connect ground (probably not really needed, but I would connect it anyway).
Once you are satisfied that everything is connected: connect the plug to a mains outlet.

cy80rg
Normal user
Posts: 8
Joined: 23 Aug 2017, 22:08

Re: Sonoff 4CH with ESPEasy

#56 Post by cy80rg » 24 Aug 2017, 14:50

Thanks Manjh :)

One last...

When you say "no crossing on this device", does that mean

A) the device doesnt cross tx to Rx, so I'll need to
Or
B) the device does cross, so I don't need to?

So Rx to Rx, tx to tx?

manjh
Normal user
Posts: 472
Joined: 08 Feb 2016, 11:22

Re: Sonoff 4CH with ESPEasy

#57 Post by manjh » 24 Aug 2017, 16:28

cy80rg wrote:
24 Aug 2017, 14:50
Thanks Manjh :)

One last...

When you say "no crossing on this device", does that mean

A) the device doesnt cross tx to Rx, so I'll need to
Or
B) the device does cross, so I don't need to?

So Rx to Rx, tx to tx?
Normally you would cross: so connect tx to rx and vv.
With the Sonoff the labels tell you where to connect. So connect tx to tx, rx to rx.

cy80rg
Normal user
Posts: 8
Joined: 23 Aug 2017, 22:08

Re: Sonoff 4CH with ESPEasy

#58 Post by cy80rg » 24 Aug 2017, 19:24

thanks manjh

home now, got the sonoff and the programmer connected as you suugest - runnng off the mains.

power to the sonoff is stable.

I was hoping it would just be a case of "holding down the first button", then appying power to the sonoff to get in to boot flash mode...

Howver, if i do that - the sonoff doesnt seem to turn on at all (no lights).

However, if i push the first button (fw/100 - I like the fact it's labelled "fw"!) , after the sonoff is powered, the L4 led lights (IO4) - in what may be green or red (im color blind).

Trying to upload a bin to the sonoff via Nodemcu... I get

Arbitrarily set to COm5, as thats what Nodemcu started up with.

AP MAC - Waiting MAC
STA MAC - waiting mac

Blue spinning icon bottom let corner (which i assume means it thinks its doing something), and reuire ("gpio") and require("wifi") fade in and out under the com area of the UI.

I would imagine those are the current commands being sent to - received from the sonoff - but they just repeat...

Silly question - this sonoff is straight out of the box - I've never had it associated on my wifi etc - do i need to do the basic set up, as per the OEM fw, first?

For fear the FW is actually being written - I'll leave it all plugged in and "doing it's thang" for a while....

manjh
Normal user
Posts: 472
Joined: 08 Feb 2016, 11:22

Re: Sonoff 4CH with ESPEasy

#59 Post by manjh » 24 Aug 2017, 20:12

You will need to get the Sonoff in flash mode before applying power. If it reacts to that first button like you describe, it means that the firmware is still the original Sonoff.
If you want to test, you could download their app and see if you can pair it.

So: press and hold the button and only then plug in the mains. That should do it (I flashed two of them this way)

cy80rg
Normal user
Posts: 8
Joined: 23 Aug 2017, 22:08

Re: Sonoff 4CH with ESPEasy

#60 Post by cy80rg » 24 Aug 2017, 22:48

Thanks Manjh,

So, hold down the first button (marked fw/io01) then power the sonoff, then release the button...?

How does the Sonoff show its in flash mode, lit LEDs etc?

When I did that with mine, it didn't show any LEDs or sign of life period.

I have since paired and tested with the OEM app, so at least I've not killed it....

manjh
Normal user
Posts: 472
Joined: 08 Feb 2016, 11:22

Re: Sonoff 4CH with ESPEasy

#61 Post by manjh » 24 Aug 2017, 22:54

cy80rg wrote:
24 Aug 2017, 22:48
Thanks Manjh,

So, hold down the first button (marked fw/io01) then power the sonoff, then release the button...?

How does the Sonoff show its in flash mode, lit LEDs etc?

When I did that with mine, it didn't show any LEDs or sign of life period.

I have since paired and tested with the OEM app, so at least I've not killed it....
If you have paired with the app, you were not successful in flashing.
When the Sonoff is in flash mode it does not show anything special.
Also, when you flash code while it is NOT in flash mode, everything seems to go OK since the flash tool does not really have a way to check.
So the only way to know if it worked: try to reboot the unit and see if you get the AP coming up in Wifi... :-)

cy80rg
Normal user
Posts: 8
Joined: 23 Aug 2017, 22:08

Re: Sonoff 4CH with ESPEasy

#62 Post by cy80rg » 25 Aug 2017, 19:36

W00t! :)

Got it working - on the wifi and I'm about to start the set up process...

FOr others who may find it of use, few things that through me:

1. To get into boot loader mode (flash mode), hoeld won the first button on the Sonoff 4 ch... with the lid of the case off, you should find this is marked FW/IO0 .
2. Power on the Sonoff
3. In boot mode - there's NO LIGHTS or anything to show the Sonoff is even on. But, it is - and in boot mode!
4. A case of RTFM, but this WONT appear as a new device on your network (i.e access it via an IP on your network) - largely becuase it ISNT at this point.
Instead, use some other wifi device (phone etc), search for a new Access Point (probably ESP_O or simmilar) and connect to that. It'll ask you to sign in (see wiki for pw), then simply eneter your wifi creds.
The Sonoff will reboot, then register and appear on your network.
From there - go to that IP and do all that set-upy-jiggerypokery I'm about to do!

NOTE: These points above *arent a complete step through* - they're just stuff that threw me - and in fairness, much of it is RTFM and getting a bit confused ;)

Thanks to ManJh for his help, even as I could feel him losing the will to live towards the end... ;)

Cheers buddy :)

manjh
Normal user
Posts: 472
Joined: 08 Feb 2016, 11:22

Re: Sonoff 4CH with ESPEasy

#63 Post by manjh » 26 Aug 2017, 08:48

cy80rg wrote:
25 Aug 2017, 19:36
W00t! :)

Got it working - on the wifi and I'm about to start the set up process...

FOr others who may find it of use, few things that through me:

1. To get into boot loader mode (flash mode), hoeld won the first button on the Sonoff 4 ch... with the lid of the case off, you should find this is marked FW/IO0 .
2. Power on the Sonoff
3. In boot mode - there's NO LIGHTS or anything to show the Sonoff is even on. But, it is - and in boot mode!
4. A case of RTFM, but this WONT appear as a new device on your network (i.e access it via an IP on your network) - largely becuase it ISNT at this point.
Instead, use some other wifi device (phone etc), search for a new Access Point (probably ESP_O or simmilar) and connect to that. It'll ask you to sign in (see wiki for pw), then simply eneter your wifi creds.
The Sonoff will reboot, then register and appear on your network.
From there - go to that IP and do all that set-upy-jiggerypokery I'm about to do!

NOTE: These points above *arent a complete step through* - they're just stuff that threw me - and in fairness, much of it is RTFM and getting a bit confused ;)

Thanks to ManJh for his help, even as I could feel him losing the will to live towards the end... ;)

Cheers buddy :)
Good,well done. :D
But one thing you are absolutely right about: all of this has been documented in the Wiki. The only thing that is different is the fact that a regular ftdi programmer will not supply the amount of power to run the device. With a "normal" esp unit it will run fine, a Sonoff 4ch is simply too power-hungry. So this is where the mains-on trick comes along.
The rest of the steps are fairly standard, so yes: RTFM! :mrgreen:

Dylantje
Normal user
Posts: 255
Joined: 11 Oct 2015, 16:51

Re: Sonoff 4CH with ESPEasy

#64 Post by Dylantje » 17 Sep 2017, 19:09

sorry guys...

Is there a way in a wiki or so, to flash this 4channel board..
I read there is a other version for this board.

Only where can i find the flash tool and the firmware for generic ESP8285

search the net...
Only think do everything wrong..
Flash with esp8266 only no luck @ all..

Hope for some help ..

Thanks

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

Re: Sonoff 4CH with ESPEasy

#65 Post by Shardan » 17 Sep 2017, 21:49

look at page 4 of this thread.
i've posted a compiled verion for the 4ch there
Regards
Shardan

Dylantje
Normal user
Posts: 255
Joined: 11 Oct 2015, 16:51

Re: Sonoff 4CH with ESPEasy

#66 Post by Dylantje » 17 Sep 2017, 22:22

Shardan wrote:
17 Sep 2017, 21:49
look at page 4 of this thread.
i've posted a compiled verion for the 4ch there
mm
Thanks i see that..
Only i do not understand how to use this in ide?
What do i need to load?
And where to place ?

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

Re: Sonoff 4CH with ESPEasy

#67 Post by Shardan » 17 Sep 2017, 22:40

i used the standard esp tool that came with the r14x ( it is a bit different from the esptool that came with r120).
For my 4ch's i could just flash the binary directly, worked. As long as Itead did not change things as they did with sonoff basic it should work.
Regards
Shardan

Dylantje
Normal user
Posts: 255
Joined: 11 Oct 2015, 16:51

Re: Sonoff 4CH with ESPEasy

#68 Post by Dylantje » 18 Sep 2017, 19:48

Shardan wrote:
17 Sep 2017, 22:40
i used the standard esp tool that came with the r14x ( it is a bit different from the esptool that came with r120).
For my 4ch's i could just flash the binary directly, worked. As long as Itead did not change things as they did with sonoff basic it should work.
Sorry i do not understand what you say here...?
Please i am a dummy

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

Re: Sonoff 4CH with ESPEasy

#69 Post by Shardan » 18 Sep 2017, 22:42

sorry, i'm on vaccation atm and i have only my old tablet at hand.
With one of the r14x versions a reworked flash tool was delivered.
that was the flashtool i used with the binary i attached with this thread.
Regards
Shardan

manjh
Normal user
Posts: 472
Joined: 08 Feb 2016, 11:22

Re: Sonoff 4CH with ESPEasy

#70 Post by manjh » 19 Sep 2017, 00:36

Shardan wrote:
18 Sep 2017, 22:42
sorry, i'm on vaccation atm and i have only my old tablet at hand.
With one of the r14x versions a reworked flash tool was delivered.
that was the flashtool i used with the binary i attached with this thread.
Same here. I had my share of trouble flashing the Sonoff units, and in the end found that old flash tool to work best.

Dylantje
Normal user
Posts: 255
Joined: 11 Oct 2015, 16:51

Re: Sonoff 4CH with ESPEasy

#71 Post by Dylantje » 19 Sep 2017, 07:18

mm m where can i find this tool? [ i do not have it ]
And can i flash then the normal latest espeasy beta with it?
Or does any one have a working os for me,

Thanks

manjh
Normal user
Posts: 472
Joined: 08 Feb 2016, 11:22

Re: Sonoff 4CH with ESPEasy

#72 Post by manjh » 19 Sep 2017, 10:14

Dylantje wrote:
19 Sep 2017, 07:18
mm m where can i find this tool? [ i do not have it ]
And can i flash then the normal latest espeasy beta with it?
Or does any one have a working os for me,

Thanks
This is quite easy to find in the Wiki. Look for the esp setup, there is a link to a download which also brings the esptool downloader and cmd files.
Then when you want to load a 2.0 release or a version that you compiled yourself, make sure it follows the naming convention for the loader tool.

Note that for the Sonoff 4CH unit you will need to recompile using a different processor.

Dylantje
Normal user
Posts: 255
Joined: 11 Oct 2015, 16:51

Re: Sonoff 4CH with ESPEasy

#73 Post by Dylantje » 20 Sep 2017, 18:55

mm when i have tie i try...

Only what are the gpio port to use for the four channels?
And how can i switch them with a http command..

Thanks

manjh
Normal user
Posts: 472
Joined: 08 Feb 2016, 11:22

Re: Sonoff 4CH with ESPEasy

#74 Post by manjh » 20 Sep 2017, 19:24

Dylantje wrote:
20 Sep 2017, 18:55
mm when i have tie i try...

Only what are the gpio port to use for the four channels?
And how can i switch them with a http command..

Thanks
GPIO 4, 5, 12 and 15.
Buttons are 0,9,10 and 14.
I switch them from the rules, so I can give a simple json command and let the rules translate it into the proper GPIO.

When I have some time I will update the Wiki to reflect my setup as a small project.

Dylantje
Normal user
Posts: 255
Joined: 11 Oct 2015, 16:51

Re: Sonoff 4CH with ESPEasy

#75 Post by Dylantje » 20 Sep 2017, 19:26

manjh wrote:
20 Sep 2017, 19:24
When I have some time I will update the Wiki to reflect my setup as a small project.

Hope you do that...
Cannot understand the wiki..
Hope you will let it know when..

thanks!

manjh
Normal user
Posts: 472
Joined: 08 Feb 2016, 11:22

Re: Sonoff 4CH with ESPEasy

#76 Post by manjh » 20 Sep 2017, 19:32

Dylantje wrote:
20 Sep 2017, 19:26
manjh wrote:
20 Sep 2017, 19:24
When I have some time I will update the Wiki to reflect my setup as a small project.

Hope you do that...
Cannot understand the wiki..
Hope you will let it know when..

thanks!
Which part don't you understand?
In my view, the Wiki was set up quite good, and has recently been reorganized.
It should be easy to understand for everyone!

Dylantje
Normal user
Posts: 255
Joined: 11 Oct 2015, 16:51

Re: Sonoff 4CH with ESPEasy

#77 Post by Dylantje » 20 Sep 2017, 19:34

mmm what part do you talking about..
The normal is no problem i flashed 10 sonoff
Only the wiki for the 4 channel :-( ?

Dylantje
Normal user
Posts: 255
Joined: 11 Oct 2015, 16:51

Re: Sonoff 4CH with ESPEasy

#78 Post by Dylantje » 20 Sep 2017, 19:48

and other topic only no answer

Do you perhaps know how i can use the Sonoff dual..
Please a http command? with the gpio that is used..
A example please?
Thanks

manjh
Normal user
Posts: 472
Joined: 08 Feb 2016, 11:22

Re: Sonoff 4CH with ESPEasy

#79 Post by manjh » 20 Sep 2017, 21:10

Dylantje wrote:
20 Sep 2017, 19:48
and other topic only no answer

Do you perhaps know how i can use the Sonoff dual..
Please a http command? with the gpio that is used..
A example please?
Thanks
This thread is about the Sonoff 4CH.
The Sonoff dual is a totally different beast, I seem to remember that it has a different architecture that is not supported by EspEasy.

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

Re: Sonoff 4CH with ESPEasy

#80 Post by Shardan » 20 Sep 2017, 22:01

search for the sonoff dual here in the forum.

it uses a secondary signal processor at the serial port and is not supported
by the standard espeasy version.
if i remember right there where some attempts to integrate it
but honestly i can't say if there was a success and if there is a testing module.
Regards
Shardan

Post Reply

Who is online

Users browsing this forum: No registered users and 11 guests