SMA Communication error at Communication-Test

SBFspot protocol http://sbfspot.codeplex.com/
jeanmarc
Posts: 1521
Joined: Thu Aug 29, 2013 7:16 am

Re: SMA Communication error at Communication-Test

Post by jeanmarc » Sun Aug 02, 2015 6:05 pm

That's way better. You may change the timeout, it seem like it is too slow...

Cosmo Kramer
Posts: 13
Joined: Fri Jul 31, 2015 11:47 am

Re: SMA Communication error at Communication-Test

Post by Cosmo Kramer » Sun Aug 02, 2015 7:11 pm

The Message is comming within 1 second. I must not wait for 10 seconds or so.
If i change Timout is comming

Code: Select all

timeout --kill-after=30s 10s /usr/local/bin/sbfspot.3/SBFspot -finq -q -123s=DATA -cfg /var/www/123solar/config/SBFspot_1.cfg return : Use -? for help 

error : / 
  
in 1 second.

If i request the SMA with sbfspot the answer is commin in 1 second like here:

Code: Select all

oot@123solar:/home/pi# /usr/local/bin/sbfspot.3/SBFspot -finq -q -123s
20150802-20:22:07 234.410 0.219 50.000 234.870 0.216 50.000 234.930 0.217 50.000 49.990 97.403 61.200 0.000 5399.423 513.270 0.184 94.000 471.280 0.128 60.000 234.930 0.652 150.000 >>>S123:OK
root@123solar:/home/pi# 

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

Re: SMA Communication error at Communication-Test

Post by jeanmarc » Sun Aug 02, 2015 7:44 pm

Make sure thre is only once instance of SBFspot. (pkill -f SBFspot)
I also think there is no space next to -cfg in the request.

Cosmo Kramer
Posts: 13
Joined: Fri Jul 31, 2015 11:47 am

Re: SMA Communication error at Communication-Test

Post by Cosmo Kramer » Sun Aug 02, 2015 8:10 pm

I have make pkill SBFspot. Same result.
Do you mean ***-123s=Data -cfg"?
There is Space between Data and -.
Perhaps i can send the complete File?

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

Re: SMA Communication error at Communication-Test

Post by jeanmarc » Sun Aug 02, 2015 8:44 pm

imho -cfg /var/www/ should be -cfg/var/www/ without space.
I don't own a SMA, it hard to say..

Cosmo Kramer
Posts: 13
Joined: Fri Jul 31, 2015 11:47 am

Re: SMA Communication error at Communication-Test

Post by Cosmo Kramer » Sun Aug 02, 2015 8:51 pm

If i delete the Space comes:

Code: Select all

timeout --kill-after=30s 10s /usr/local/bin/sbfspot.3/SBFspot -finq -q -123s=DATA -cfg/var/www/123solar/config/SBFspot_1.cfg return : Sun Aug 2 21:49:56 2015: CRITICAL: bthConnect() returned -1 

error : / 

Cosmo Kramer
Posts: 13
Joined: Fri Jul 31, 2015 11:47 am

Re: SMA Communication error at Communication-Test

Post by Cosmo Kramer » Sun Aug 02, 2015 8:56 pm

Looks better:
If i delete the Space comes:

Code: Select all

timeout --kill-after=30s 10s /usr/local/bin/sbfspot.3/SBFspot -finq -q -123s=DATA -cfg/var/www/123solar/config/SBFspot_1.cfg return : 20150803-13:40:02 240.860 8.803 2062.000 241.310 8.785 2062.000 240.270 8.780 2052.000 49.990 98.769 84.000 0.000 5427.831 471.760 6.890 3249.000 476.650 6.304 3004.000 241.310 26.368 6176.000 >>>S123:OK

error : /



error : / 
He read now the SBFspot.cfg and communication with the Inverter.
I must # Blutooth, because i read about ethernet.

In my 123 Website no Data availalabe, therse stand only 01.01.1970.
Wat is here wrong,?


And the Data (csv) will be writ var/www/123solar/data/invt1/production/MyPlant02.08.2015.csv. Is that right?

Cosmo Kramer
Posts: 13
Joined: Fri Jul 31, 2015 11:47 am

Re: SMA Communication error at Communication-Test

Post by Cosmo Kramer » Mon Aug 03, 2015 7:48 pm

OK, i have change some errors today, and now the System is Reading the data from inverter.
It will be written in 123solar/data/inverter1/production.
But the Problem is, there will be not Data available on the Website. Only the Date from 01.01.1970.

Here some errors from the Debug:

Code: Select all

HP Notice:  Undefined offset: -1 in /var/www/123solar/scripts/123solar.php on line 383
PHP Warning:  file(): Filename cannot be empty in /var/www/123solar/scripts/123solar.php on line 384
PHP Notice:  Undefined variable: INVT in /var/www/123solar/scripts/pvotemperature/inverter.php on line 3
I hope, you can help again.

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

Re: SMA Communication error at Communication-Test

Post by jeanmarc » Mon Aug 03, 2015 8:01 pm

Certainly a permission problem. Check data/int1/csv folder, it should be drwxrwxrwx

Cosmo Kramer
Posts: 13
Joined: Fri Jul 31, 2015 11:47 am

Re: SMA Communication error at Communication-Test

Post by Cosmo Kramer » Mon Aug 03, 2015 8:15 pm

Must be the output from sbfsport the Folder csv or Production are be?

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest