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

Support for Sonoff 4ch / 4ch Pro #4

Closed
omarkmsft opened this issue Feb 21, 2018 · 18 comments
Closed

Support for Sonoff 4ch / 4ch Pro #4

omarkmsft opened this issue Feb 21, 2018 · 18 comments
Assignees
Labels
enhancement New feature or request

Comments

@omarkmsft
Copy link

Would it be possible to add support for Sonoff 4ch / 4ch Pro? Would be happy to help test on my device.

@RavenSystem
Copy link
Owner

RavenSystem commented Feb 21, 2018

Of course that is possible to suport Sonoff 4ch. The problem is that I don’t have one. My devices are Sonoff Basic, S20, S22 and TH16. I want to suport dual and 4ch too. Your help is welcome.

Can you install the Sonoff_Basic firmware and post here the results? I need an initial idea and I need what are the similar elements with Sonoff Basic switch.

Another question: your device is 4ch or 4ch pro? I think that are differents.

Many thanks.

@RavenSystem RavenSystem added the enhancement New feature or request label Feb 21, 2018
@Arduingo
Copy link

These are the GPIO Used in the 4CH

GPIO13 | Status LED (blue)
GPIO12 | Relay 1
GPIO05 | Relay 2
GPIO04 | Relay 3
GPIO15 | Relay 4
GPIO00 | Button 1 / Flash
GPIO09 | Button 2
GPIO10 | Button 3
GPIO14 | Button 4

The 4CH uses a ESP8285, the PRO uses a ESP8285 and an STM32, STM32 is used for some features related switching relay modes, but as far I have read and remember from the schematic relays and buttons can be controlled from the ESP too

@RavenSystem
Copy link
Owner

According to info provides by @Arduingo , I have released the code of Sonoff 4ch. Feel free to test it and comment (Try it on 4ch and 4ch Pro too).

Many thanks.

@omarkmsft
Copy link
Author

Thanks RavenSystem I will try this weekend. I have 4ch Pro. Will let you know result.

@Arduingo
Copy link

@omarkmsft maybe the PRO has a couple of relay signals inverted, please take not of that, also if you can try de behavior with different dip switch configurations will help adjust the code

@omarkmsft
Copy link
Author

@RavenSystem @Arduingo any chance one of you could build 4ch binary and drop in releases for me? I'm trying to setup a build environment on my box but running into issues. Would go faster if I could get a binary.

@omarkmsft
Copy link
Author

i was able to build fine so no need to drop a binary. I'll try flashing sometime in next few days.

@RavenSystem
Copy link
Owner

@omarkmsft Excellent!

@omarkmsft
Copy link
Author

Got it flashed to my Sonoff 4ch Pro today and was able to connect to Homekit directly from device - awesome! Ch1/Switch 1 seems to be responding to DIP switch settings 2sec On then Off relay. Apple homekit updates after 2 seconds of on which is cool.

Somehow Ch2, Ch3, Ch4 - don't have that behavior. Not sure if that is switch settings on board, or something to do with firmware. All I use is Ch1 so ok for now.

@omarkmsft
Copy link
Author

btw this video is helpful in showing how to get 4ch Pro in boot loader mode for flashing - https://www.youtube.com/watch?v=hOFvbdYkOII

@kiralikbeyin
Copy link

#18

@kiralikbeyin
Copy link

@omarkmsft Are you using v1.1 or v2 4ch-pro?

@simoneorsi
Copy link

with the new ravencore firmware release all my sonoff 4ch pro stop to work.
Interlocking mode didn`t funcion more. I truy to downagrade the firmware but i connot do it!
any suggestion?
thaks

@RavenSystem
Copy link
Owner

@simoneorsi What version was you using before, and what are you using now?

@simoneorsi
Copy link

simoneorsi commented Jan 16, 2019 via email

@RavenSystem
Copy link
Owner

@simoneorsi There is a lot of changes since 0.4.10. Please, update to last version 0.5.14 and provide logs and details of your bug. I suggest to open a new issue with all info about.

@simoneorsi
Copy link

simoneorsi commented Jan 16, 2019 via email

@simoneorsi
Copy link

simoneorsi commented Jan 16, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants