myrddian / sma-bluetooth

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

Problem with CRC dates with TL2100 #111

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The Christmas holiday seemed to be a good moment to setup a Raspberry Pi to log 
my PV data to pvoutput.org. I have been using an android tablet with Sunny 
Solar Log so far. I got quite far with the setup but now experiencing a problem.

Inverter: SMA 2100TL (installed 10-12-2012)

At first I thought it had to do with the Inverter codes. I used USBScoop to 
find the codes for my inverter. Using the instructions in the wiki I found the 
numbers. Assuming I did the right thing the codes are:

Code1    0x0e
Code2    0x0c
Code3    0xdd
Code4    0x3a
I entered the values in invcode.in.

What steps will reproduce the problem?
1. smatool -v

What is the expected output? What do you see instead?

root@raspberrypi:~/bin/smatool# ./smatool -v
Auto set dates from 2000-01-01 00:00:00 to 2012-12-31 09:46:00
Address 00:80:25:29:97:EA
bluetooth signal = 66%
serial=77:57:79:c8
bluetooth signal = 66%
bluetooth signal = 66%
2012-12-31 09:46:08 Unit Serial          = 3821139 none                
2012-12-31 09:46:08 NO DATA for 1f 82 = 8001 NO UNITS
2012-12-31 09:46:08 NO DATA for 20 82 = 9022 NO UNITS
2012-12-31 09:46:08 NO DATA for 21 82 = 601 NO UNITS
2012-12-31 09:46:08 NO DATA for 21 82 = 636 NO UNITS
2012-12-31 09:46:09 Total Power          = 0 Watts               
2012-12-31 09:46:09 Max Phase 1          = 2150 Watts               
2012-12-31 09:46:09 Max Phase 2          = 0 Watts               
2012-12-31 09:46:09 Max Pahse 3          = 0 Watts               
2012-12-31 09:46:09 Line Voltage Phase 1Volts = 228 Volts               
2012-12-31 09:46:09 Line Voltage Phase 2Volts = 0 Volts               
2012-12-31 09:46:09 Line Voltage Phase 3Volts = 0 Volts               
2012-12-31 09:46:09 NO DATA for 53 46 = 0 NO UNITS
2012-12-31 09:46:09 NO DATA for 54 46 = 0 NO UNITS
2012-12-31 09:46:09 NO DATA for 55 46 = 0 NO UNITS
2012-12-31 09:46:09 Grid Frequency       = 50 Hertz               
2012-12-31 09:46:09 NO DATA for 1f 4a = 50 NO UNITS
bluetooth signal = 66%

10/12/2012 14:10:00  total=0.015 Kwh current=0 Watts togo=84 i=11 crc=0
10/12/2012 14:15:00  total=0.021 Kwh current=72 Watts togo=84 i=23 crc=0
10/12/2012 14:20:00  total=0.026 Kwh current=60 Watts togo=84 i=35 crc=0
10/12/2012 14:20:00  total=0.029 Kwh current=36 Watts togo=84 i=47 crc=0Date 
Error! prev=1355145600 current=1355145600

10/12/2012 15:30:00  total=0.066 Kwh current=480 Watts togo=83 i=11 crc=0Date 
Error! prev=1355145600 current=1355149800

See further the attached logfile log_verbose_31122012. Notice the CRC errors.

What version of the product are you using? On what operating system?
Sma-bluetooth 0.18 on Raspberry Pi with debian wheezy

Please provide any additional information below.

root@raspberrypi:~/bin/smatool# date
Mon Dec 31 09:50:55 CET 2012

Original issue reported on code.google.com by jarno.ur...@gmail.com on 31 Dec 2012 at 8:52

Attachments:

GoogleCodeExporter commented 9 years ago
Small update:

I got it working now bij disabeling the break in the smatool.c

                                         if( idate != prev_idate+300 ) {
                                            printf( "Date Error! prev=%d current=%d\n", (int)prev_idate, (int)idate );
                                         //   error=1;
                                         //   break;

I do not now what the exact consequences are but it does upload to PVoutput.org 
now!

Original comment by jarno.ur...@gmail.com on 31 Dec 2012 at 10:12