Diehl Platinum XXXXS RS485 support

1,297 views
Skip to first unread message

stendec

unread,
May 13, 2013, 1:15:38 PM5/13/13
to webso...@googlegroups.com
Hi,

Are there plans to support RS485 based Platinum inverters?

Thx!

Martin Diphoorn

unread,
May 14, 2013, 7:04:31 AM5/14/13
to webso...@googlegroups.com
Hi,

actually we support only the applications that gives us the data.
So if you have an application under linux that can give us the data then we can support it.

However we need to receive the output off that application so we can parse it to the values we need.

Thanks for asking!

Martin
Message has been deleted

Dirk Vandecauter

unread,
May 14, 2013, 7:13:34 AM5/14/13
to webso...@googlegroups.com
Hi,
 
Your datalogger looks great!
I'm planning on installing it but I have the same issue as Stendec with 2 x 4301s Diehl inverters.
Would it be enough to use a "rs485 to usb converter" to get it working? Do I need a converter for every inverter or can I use one converter to read out both inverters at the same time?
I have this other program ( solarcontrol ) which I can use to read out an inverter through rs232, but this is not so convenient. I would like to have things automated ;-)
 
Regards,
 
Dirk

Marco

unread,
May 14, 2013, 10:05:14 AM5/14/13
to webso...@googlegroups.com
is solarcontrol compatible with Linux?
If it is, than we can used it with WebSolarLog.

Michael

unread,
Jan 25, 2014, 3:58:28 PM1/25/14
to webso...@googlegroups.com
Solarcontrol is aplication java, solarcontrol.jar with win32com.dll run under windows...

stendec

unread,
Mar 23, 2014, 5:06:33 AM3/23/14
to webso...@googlegroups.com
Hi,

I've managed to reverse engineer the communication between solarcontrol and have written a small C program that connects to my Diehl Platinum 3800S inverter via a USB-to-RS232. The program is capable to read day and detail logging from the inverter similar to the Java app.
Is there a possibility you can incorporate this into the Websolarlog application?

What information do you need for this?

Regards.
 

Martin Diphoorn

unread,
Mar 23, 2014, 5:19:21 AM3/23/14
to webso...@googlegroups.com
Hi, of course that is possible.

Which data can you provide?
How more how better!

Can you provide an json message?

Does the Diehl has history data?

Maybe you can open a ticket for it?

Also we need an test setup where we can login and see what happens.

Greetings,

Martin

Marco

unread,
Mar 23, 2014, 6:16:32 AM3/23/14
to webso...@googlegroups.com
That sounds great!

Please take a look at the website of Curt Blank. He is the developer of the Aurora program for monitoring the PowerOne inverters.

With Aurora its possible to output a columnized string;
pi@raspberrypi ~/ $ sudo aurora -a 2 /dev/ttyUSB0 -Y5 -l3 -M3 -c -T -d0 -e
20140323-11:06:58 340.259369     2.586782   880.176697   308.156464     3.421383  1054.321411   227.602982     8.146369  1864.256226    49.985004    96.368996    32.714966    27.349165        2.491        2.491        0.000      278.290      517.594     3236.383     3236.295    OK


It would be great if you could make an output like above!

André M.

unread,
Mar 23, 2014, 7:48:54 AM3/23/14
to webso...@googlegroups.com
Haha I couldn't resist:

Do you want more Diehl or less?

stendec

unread,
Mar 23, 2014, 9:49:52 AM3/23/14
to webso...@googlegroups.com
Well it's still POC but here is a few sample output's of the day detail:


root@raspberrypi:/home/diehl# ./diehllog ./diehllog.conf 

WR checksum: 182 26 

WR Send message ---  45 19 06 18 14 03 23 00 00 182 26 


WR= read: 30


Calculated Checksum: 60 167

WR Receive message ---  210 49 25 18 06 46 36 31 00 01 107 00 00 00 00 228 00 00 00 00 00 00 00 00 00 15 00 00 60 167 

date: 23-3-2014

Time: 06:46:36

Status: 31

Event: 00

DC Voltage: 363

DC Current: 0

DC Power  : 0

AC Voltage: 228

AC Current: 0

AC Power  : 0

Energy Day: 0

Temp 1    : 0

Temp 2    : 0

Temp 3    : 15

Unknown   : 0

dataok ==..............: 1

WR checksum: 230 191 

WR Send message ---  45 19 06 18 14 03 23 00 05 230 191 


WR= read: 30


Calculated Checksum: 01 19

WR Receive message ---  210 49 25 18 06 48 48 12 00 01 48 00 01 36 00 227 00 00 111 00 00 00 00 00 00 15 00 02 01 19 

date: 23-3-2014

Time: 06:48:48

Status: 12

Event: 00

DC Voltage: 304

DC Current: 0

DC Power  : 292

AC Voltage: 227

AC Current: 0

AC Power  : 111

Energy Day: 0

Temp 1    : 0

Temp 2    : 0

Temp 3    : 15

Unknown   : 2

dataok ==..............: 1


I have to clean up the code somewhat before I send it.



Marco

unread,
Mar 24, 2014, 3:04:18 AM3/24/14
to webso...@googlegroups.com
Output looks promising!

Would it be possible to add a totalGeneratedKWH counter? In most cases inverters are reporting this value and WSL needs it for calculations.

stendec

unread,
Mar 24, 2014, 2:54:42 PM3/24/14
to webso...@googlegroups.com
This is the output of totals for a given day, in this example yesterday.
The Energy (Sum) [Wh] here is the totalGeneratedKWH counter.

------------------------------------------

 Reading day data

WR Send message ---  45 19 04 19 14 03 23 132 175 00 00


WR= read: 47


Calculated Checksum: 127 45

Buffer     Checksum: 127 45

WR Receive message ---  210 49 42 19 14 03 23 01 157 01 116 99 15 143 131 23 119 00 233 00 227 147 24 133 222 21 195 00 00 25 123 32 02 31 02 23 19 00 212 148 164 00 17 15 192 127 45

date: 23-3-2014

DC Voltage Peak [V]: 413

DC Voltage Mean [V]: 372

DC Current Peak [A]: 9.90

DC Current Mean [A]: 1.50

DC Power Peak [W]: 3673.90

DC Power Mean [W]: 600.70

AC Voltage Peak [V]: 233

AC Voltage Mean [V]: 227

AC Current Peak [A]: 14.70

AC Current Mean [A]: 2.40

AC Power Peak [W]: 3427.00

AC Power Mean [W]: 557.10

Energy (Day) [Wh]: 6523

Unknown object  : 32

Unknown object  : 2

Unknown object  : 31

Unknown object  : 2

Unknown object  : 23

Unknown object  : 19

Energy (Sum) [Wh]: 13931684

Temperature 1 Peak [∞C]: 1118144





stendec

unread,
Mar 24, 2014, 3:18:09 PM3/24/14
to webso...@googlegroups.com
Marco,

I can send you the example C prog I wrote for my tests which contains the detail and summary requests and also the required crc16 calculation.

Would that be sufficient?

   

Marco

unread,
Mar 25, 2014, 10:05:37 AM3/25/14
to webso...@googlegroups.com
What do you want me to do with it, because i have no Diehl inverter to run the scripts with.

I you could give me a string generated by the script with all the necassary data, then i can make WSL compatible with it.

Michael

unread,
Nov 13, 2014, 4:10:41 PM11/13/14
to webso...@googlegroups.com
Why not published the code K, to see him and read it. 

Thanks for everything.
Michael.

Michael

unread,
Nov 13, 2014, 4:12:29 PM11/13/14
to webso...@googlegroups.com
sorry 

Why not published the code C, to see him and read it. Thanks for everything.

Michael

unread,
Nov 15, 2014, 6:20:28 AM11/15/14
to webso...@googlegroups.com
Dear friend,
I trust that you are in good health.
Sorry for asking you again and again, but I would really appreciate if you could share the code you have written in C for 
accessing the data for the Diehl/Platinum inverters.
Excuse my poor English communication, so this time I asked a friend to help me with the language.
I have a small installation with 3 inverters 320 kilometers far away from my house and I would like to monitor their performance remotely.
I want to develop a program for doing that, so any code idea that you could share would help me to enhance my views about doing such an 
operation.
I apologize if I have been so insistent, but I am really at a dead end and any info would help me build up my knowledge.
I thank you in advance for your understanding,

Sincerely,
Michael

stendec

unread,
Apr 6, 2015, 4:09:39 AM4/6/15
to webso...@googlegroups.com
Hi Michael,

Sorry for not replying any sooner but I was not able to as I'm recovering form a serious illness.

Nevertheless please find attached the code I was experimenting with.
It is a mess so you have a nice puzzle to solve. The nohup.out is the output it generated which also proves it is working.

Keep me posted of any progress?
Have fun!




nohup.out
RS_diehl.c
Reply all
Reply to author
Forward
0 new messages