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 Blitzwolf BW-SHP5 3680W EU #5756

Closed
Cybolord opened this issue May 6, 2019 · 54 comments
Closed

Support for Blitzwolf BW-SHP5 3680W EU #5756

Cybolord opened this issue May 6, 2019 · 54 comments
Labels

Comments

@Cybolord
Copy link

@Cybolord Cybolord commented May 6, 2019

Is the new Blitzwolf BW-SHP5 supported (ESP8285)?
please see LINK

Cant find any Info about this

...successfully flashed v6.5.0 but Button not working:
so tried to build a new template for device (based on generic device "18") but failed so far...

@Cybolord Cybolord changed the title Support for Blitzwolf BW-SHP5 Support for Blitzwolf BW-SHP5 3680W EU May 6, 2019
@blakadder

This comment has been minimized.

Copy link
Collaborator

@blakadder blakadder commented May 6, 2019

It is not on the supported modules list and henceforth not supported. If you cannot map the gpio's yourself you'll have to wait for someone else with the device to do it. Keep an eye on the template repo

@blakadder blakadder closed this May 6, 2019
@Cybolord

This comment has been minimized.

Copy link
Author

@Cybolord Cybolord commented May 6, 2019

so I would like to offer my help and not only waiting for "someone else" indeed but need a few hints ;)

BW-BHP5

@blakadder

This comment has been minimized.

Copy link
Collaborator

@blakadder blakadder commented May 6, 2019

It is appreciated but you have failed to read the message when opening an issue. This is not the place to configure your new device. Read the wiki on Templates and new device configuration or seek help in discussion channels

@meingraham

This comment has been minimized.

Copy link
Collaborator

@meingraham meingraham commented May 6, 2019

@Cybolord - Hints available here and here.

@Cybolord

This comment has been minimized.

Copy link
Author

@Cybolord Cybolord commented May 6, 2019

@Cybolord - Hints available here and here.

...great, thanks a lot meingraham!

@zewelor

This comment has been minimized.

Copy link

@zewelor zewelor commented May 6, 2019

@Cybolord How did you flashed tasmota ? Using tuya-convert or flasher via pins ?

@GoNzCiD

This comment has been minimized.

Copy link

@GoNzCiD GoNzCiD commented May 9, 2019

@Cybolord How did you flashed tasmota ? Using tuya-convert or flasher via pins ?

I can't by tuya-convert. I have flashed it via pins

@GoNzCiD

This comment has been minimized.

Copy link

@GoNzCiD GoNzCiD commented May 9, 2019

@Cybolord, can you made it work? I have just flashed one SHP5 with tasmota 6.5.0

@zewelor

This comment has been minimized.

Copy link

@zewelor zewelor commented May 9, 2019

@GoNzCiD DO you have photo which pins and how did you connect flasher ?

@GoNzCiD

This comment has been minimized.

Copy link

@GoNzCiD GoNzCiD commented May 11, 2019

1
IOD => IO0 short to gnd on boot to enter in flash mode. @zewelor
And flashed with NodeMCU-PyFlasher-4.0

@zewelor

This comment has been minimized.

Copy link

@zewelor zewelor commented May 12, 2019

@GoNzCiD Thanks for info. Just to be sure, 5V is correct, not 3.3V ?

@GoNzCiD

This comment has been minimized.

Copy link

@GoNzCiD GoNzCiD commented May 13, 2019

@GoNzCiD Thanks for info. Just to be sure, 5V is correct, not 3.3V ?

Yes, look at the pcb on the other side:
2

@zewelor

This comment has been minimized.

Copy link

@zewelor zewelor commented May 13, 2019

Right thanks !

@waiet

This comment has been minimized.

Copy link

@waiet waiet commented May 14, 2019

I adding more photos esp8285 from shp5
received_299680470962523
shp5_pins
received_463231024431186

@thomasklingbeil

This comment has been minimized.

Copy link

@thomasklingbeil thomasklingbeil commented May 16, 2019

SHP5

Energy monitoring is done with an HLW8032 (https://datasheet.lcsc.com/szlcsc/Hiliwei-Tech-HLW8032_C128023.pdf)
I guess one of the outputs (probably PF) is sent through an photocoupler (EL357N) to one of the IO pins of the ESP8285.

@thomasklingbeil

This comment has been minimized.

Copy link

@thomasklingbeil thomasklingbeil commented May 16, 2019

Apart from the power monitoring, the device already seems to work: https://github.com/blakadder/templates/blob/master/_templates/blitzwolf_SHP5

To update my guess from earlier today: It seems as if PF is the only pin of the HLW8032 that is NOT connected. Thus, it seems more likely, that the serial connection is used. It should be UART with 4800bps, Start/Stop Bit and even parity. Every 50ms there should be 24 byte of data.

@arendst

This comment has been minimized.

Copy link
Owner

@arendst arendst commented May 17, 2019

Just ordered one to write a new nrg driver for serial HLW8032 support.

@arendst arendst reopened this May 17, 2019
@arendst arendst added the enhancement label May 17, 2019
@arendst arendst self-assigned this May 17, 2019
@arendst

This comment has been minimized.

Copy link
Owner

@arendst arendst commented May 17, 2019

While comparing the datasheets from HLW8032 (chinees) with CSE7766 (english) the resemblance is striking.

For those owning this device you might want to try the CSE7766 RX/TX config option in Tasmota to check if any energy measuring is shown.

@kamkilt

This comment has been minimized.

Copy link

@kamkilt kamkilt commented May 20, 2019

Apart from the power monitoring, the device already seems to work: https://github.com/blakadder/templates/blob/master/_templates/blitzwolf_SHP5

This module have also control of USB port on GPIO5.
My config is following:
template: '{"NAME":"BlitzWolf SHP5","GPIO":[56,255,57,255,255,22,255,255,255,255,21,255,17],"FLAG":0,"BASE":18}' - button contorling 230 V relay
or
template: '{"NAME":"BlitzWolf SHP5","GPIO":[56,255,57,255,255,22,255,255,255,255,21,255,18],"FLAG":0,"BASE":18}' - button contorling 5 V USB

Energy measuring using CSE7766 RX/TX on GPIO1 and GPIO3 is not working.

@arendst

This comment has been minimized.

Copy link
Owner

@arendst arendst commented May 20, 2019

Thx for testing CSE7766. When mine arrives I'll try to implement HLW8032

@thomasklingbeil

This comment has been minimized.

Copy link

@thomasklingbeil thomasklingbeil commented May 20, 2019

Does the regular Serial output of Sonoff Tasmota need to be disabled first?

@arendst

This comment has been minimized.

Copy link
Owner

@arendst arendst commented May 20, 2019

No, that's been handled by the CSE7766 driver. Did you try to swap RX/TX too?

This works for CSE7766:

image

@thomasklingbeil

This comment has been minimized.

Copy link

@thomasklingbeil thomasklingbeil commented May 20, 2019

I’ll give it a try soon. Unfortunately it seems that my first SHP5 has stopped working...

Side note: It seems that the ESP and the power monitor IC have different power supplies, so it probably needs to be connected to mains power to fully work.

@arendst

This comment has been minimized.

Copy link
Owner

@arendst arendst commented Jun 4, 2019

Probably not as I suspect the sensor is connected before the SHP5 logic so it will always measure the load of the SHP5.

@arendst

This comment has been minimized.

Copy link
Owner

@arendst arendst commented Jun 4, 2019

The final SHP5 template should be this:

{"NAME":"SHP5","GPIO":[57,145,56,146,0,22,0,0,0,0,21,0,18],"FLAG":0,"BASE":18}

where the blue led represents the link info and the red led follows any power setting. As other GPIO's cannot be used they need to be set to 0.

@arendst

This comment has been minimized.

Copy link
Owner

@arendst arendst commented Jun 4, 2019

Updated wiki and closing

@arendst arendst closed this Jun 4, 2019
@arendst arendst removed their assignment Jun 4, 2019
@arendst

This comment has been minimized.

Copy link
Owner

@arendst arendst commented Jun 4, 2019

@kamkilt if you do not want to measure loads below 5W you might want to set define CSE_MAX_INVALID_POWER in file xnrg_02_cse7766.ino from 128 to 1.

This will disable showing invalid power measurments usually below 5W.

arendst added a commit that referenced this issue Jun 4, 2019
… (Blitzwolf SHP5) handling of power loads below 6W

Add command SetOption39 1..255 to control CSE7766 (Pow R2) or HLW8032 (Blitzwolf SHP5) handling of power loads below 6W. Default setting is 128 (#5756)
@arendst

This comment has been minimized.

Copy link
Owner

@arendst arendst commented Jun 4, 2019

Use SetOption39 to control handling of invalid power measurments.

The HLW8032 reports invalid power often if values below 5W are found. During this situation it sometimes reports a valid load. By setting SetOption39 to 128 (default) it must read at least 128 invalid power readings before reporting there is no load.

So to discard all loads below 6W simply set SetOption39 to 1 (0 will reset to default on next restart) so it will report no load below 6W.

@chkbln

This comment has been minimized.

Copy link

@chkbln chkbln commented Jun 6, 2019

Hello
How can I open the case? There is a screw on the bottom. I could solve that.
But how is it going now?
Can someone give me a hint.

Thank you

@waiet

This comment has been minimized.

Copy link

@waiet waiet commented Jun 7, 2019

Hello
How can I open the case? There is a screw on the bottom. I could solve that.
But how is it going now?
Can someone give me a hint.

Thank you

There are 1 screw and on the corners are clips. After screwing out the screw I opened case with old club card
IMG_20190512_161556__01
sph5

@waiet

This comment has been minimized.

Copy link

@waiet waiet commented Jun 7, 2019

I calibrated BW-SHP5 using 60 W bulb, with load energy measure is correct, but without anything connected it always shows about 3 W, it's not an USB output, because is not changing when something is connected to USB output, is there some way to calibrate energy measure to show 0 W when nothing is connected?

I have two modules and both shows same values.

Screenshot 2019-06-03 at 21 34 30

I measured the energy consumption without a load with original fw. Power consumption still was circa 4w on blitzwolf app and too on power meter after shp5. See image
image

@meingraham

This comment has been minimized.

Copy link
Collaborator

@meingraham meingraham commented Jun 7, 2019

Does it draw power with the relays off?

@waiet

This comment has been minimized.

Copy link

@waiet waiet commented Jun 7, 2019

On this img relays were power on, but with power off is result the same

@meingraham

This comment has been minimized.

Copy link
Collaborator

@meingraham meingraham commented Jun 7, 2019

Turn on weblog 4 and see if you are getting any checksum errors.

What is Relay2 controlling?

@kamkilt

This comment has been minimized.

Copy link

@kamkilt kamkilt commented Jun 8, 2019

What is Relay2 controlling?

USB Output.

@arendst

This comment has been minimized.

Copy link
Owner

@arendst arendst commented Jun 8, 2019

If you do not want to see measurements below 5W use the latest dev release and execute command setoption39 1 as documents earlier in this thread.

@kamkilt

This comment has been minimized.

Copy link

@kamkilt kamkilt commented Jun 8, 2019

If you do not want to see measurements below 5W use the latest dev release and execute command setoption39 1 as documents earlier in this thread.

I did and it's working well. thanks.

@waiet

This comment has been minimized.

Copy link

@waiet waiet commented Jun 8, 2019

But shp 5 compared to the shp 6 has relatively high consumption without any load.
That's probably not a software issue. Tasmota is working perfectly.

@kamkilt

This comment has been minimized.

Copy link

@kamkilt kamkilt commented Jun 9, 2019

But shp 5 compared to the shp 6 has relatively high consumption without any load.
That's probably not a software issue. Tasmota is working perfectly.

I measured mine using Sonoff pow R2 and SHP5 gets around ~ 1 - 1.2 W, while SHP6 takes around 0.8 - 1 W, relays on both turned on.

Connecting SHP5 to SHP6, and reading measures from SHP6 gives similar results, so I don't see that high difference in consumption.

@Jason2866

This comment has been minimized.

Copy link
Contributor

@Jason2866 Jason2866 commented Jun 9, 2019

Dont try to measure such low power consumptions with this devices.
You will get tolerances around 100% or even more. Keep in mind what the cost.
Precises power metering devices for measuring such low consumptions does cost real money...
So every value between 1W and 5w COULD be correct

@maschere

This comment has been minimized.

Copy link

@maschere maschere commented Jun 27, 2019

It seems the Gosund SP112 (https://www.amazon.de/dp/B07PMW88L7) is the same as the SHP5, at least the template for the SHP5 works flawlessly for the Gosund as well. So thanks a lot for that!

However I'm also getting strange power readings of the power consumption of the switch itsels. Without any load connected and both relays set to OFF, my power meter says 9 Watts (the same with both relays on). When I measure one SP112 with the other SP112 (after calibration) it says about 1 Watts. Can anyone with a previse power meter measure the SHP5 (or SP112) without any load?

@hemy81

This comment has been minimized.

Copy link

@hemy81 hemy81 commented Aug 4, 2019

Hey guys, thanks for this nice discussion so far. I have been trying to flash the SP112 without any success so far. I have the following items:

  • Gosund SP112
  • esptool (executable) for Mac
  • USB adapter CP2102 (/dev/tty.SLAB_USBtoUART)

I think it cannot enter the flash mode. I shortened the IO0 and Gnd, upon plugin in the UART, but I only hear the relay "clicking" but the blue LED is still blinking. The only difference I hear is the relay that clicks once I remove the IO0 and Gnd cable.

Any help is very welcome.

@chkbln

This comment has been minimized.

Copy link

@chkbln chkbln commented Aug 4, 2019

Hi
I connect GPO0 and GND together and then I plug the UART into the USB port.
The LED lights up red. Then I flash.
greeting

@hemy81

This comment has been minimized.

Copy link

@hemy81 hemy81 commented Aug 5, 2019

Hmm, that‘s what I did. I connected IO0 with GND and put the UART into USB port. The LED is not blinking red, but blue. I waited even for 10s with both GND and IO0 connected.

@chkbln

This comment has been minimized.

Copy link

@chkbln chkbln commented Aug 5, 2019

  • GOSUND SP112 is broken?
  • GPO0 is not at GND potential? Test the connection for correct contact.
    I flashed 4 sockets on Tasmota without any problems
@wvsbsp

This comment has been minimized.

Copy link

@wvsbsp wvsbsp commented Aug 19, 2019

I just received my GOSUND SP112's and managed to open them without breaking any tabs. ;-)

Just one Idea: Has anybody thought about routing the unused GPIOs 4, 12 and 13 to the unused USB-datalines? This would be perfect for adding sensors via 1-wire, GPIO or I2C. 5V power supply included for free...
One Pin of the ESP-module is not clear to me. The pin between Vdd and GPIO14 - is it TOUT (ADC0) or IO15?

And some additions to the circuit itself: U3 (device-marking 2634 A833 - which is the date-code?) is a dual USB protection IC (such as TI TPS2513A or ST USBLC6-4) which protects plugged USB devices - good, but the pins have no other connection.
In the picture in article #5756 (comment)
there are two ICs marked K0443I ans K0268I. This might be the production code. The ICs are one On-Bright OB2502TCPB and one OB2005VCPK. Both should be PWM regulators for the separated power-supplies. Unfortunately, i couldn't find the datasheets.

@ascillato

This comment has been minimized.

Copy link
Contributor

@ascillato ascillato commented Aug 19, 2019

@wvsbsp

Please, NEVER CONNECT SENSORS TO A POWER MEASUREMENT DEVICE.

YOU CAN BE ELECTROCUTED.

the gnd pin is directly connected to Mains AC.

For sensors please use a nodemcu instead.

Devices with power measurement MUST BE USED AS IT COMES FROM FACTORY.

DO NOT PUT YOURSELF, YOUR FAMILY AND YOUR HOUSE IN DANGER

Please, read the wiki! This warning is everywhere.

Repository owner locked as spam and limited conversation to collaborators Aug 20, 2019
Repository owner deleted a comment from wvsbsp Aug 20, 2019
Repository owner deleted a comment from Jason2866 Aug 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
You can’t perform that action at this time.