bravohe / sma-bluetooth

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

Inverter codes for Sunny Boy 5000TL-20 #78

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hello, 

Here are the inverter codes for the 5000TL-20

Code1       0xAD
Code2       0x52
Code3       0xB2
Code4       0x3A
InvCode     0x4E 

Original issue reported on code.google.com by christop...@googlemail.com on 23 May 2012 at 9:45

GoogleCodeExporter commented 9 years ago
Hi, how did you get the inverter codes? I tried to use snoopypro, but that 
didn't work out at all. Thanks, Rene

Original comment by sendtore...@gmail.com on 28 May 2012 at 6:12

GoogleCodeExporter commented 9 years ago
I had the same problem. I used a another sniff tool for Windows called USBlyzer 
in trial mode -30 days are enough to search for the codes ;-). I exported the 
output to a XML file and searched for the strings mentioned in the 
sma-bluetooth thread about sniffing.

Original comment by christop...@googlemail.com on 28 May 2012 at 6:25

GoogleCodeExporter commented 9 years ago
I used another tool called USBtrace, but when I searched for the codes in the 
example, I couldn't find anything. I attached the file. Does it make sense to 
you? 

Original comment by sendtore...@gmail.com on 28 May 2012 at 7:08

Attachments:

GoogleCodeExporter commented 9 years ago
Hi,  actually it does. 

The problem is, you're searching for the whole string as it is in the thread. 
Try to split the searched String it in two bit groups - for example search for: 
00 78 00 and you will find your Codes - I'm shure.
If not, write me baby... 

Original comment by christop...@googlemail.com on 28 May 2012 at 7:44

GoogleCodeExporter commented 9 years ago
Hi,

I thought I found the codes in the xml file. First I removed all
spaces in the xml and then searched for 01007EFF036065
I found a line with the following code
<RawData>0F2047004300FB000BFF7D017E3E004010A315831500FFFFFFFFFFFF01007EFF0360650
9A0FFFFFFFFFFFF00007800D2E14637000000000000018000020000000000000000000065D57E86<
/RawData>
and extracted:
0xD2
0xE1
0x46
0x37

After that I found the following line:
<RawData>0F2043003F00FB000BFF75007E3A004410A315831500FFFFFFFFFFFF01007EFF0360650
8A0FFFFFFFFFFFF00037800D2E1463700030000000002800E01FDFFFFFFFFFF359C7E86</RawData
>
from which I extracted the InvCode 0xFF

I added in the smatool.c:
##############
    if( strcmp(conf->Inverter, "1600TL") == 0 ) {
        conf->InverterCode[0] = 0xd2;
        conf->InverterCode[1] = 0xe1;
        conf->InverterCode[2] = 0x46;
        conf->InverterCode[3] = 0x37;
        conf->ArchiveCode    = 0xff;
    }
################
and in the invcode.in:
Inverter        1600TL
Code1           0xd2
Code2           0xe1
Code3           0x46
Code4           0x37
InvCode         0xff

and compiled the smatool.
After runing smatool -v --test --inverter 1600TL it only gives the
header, but not the measured data.
Did I make a mistake somewhere?
Can you maybe help me with this one? I attached the zipped xml file.

Thanks is advance!

Original comment by sendtore...@gmail.com on 30 May 2012 at 6:10

GoogleCodeExporter commented 9 years ago
You just have to edit the invcode.in and smatool.conf. The code in the .c file 
will not be used, I think. The inverter name in the Smatool.conf has to match 
the name in the invcode.in file. 

If it doesn't work post the output of the "./smatool -d " command. 

Original comment by christop...@googlemail.com on 30 May 2012 at 7:17

GoogleCodeExporter commented 9 years ago
I indeed did changed the name in the smatool.conf
I attached the result of the ./smatool -d.

Original comment by sendtore...@gmail.com on 30 May 2012 at 7:29

GoogleCodeExporter commented 9 years ago
No attachment aviable :-/

Original comment by christop...@googlemail.com on 30 May 2012 at 7:36

GoogleCodeExporter commented 9 years ago
hmmm, another try

Original comment by sendtore...@gmail.com on 30 May 2012 at 7:40

GoogleCodeExporter commented 9 years ago
Nothing, try to copy &  paste the text

Original comment by christop...@googlemail.com on 30 May 2012 at 7:43

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
There's no attachment, sorry. In normal case the attachment is shown in this 
thread as above in the post with the log file. 

Original comment by christop...@googlemail.com on 30 May 2012 at 8:32

GoogleCodeExporter commented 9 years ago
Maybe the attachment is captured by proxies are something.
Here is the output:

variable=Inverter value=1600TL
variable=BTAddress value=00:80:25:22:A8:C6
variable=BTTimeout value=15
variable=Password value=0000
variable=Config value=./smatool.conf
variable=File value=sma.in.new
variable=Latitude value=52.65
variable=Longitude value=5.10
variable=MySqlHost value=localhost
variable=MySqlDatabase value=smatool
variable=MySqlUser value=smatool
variable=MySqlPwd value=zonzo
variable=PVOutputURL value=http://pvoutput.org/service/r1/addstatus.jsp
variable=PVOutputKey value=957b09f13c12c793946945797ce237bbf4e3318d
variable=PVOutputSid value=Renetta
variable=Inverter value=1600TL
variable=Code1 value=0xd2
variable=Code2 value=0xe1
variable=Code3 value=0x46
variable=Code4 value=0x37
variable=InvCode value=0xff
variable=InvCode value=
variable=Inverter value=1700TL
variable=Code1 value=0x12
variable=Code2 value=0x1a
variable=Code3 value=0xd9
variable=Code4 value=0x38
variable=InvCode value=0x63
variable=InvCode value=
variable=Inverter value=2100TL
variable=Code1 value=0x17
variable=Code2 value=0x97
variable=Code3 value=0x51
variable=Code4 value=0x38
variable=InvCode value=0x63
variable=InvCode value=
variable=Inverter value=3000TL
variable=Code1 value=0x32
variable=Code2 value=0x42
variable=Code3 value=0x85
variable=Code4 value=0x38
variable=InvCode value=0x71
variable=InvCode value=
variable=Inverter value=3000TLHF
variable=Code1 value=0x1b
variable=Code2 value=0xb1
variable=Code3 value=0xa6
variable=Code4 value=0x38
variable=InvCode value=0x83
variable=InvCode value=
variable=Inverter value=4000TL
variable=Code1 value=0x78
variable=Code2 value=0x21
variable=Code3 value=0xbf
variable=Code4 value=0x3a
variable=InvCode value=0x4e
variable=InvCode value=
variable=Inverter value=5000TL
variable=Code1 value=0x3f
variable=Code2 value=0x10
variable=Code3 value=0xfb
variable=Code4 value=0x39
variable=InvCode value=0x4e
variable=InvCode value=
variable=Inverter value=7000
variable=Code1 value=0xcf
variable=Code2 value=0x84
variable=Code3 value=0x84
variable=Code4 value=0x3a
variable=InvCode value=0x63
variable=InvCode value=
variable=Inverter value=10000TL
variable=Code1 value=0x69
variable=Code2 value=0x45
variable=Code3 value=0x32
variable=Code4 value=0x39
variable=InvCode value=0x80
variable=InvCode value=
variable=Inverter value=XXXXTL
variable=Code1 value=0x99
variable=Code2 value=0x35
variable=Code3 value=0x40
variable=Code4 value=0x36
variable=InvCode value=0x4e
utc=2012-05-30 19:19 local=2012-05-30 21:19 diff 2 hours
localOffset=2.000000
localOffset=2.000000 isdst=1
tzsecs=e11 3601
tzsecs=0e 11
SELECT sunrise FROM Almanac WHERE date=DATE_FORMAT( NOW(), "%Y-%m-%d" )
SELECT data FROM settings WHERE value='schema'
SELECT DATE_FORMAT( DateTime, "%Y-%m-%d %H:%i:%S" ) FROM DayData ORDER 
BY DateTime DESC LIMIT 1
SELECT if(sunrise < NOW(),1,0) FROM Almanac WHERE date= DATE_FORMAT( 
NOW(), "%Y-%m-%d" )
SELECT if( dd.datetime > al.sunset,1,0) FROM DayData as dd left join 
Almanac as al on al.date=DATE(dd.datetime) and al.date=DATE(NOW()) WHERE 
1 ORDER BY dd.datetime DESC LIMIT 1
datefrom=2012-05-30 21:15:00 dateto=2012-05-30 21:19:00
[18] 2012-05-30 21:19:27 Waiting for string
[18] 2012-05-30 21:19:27 waiting for: 7e 1f 00 61 c6 a8 22 25 80 00 00 
00 00 00 00 00 02 00 00 04 70 00

[18] 2012-05-30 21:19:27 Waiting for data on rfcomm

Receiving
     00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 1f 00 61
     00000010: c6 a8 22 25 80 00 00 00 00 00 00 00 02 00 00 04
     00000020: 70 00 0a 00 00 00 00 01 00 00 00  rr=31

[18] 2012-05-30 21:19:27 looking for: 7e 1f 00 61 c6 a8 22 25 80 00 00 
00 00 00 00 00 02 00 00 04 70 00
[18] 2012-05-30 21:19:27 received:    7e 1f 00 61 c6 a8 22 25 80 00 00 
00 00 00 00 00 02 00 00 04 70 00 0a 00 00 00 00 01 00 00 00

[18] 2012-05-30 21:19:27 Found string we are waiting for
[19] 2012-05-30 21:19:27 Extracting
extracting invcode=0a
[20] 2012-05-30 21:19:27 Sending
[20] 2012-05-30 21:19:27 sending:
     00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 1f 00 61
     00000010: 00 00 00 00 00 00 c6 a8 22 25 80 00 02 00 00 04
     00000020: 70 00 0a 00 00 00 00 01 00 00 00  cc=31

[21] 2012-05-30 21:19:27 Waiting for string
[21] 2012-05-30 21:19:27 waiting for: 7e 22 00 5c c6 a8 22 25 80 00 00 
00 00 00 00 00 05 00 c6 a8 22 25 80 00

[21] 2012-05-30 21:19:27 Waiting for data on rfcomm

Receiving
     00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 1f 00 61
     00000010: c6 a8 22 25 80 00 00 00 00 00 00 00 0a 00 c6 a8
     00000020: 22 25 80 00 01 fb 1a 10 0e 19 00  rr=31

[21] 2012-05-30 21:19:27 looking for: 7e 22 00 5c c6 a8 22 25 80 00 00 
00 00 00 00 00 05 00 c6 a8 22 25 80 00
[21] 2012-05-30 21:19:27 received:    7e 1f 00 61 c6 a8 22 25 80 00 00 
00 00 00 00 00 0a 00 c6 a8 22 25 80 00 01 fb 1a 10 0e 19 00

[21] 2012-05-30 21:19:27 Did not find string

Receiving
     00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 14 00 6a
     00000010: c6 a8 22 25 80 00 00 00 00 00 00 00 0c 00 02 00  rr=20

[21] 2012-05-30 21:19:27 looking for: 7e 22 00 5c c6 a8 22 25 80 00 00 
00 00 00 00 00 05 00 c6 a8 22 25 80 00
[21] 2012-05-30 21:19:27 received:    7e 14 00 6a c6 a8 22 25 80 00 00 
00 00 00 00 00 0c 00 02 00

[21] 2012-05-30 21:19:27 Did not find string

Receiving
     00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 22 00 5c
     00000010: c6 a8 22 25 80 00 00 00 00 00 00 00 05 00 c6 a8
     00000020: 22 25 80 00 01 01 fb 1a 10 0e 19 00 02 01  rr=34

[21] 2012-05-30 21:19:27 looking for: 7e 22 00 5c c6 a8 22 25 80 00 00 
00 00 00 00 00 05 00 c6 a8 22 25 80 00
[21] 2012-05-30 21:19:27 received:    7e 22 00 5c c6 a8 22 25 80 00 00 
00 00 00 00 00 05 00 c6 a8 22 25 80 00 01 01 fb 1a 10 0e 19 00 02 01

[21] 2012-05-30 21:19:27 Found string we are waiting for
[22] 2012-05-30 21:19:27 Extracting
address 2
[24] 2012-05-30 21:19:27 Sending
[24] 2012-05-30 21:19:27 sending:
     00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 14 00 6a
     00000010: 00 00 00 00 00 00 c6 a8 22 25 80 00 03 00 05 00  cc=20

[25] 2012-05-30 21:19:27 Waiting for string
[25] 2012-05-30 21:19:27 waiting for: 7e 18 00 66 c6 a8 22 25 80 00 00 
00 00 00 00 00 04 00 05 00 00 00

[25] 2012-05-30 21:19:27 Waiting for data on rfcomm

Receiving
     00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 18 00 66
     00000010: c6 a8 22 25 80 00 00 00 00 00 00 00 04 00 05 00
     00000020: 00 00 b4 00  rr=24

[25] 2012-05-30 21:19:27 looking for: 7e 18 00 66 c6 a8 22 25 80 00 00 
00 00 00 00 00 04 00 05 00 00 00
[25] 2012-05-30 21:19:27 received:    7e 18 00 66 c6 a8 22 25 80 00 00 
00 00 00 00 00 04 00 05 00 00 00 b4 00

[25] 2012-05-30 21:19:27 Found string we are waiting for
[26] 2012-05-30 21:19:27 Extracting
[27] 2012-05-30 21:19:27 Sending
[27] 2012-05-30 21:19:27 sending:
     00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 14 00 6a
     00000010: 00 00 00 00 00 00 c6 a8 22 25 80 00 03 00 05 00  cc=20

[28] 2012-05-30 21:19:27 Waiting for string
[28] 2012-05-30 21:19:27 waiting for: 7e 18 00 66 c6 a8 22 25 80 00 00 
00 00 00 00 00 04 00 05 00 00 00

[28] 2012-05-30 21:19:27 Waiting for data on rfcomm

Receiving
     00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 18 00 66
     00000010: c6 a8 22 25 80 00 00 00 00 00 00 00 04 00 05 00
     00000020: 00 00 b4 00  rr=24

[28] 2012-05-30 21:19:27 looking for: 7e 18 00 66 c6 a8 22 25 80 00 00 
00 00 00 00 00 04 00 05 00 00 00
[28] 2012-05-30 21:19:27 received:    7e 18 00 66 c6 a8 22 25 80 00 00 
00 00 00 00 00 04 00 05 00 00 00 b4 00

[28] 2012-05-30 21:19:27 Found string we are waiting for
[29] 2012-05-30 21:19:27 Sending
[29] 2012-05-30 21:19:27 sending:
     00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 14 00 6a
     00000010: 00 00 00 00 00 00 c6 a8 22 25 80 00 03 00 05 00  cc=20

[30] 2012-05-30 21:19:27 Waiting for string
[30] 2012-05-30 21:19:27 waiting for: 7e 18 00 66 c6 a8 22 25 80 00 00 
00 00 00 00 00 04 00 05 00 00 00

[30] 2012-05-30 21:19:27 Waiting for data on rfcomm

Receiving
     00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 18 00 66
     00000010: c6 a8 22 25 80 00 00 00 00 00 00 00 04 00 05 00
     00000020: 00 00 b4 00  rr=24

[30] 2012-05-30 21:19:27 looking for: 7e 18 00 66 c6 a8 22 25 80 00 00 
00 00 00 00 00 04 00 05 00 00 00
[30] 2012-05-30 21:19:27 received:    7e 18 00 66 c6 a8 22 25 80 00 00 
00 00 00 00 00 04 00 05 00 00 00 b4 00

[30] 2012-05-30 21:19:27 Found string we are waiting for
[31] 2012-05-30 21:19:27 Sending
sum=80
   length change from 3f to 3e diff=80
new sum=7e
[31] 2012-05-30 21:19:27 sending:
     00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 3e 00 40
     00000010: fb 1a 10 0e 19 00 ff ff ff ff ff ff 01 00 7e ff
     00000020: 03 60 65 09 a0 ff ff ff ff ff ff 00 00 78 00 d2
     00000030: e1 46 37 00 00 00 00 00 00 01 80 00 02 00 00 00
     00000040: 00 00 00 00 00 00 00 65 d5 7e  cc=62

[32] 2012-05-30 21:19:27 Sending
sum=80
   length change from 3b to 3a diff=80
new sum=7e
[32] 2012-05-30 21:19:27 sending:
     00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 3a 00 44
     00000010: fb 1a 10 0e 19 00 ff ff ff ff ff ff 01 00 7e ff
     00000020: 03 60 65 08 a0 ff ff ff ff ff ff 00 03 78 00 d2
     00000030: e1 46 37 00 03 00 00 00 00 00 80 0e 01 fd ff ff
     00000040: ff ff ff 7b c4 7e  cc=58

[33] 2012-05-30 21:19:27 Sending
sum=7e
   length change from 54 to 52 diff=7e
new sum=7e
[33] 2012-05-30 21:19:27 sending:
     00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 52 00 2c
     00000010: fb 1a 10 0e 19 00 ff ff ff ff ff ff 01 00 7e ff
     00000020: 03 60 65 0e a0 ff ff ff ff ff ff 00 01 78 00 d2
     00000030: e1 46 37 00 01 00 00 00 00 02 80 0c 04 fd ff 07
     00000040: 00 00 00 84 03 00 00 be 72 c6 4f 00 00 00 00 bc
     00000050: b8 bd be 88 88 88 88 88 88 88 88 39 21 7e  cc=82

[35] 2012-05-30 21:19:27 Waiting for string
[35] 2012-05-30 21:19:27 waiting for: 7e 6a 00 14 c6 a8 22 25 80 00

[35] 2012-05-30 21:19:27 Waiting for data on rfcomm

Receiving
     00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 67 00 19
     00000010: c6 a8 22 25 80 00 fb 1a 10 0e 19 00 01 00 7e ff
     00000020: 03 60 65 7d 33 80 78 00 d2 e1 46 37 00 00 63 00
     00000030: 76 46 56 77 00 00 00 00 00 00 01 80 01 02 00 00
     00000040: 00 00 00 00 00 00 00 00 00 03 00 00 00 ff 00 00
     00000050: 50 07 00 00 01 00 63 00 76 46 56 77 00 00 0a 00
     00000060: 0a 00 00 00 00 00 00 00 03 00 00 00 01 01 00 00
     00000070: 2f 7c 7e  rr=103

sum=80length change from 67 to 66

[35] 2012-05-30 21:19:27 looking for: 7e 6a 00 14 c6 a8 22 25 80 00
[35] 2012-05-30 21:19:27 received:    7e 66 00 1a c6 a8 22 25 80 00 fb 
1a 10 0e 19 00 01 00 7e ff 03 60 65 13 80 78 00 d2 e1 46 37 00 00 63 00 
76 46 56 77 00 00 00 00 00 00 01 80 01 02 00 00 00 00 00 00 00 00 00 00 
00 03 00 00 00 ff 00 00 50 07 00 00 01 00 63 00 76 46 56 77 00 00 0a 00 
0a 00 00 00 00 00 00 00 03 00 00 00 01 01 00 00 2f 7c 7e

[35] 2012-05-30 21:19:27 Found string we are waiting for
[36] 2012-05-30 21:19:27 Extracting
togo=0
len=40 data=00 03 00 00 00 ff 00 00 50 07 00 00 01 00 63 00 76 46 56 77 
00 00 0a 00 0a 00 00 00 00 00 00 00 03 00 00 00 01 01 00 00
[38] 2012-05-30 21:19:27 Sending
[38] 2012-05-30 21:19:27 sending:
     00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 14 00 6a
     00000010: 00 00 00 00 00 00 c6 a8 22 25 80 00 03 00 05 00  cc=20

[39] 2012-05-30 21:19:27 Waiting for string
[39] 2012-05-30 21:19:27 waiting for: 7e 18 00 66 c6 a8 22 25 80 00 00 
00 00 00 00 00 04 00 05 00 00 00

[39] 2012-05-30 21:19:27 Waiting for data on rfcomm

Receiving
     00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 46 00 38
     00000010: c6 a8 22 25 80 00 fb 1a 10 0e 19 00 01 00 7e ff
     00000020: 03 60 65 0b 80 78 00 d2 e1 46 37 00 01 63 00 76
     00000030: 46 56 77 00 01 00 00 00 00 02 80 0d 04 fd ff 07
     00000040: 00 00 00 84 03 00 00 be 72 c6 4f 00 00 00 00 fd
     00000050: 24 7e  rr=70

[39] 2012-05-30 21:19:27 looking for: 7e 18 00 66 c6 a8 22 25 80 00 00 
00 00 00 00 00 04 00 05 00 00 00
[39] 2012-05-30 21:19:27 received:    7e 46 00 38 c6 a8 22 25 80 00 fb 
1a 10 0e 19 00 01 00 7e ff 03 60 65 0b 80 78 00 d2 e1 46 37 00 01 63 00 
76 46 56 77 00 01 00 00 00 00 02 80 0d 04 fd ff 07 00 00 00 84 03 00 00 
be 72 c6 4f 00 00 00 00 fd 24 7e

[39] 2012-05-30 21:19:27 Did not find string

Receiving
     00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 18 00 66
     00000010: c6 a8 22 25 80 00 00 00 00 00 00 00 04 00 05 00
     00000020: 00 00 b4 00  rr=24

[39] 2012-05-30 21:19:27 looking for: 7e 18 00 66 c6 a8 22 25 80 00 00 
00 00 00 00 00 04 00 05 00 00 00
[39] 2012-05-30 21:19:27 received:    7e 18 00 66 c6 a8 22 25 80 00 00 
00 00 00 00 00 04 00 05 00 00 00 b4 00

[39] 2012-05-30 21:19:27 Found string we are waiting for
[40] 2012-05-30 21:19:27 Extracting
[41] 2012-05-30 21:19:27 Sending
[41] 2012-05-30 21:19:27 sending:
     00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 14 00 6a
     00000010: 00 00 00 00 00 00 c6 a8 22 25 80 00 03 00 05 00  cc=20

[42] 2012-05-30 21:19:27 Waiting for string
[42] 2012-05-30 21:19:27 waiting for: 7e 18 00 66 c6 a8 22 25 80 00 00 
00 00 00 00 00 04 00 05 00 00 00

[42] 2012-05-30 21:19:27 Waiting for data on rfcomm

Receiving
     00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 18 00 66
     00000010: c6 a8 22 25 80 00 00 00 00 00 00 00 04 00 05 00
     00000020: 00 00 b4 00  rr=24

[42] 2012-05-30 21:19:27 looking for: 7e 18 00 66 c6 a8 22 25 80 00 00 
00 00 00 00 00 04 00 05 00 00 00
[42] 2012-05-30 21:19:27 received:    7e 18 00 66 c6 a8 22 25 80 00 00 
00 00 00 00 00 04 00 05 00 00 00 b4 00

[42] 2012-05-30 21:19:27 Found string we are waiting for
[43] 2012-05-30 21:19:27 Sending
[43] 2012-05-30 21:19:27 sending:
     00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 14 00 6a
     00000010: 00 00 00 00 00 00 c6 a8 22 25 80 00 03 00 05 00  cc=20

[44] 2012-05-30 21:19:27 Waiting for string
[44] 2012-05-30 21:19:27 waiting for: 7e 18 00 66 c6 a8 22 25 80 00 00 
00 00 00 00 00 04 00 05 00 00 00

[44] 2012-05-30 21:19:27 Waiting for data on rfcomm

Receiving
     00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 18 00 66
     00000010: c6 a8 22 25 80 00 00 00 00 00 00 00 04 00 05 00
     00000020: 00 00 b4 00  rr=24

[44] 2012-05-30 21:19:27 looking for: 7e 18 00 66 c6 a8 22 25 80 00 00 
00 00 00 00 00 04 00 05 00 00 00
[44] 2012-05-30 21:19:27 received:    7e 18 00 66 c6 a8 22 25 80 00 00 
00 00 00 00 00 04 00 05 00 00 00 b4 00

[44] 2012-05-30 21:19:27 Found string we are waiting for
[45] 2012-05-30 21:19:27 Sending
sum=7e
[45] 2012-05-30 21:19:27 sending:
     00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 5c 00 22
     00000010: fb 1a 10 0e 19 00 ff ff ff ff ff ff 01 00 7e ff
     00000020: 03 60 65 10 a0 ff ff ff ff ff ff 00 00 78 00 d2
     00000030: e1 46 37 00 00 00 00 00 00 03 80 0a 02 00 f0 00
     00000040: 6d 23 00 00 6d 23 00 00 6d 23 00 be 72 c6 4f be
     00000050: 72 c6 4f be 72 c6 4f 7d 31 0e 00 00 30 fe 7d 5e
     00000060: 00 01 00 00 00 da ca 7e  cc=92

[47] 2012-05-30 21:19:28 Sending
[47] 2012-05-30 21:19:28 sending:
     00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 14 00 6a
     00000010: 00 00 00 00 00 00 c6 a8 22 25 80 00 03 00 05 00  cc=20

[48] 2012-05-30 21:19:28 Waiting for string
[48] 2012-05-30 21:19:28 waiting for: 7e 18 00 66 c6 a8 22 25 80 00 00 
00 00 00 00 00 04 00 05 00 00 00

[48] 2012-05-30 21:19:28 Waiting for data on rfcomm

Receiving
     00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 18 00 66
     00000010: c6 a8 22 25 80 00 00 00 00 00 00 00 04 00 05 00
     00000020: 00 00 b4 00  rr=24

[48] 2012-05-30 21:19:28 looking for: 7e 18 00 66 c6 a8 22 25 80 00 00 
00 00 00 00 00 04 00 05 00 00 00
[48] 2012-05-30 21:19:28 received:    7e 18 00 66 c6 a8 22 25 80 00 00 
00 00 00 00 00 04 00 05 00 00 00 b4 00

[48] 2012-05-30 21:19:28 Found string we are waiting for
[49] 2012-05-30 21:19:28 Extracting
[50] 2012-05-30 21:19:28 Sending
[50] 2012-05-30 21:19:28 sending:
     00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 14 00 6a
     00000010: 00 00 00 00 00 00 c6 a8 22 25 80 00 03 00 05 00  cc=20

[51] 2012-05-30 21:19:28 Waiting for string
[51] 2012-05-30 21:19:28 waiting for: 7e 18 00 66 c6 a8 22 25 80 00 00 
00 00 00 00 00 04 00 05 00 00 00

[51] 2012-05-30 21:19:28 Waiting for data on rfcomm

Receiving
     00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 18 00 66
     00000010: c6 a8 22 25 80 00 00 00 00 00 00 00 04 00 05 00
     00000020: 00 00 b4 00  rr=24

[51] 2012-05-30 21:19:28 looking for: 7e 18 00 66 c6 a8 22 25 80 00 00 
00 00 00 00 00 04 00 05 00 00 00
[51] 2012-05-30 21:19:28 received:    7e 18 00 66 c6 a8 22 25 80 00 00 
00 00 00 00 00 04 00 05 00 00 00 b4 00

[51] 2012-05-30 21:19:28 Found string we are waiting for
[52] 2012-05-30 21:19:28 Sending
[52] 2012-05-30 21:19:28 sending:
     00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 14 00 6a
     00000010: 00 00 00 00 00 00 c6 a8 22 25 80 00 03 00 05 00  cc=20

[53] 2012-05-30 21:19:28 Waiting for string
[53] 2012-05-30 21:19:28 waiting for: 7e 18 00 66 c6 a8 22 25 80 00 00 
00 00 00 00 00 04 00 05 00 00 00

[53] 2012-05-30 21:19:28 Waiting for data on rfcomm

Receiving
     00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 18 00 66
     00000010: c6 a8 22 25 80 00 00 00 00 00 00 00 04 00 05 00
     00000020: 00 00 b4 00  rr=24

[53] 2012-05-30 21:19:28 looking for: 7e 18 00 66 c6 a8 22 25 80 00 00 
00 00 00 00 00 04 00 05 00 00 00
[53] 2012-05-30 21:19:28 received:    7e 18 00 66 c6 a8 22 25 80 00 00 
00 00 00 00 00 04 00 05 00 00 00 b4 00

[53] 2012-05-30 21:19:28 Found string we are waiting for
[54] 2012-05-30 21:19:28 Sending
sum=80
   length change from 5b to 5a diff=80
new sum=7e
[54] 2012-05-30 21:19:28 sending:
     00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 5a 00 24
     00000010: fb 1a 10 0e 19 00 ff ff ff ff ff ff 01 00 7e ff
     00000020: 03 60 65 10 a0 ff ff ff ff ff ff 00 00 78 00 d2
     00000030: e1 46 37 00 00 00 00 00 00 04 80 0a 02 00 f0 00
     00000040: 6d 23 00 00 6d 23 00 00 6d 23 00 bf 72 c6 4f bd
     00000050: 72 c6 4f bf 72 c6 4f 00 00 00 00 01 00 00 00 01
     00000060: 00 00 00 a6 5b 7e  cc=90

[55] 2012-05-30 21:19:28 Sending
sum=80
   length change from 3f to 3e diff=80
new sum=7e
[55] 2012-05-30 21:19:28 sending:
     00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 3e 00 40
     00000010: fb 1a 10 0e 19 00 ff ff ff ff ff ff 01 00 7e ff
     00000020: 03 60 65 09 a0 ff ff ff ff ff ff 00 00 78 00 d2
     00000030: e1 46 37 00 00 00 00 00 00 05 80 00 02 00 58 00
     00000040: 1e 82 00 ff 21 82 00 b4 5d 7e  cc=62

[56] 2012-05-30 21:19:28 Sending
sum=80
   length change from 3f to 3e diff=80
new sum=7e
[56] 2012-05-30 21:19:28 sending:
     00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 3e 00 40
     00000010: fb 1a 10 0e 19 00 ff ff ff ff ff ff 01 00 7e ff
     00000020: 03 60 65 09 a0 ff ff ff ff ff ff 00 00 78 00 d2
     00000030: e1 46 37 00 00 00 00 00 00 06 80 00 02 00 58 00
     00000040: 1e a2 00 ff 1e a2 00 b0 b4 7e  cc=62

[57] 2012-05-30 21:19:28 Sending
sum=80
   length change from 3f to 3e diff=80
new sum=7e
[57] 2012-05-30 21:19:28 sending:
     00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 3e 00 40
     00000010: fb 1a 10 0e 19 00 ff ff ff ff ff ff 01 00 7e ff
     00000020: 03 60 65 09 a0 ff ff ff ff ff ff 00 00 78 00 d2
     00000030: e1 46 37 00 00 00 00 00 00 07 80 00 02 80 51 00
     00000040: 48 21 00 ff 48 21 00 d8 8a 7e  cc=62

[58] 2012-05-30 21:19:28 Waiting for string
[58] 2012-05-30 21:19:28 waiting for: 7e 5a 00 24 c6 a8 22 25 80 00 fb 
1a 10 0e 19 00 01 00 7e ff 03 60 65

[58] 2012-05-30 21:19:28 Waiting for data on rfcomm

Receiving
     00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 5c 00 22
     00000010: c6 a8 22 25 80 00 fb 1a 10 0e 19 00 01 00 7e ff
     00000020: 03 60 65 10 80 78 00 d2 e1 46 37 00 00 63 00 76
     00000030: 46 56 77 00 e0 00 00 00 00 da 80 0a 02 00 f0 00
     00000040: 6d 23 00 00 6d 23 00 00 6d 23 00 c3 72 c6 4f 65
     00000050: 95 c5 4f c3 72 c6 4f 7d 31 0e 00 00 30 fe 7d 5e
     00000060: 00 01 00 00 00 41 71 7e  rr=92

sum=7elength change from 5c to 5a

[58] 2012-05-30 21:19:28 looking for: 7e 5a 00 24 c6 a8 22 25 80 00 fb 
1a 10 0e 19 00 01 00 7e ff 03 60 65
[58] 2012-05-30 21:19:28 received:    7e 5a 00 24 c6 a8 22 25 80 00 fb 
1a 10 0e 19 00 01 00 7e ff 03 60 65 10 80 78 00 d2 e1 46 37 00 00 63 00 
76 46 56 77 00 e0 00 00 00 00 da 80 0a 02 00 f0 00 6d 23 00 00 6d 23 00 
00 6d 23 00 c3 72 c6 4f 65 95 c5 4f c3 72 c6 4f 11 0e 00 00 30 fe 7e 00 
01 00 00 00 41 71 7e

[58] 2012-05-30 21:19:28 Found string we are waiting for
[59] 2012-05-30 21:19:28 Extracting
extracting timestring
[60] 2012-05-30 21:19:28 Sending
sum=80
   length change from 5b to 5d diff=80
new sum=80
[60] 2012-05-30 21:19:28 sending:
     00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 5d 00 23
     00000010: fb 1a 10 0e 19 00 ff ff ff ff ff ff 01 00 7e ff
     00000020: 03 60 65 10 a0 ff ff ff ff ff ff 00 00 78 00 d2
     00000030: e1 46 37 00 00 00 00 00 00 08 80 0a 02 00 f0 00
     00000040: 6d 23 00 00 6d 23 00 00 6d 23 00 c3 72 c6 4f 65
     00000050: 95 c5 4f c3 72 c6 4f 7d 31 0e 00 00 30 fe 7d 5e
     00000060: 00 01 00 00 00 00 83 2c 7e  cc=93

[61] 2012-05-30 21:19:28 Waiting for string
[61] 2012-05-30 21:19:28 waiting for: 7e 66 00 1a c6 a8 22 25 80 00

[61] 2012-05-30 21:19:28 Waiting for data on rfcomm

Receiving
     00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 6d 00 13
     00000010: c6 a8 22 25 80 00 fb 1a 10 0e 19 00 08 00 7e ff
     00000020: 03 60 65 3b 80 78 00 d2 e1 46 37 00 a0 63 00 76
     00000030: 46 56 77 00 00 00 00 00 00 05 80 01 02 00 58 00
     00000040: 00 00 00 04 00 00 00 01 1e 82 10 c3 72 c6 4f 53
     00000050: 4e 3a 20 32 30 30 32 31 34 32 38 33 38 00 00 00
     00000060: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01
     00000070: 1f 82 08 c3 72 c6 4f 41 1f  rr=109

[61] 2012-05-30 21:19:28 looking for: 7e 66 00 1a c6 a8 22 25 80 00
[61] 2012-05-30 21:19:28 received:    7e 6d 00 13 c6 a8 22 25 80 00 fb 
1a 10 0e 19 00 08 00 7e ff 03 60 65 3b 80 78 00 d2 e1 46 37 00 a0 63 00 
76 46 56 77 00 00 00 00 00 00 05 80 01 02 00 58 00 00 00 00 04 00 00 00 
01 1e 82 10 c3 72 c6 4f 53 4e 3a 20 32 30 30 32 31 34 32 38 33 38 00 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 1f 82 08 c3 72 c6 4f 
41 1f

[61] 2012-05-30 21:19:28 Found string we are waiting for
[62] 2012-05-30 21:19:28 Extracting
togo=0

Receiving
     00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 6d 00 13
     00000010: c6 a8 22 25 80 00 fb 1a 10 0e 19 00 08 00 00 01
     00000020: fe ff ff 00 00 00 00 20 3c 80 00 40 b8 ab d7 ff
     00000030: 50 fc 00 00 9d 63 01 40 5c fb 00 00 01 20 82 08
     00000040: c3 72 c6 4f dd 17 00 01 fe ff ff 00 fe ff ff 00
     00000050: fe ff ff 00 fe ff ff 00 fe ff ff 00 fe ff ff 00
     00000060: fe ff ff 00 01 21 82 08 c3 72 c6 4f 59 02 00 01
     00000070: 5b 02 00 01 5d 02 00 01 5e  rr=109

Receiving
     00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 51 00 2f
     00000010: c6 a8 22 25 80 00 fb 1a 10 0e 19 00 01 00 02 00
     00000020: 01 62 02 00 01 78 02 00 01 79 02 00 01 7a 02 00
     00000030: 01 01 21 82 08 c3 72 c6 4f 7c 02 00 00 7d 5d 02
     00000040: 00 01 fe ff ff 00 00 00 00 00 00 00 00 00 00 00
     00000050: 00 00 00 00 00 00 00 00 00 00 59 1e 7e  rr=81

sum=80length change from 51 to 50

len=200 data=01 1e 82 10 c3 72 c6 4f 53 4e 3a 20 32 30 30 32 31 34 32 38 
33 38 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 1f 82 08 
c3 72 c6 4f 41 1f 00 01 fe ff ff 00 00 00 00 20 3c 80 00 40 b8 ab d7 ff 
50 fc 00 00 9d 63 01 40 5c fb 00 00 01 20 82 08 c3 72 c6 4f dd 17 00 01 
fe ff ff 00 fe ff ff 00 fe ff ff 00 fe ff ff 00 fe ff ff 00 fe ff ff 00 
fe ff ff 00 01 21 82 08 c3 72 c6 4f 59 02 00 01 5b 02 00 01 5d 02 00 01 
5e 02 00 01 62 02 00 01 78 02 00 01 79 02 00 01 7a 02 00 01 01 21 82 08 
c3 72 c6 4f 7c 02 00 00 7d 02 00 01 fe ff ff 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 00 00 00 00 00
2012-05-30 21:19:31 Unit Serial          = 3821139 none
2012-05-30 21:19:31 NO DATA for 1f 82 = 8001 NO UNITS
2012-05-30 21:19:31 NO DATA for 20 82 = 6109 NO UNITS
2012-05-30 21:19:31 NO DATA for 21 82 = 601 NO UNITS
2012-05-30 21:19:31 NO DATA for 21 82 = 636 NO UNITS
[64] 2012-05-30 21:19:28 Sending
[64] 2012-05-30 21:19:28 sending:
     00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 14 00 6a
     00000010: 00 00 00 00 00 00 c6 a8 22 25 80 00 03 00 05 00  cc=20

[65] 2012-05-30 21:19:28 Waiting for string
[65] 2012-05-30 21:19:28 waiting for: 7e 18 00 66 c6 a8 22 25 80 00 00 
00 00 00 00 00 04 00 05 00 00 00

[65] 2012-05-30 21:19:28 Waiting for data on rfcomm

Receiving
     00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 67 00 19
     00000010: c6 a8 22 25 80 00 fb 1a 10 0e 19 00 01 00 7e ff
     00000020: 03 60 65 7d 33 80 78 00 d2 e1 46 37 00 a0 63 00
     00000030: 76 46 56 77 00 00 00 00 00 00 06 80 01 02 00 58
     00000040: 0a 00 00 00 0a 00 00 00 01 1e a2 00 c3 72 c6 4f
     00000050: 00 00 00 00 00 00 00 00 00 f9 fe ff 00 f9 fe ff
     00000060: 76 46 56 77 76 46 56 77 00 00 00 00 00 00 00 00
     00000070: 53 2f 7e  rr=103

sum=80length change from 67 to 66

[65] 2012-05-30 21:19:28 looking for: 7e 18 00 66 c6 a8 22 25 80 00 00 
00 00 00 00 00 04 00 05 00 00 00
[65] 2012-05-30 21:19:28 received:    7e 66 00 1a c6 a8 22 25 80 00 fb 
1a 10 0e 19 00 01 00 7e ff 03 60 65 13 80 78 00 d2 e1 46 37 00 a0 63 00 
76 46 56 77 00 00 00 00 00 00 06 80 01 02 00 58 0a 00 00 00 0a 00 00 00 
01 1e a2 00 c3 72 c6 4f 00 00 00 00 00 00 00 00 00 f9 fe ff 00 f9 fe ff 
76 46 56 77 76 46 56 77 00 00 00 00 00 00 00 00 53 2f 7e

[65] 2012-05-30 21:19:28 Did not find string

Receiving
     00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 67 00 19
     00000010: c6 a8 22 25 80 00 fb 1a 10 0e 19 00 01 00 7e ff
     00000020: 03 60 65 7d 33 80 78 00 d2 e1 46 37 00 a0 63 00
     00000030: 76 46 56 77 00 00 00 00 00 00 07 80 01 02 80 51
     00000040: 00 00 00 00 00 00 00 00 01 48 21 08 c3 72 c6 4f
     00000050: 33 01 00 01 fe ff ff 00 fe ff ff 00 fe ff ff 00
     00000060: fe ff ff 00 fe ff ff 00 fe ff ff 00 fe ff ff 00
     00000070: 79 43 7e  rr=103

sum=80length change from 67 to 66

[65] 2012-05-30 21:19:28 looking for: 7e 18 00 66 c6 a8 22 25 80 00 00 
00 00 00 00 00 04 00 05 00 00 00
[65] 2012-05-30 21:19:28 received:    7e 66 00 1a c6 a8 22 25 80 00 fb 
1a 10 0e 19 00 01 00 7e ff 03 60 65 13 80 78 00 d2 e1 46 37 00 a0 63 00 
76 46 56 77 00 00 00 00 00 00 07 80 01 02 80 51 00 00 00 00 00 00 00 00 
01 48 21 08 c3 72 c6 4f 33 01 00 01 fe ff ff 00 fe ff ff 00 fe ff ff 00 
fe ff ff 00 fe ff ff 00 fe ff ff 00 fe ff ff 00 79 43 7e

[65] 2012-05-30 21:19:28 Did not find string

Receiving
     00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 18 00 66
     00000010: c6 a8 22 25 80 00 00 00 00 00 00 00 04 00 05 00
     00000020: 00 00 b4 00  rr=24

[65] 2012-05-30 21:19:28 looking for: 7e 18 00 66 c6 a8 22 25 80 00 00 
00 00 00 00 00 04 00 05 00 00 00
[65] 2012-05-30 21:19:28 received:    7e 18 00 66 c6 a8 22 25 80 00 00 
00 00 00 00 00 04 00 05 00 00 00 b4 00

[65] 2012-05-30 21:19:28 Found string we are waiting for
[66] 2012-05-30 21:19:28 Sending
[66] 2012-05-30 21:19:28 sending:
     00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 14 00 6a
     00000010: 00 00 00 00 00 00 c6 a8 22 25 80 00 03 00 05 00  cc=20

[67] 2012-05-30 21:19:28 Waiting for string
[67] 2012-05-30 21:19:28 waiting for: 7e 18 00 66 c6 a8 22 25 80 00 00 
00 00 00 00 00 04 00 05 00 00 00

[67] 2012-05-30 21:19:28 Waiting for data on rfcomm

Receiving
     00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 18 00 66
     00000010: c6 a8 22 25 80 00 00 00 00 00 00 00 04 00 05 00
     00000020: 00 00 b4 00  rr=24

[67] 2012-05-30 21:19:28 looking for: 7e 18 00 66 c6 a8 22 25 80 00 00 
00 00 00 00 00 04 00 05 00 00 00
[67] 2012-05-30 21:19:28 received:    7e 18 00 66 c6 a8 22 25 80 00 00 
00 00 00 00 00 04 00 05 00 00 00 b4 00

[67] 2012-05-30 21:19:28 Found string we are waiting for
[68] 2012-05-30 21:19:28 Sending
sum=7e
   length change from 40 to 3f diff=7e
new sum=80
[68] 2012-05-30 21:19:28 sending:
     00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 3f 00 41
     00000010: fb 1a 10 0e 19 00 ff ff ff ff ff ff 01 00 7e ff
     00000020: 03 60 65 09 a1 ff ff ff ff ff ff 00 00 78 00 d2
     00000030: e1 46 37 00 00 00 00 00 00 09 80 00 02 00 51 00
     00000040: 00 20 00 ff ff 50 00 0e a3 af 7e  cc=63

[69] 2012-05-30 21:19:28 Waiting for string
[69] 2012-05-30 21:19:28 waiting for: 7e 66 00 1a c6 a8 22 25 80 00 fb 
1a 10 0e 19 00

[69] 2012-05-30 21:19:28 Waiting for data on rfcomm

Receiving
     00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 6d 00 13
     00000010: c6 a8 22 25 80 00 fb 1a 10 0e 19 00 08 00 7e ff
     00000020: 03 60 65 3a 80 78 00 d2 e1 46 37 00 a0 63 00 76
     00000030: 46 56 77 00 00 00 00 01 00 09 80 01 02 00 51 00
     00000040: 00 00 00 06 00 00 00 01 3f 26 40 c3 72 c6 4f 00
     00000050: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01
     00000060: 00 00 00 01 1e 41 00 c3 72 c6 4f 40 06 00 00 40
     00000070: 06 00 00 40 06 00 00 40 06  rr=109

[69] 2012-05-30 21:19:28 looking for: 7e 66 00 1a c6 a8 22 25 80 00 fb 
1a 10 0e 19 00
[69] 2012-05-30 21:19:28 received:    7e 6d 00 13 c6 a8 22 25 80 00 fb 
1a 10 0e 19 00 08 00 7e ff 03 60 65 3a 80 78 00 d2 e1 46 37 00 a0 63 00 
76 46 56 77 00 00 00 00 01 00 09 80 01 02 00 51 00 00 00 00 06 00 00 00 
01 3f 26 40 c3 72 c6 4f 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
01 00 00 00 01 1e 41 00 c3 72 c6 4f 40 06 00 00 40 06 00 00 40 06 00 00 
40 06

[69] 2012-05-30 21:19:28 Found string we are waiting for
[70] 2012-05-30 21:19:28 Extracting
togo=1

Receiving
     00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 6d 00 13
     00000010: c6 a8 22 25 80 00 fb 1a 10 0e 19 00 08 00 00 00
     00000020: 01 00 00 00 01 1f 41 00 c3 72 c6 4f 00 00 00 00
     00000030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00000040: 01 20 41 00 c3 72 c6 4f 00 00 00 00 00 00 00 00
     00000050: 00 00 00 00 00 00 00 00 00 00 00 00 01 48 46 00
     00000060: c3 72 c6 4f 44 57 00 00 44 57 00 00 44 57 00 00
     00000070: 44 57 00 00 01 00 00 00 01  rr=109

Receiving
     00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 4c 00 32
     00000010: c6 a8 22 25 80 00 fb 1a 10 0e 19 00 01 00 49 46
     00000020: 00 c3 72 c6 4f ff ff ff ff ff ff ff ff ff ff ff
     00000030: ff ff ff ff ff 01 00 00 00 01 4a 46 00 c3 72 c6
     00000040: 4f ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
     00000050: ff 01 00 00 00 1e de 7e  rr=76

len=196 data=01 3f 26 40 c3 72 c6 4f 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 01 00 00 00 01 1e 41 00 c3 72 c6 4f 40 06 00 00 40 06 00 00 
40 06 00 00 40 06 00 00 01 00 00 00 01 1f 41 00 c3 72 c6 4f 00 00 00 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 20 41 00 c3 72 c6 4f 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 48 46 00 
c3 72 c6 4f 44 57 00 00 44 57 00 00 44 57 00 00 44 57 00 00 01 00 00 00 
01 49 46 00 c3 72 c6 4f ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
01 00 00 00 01 4a 46 00 c3 72 c6 4f ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff 01 00 00 00
2012-05-30 21:19:31 Total Power          = 0 Watts
2012-05-30 21:19:31 Max Phase 1          = 1600 Watts
2012-05-30 21:19:31 Max Phase 2          = 0 Watts
2012-05-30 21:19:31 Max Pahse 3          = 0 Watts
2012-05-30 21:19:31 Line Voltage Phase 1Volts = 223 Volts
2012-05-30 21:19:31 Line Voltage Phase 2Volts = 0 Volts
2012-05-30 21:19:31 Line Voltage Phase 3Volts = 0 Volts
[71] 2012-05-30 21:19:28 Sending
sum=80
   length change from 3f to 3e diff=80
new sum=7e
[71] 2012-05-30 21:19:28 sending:
     00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 3e 00 40
     00000010: c6 a8 22 25 80 00 ff ff ff ff ff ff 01 00 7e ff
     00000020: 03 60 65 09 a0 ff ff ff ff ff ff 00 00 78 00 d2
     00000030: e1 46 37 00 00 00 00 00 00 0a 80 00 02 80 51 00
     00000040: 00 20 00 ff ff 50 00 72 1a 7e  cc=62

[72] 2012-05-30 21:19:28 Waiting for string
[72] 2012-05-30 21:19:28 waiting for: 7e 66 00 1a c6 a8 22 25 80 00 fb 
1a 10 0e 19 00

[72] 2012-05-30 21:19:28 Waiting for data on rfcomm

Receiving
     00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 6d 00 13
     00000010: c6 a8 22 25 80 00 fb 1a 10 0e 19 00 08 00 7e ff
     00000020: 03 60 65 2c 80 78 00 d2 e1 46 37 00 a0 63 00 76
     00000030: 46 56 77 00 00 00 00 00 00 09 00 01 02 00 51 07
     00000040: 00 00 00 0b 00 00 00 01 50 46 00 c3 72 c6 4f 00
     00000050: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01
     00000060: 00 00 00 01 51 46 00 c3 72 c6 4f ff ff ff ff ff
     00000070: ff ff ff ff ff ff ff ff ff  rr=109

[72] 2012-05-30 21:19:28 looking for: 7e 66 00 1a c6 a8 22 25 80 00 fb 
1a 10 0e 19 00
[72] 2012-05-30 21:19:28 received:    7e 6d 00 13 c6 a8 22 25 80 00 fb 
1a 10 0e 19 00 08 00 7e ff 03 60 65 2c 80 78 00 d2 e1 46 37 00 a0 63 00 
76 46 56 77 00 00 00 00 00 00 09 00 01 02 00 51 07 00 00 00 0b 00 00 00 
01 50 46 00 c3 72 c6 4f 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
01 00 00 00 01 51 46 00 c3 72 c6 4f ff ff ff ff ff ff ff ff ff ff ff ff 
ff ff

[72] 2012-05-30 21:19:28 Found string we are waiting for
[73] 2012-05-30 21:19:28 Extracting
togo=0

Receiving
     00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 6d 00 13
     00000010: c6 a8 22 25 80 00 fb 1a 10 0e 19 00 08 00 ff ff
     00000020: 01 00 00 00 01 52 46 00 c3 72 c6 4f ff ff ff ff
     00000030: ff ff ff ff ff ff ff ff ff ff ff ff 01 00 00 00
     00000040: 01 57 46 00 c3 72 c6 4f 86 7d 33 00 00 86 7d 33
     00000050: 00 00 86 7d 33 00 00 86 7d 33 00 00 01 00 00 00
     00000060: 01 1f 4a 00 c3 72 c6 4f 50 00 00 00 50 00 00 00
     00000070: 50 00 00 00 50 00 00 00 01  rr=109

sum=80length change from 6d to 69

Receiving
     00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 18 00 66
     00000010: c6 a8 22 25 80 00 fb 1a 10 0e 19 00 01 00 00 00
     00000020: 00 fe 87 7e  rr=24

len=140 data=01 50 46 00 c3 72 c6 4f 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 01 00 00 00 01 51 46 00 c3 72 c6 4f ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff ff 01 00 00 00 01 52 46 00 c3 72 c6 4f ff ff ff ff 
ff ff ff ff ff ff ff ff ff ff ff ff 01 00 00 00 01 57 46 00 c3 72 c6 4f 
86 13 00 00 86 13 00 00 86 13 00 00 86 13 00 00 01 00 00 00 01 1f 4a 00 
c3 72 c6 4f 50 00 00 00 50 00 00 00 50 00 00 00 50 00 00 00 01 00 00 00
2012-05-30 21:19:31 Line Current Phase 1Amps = 0 Amps
2012-05-30 21:19:31 Line Current Phase 2Amps = 0 Amps
2012-05-30 21:19:31 Line Current Phase 3Amps = 0 Amps
2012-05-30 21:19:31 Grid Frequency       = 50 Hertz
2012-05-30 21:19:31 NO DATA for 1f 4a = 80 NO UNITS
[75] 2012-05-30 21:19:28 Sending
[75] 2012-05-30 21:19:28 sending:
     00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 14 00 6a
     00000010: 00 00 00 00 00 00 c6 a8 22 25 80 00 03 00 05 00  cc=20

[76] 2012-05-30 21:19:28 Waiting for string
[76] 2012-05-30 21:19:28 waiting for: 7e 18 00 66 c6 a8 22 25 80 00 00 
00 00 00 00 00 04 00 05 00 00 00

[76] 2012-05-30 21:19:28 Waiting for data on rfcomm

Receiving
     00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 18 00 66
     00000010: c6 a8 22 25 80 00 00 00 00 00 00 00 04 00 05 00
     00000020: 00 00 b4 00  rr=24

[76] 2012-05-30 21:19:28 looking for: 7e 18 00 66 c6 a8 22 25 80 00 00 
00 00 00 00 00 04 00 05 00 00 00
[76] 2012-05-30 21:19:28 received:    7e 18 00 66 c6 a8 22 25 80 00 00 
00 00 00 00 00 04 00 05 00 00 00 b4 00

[76] 2012-05-30 21:19:28 Found string we are waiting for
[77] 2012-05-30 21:19:28 Extracting
[78] 2012-05-30 21:19:28 Sending
[78] 2012-05-30 21:19:28 sending:
     00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 14 00 6a
     00000010: 00 00 00 00 00 00 c6 a8 22 25 80 00 03 00 05 00  cc=20

[79] 2012-05-30 21:19:28 Waiting for string
[79] 2012-05-30 21:19:28 waiting for: 7e 18 00 66 c6 a8 22 25 80 00 00 
00 00 00 00 00 04 00 05 00 00 00

[79] 2012-05-30 21:19:28 Waiting for data on rfcomm

Receiving
     00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 18 00 66
     00000010: c6 a8 22 25 80 00 00 00 00 00 00 00 04 00 05 00
     00000020: 00 00 b4 00  rr=24

[79] 2012-05-30 21:19:28 looking for: 7e 18 00 66 c6 a8 22 25 80 00 00 
00 00 00 00 00 04 00 05 00 00 00
[79] 2012-05-30 21:19:28 received:    7e 18 00 66 c6 a8 22 25 80 00 00 
00 00 00 00 00 04 00 05 00 00 00 b4 00

[79] 2012-05-30 21:19:28 Found string we are waiting for
[80] 2012-05-30 21:19:28 Sending
[80] 2012-05-30 21:19:28 sending:
     00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 14 00 6a
     00000010: 00 00 00 00 00 00 c6 a8 22 25 80 00 03 00 05 00  cc=20

[81] 2012-05-30 21:19:28 Waiting for string
[81] 2012-05-30 21:19:28 waiting for: 7e 18 00 66 c6 a8 22 25 80 00 00 
00 00 00 00 00 04 00 05 00 00 00

[81] 2012-05-30 21:19:28 Waiting for data on rfcomm

Receiving
     00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 18 00 66
     00000010: c6 a8 22 25 80 00 00 00 00 00 00 00 04 00 05 00
     00000020: 00 00 b4 00  rr=24

[81] 2012-05-30 21:19:28 looking for: 7e 18 00 66 c6 a8 22 25 80 00 00 
00 00 00 00 00 04 00 05 00 00 00
[81] 2012-05-30 21:19:28 received:    7e 18 00 66 c6 a8 22 25 80 00 00 
00 00 00 00 00 04 00 05 00 00 00 b4 00

[81] 2012-05-30 21:19:28 Found string we are waiting for
[82] 2012-05-30 21:19:28 Sending
sum=7e
   length change from 40 to 3e diff=7e
new sum=7e
[82] 2012-05-30 21:19:28 sending:
     00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 3e 00 40
     00000010: fb 1a 10 0e 19 00 c6 a8 22 25 80 00 01 00 7e ff
     00000020: 03 60 65 09 e0 ff 00 76 46 56 77 00 00 78 00 d2
     00000030: e1 46 37 00 00 00 00 00 00 0b 80 00 02 00 70 88
     00000040: 70 c6 4f a4 72 c6 4f 1f 3a 7e  cc=62

[83] 2012-05-30 21:19:28 Waiting for string
[83] 2012-05-30 21:19:28 waiting for: 7e 66 00 1a c6 a8 22 25 80 00

[83] 2012-05-30 21:19:28 Waiting for data on rfcomm

Receiving
     00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 6d 00 13
     00000010: c6 a8 22 25 80 00 fb 1a 10 0e 19 00 08 00 7e ff
     00000020: 03 60 65 27 80 78 00 d2 e1 46 37 00 a0 63 00 76
     00000030: 46 56 77 00 00 00 00 00 00 0a 80 01 02 80 51 00
     00000040: 00 00 00 02 00 00 00 01 48 21 08 c3 72 c6 4f 33
     00000050: 01 00 01 fe ff ff 00 fe ff ff 00 fe ff ff 00 fe
     00000060: ff ff 00 fe ff ff 00 fe ff ff 00 fe ff ff 00 01
     00000070: 49 41 08 c3 72 c6 4f 76 03  rr=109

[83] 2012-05-30 21:19:28 looking for: 7e 66 00 1a c6 a8 22 25 80 00
[83] 2012-05-30 21:19:28 received:    7e 6d 00 13 c6 a8 22 25 80 00 fb 
1a 10 0e 19 00 08 00 7e ff 03 60 65 27 80 78 00 d2 e1 46 37 00 a0 63 00 
76 46 56 77 00 00 00 00 00 00 0a 80 01 02 80 51 00 00 00 00 02 00 00 00 
01 48 21 08 c3 72 c6 4f 33 01 00 01 fe ff ff 00 fe ff ff 00 fe ff ff 00 
fe ff ff 00 fe ff ff 00 fe ff ff 00 fe ff ff 00 01 49 41 08 c3 72 c6 4f 
76 03

[83] 2012-05-30 21:19:28 Found string we are waiting for
[84] 2012-05-30 21:19:28 Extracting

togo=0

Receiving
     00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 5b 00 25
     00000010: c6 a8 22 25 80 00 fb 1a 10 0e 19 00 01 00 00 01
     00000020: fe ff ff 00 fe ff ff 00 fe ff ff 00 fe ff ff 00
     00000030: fe ff ff 00 fe ff ff 00 fe ff ff 00 01 4a 41 08
     00000040: c3 72 c6 4f 77 03 00 01 fe ff ff 00 fe ff ff 00
     00000050: fe ff ff 00 fe ff ff 00 fe ff ff 00 fe ff ff 00
     00000060: fe ff ff 00 69 24 7e  rr=91

len=120 data=01 48 21 08 c3 72 c6 4f 33 01 00 01 fe ff ff 00 fe ff ff 00 
fe ff ff 00 fe ff ff 00 fe ff ff 00 fe ff ff 00 fe ff ff 00 01 49 41 08 
c3 72 c6 4f 76 03 00 01 fe ff ff 00 fe ff ff 00 fe ff ff 00 fe ff ff 00 
fe ff ff 00 fe ff ff 00 fe ff ff 00 01 4a 41 08 c3 72 c6 4f 77 03 00 01 
fe ff ff 00 fe ff ff 00 fe ff ff 00 fe ff ff 00 fe ff ff 00 fe ff ff 00 
fe ff ff 00

28/4/1974 17:34:09  total=72058914471936.000 Kwh current=0 Watts togo=0 
i=11 crc=1367385440
14/7/1970 05:20:14  total=72057589071872.000 Kwh current=-15977278341120 
Watts togo=0 i=23 crc=1367385440Date Error! prev=136398849 current=16777214

14/7/1970 05:20:14  total=72057589071872.000 Kwh current=0 Watts togo=0 
i=35 crc=1367385440Date Error! prev=16777214 current=16777214

14/7/1970 05:20:14  total=5748408388157440.000 Kwh 
current=68116209890211397632 Watts togo=0 i=47 crc=1367385440Date Error! 
prev=16777214 current=16777214

14/7/1970 05:35:02  total=72057589071872.000 Kwh 
current=-68116209890211397632 Watts togo=0 i=59 crc=1367385440Date 
Error! prev=16777214 current=16778102

14/7/1970 05:20:14  total=72057589071872.000 Kwh current=0 Watts togo=0 
i=71 crc=1367385440Date Error! prev=16778102 current=16777214

14/7/1970 05:20:14  total=594838005219328.000 Kwh 
current=6273364747345723392 Watts togo=0 i=83 crc=1367385440Date Error! 
prev=16777214 current=16777214

30/5/2012 21:19:31  total=72057589071872.000 Kwh 
current=-6273364747345723392 Watts togo=0 i=95 crc=1367385440Date Error! 
prev=16777214 current=1338405571

14/7/1970 05:20:14  total=72057589071872.000 Kwh current=0 Watts togo=0 
i=107 crc=1367385440Date Error! prev=1338405571 current=16777214

14/7/1970 05:20:14  total=72057589071872.000 Kwh current=0 Watts togo=0 
i=119 crc=1367385440Date Error! prev=16777214 current=16777214

INSERT INTO DayData ( DateTime, Inverter, Serial, CurrentPower, 
EtotalToday ) VALUES ( 
FROM_UNIXTIME(16777214),'1600TL',2002142838,-15977278341120, 
72057589071872.000 ) ON DUPLICATE KEY UPDATE DateTime=Datetime, 
Inverter=VALUES(Inverter), Serial=VALUES(Serial), 
CurrentPower=VALUES(CurrentPower), EtotalToday=VALUES(EtotalToday)
INSERT INTO DayData ( DateTime, Inverter, Serial, CurrentPower, 
EtotalToday ) VALUES ( FROM_UNIXTIME(16777214),'1600TL',2002142838,0, 
72057589071872.000 ) ON DUPLICATE KEY UPDATE DateTime=Datetime, 
Inverter=VALUES(Inverter), Serial=VALUES(Serial), 
CurrentPower=VALUES(CurrentPower), EtotalToday=VALUES(EtotalToday)
INSERT INTO DayData ( DateTime, Inverter, Serial, CurrentPower, 
EtotalToday ) VALUES ( 
FROM_UNIXTIME(16777214),'1600TL',2002142838,68116209890211397632, 
5748408388157440.000 ) ON DUPLICATE KEY UPDATE DateTime=Datetime, 
Inverter=VALUES(Inverter), Serial=VALUES(Serial), 
CurrentPower=VALUES(CurrentPower), EtotalToday=VALUES(EtotalToday)
INSERT INTO DayData ( DateTime, Inverter, Serial, CurrentPower, 
EtotalToday ) VALUES ( 
FROM_UNIXTIME(16778102),'1600TL',2002142838,-68116209890211397632, 
72057589071872.000 ) ON DUPLICATE KEY UPDATE DateTime=Datetime, 
Inverter=VALUES(Inverter), Serial=VALUES(Serial), 
CurrentPower=VALUES(CurrentPower), EtotalToday=VALUES(EtotalToday)
INSERT INTO DayData ( DateTime, Inverter, Serial, CurrentPower, 
EtotalToday ) VALUES ( FROM_UNIXTIME(16777214),'1600TL',2002142838,0, 
72057589071872.000 ) ON DUPLICATE KEY UPDATE DateTime=Datetime, 
Inverter=VALUES(Inverter), Serial=VALUES(Serial), 
CurrentPower=VALUES(CurrentPower), EtotalToday=VALUES(EtotalToday)
INSERT INTO DayData ( DateTime, Inverter, Serial, CurrentPower, 
EtotalToday ) VALUES ( 
FROM_UNIXTIME(16777214),'1600TL',2002142838,6273364747345723392, 
594838005219328.000 ) ON DUPLICATE KEY UPDATE DateTime=Datetime, 
Inverter=VALUES(Inverter), Serial=VALUES(Serial), 
CurrentPower=VALUES(CurrentPower), EtotalToday=VALUES(EtotalToday)
INSERT INTO DayData ( DateTime, Inverter, Serial, CurrentPower, 
EtotalToday ) VALUES ( 
FROM_UNIXTIME(1338405571),'1600TL',2002142838,-6273364747345723392, 
72057589071872.000 ) ON DUPLICATE KEY UPDATE DateTime=Datetime, 
Inverter=VALUES(Inverter), Serial=VALUES(Serial), 
CurrentPower=VALUES(CurrentPower), EtotalToday=VALUES(EtotalToday)
INSERT INTO DayData ( DateTime, Inverter, Serial, CurrentPower, 
EtotalToday ) VALUES ( FROM_UNIXTIME(16777214),'1600TL',2002142838,0, 
72057589071872.000 ) ON DUPLICATE KEY UPDATE DateTime=Datetime, 
Inverter=VALUES(Inverter), Serial=VALUES(Serial), 
CurrentPower=VALUES(CurrentPower), EtotalToday=VALUES(EtotalToday)
INSERT INTO DayData ( DateTime, Inverter, Serial, CurrentPower, 
EtotalToday ) VALUES ( FROM_UNIXTIME(16777214),'1600TL',2002142838,0, 
72057589071872.000 ) ON DUPLICATE KEY UPDATE DateTime=Datetime, 
Inverter=VALUES(Inverter), Serial=VALUES(Serial), 
CurrentPower=VALUES(CurrentPower), EtotalToday=VALUES(EtotalToday)
SELECT DATE_FORMAT(dd1.DateTime,'%Y%m%d'), 
DATE_FORMAT(dd1.DateTime,'%H:%i'), 
ROUND((dd1.ETotalToday-dd2.EtotalToday)*1000), dd1.CurrentPower, 
dd1.DateTime FROM DayData as dd1 join DayData as dd2 on 
dd2.DateTime=DATE_FORMAT(dd1.DateTime,'%Y%m%d0000000') WHERE 
dd1.DateTime>=Date_Sub(CURDATE(),INTERVAL 13 DAY) and dd1.PVOutput IS 
NULL and dd1.CurrentPower>0 ORDER BY dd1.DateTime ASC

Original comment by sendtore...@gmail.com on 30 May 2012 at 8:44

GoogleCodeExporter commented 9 years ago
Well, looks great. Your smatool is working (Data from inverter has been read 
out and smatool is trying  but the whole Date Errors... hmmm (just don't care). 
Please try to purge the DayData table of the MySQL Database and try to change 
the .c file as shown:

Search after all strings containing "INTERVAL 13 DAY" (as I can remember there 
are 3 of them)
 ... =Date_Sub(CURDATE(),INTERVAL 13 DAY) ...

Change them to "INTERVAL 11 DAY" - maybe it is that issue - it worked for me. 
But firt purge the DB and wait until tomorrow because smatool isn't posting 
when 'current=0'.

Original comment by christop...@googlemail.com on 30 May 2012 at 9:02

GoogleCodeExporter commented 9 years ago
Thanks, I wil try that. Do I have to purge the purge the Almanac and settings 
tables too?

Original comment by sendtore...@gmail.com on 30 May 2012 at 9:19

GoogleCodeExporter commented 9 years ago
Hmm,you can purge the Almanac table. The Settings table should be ok. There is 
just the version storred - so let it as it is.

Original comment by christop...@googlemail.com on 30 May 2012 at 9:21

GoogleCodeExporter commented 9 years ago
... And check your geographic position values - they seem to be a little ... 
unreal - unless it was your intention to set them that way.

Original comment by christop...@googlemail.com on 30 May 2012 at 9:29

GoogleCodeExporter commented 9 years ago
Thanks, I purged the Almanac table too. Now wait what tomorrow brings. 

Original comment by sendtore...@gmail.com on 30 May 2012 at 9:31

GoogleCodeExporter commented 9 years ago
I will check my geographic position. 

The data doesn,t make sense to me:
mysql> select * from smatool.DayData;
+---------------------+----------+------------+--------------+-------------+----
------+---------------------+
| DateTime            | Inverter | Serial     | CurrentPower | ETotalToday | 
PVOutput | CHANGETIME          |
+---------------------+----------+------------+--------------+-------------+----
------+---------------------+
| 1970-07-14 05:20:14 | 1600TL   | 2002142838 |            0 | 9999999.999 | 
NULL     | 2012-05-31 09:27:08 |
| 1970-07-14 05:35:02 | 1600TL   | 2002142838 |  -2147483648 | 9999999.999 | 
NULL     | 0000-00-00 00:00:00 |
| 2012-05-31 09:22:30 | 1600TL   | 2002142838 |  -2147483648 | 9999999.999 | 
NULL     | 0000-00-00 00:00:00 |
| 2012-05-31 09:25:04 | 1600TL   | 2002142838 |  -2147483648 | 9999999.999 | 
NULL     | 0000-00-00 00:00:00 |
| 2012-05-31 09:27:08 | 1600TL   | 2002142838 |  -2147483648 | 9999999.999 | 
NULL     | 0000-00-00 00:00:00 |
+---------------------+----------+------------+--------------+-------------+----
------+---------------------+

The datetime, inverter and serial are correct, but CurrentPower and ETotalToday 
are really strange values.
When I select 2100TL as inverter I get the following lines:
| 2012-05-30 17:40:00 | 2100TL   | 2002142838 |         1092 |     198.179 | 
NULL     | 0000-00-00 00:00:00 |
| 2012-05-30 17:45:00 | 2100TL   | 2002142838 |         1152 |     198.275 | 
NULL     | 0000-00-00 00:00:00 |
| 2012-05-30 17:50:00 | 2100TL   | 2002142838 |         1044 |     198.362 | 
NULL     | 0000-00-00 00:00:00 |
These values make more sense (only it gives the Total Kwh in stead of DayTotal).

Any ideas?

Original comment by sendtore...@gmail.com on 31 May 2012 at 7:33

GoogleCodeExporter commented 9 years ago
That is OK.  My db has the same data. I just don't understand why it is not 
working with your inverter codes. Use the data from the 2100 inverter and 
compare it to the sunny explorer output. 

Original comment by christop...@googlemail.com on 31 May 2012 at 8:17

GoogleCodeExporter commented 9 years ago
The realtime data in the Sunny Explorer is the same as the data with smatool 
configured with 2100TL. I can't export to csv with the Sunny Eplorer. There's a 
bug with the SE and the 1600TL.
I'm not that kind of a programmer to really understand what happens in the 
smatool and how the data is computed.
I attached a log with the data configured as 2100TL

Original comment by sendtore...@gmail.com on 31 May 2012 at 9:03

Attachments:

GoogleCodeExporter commented 9 years ago
Please excuse but I don't know what you're trying to find out. Every input in 
the db is OK except the first lines but I wouldn't care about it.  The produced 
energy is increasing every time new data is written. Everything works well so 
far. What I can see is that nothing has been uploaded to pvoutput.org.  Check 
your system id please. It must contain only 4 digits. 

Original comment by christop...@googlemail.com on 31 May 2012 at 9:29

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
The data in the db is not OK. I will explain it with the following line:
| DateTime            | Inverter | Serial     | CurrentPower | ETotalToday | 
PVOutput | CHANGETIME |
| 2012-05-31 12:00:05 | 1600TL   | 2002142838 |  -2147483648 | 9999999.999 | 
NULL     | 0000-00-00 00:00:00 |
| 2012-05-31 12:20:06 | 1600TL   | 2002142838 |  -2147483648 | 9999999.999 | 
NULL     | 0000-00-00 00:00:00 |

The DateTime, inverter and serial are OK. The CurrentPower, ETotalToday, 
PVOutput and CHANGETIME do not make sense. CHANGETIME is not an issue, but 
Every record in the db gives the same value -2147483648 for the CurrentPower.

If I have the 2100TL configured, I get the following data:
| DateTime            | Inverter | Serial     | CurrentPower | ETotalToday  | 
PVOutput | CHANGETIME          |
| 2012-05-30 17:35:00 | 2100TL   | 2002142838 |          828 |     198.088  | 
NULL     | 0000-00-00 00:00:00 |
| 2012-05-30 17:40:00 | 2100TL   | 2002142838 |         1092 |     198.179  | 
NULL     | 0000-00-00 00:00:00 |

Now only ETotalDay gives wrong output. The value 198.088 is the grand Total 
from day of installation. I would expect this day's total. 
What PVOutput I don't know what meens, but that's a NULL value in every record 
in the db. 

So, logging in the plant works fine, but the data is not correctly computed and 
stored in the db.

Original comment by sendtore...@gmail.com on 31 May 2012 at 10:45

GoogleCodeExporter commented 9 years ago
The null changes to a value when data has been sent to pvoutput.org. The day 
energy amount shows not the day energy but as you wrote the whole energy from 
the installation day of the system. The same results are on my db. 
The system id you will find in the settings menu of your pvoutput.org account. 

The next thing is,  I would change the pvoutput.org address in the Smatool.conf 
file.  There is a /r1/ in it. Change it to /r2/ and you will be able to send 
more data per hour (up to 60 accesses per hour) 

Original comment by christop...@googlemail.com on 31 May 2012 at 11:14

GoogleCodeExporter commented 9 years ago
Still, the CurrentPower and EtotalToday give wrong values with inverter=1600TL. 
| DateTime            | Inverter |CurrentPower | ETotalToday 
| 2012-05-31 12:00:05 | 1600TL   | -2147483648 | 9999999.999 
| 2012-05-31 12:20:06 | 1600TL   | -2147483648 | 9999999.999

Can we fix that?

Original comment by sendtore...@gmail.com on 31 May 2012 at 11:46

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Hi , I've been going nuts over this. I always get "NO DATA". 
I can reproduce the result by putting a wrong inverter with the --inverter 
switch.
So I did a USB sniff and my inverter data are 'diffrend from yours??)

Inverter        5000TL-20
Code1           0x4c
Code2           0x26
Code3           0x83
Code4           0x3b
InvCode         0x4e

added to invcode.in and recompiled with " gcc -g -o smatool smatool.c 
-lbluetooth -lcurl -lmysqlclient -lm" on ub 12.04
But still no luck!
Any suggestions, on what I might do to examine this problem? Attached are the 
debug output from a USB sniffer and smatool -v -d 

Original comment by ed.dries...@gmail.com on 24 Aug 2012 at 8:09

Attachments:

GoogleCodeExporter commented 9 years ago
At the start of this thread I saw these codes for the 5000TL-20:
Code1       0xAD
Code2       0x52
Code3       0xB2
Code4       0x3A
InvCode     0x4E

Please try those ones.

Original comment by sendtore...@gmail.com on 26 Aug 2012 at 3:26

GoogleCodeExporter commented 9 years ago
Hi sendtorenetta,

I initially started out with those, but they didn't work either.

I tried the latest version, and downloaded the nightly code to build.

Regards,
Ed

Original comment by ed.dries...@gmail.com on 27 Aug 2012 at 10:43

GoogleCodeExporter commented 9 years ago
the usb snoop data was attached to prove my point. listed data at the top 
doesn't work either. The inverter is a 5000tl-20 , provided by solarworld. Do 
they have a custom f/w ? is it safe to flash the firmware to fix this issue?

Original comment by ed.dries...@gmail.com on 12 Sep 2012 at 5:24