@thommythekid said in SBFspot funktioniert nicht - Communication Error:
Still not choosing the path of FW upgrade? V3+ has shadow management (in case you suffer from shadow of course)
Do you know if there is also a kind of documentation of the Bluetooth protocol somewhere within the SBFspot project ?
No, I had some notes on paper but I can't find the anymore (started with SMAspot 10y ago - had to rename it to SBFspot because I used the name SMA. In fact, SMAspot was exactly the name SMA had choosen for their direct marketing stuff: https://www.sma-spot.de/ they even copied my logo )
There are some brief comments in the code, that's all. Moreover, I was forced to move the project a few times (Google code -> Codeplex -> Github) so a lot of info got lost (discussions and issue tracker)
I had the time to compare the start of the communication of your inverter (SB5000 TL-20) and mine of the same family (SB4000 TL-20) and I see the first response is already different:
SB4000:
Initializing...
SUSyID: 125 - SessionID: 935089161 (0x37BC5409)
--------: 00 01 02 03 04 05 06 07 08 09
00000000: 7E 17 00 69 00 00 00 00 00 00
00000010: 01 00 00 00 00 00 01 02 76 65
00000020: 72 0D 0A
23 Bytes sent
getPacket(2)
MAX_CommBuf is now 18 bytes
Received 18 bytes
Received 13 bytes
--------: 00 01 02 03 04 05 06 07 08 09
00000000: 7E 1F 00 61 E7 D3 15 25 80 00
00000010: 00 00 00 00 00 00 02 00 00 04
00000020: 70 00 01 00 00 00 00 01 00 00
00000030: 00
cmd=2
<<<====== Content of pcktBuf =======>>>
--------: 00 01 02 03 04 05 06 07 08 09
00000000: 7E 1F 00 61 E7 D3 15 25 80 00
00000010: 00 00 00 00 00 00 02 00 00 04
00000020: 70 00 01 00 00 00 00 01 00 00
00000030: 00
<<<=================================>>>
MAX_pcktBuf is now 31 bytes
SMA netID=01
SB5000:
Initializing...
SUSyID: 125 - SessionID: 938752662 (0x37F43A96)
--------: 00 01 02 03 04 05 06 07 08 09
00000000: 7E 17 00 69 00 00 00 00 00 00
00000010: 01 00 00 00 00 00 01 02 76 65
00000020: 72 0D 0A
23 Bytes sent
getPacket(2)
MAX_CommBuf is now 18 bytes
Received 18 bytes
Received 9 bytes
--------: 00 01 02 03 04 05 06 07 08 09
00000000: 7E 1B 00 65 26 58 08 25 80 00
00000010: 00 00 00 00 00 00 02 00 00 03
00000020: 70 00 01 01 00 00 00
cmd=2
<<<====== Content of pcktBuf =======>>>
--------: 00 01 02 03 04 05 06 07 08 09
00000000: 7E 1B 00 65 26 58 08 25 80 00
00000010: 00 00 00 00 00 00 02 00 00 03
00000020: 70 00 01 01 00 00 00
<<<=================================>>>
MAX_pcktBuf is now 27 bytes
SMA netID=01
When you look inside the "Content of pcktBuf" the two look pretty much the same:
Start byte 7E, #bytes, checksum and MAC address
All the rest is unknown, except for NetID (= 1) at pos 22
At pos 19 we might have some kind of versioning: 3 vs 4 for newer FW
Below the response of another SB5000 TL-20:
--------: 00 01 02 03 04 05 06 07 08 09
00000000: 7E 1F 00 61 D0 0A 0A 25 80 00
00000010: 00 00 00 00 00 00 02 00 00 04
00000020: 70 00 01 00 00 00 00 01 00 00
00000030: 00
Probably this is the way to differenciate between FW versions.