Danfoss ULX invertors with 123Solar

others protocols
server2006
Posts: 21
Joined: Tue May 23, 2017 7:54 am

Re: Danfoss ULX invertors with 123Solar

Post by server2006 » Sun Aug 06, 2017 8:08 am

jeanmarc wrote:
Sun Aug 06, 2017 7:49 am
whereis rklogger
chmod a+x pathto/rklogger ?

Code: Select all

root@orangepipcplus:~# chmod a+x /usr/local/bin/rklogger
root@orangepipcplus:~# sudo -u www-data rklogger 11 9 2 4a 8
RK::SerialPort::write_data: Bad file descriptor
U
root@orangepipcplus:~# rklogger 11 9 2 4a 8
65325
root@orangepipcplus:~#
test.php

Code: Select all

<?php

$KWHT = shell_exec("/usr/local/bin/rklogger 11 9 2 4a 8");
echo "You total counter is $KWHT kWh <br>";
echo $KWHT;

?>
I get a conclusion

Code: Select all

You total counter is U kWh 
U

jeanmarc
Posts: 1434
Joined: Thu Aug 29, 2013 7:16 am

Re: Danfoss ULX invertors with 123Solar

Post by jeanmarc » Sun Aug 06, 2017 8:39 am

I guess your com application don't return a value but 'RK::SerialPort::write_data: Bad file descriptor
U'

server2006
Posts: 21
Joined: Tue May 23, 2017 7:54 am

Re: Danfoss ULX invertors with 123Solar

Post by server2006 » Sun Aug 06, 2017 8:49 am

jeanmarc wrote:
Sun Aug 06, 2017 8:39 am
I guess your com application don't return a value but 'RK::SerialPort::write_data: Bad file descriptor
U'
From the root there is a conclusion.

Code: Select all

root@orangepipcplus:~# rklogger 11 9 2 4a 8
65325
On the adapter usb-rs485 even the LEDs do not blink. When the request is from the www-data.

jeanmarc
Posts: 1434
Joined: Thu Aug 29, 2013 7:16 am

Re: Danfoss ULX invertors with 123Solar

Post by jeanmarc » Sun Aug 06, 2017 9:15 am

Did you grant access to your com port for the www-data user as stated in the help ?
I'am not sure 65325 correspond to your total counter. If so, the precision is not enough.

server2006
Posts: 21
Joined: Tue May 23, 2017 7:54 am

Re: Danfoss ULX invertors with 123Solar

Post by server2006 » Sun Aug 06, 2017 11:57 am

jeanmarc wrote:
Sun Aug 06, 2017 9:15 am
Did you grant access to your com port for the www-data user as stated in the help ?
I'am not sure 65325 correspond to your total counter. If so, the precision is not enough.
Thank you!
Did

Code: Select all

root@orangepipcplus:~# ls -l /dev/ttyUSB0
crw-rw---- 1 root dialout 188, 0 Aug  6 12:52 /dev/ttyUSB0
root@orangepipcplus:~# sudo usermod -a -G dialout www-data
root@orangepipcplus:~#  sudo -u www-data rklogger 11 9 2 4a 8
45020
root@orangepipcplus:~#
And it all worked !! Hooray!!

Before I did usermod -a -G uucp www-data
Was not right

jeanmarc
Posts: 1434
Joined: Thu Aug 29, 2013 7:16 am

Re: Danfoss ULX invertors with 123Solar

Post by jeanmarc » Sun Aug 06, 2017 1:53 pm

Great ;) The protocols files need to be changed ? How fast is the live pooling ?

server2006
Posts: 21
Joined: Tue May 23, 2017 7:54 am

Re: Danfoss ULX invertors with 123Solar

Post by server2006 » Mon Aug 07, 2017 7:53 am

Hello!
Why That does not show the Array sensor 3.

Code: Select all

Arrays
I1V : 493.9 I1A : 2.777 I1P : 1372
I2V : 396.5 I2A : 2.808 I2P : 1115
I3V : I3A : I3P :
I4V : I4A : I4P :
Grid
G1V : 208.2 G1A : 6.532 G1P : 1339
G2V : 233.9 G2A : 7.259 G2P : 1672
G3V : 231.7 G3A : 7.194 G3P : 1647
Inverter
FRQ : 50.022 EFF : 1.873 INVT : 39 BOOT : 49 KWHT : 46993.706
What should I fix?
Image

server2006
Posts: 21
Joined: Tue May 23, 2017 7:54 am

Re: Danfoss ULX invertors with 123Solar

Post by server2006 » Mon Aug 07, 2017 8:21 am

Did!
Add to rklogger.php

Code: Select all

$a = exec("rklogger 11 ${'ADR'.$invt_num} 2 2a 8");
$I3V = $a/10;
$a = exec("rklogger 11 ${'ADR'.$invt_num} 2 2f 8");
$I3A = $a/1000;
$a = exec("rklogger 11 ${'ADR'.$invt_num} 2 34 8");
$I3P = $a;

//$I3V = null;
//$I3A = null;
//$I3P = null;
ComLynx Protocol : https://forums.ni.com/ni/attachments/ni ... 110513.pdf

jeanmarc
Posts: 1434
Joined: Thu Aug 29, 2013 7:16 am

Re: Danfoss ULX invertors with 123Solar

Post by jeanmarc » Mon Aug 07, 2017 10:36 am

It's because you set 3 DC array(s) in inverter config

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest