baboom09 / sma-bluetooth

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

Date "from" is allways 5 days and 5 hours ahead of the local time #74

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. ./smatool -v or -d
2. ./smatool -v -from " ... " -to " ... "
3.

What is the expected output? What do you see instead?
Correct date and Time at Reading the Inverter and Correct MySQL data

What version of the product are you using? On what operating system?
Smatool 0.17b, Debian 5.0

Please provide any additional information below.
No matter what "-from" date I am setting, Smatool allways will add to the date 
5 days and 5 hours more.
Also the MySQL date goes 5 days and 5 hours ahead

root@dlink-7185AE:/mnt/HD_a2/smatool_wr2# ./smatool -v -from "2012-05-01 
00:05:00"
Auto set dates from 2012-05-07 05:01:01 to 2012-05-02 00:07:00
Address ...
bluetooth signal = 78%
serial= ...
bluetooth signal = 78%
bluetooth signal = 78%
2012-05-07 02:11:46 Unit Serial          = 6514007 none
2012-05-07 02:11:46 NO DATA for 1f 82 = 8001 NO UNITS
2012-05-07 02:11:46 NO DATA for 20 82 = 358 NO UNITS
2012-05-07 02:11:49 NO DATA for 21 82 = 601 NO UNITS
2012-05-07 02:11:49 NO DATA for 21 82 = 635 NO UNITS
2012-05-07 02:11:48 Total Power          = 0 Watts
2012-05-07 05:08:51 Max Phase 1          = 5000 Watts
2012-05-07 05:08:51 Max Phase 2          = 5000 Watts
2012-05-07 05:08:51 Max Pahse 3          = 5000 Watts
2012-05-07 05:08:51 Unknown              = 0 Unknown
2012-05-07 05:08:51 Unknown              = 0 Unknown
2012-05-07 02:11:48 Output Phase 1       = 0 Watts
2012-05-07 02:11:48 Output Phase 2       = 0 Watts
2012-05-07 02:11:48 Output Phase 3       = 0 Watts
2012-05-07 02:11:48 Line Voltage Phase 1Volts = 0 Volts
2012-05-07 02:11:48 Line Voltage Phase 2Volts = 0 Volts
2012-05-07 02:11:48 Line Voltage Phase 3Volts = 0 Volts
2012-05-07 02:11:48 Line Current Phase 1Amps = 0 Amps
2012-05-07 02:11:48 Line Current Phase 2Amps = 0 Amps
2012-05-07 02:11:48 Line Current Phase 3Amps = 0 Amps
2012-05-07 02:11:48 Grid Frequency       = 0 Hertz
2012-05-07 05:08:51 NO DATA for 48 21 = 35 NO UNITS
2012-05-07 05:08:51 NO DATA for 49 41 = 302 NO UNITS
2012-05-07 05:08:51 NO DATA for 4a 41 = 336 NO UNITS
2012-05-07 05:08:51 NO DATA for 4b 41 = 302 NO UNITS
2012-05-07 02:11:48 NO DATA for 64 41 = 51 NO UNITS
2012-05-07 02:11:48 NO DATA for 65 41 = 557 NO UNITS
bluetooth signal = 78%

7/5/2012 05:01:01  total=6564.448 Kwh current=0 Watts togo=0 i=11 crc=1073899496
7/5/2012 05:06:01  total=6564.448 Kwh current=0 Watts togo=0 i=23 crc=1073899496

Original issue reported on code.google.com by christop...@googlemail.com on 1 May 2012 at 10:12

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
SLOVED !!!!

It happened because of an older System (Debian 5.0 Lenny with 2.6.12.6 kernel). 
After installing Debian 6.0 Squeeze and a newer kernel (2.6.32.x) the time 
problem not exists anymore. Seemed to be a library problem.

Original comment by christop...@googlemail.com on 16 May 2012 at 3:09