Page 2 of 5
Re: DDS238-4 W wifi Energy-meter S0-interface RS485-Interface ON/OFF control
Posted: Tuesday 12 February 2019 16:30
by telectroboy
I don't remember exactly what the manual tells but it's the same way to connect this wifi module than ITEAD SONOFF modules. And they are running with an ESP8266 too.
Re: DDS238-4 W wifi Energy-meter S0-interface RS485-Interface ON/OFF control
Posted: Wednesday 13 February 2019 12:16
by Gaudi
I have checked tonight for open ports and I can report that none are found.
The unit is connected to the cloud, so I guess it closes all listening ports after configuration.
Re: DDS238-4 W wifi Energy-meter S0-interface RS485-Interface ON/OFF control
Posted: Monday 18 February 2019 22:41
by Gaudi
telectroboy wrote:Hello Guys,
I've bought the same smart meter with wifi connection.
I've opened it and YES it's works on ESP8266.
I'm not able to find the source files and I, first, had the project to add an ESP32 to the RS485 ModBus in order to retrieve datas.
For me, Wisen software works great but no power history are saved.
So I want to get rid of this software and build an internet page. So tonight I'll open this smart meter and post some pictures of the inside.
Perhaps together we could understand how it works to build a new software.
See U
Could you open the unit and take some pictures?
I would like to take a look At the internals and how the interface is connected.
Thanks
Re: DDS238-4 W wifi Energy-meter S0-interface RS485-Interface ON/OFF control
Posted: Wednesday 20 February 2019 15:51
by Gaudi
Any new findings or updates?
I cannot make the historical data to work on the Wisen app, which kind of makes useless the system.
Re: DDS238-4 W wifi Energy-meter S0-interface RS485-Interface ON/OFF control
Posted: Tuesday 26 February 2019 10:13
by Djoe
Gaudi wrote: ↑Wednesday 13 February 2019 12:16
I have checked tonight for open ports and I can report that none are found.
The unit is connected to the cloud, so I guess it closes all listening ports after configuration.
Thank you for this information.
That mean that we really need to do a backup of the firmware before doing anything.
The ESP inside seam to be the DFRobot WT8266-S1 card.
Everything is soldered on my unit.
I can't unmount the ESP, neither the display...
The GPIO0 is not connected to external button, so we need to pull down manually to start in the bootloader.
I tried again and again to associate the device to my local apps, it never work.
But now the main goal is to do a backup of the firmware.
I saw a MAX1308 5EESA chip on the board (the RS485 interface).
It seam that all the calculation is done by the board, not the ESP.
I guess that the ESP only read values through the serial bus.
I saw 2 GPIO connected : the first one to the led "COM" (can't see which gpio) and the second to the "Setting" button (GPIO13).
@Gaudi:
Have you try to analyze the traffic between your device and the cloud?
Is it in HTTPS?
Re: DDS238-4 W wifi Energy-meter S0-interface RS485-Interface ON/OFF control
Posted: Wednesday 27 February 2019 2:15
by Gaudi
Djoe wrote:
@Gaudi:
Have you try to analyze the traffic between your device and the cloud?
Is it in HTTPS?
I am willing to collaborate. I am familiar with the Wireshark software features, but have never used it. If you could point me how to capture, filter and export the packages I will readily provide the information.
As i have never done any packet sniffing, I am unaware if my current network topology will allow for it.
I am using a Ubiquiti USG, managed switch and Wireless AP. I have not set up any special VLAN.
Also, if there any other tools, I can work them out. I have a current installation of Kali in a multiboot setup in my notebook, so can resort to other way of packet capturing.
Thanks
Re: DDS238-4 W wifi Energy-meter S0-interface RS485-Interface ON/OFF control
Posted: Tuesday 05 March 2019 8:05
by telectroboy
Hi guys,
I've opened it.
Behind LCD there is a G80F924 I think that everything is made here...
You can find a chinese datasheet here:
http://www.dycmcu.com/data/upload/201506/111111471.pdf
Close to it you can find a Soic 8 marked with 4G04. Regarding the wiring it looks like and I2C EEPROM.
BR24G04
http://rohmfs.rohm.com/en/products/data ... 04-3-e.pdf
Does the main firmware is inside??? I don't know. Perhaps is there a pin to link to ground or VCC to select from internal or external memory?
I'll post some pisctures later.
Re: DDS238-4 W wifi Energy-meter S0-interface RS485-Interface ON/OFF control
Posted: Tuesday 05 March 2019 8:26
by telectroboy
OK so the main MCU is especially made for energy measurement.
It's based on a 8051 µC.
I've got some programmers like superpro, labtool... I'll try to read it and 24G04.

Re: DDS238-4 W wifi Energy-meter S0-interface RS485-Interface ON/OFF control
Posted: Tuesday 05 March 2019 9:05
by telectroboy
Bad news...
I've got DataMan, SuperPro and LabTool but none of them is able to read the content of the G80F924...
Does someone has a good idea?
Re: DDS238-4 W wifi Energy-meter S0-interface RS485-Interface ON/OFF control
Posted: Tuesday 05 March 2019 12:29
by telectroboy
This is the content of my 24G04
G80F924 has a JTAG connection available. Some pins seems to be shared with the LCD.
Re: DDS238-4 W wifi Energy-meter S0-interface RS485-Interface ON/OFF control
Posted: Wednesday 06 March 2019 16:48
by telectroboy
I'll try to backup the ESP8266 with Esptool
https://github.com/espressif/esptool
And spy the RS232 transmission between MCU and ESP.
In order to make a webpage displaying historic and actual power value.
Re: DDS238-4 W wifi Energy-meter S0-interface RS485-Interface ON/OFF control
Posted: Wednesday 06 March 2019 19:40
by Gaudi
telectroboy wrote:
I'll try to backup the ESP8266 with Esptool
https://github.com/espressif/esptool
And spy the RS232 transmission between MCU and ESP.
In order to make a webpage displaying historic and actual power value.
Thank you.
I am not even close to your skills, and am following your posts closely to find updates.
My impression is that best will be to flash a generic firmware to interface it directly to Domoticz server.
Regards
Re: DDS238-4 W wifi Energy-meter S0-interface RS485-Interface ON/OFF control
Posted: Tuesday 12 March 2019 22:16
by fullstackarc
I think the WISEN App is built using HEKR SDK which is open source. I spent some time trying to figure out how it works and it seems like the communication between the meter and the App is happening via UDP Port 10000
Here is the link to HEKR SDK Source Code:
https://github.com/HEKR-Cloud/HEKR-ANDROID-SDK
Here is the source code of an app built using HEKR SDK:
https://github.com/HEKR-Cloud/HEKR-ANDROID-APP
I still haven't received the smart meter and the shipping is painfully slow. I might receive it within two weeks and I am excited!

Re: DDS238-4 W wifi Energy-meter S0-interface RS485-Interface ON/OFF control
Posted: Tuesday 12 March 2019 22:45
by fullstackarc
Look what I just found!

You will need google translate!
https://goo.gl/eZWN3E
HEKR module serial port transparent transmission protocol:
https://goo.gl/eQuw32
Hardware Module Documentation:
https://goo.gl/8KRdmX
More Juicy Info:
http://docs.hekr.me/protocol/
In general, everything you guys have been looking for is available in
http://docs.hekr.me/v4/ but the language is going to be a problem!
Good luck!

Re: DDS238-4 W wifi Energy-meter S0-interface RS485-Interface ON/OFF control
Posted: Thursday 04 April 2019 19:44
by Gaudi
Has anyone done any progress into interfacing this unit with Domoticz?
Or any other way of gathering data without using the wired RS485 interface?
Thanks
Re: DDS238-4 W wifi Energy-meter S0-interface RS485-Interface ON/OFF control
Posted: Sunday 28 April 2019 12:38
by Willem1
Hi Guys, I'm new here. I bought the smart meter DDS238 4 W and installed it succesfully to measure solarpower. I installed the Wisen App on my telephone and that worked well also.The seller told me historical data is not available in the European region. So far so good.
Now about my problem. In the Wisen app there is a button where you can swich off the DDS238 4 W. I used that button to test it and know it's impossible to power on the DDS238 4 W. It has no reset button. So my question is , how can I power on the DDS238 4 W again.
Re: DDS238-4 W wifi Energy-meter S0-interface RS485-Interface ON/OFF control
Posted: Sunday 28 April 2019 13:17
by Toulon7559
@Willem1
Is something useful available in the
Description in the bottom part of this Link @ AlieX?
What happens if you 'toggle' the subject Off-button in the App?
[Because in above-mentioned description the text under the 'blue picture titled Smart-Meter' says 'Knop: gebruikt voor controle on/off van meter output']
Re: DDS238-4 W wifi Energy-meter S0-interface RS485-Interface ON/OFF control
Posted: Sunday 28 April 2019 23:34
by Willem1
@ Toulon7559
Thank you for your reaction. I used the OFF button as you can see in your link from the blue picture.
After I swiched off the DDS238 4 W in the Wisen app it's impossible to use the app because the app says "The device is offline , Please try again later " I swiched OFF the WiFi to. The app is useless at the moment.
I contacted the seller and hope to here from him soon.
Re: DDS238-4 W wifi Energy-meter S0-interface RS485-Interface ON/OFF control
Posted: Sunday 28 April 2019 23:57
by Willem1
@ Toulon7559
I know what the problem is. I made a mistake. I connected the powerplug site in connection 2 an 4 and the solar site in 1 and 3. That's the reason it looked dead.
Re: DDS238-4 W wifi Energy-meter S0-interface RS485-Interface ON/OFF control
Posted: Monday 29 April 2019 20:33
by Toulon7559
@Willem1
That is the risc of connection of 4 wires to 4 terminals .......

Sometime Mr. Murphy is in the vicinity.