-
-
Notifications
You must be signed in to change notification settings - Fork 14
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
Orvibo S20 WiWo-S20-E2 suport #21
Comments
Please open the device and post some photos of the PCB. |
Thanks, but unfortunately it's not easy to see the connections. |
Yes I do. Please tell me what points on the picture you want me to track. |
Nice work! Select "custom" device and config gpios as you posted: Save to flash and reboot. When all works ok, post a screenshot of the GPIO page and I'll add that config in the FW as a new device in the list. |
New release: Were you able to try it? |
Sorry I missed your message. I was trying to recall but i don't seem to remember what software i used to flash the module last time. can you please remind me of the flash process? and can i flash the upgrade directly or do i need to flash a base and then this upgrade. I tried SecureCRT but I'm not getting a connection. I have done this so long ago... |
Don't you have access to the update webpage? |
I needed to change to my old wi-fi credentials but now i can... now the question is what was the default user name and password? |
I know these 2 are common: |
You need to use the "Upgrade application" not "Upgrade customized web page". (don't select any file on the "Upload custumized webpage") |
Great progress. Now Relay works, Button works. Led does not: I notice that the device is equipped with a dual color (only 2 pin led) red one direction blue in the other. so it goes Pin12 --> Led --> Resistance --> Pin 11 |
Good news! For now, if you want to have a working LED color, set one pin to the "buzzer" function (it will stay '0') and the other to the 'LED' function. (swap pin config to change color). Then in the Module config page you can select the led behaviour. I'll add support for dual color leds as soon as I can. |
@kodacy I noticed that you screenshot of "application upgrade" page is in Portuguese so I'm guessing you're either from Portugal or Brazil. If you're from Portugal, did you bought this plug in one of our local stores? If yes, which one? |
What are they used for in the original firmware? Red Pin 12 for connection Status Blue Pin 11 relay on/off The only way i could make the Led work was with the Flowing config: Yes I'm from Porto, but this device was gifted to me a wile ago when my friend ask me to add Tasmota to it and we found it was not ESP based. I studied it in that time but was waiting on a drawer until you replayed to my issue. |
When I said "reverse" I mean swap pins (Wifi=11, Buzzer=12) - did you try that? It should work. PS: We're close :) Matosinhos here. |
Yes i tried that, does not work. but I think that might be related with the resistance in one side of the LED. well small world, we can exchange some ideas live now if needed. |
I tested the continuity from left pin of the led to pin 12 and it is fully connected. and from the right pin to Resistance 561 then Resistance 561 is connected to pin 11. If i test the continuity form right led pin to pin 11 directly i don't have a connection due to the resistance. Or maybe the red Led might be damaged with all the testing. |
The latest firmware (1v1) supports 2 independent leds but it would be nice if you could do some tests with the dual color led you have (I don't think it is damaged). Select you device first (S20) in the config to set GPIO pins (save and reboot). If nothing happens, change to "custom" device and set "Active low" on both LEDs and repeat the above test. Let me know how it goes. If any of these tests work I can add proper support for it. |
When I set Device Type to Wiwo-s20 BTW increased the Button debounce time Recovery timer and Recovery # of toggles for more stable work |
On "custom" device and set "Active low" on both LEDs the resolt is similar but in inverted positions red Led never blinks |
Added first - thank you. This brings life back to some much older / harder to integrate kit into a more up to date HA set-up, please take none of the following as criticism in any way what so ever. So... firstly to add - I can attest that I am able to flash both the UK and the EU variants of the Orvibo/wiwo S20. I first use a serial flash to get the default HF firmware ( both application and wifi ) and then use the OTA method to use the hfeasy firmware, so far so good. I have selected the wiwo-20 as the device type. Problems issues seen so far - I do happen to use a WPA2/AES password that is 63 characters long, this does not take when entered in the GUI - I assume there is a hard coded shorter limit ( 32 characters? ) maybe in the wifi stack so cannot be changed? Similarly for MQQT I have a 100 character password ( Home Assistant / carry over from user login ) which will not take - I believe this is in the hfeasy code and currently has a hard coded shorter limit as well, for this I have created another user with a shorter password as a work around but maybe something to look at ( this is up against Tasmota which can handle the longer passwords for wifi / mqqt without issue ) a "will not fix" could be appropriate if there are hardware limitations that you are up against here. I see the same issues around the LED as above. Blue LED seems to be not a problem it can be set / flash etc. all appropriately, button works to change the relay state. It would be great to get the dual colours working so that there is a visual indication that the socket is powered / connected to wifi as well as when the socket is on - similar to how it is with the default Orvibo firmware - something like blue when plugged in / on wifi which changes to red when the relay is on as well. How can I help to debug this further? Visually the UK boards are identical to the EU one, the serial flash was done by soldering pin-header into the GND/TX/RX holes and the VCC hole ( data sheet says VCC should be 3.3v not 5v :) ) and hooking up a standard TTL<>USB adapter to a mac ( in this case ) machine and using a terminal that can xmodem files out. |
Adding to the circuit tracing above: Pin 12 ( PWM2 ) ----- + |>-----RESISTOR---- Pin 11 ( PWM1 ) Red LED forward voltage 1.92V An "expected" behaviour would be to have no LED lit when the plug is neither connected to wifi and the relay is off, one colour LED ( say blue ) lit when the relay is off and wifi is connected, and finally the other LED ( say red ) lit when the relay is on. Being a dual diode the colours are ( of course ) mutually exclusive so the over-riding LED should be the one that shows the relay is on irrelevant of wifi status. So an example of and ideal start up:
Swap blue / red as appropriate above - not wedded to either colour for a specific function. I hope this is helpful. |
Any update on the LED issue? I've flashed my S20 with this nice fw and included it in HA. If LED's would work as well like @NesporBellisRM desired, it would be awesome. |
Hi, could you please provide info on how you flashed this device (with any fw)? EDIT: Managed it. After wiring it up, you need to somehow bring nreload to ground - there's no hole for this so I put a crocodile clip on one of the button's contacts. I expect holding the button also works. The tricky bit to figure out was to hit space within milliseconds of booting/resetting. You really don't have much time. |
FWIW the two LEDs work fine for me (LED1 is BLUE, LED2 is RED). I'm not sure how to recreate the original firmware past relay though:
But then I guess the latter two features aren't relevant anymore anyway. Ideally I'd want RED = Relay off and Blue = Relay on but beggars can't be choosers. EDIT: By setting LED2 to low (custom) and both LEDs to Relay I got the behaviour I was after. |
hello Sshaikh are you testing on the same Orvibo model WiWo-S20-E2, I have tried to reproduce your test and never was able to get the blue led to blink |
It is the UK model which I believe is the same inside. To be clear I have not got it to blink, only red = off, blue = on. You have to set the device to custom in order to set led2 to low in the gpio section. |
Hi Luís thank you for all your work on this project.
I have Fashed though UART//Seral and Orvibo S20 WiWo-S20-E2 with the original HF software since this module is based on a HF-LPB100.
Was able to configure the WF-Fi connectivity though the Http interface and connect it to my network. as was even able to install your firmware and i can see the configure and control pages. but when I send the command to change the sate or press it does not activate the relay. Also the led (blue/red) do not work (ever with the HF software) and the physical button on the plug resets the device and disconnectes it from the network.
I believe the relay, button and Leds on the Orvibo S20 might be connected to different GPIO pins on the HF-LPB100 when comparing to Ankuoo models. If you can tell me the GPIO used by your firmware I trace the lines on the S20 and find the differences.
In alternative maybe I'm missing some part of the S20 software to control the relay / led / button they have on-board.
any suggestion how to make Orvibo S20 work with HFeasy?
The text was updated successfully, but these errors were encountered: