bravohe / sma-bluetooth

Automatically exported from code.google.com/p/sma-bluetooth
0 stars 0 forks source link

Date error spordicly an 10000TL #77

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. ./smatool -v -d -c ./smatool.conf >> x.txt
2.
3.

What is the expected output? What do you see instead?
./smatool -v -c ./smatool.conf
Auto set dates from 2012-05-20 18:10:00 to 2012-05-20 18:10:00
Address 00:80:25:20:79:74
bluetooth signal = 73%
serial=7d:c7:4a:ce
bluetooth signal = 73%
bluetooth signal = 73%
2012-05-20 05:39:18 Unit Serial          = 3821139 none                
2012-05-20 05:39:18 NO DATA for 1f 82 = 8001 NO UNITS
2012-05-20 05:39:18 NO DATA for 20 82 = 9067 NO UNITS
2001-01-01 01:02:53 NO DATA for 21 82 = 601 NO UNITS
2001-01-01 01:02:53 NO DATA for 21 82 = 636 NO UNITS
2012-05-20 18:14:22 NO DATA for 48 21 = 35 NO UNITS
2012-05-20 18:14:23 Total Power          = 6384 Watts               
2012-05-20 18:14:22 Max Phase 1          = 10000 Watts               
2012-05-20 18:14:22 Max Phase 2          = 10000 Watts               
2012-05-20 18:14:22 Max Pahse 3          = 10000 Watts               
2012-05-20 18:14:22 Unknown              = 0 Unknown             
2012-05-20 18:14:22 Unknown              = 0 Unknown             
2012-05-20 18:14:22 NO DATA for 80 41 = 0 NO UNITS
2012-05-20 18:14:23 Output Phase 1       = 2117 Watts               
2012-05-20 18:14:23 Output Phase 2       = 2136 Watts               
2012-05-20 18:14:23 Output Phase 3       = 2131 Watts               
2012-05-20 18:14:23 Line Voltage Phase 1Volts = 226 Volts               
2012-05-20 18:14:23 Line Voltage Phase 2Volts = 228 Volts               
2012-05-20 18:14:23 Line Voltage Phase 3Volts = 226 Volts               
2012-05-20 18:14:23 Line Current Phase 1Amps = 9 Amps                
2012-05-20 18:14:23 Line Current Phase 2Amps = 9 Amps                
2012-05-20 18:14:23 Line Current Phase 3Amps = 9 Amps                
bluetooth signal = 73%

1/1/1970 01:00:00  total=594867667337216.000 Kwh current=0 Watts togo=65533 
i=11 crc=1074428740
20/5/2012 18:14:23  total=72061389111296.000 Kwh current=-6273675909136384000 
Watts togo=65533 i=23 crc=1074428740
14/7/1970 05:20:13  total=16777.215 Kwh current=-864736689468211200 Watts 
togo=65533 i=35 crc=1074428740Date Error! prev=1337530463 current=16777213

What version of the product are you using? On what operating system?
0.17b

Please provide any additional information below.

i have added the Inverter in invcode.in but i get the error sporadicly. 

Inverter        10000TL
Code1           0x66
Code2           0xf0
Code3           0x48
Code4           0x38
InvCode         0x80

Original issue reported on code.google.com by jens.hed...@gmail.com on 20 May 2012 at 4:16

Attachments:

GoogleCodeExporter commented 9 years ago
Here is the USB-Snoop File

Original comment by jens.hed...@gmail.com on 20 May 2012 at 4:18

Attachments:

GoogleCodeExporter commented 9 years ago
Hi,
im trying to debugg the Date Error.

What i have found is that when the Date Error occurs the package which is 
received from the inverter is an SMA2+ Package. This means that 7e ff 03 60 65 
is found in the middle of the package data.

When the package is acceptet and has noch Date Error the 7e .... Bytes are 
Zero. Im now trying to skip the SMA2+ Package but for now this does not seem to 
work.

Original comment by janus44...@gmail.com on 24 May 2012 at 12:41

GoogleCodeExporter commented 9 years ago
Hi,

I got the SMA 8000TL. I also got the Date error's and therefore i couldn't  
post to PVoutput.
But i commented out following lines:

  if( idate != prev_idate+300 ) {
                                            printf( "Date Error! prev=%d current=%d\n", (int)prev_idate, (int)idate );
                                            error=1;
                                            break;
                                         }
So it skips the control. and then it will post the data.
PVoutput does some kind of control and bad data will be filtered out.
Some error data might get trough so for updating my data i use a bach script:

starttime="$(date +%Y-%m-%d) 00:00:00"
endtime="$(date +'%Y-%m-%d %T')"
/root/bin/sma-bluetooth/smatool -from "$starttime" -to "$endtime" -repost >> 
/root/solar.log

This script is added in crontab and runs every 30 min, so when the data is not 
correct it will be (eventually) updated next time the script is run.

Its far from perfect, but it works and at the end of the day there is a nice 
graph on PVoutput.

I will be using this method until the date error is fixed. 

Original comment by Filip.Sm...@gmail.com on 25 May 2012 at 9:14

GoogleCodeExporter commented 9 years ago
Hi,
for now im running a hack with my source from the clone 
"janus44444-sma-bluetooth".

Greetings

Janus

Original comment by janus44...@gmail.com on 10 Jun 2012 at 3:56

GoogleCodeExporter commented 9 years ago
Update and mod to smatool V18 And new inverter code

http://code.google.com/p/sma-bluetooth/issues/detail?id=118&sort=-id

Original comment by Filip.Sm...@gmail.com on 3 Mar 2013 at 10:05