jonneytest / sma-bluetooth

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

SB2500 Did not find string #35

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
The communication with SB2500 is not working fine as the format does not seem 
to be correct (also for SB1700)

[18] 2011-07-19 20:39:03 Waiting for string
[18] 2011-07-19 20:39:03 waiting for: 7e 1f 00 61 05 7e 1b 25 80 00 00 00 00 00 
00 00 02 00 00 04 70 00

[18] 2011-07-19 20:39:03 Waiting for data on rfcomm

Receiving
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 1f 00 61
    00000010: 05 7e 1b 25 80 00 00 00 00 00 00 00 02 00 00 04
    00000020: 70 00 01 00 00 00 00 01 00 00 00  rr=31

[18] 2011-07-19 20:39:03 looking for: 7e 1f 00 61 05 7e 1b 25 80 00 00 00 00 00 
00 00 02 00 00 04 70 00
[18] 2011-07-19 20:39:03 received:    7e 1f 00 61 05 7e 1b 25 80 00 00 00 00 00 
00 00 02 00 00 04 70 00 01 00 00 00 00 01 00 00 00

[18] 2011-07-19 20:39:03 Found string we are waiting for
[19] 2011-07-19 20:39:03 Extracting
extracting invcode=01
[20] 2011-07-19 20:39:03 Sending
[20] 2011-07-19 20:39:03 sending:
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 1f 00 61
    00000010: 00 00 00 00 00 00 05 7e 1b 25 80 00 02 00 00 04
    00000020: 70 00 01 00 00 00 00 01 00 00 00  cc=31

[21] 2011-07-19 20:39:03 Waiting for string
[21] 2011-07-19 20:39:03 waiting for: 7e 22 00 5c 05 7e 1b 25 80 00 00 00 00 00 
00 00 05 00 05 7e 1b 25 80 00

[21] 2011-07-19 20:39:03 Waiting for data on rfcomm

Receiving
    00000000: .. .. .. .. .. .. .. .. .. .. .. .. 7e 1f 00 61
    00000010: 05 7e 1b 25 80 00 00 00 00 00 00 00 0a 00 05 7e
    00000020: 1b 25 80 00 01 2d 8d 00 7d 1a 00  rr=31

sum=80length change from 1f to 1e

[21] 2011-07-19 20:39:03 looking for: 7e 22 00 5c 05 7e 1b 25 80 00 00 00 00 00 
00 00 05 00 05 7e 1b 25 80 00
[21] 2011-07-19 20:39:03 received:    7e 1e 00 62 05 7e 1b 25 80 00 00 00 00 00 
00 00 0a 00 05 7e 1b 25 80 00 01 2d 8d 00 3a 00

[21] 2011-07-19 20:39:03 Did not find string

How can I solve this?
Thanks

Original issue reported on code.google.com by patrik.d...@gmail.com on 19 Jul 2011 at 9:05

Attachments:

GoogleCodeExporter commented 8 years ago
2500TL is not yet supported I think
for SB1700, in conf file, put inverter=1700TL

Original comment by luc.van....@skynet.be on 20 Jul 2011 at 1:53

GoogleCodeExporter commented 8 years ago
Still not working for SB 2500 and SB1700 either.
USB Sniff results are attached for both SB 2500 as SB1700.

Original comment by patrik.d...@gmail.com on 24 Oct 2011 at 6:31

Attachments:

GoogleCodeExporter commented 8 years ago
need longer sniff

Original comment by stephenb...@gmail.com on 27 Nov 2011 at 6:22

GoogleCodeExporter commented 8 years ago
I had my Sunny Explorer running in a virtual machine, so I didn't realize the 
bluetooth sniff gave not much result in the guest Windows XP virtual machine. 
I attached the linux host bluetooth trace using usbmon (Ref. 
http://www.mjmwired.net/kernel/Documentation/usb/usbmon.txt).

In the meantime I configured the bluetooth piggyback of both inverters SB2500 
and 1700 to use the NETID 7 so I can collect the data from both in one go.

see for usbmon bluetooth trace file in issue 48

Original comment by patrik.d...@gmail.com on 11 Dec 2011 at 7:09

GoogleCodeExporter commented 8 years ago
I have a SMA SB2500TLST-21, which is I think, a SB2500TL. I there anything I 
can do to have the 2500TL available in the supported inverters list?

Original comment by mrva...@gmail.com on 12 Feb 2013 at 3:53

GoogleCodeExporter commented 8 years ago
I have an SMA SB2500. I added "Inverter SB2500 Code1 0x7c Code2 0x6a Code3 0x59 
Code4 0x3a InvCode 0x63" from SniffHowTo (without the question mark) to my 
invcode.in file. Running ./smatool gives output, as follows:

pi@raspberrypi ~/sma-bluetooth $ ./smatool 
2013-05-03 13:56:01 Unit Serial          = 3821139 none                
2013-05-03 13:56:01 NO DATA for 1f 82 = 8001 NO UNITS
2013-05-03 13:56:01 NO DATA for 20 82 = 9023 NO UNITS
2013-05-03 13:56:01 NO DATA for 21 82 = 601 NO UNITS
2013-05-03 13:56:01 NO DATA for 21 82 = 636 NO UNITS
2013-05-03 13:56:06 Total Power          = 1171 Watts               
2013-05-03 13:56:06 Max Phase 1          = 2500 Watts               
2013-05-03 13:56:06 Max Phase 2          = 0 Watts               
2013-05-03 13:56:06 Max Phase 3          = 0 Watts               
2013-05-03 13:56:06 Line Voltage Phase 1Volts = 230 Volts               
2013-05-03 13:56:06 Line Voltage Phase 2Volts = 0 Volts               
2013-05-03 13:56:06 Line Voltage Phase 3Volts = 0 Volts               
2013-05-03 13:56:06 Line Current Phase 1Amps = 5 Amps                
2013-05-03 13:56:06 Line Current Phase 2Amps = 0 Amps                
2013-05-03 13:56:06 Line Current Phase 3Amps = 0 Amps                
2013-05-03 13:56:06 Grid Frequency       = 50 Hertz               
2013-05-03 13:56:06 NO DATA for 1f 4a = 80 NO UNITS

3/5/2013 13:57:36  total=13310592202833920.000 Kwh current=0 Watts togo=0 i=11 
crc=0

Sometimes I also get a date error, perhaps because my Raspberry Pi runs on UTC 
in stead of my time zone (CEST)?

Anyway, I think I am stuck. Any help appreciated. Thank you.

Original comment by e...@jibconsult.nl on 3 May 2013 at 1:58