Failed to initialize communication with inverter

Want to monitor my SMA SB4000 TL-20 with Bluetooth. I can monitor the system with Sunny Explorer but last time I had to change the passwords for both accounts to strong passwords… (User and Intstaller)
Installed SBFspot from GitHub on a Raspberry with Buster and BlueTooth with SQLite.

Used the easy install through the new SBFspot-config by curl -s https://raw.githubusercontent.com/sbfspot/sbfspot-config/master/sbfspot-config | sudo bash

No problems so far during installation. But when I try to test with the command:

./SBFspot -v -nocsv -nosql -finq -installer -password:xxxxxxxx (my strong password)

I end with a error:
SBFspot V3.5.2
Yet another tool to read power production of SMA solar inverters
© 2012-2018, SBF (https://github.com/SBFspot/SBFspot)
Compiled for Linux (LE) 32 bit with SQLite support
Commandline Args: -v -ad1 -am0 -ae0 -cfg/usr/local/bin/sbfspot.3/SBFspot.cfg
Reading config ‘/usr/local/bin/sbfspot.3/SBFspot.cfg’
Wed Apr 1 17:55:01 2020: INFO: Starting…
sunrise: 07:14
sunset : 20:13
Connecting to 00:80:25:09:xx:xx (1/10) I changed some code for my privacy!
Initializing…
SUSyID: 125 - SessionID: 950503008 (0x38A78660)
SMA netID=01
Wed Apr 1 17:55:29 2020: CRITICAL: Failed to initialize communication with inverter.
SBFspot V3.5.2
Yet another tool to read power production of SMA solar inverters
© 2012-2018, SBF (https://github.com/SBFspot/SBFspot)
Compiled for Linux (LE) 32 bit with SQLite support
Commandline Args: -v -ad1 -am0 -ae0 -cfg/usr/local/bin/sbfspot.3/SBFspot.cfg
Reading config ‘/usr/local/bin/sbfspot.3/SBFspot.cfg’
Wed Apr 1 18:00:01 2020: INFO: Starting…
sunrise: 07:14
sunset : 20:13
Connecting to 00:80:25:09:xx:xx (1/10)
Initializing…
SUSyID: 125 - SessionID: 911141694 (0x364EEB3E)
SMA netID=01
Wed Apr 1 18:00:38 2020: CRITICAL: Failed to initialize communication with inverter.

In Sunny Explorer no problems to connect by Bluetooth. With my Raspberry no luck up till now. Any help is welcom.

Hi raspi,

Does your strong password include any special characters? On a Linux based system this could include pipes, redirects, ampersands etc. I came unstuck when I tried to use a password in a script which contained an ‘&’. It took me ages to work out what the problem was.

It’s not password related. Is sunnyexplorer still running. You can’t have running SE and SBFspot at the same time.

Thanks for reply.
No special characters. Jus 1 capital, lower case and numbers. 9 characters long…

Sunny Explorer is not running at that moment. I made a power off / reboot after been connected by Sunny Explorer…
It looks that there is some connection because the command hcitool scan delivers the sn210000xxxxx and net ID.

Well, I’m a bit out of idea’s…
You did the installation with sbfspot-config. One of the tasks is executing SBFspot, so since it is installed correctly means SBFspot has run with success.
Do you have a good BT connection? Try moving the RPi closer to the inverter. BTW, is it a RPi with built-in BT?

H SBF,

Thnx for tips. I tried with an old RPI and external BTmodule. That may be the cause…

Now I used a new RPI4 with the internal BT-module and the easy install SBFspot-config and put that beneath my inverter. This was successfull.

SBFspot V3.5.2
Yet another tool to read power production of SMA solar inverters
© 2012-2018, SBF (https://github.com/SBFspot/SBFspot)
Compiled for Linux (LE) 32 bit with SQLite support
Commandline Args: -v -nocsv -nosql -finq
Reading config ‘/usr/local/bin/sbfspot.3/SBFspot.cfg’
Sat Apr 4 13:48:10 2020: INFO: Starting…
sunrise: 07:07
sunset : 20:18
Connecting to 00:80:25:09:FC:5A (1/10)
Initializing…
SUSyID: 125 - SessionID: 909430824 (0x3634D028)
SMA netID=01
Serial Nr: 7D2CCxxx (2100086xxx)
BT Signal=83.5%
Logon OK
Local Host Time: 04/04/2020 13:48:11
Plant Time : 04/04/2020 13:48:03 (-8 sec)
TZ offset : 3600 sec - DST: Off
Last Time Set : 22/03/2020 19:36:00
Adjusting plant time…
New plant time is now 04/04/2020 13:48:11
SUSyID: 78 - SN: 2100086206
Device Name: SN: 2100086xxx
Device Class: Solar Inverters
Device Type: SB 4000TL-20
Software Version: 03.01.05.R
Serial number: 2100086xxx
SUSyID: 78 - SN: 2100086xxx
Device Status: Ok
SUSyID: 78 - SN: 2100086xxx
Device Temperature: 48.7°C
SUSyID: 78 - SN: 2100086xxx
GridRelay Status: Closed
SUSyID: 78 - SN: 2100086xxx
Pac max phase 1: 4000W
Pac max phase 2: 4000W
Pac max phase 3: 4000W
SUSyID: 78 - SN: 2100086xxx
Energy Production:
EToday: 11.943kWh
ETotal: 36009.833kWh
Operation Time: 40835.80h
Feed-In Time : 39498.38h
SUSyID: 78 - SN: 2100086xxx
DC Spot Data:
String 1 Pdc: 1.586kW - Udc: 335.14V - Idc: 4.735A
String 2 Pdc: 1.596kW - Udc: 338.05V - Idc: 4.722A
SUSyID: 78 - SN: 2100086xxx
AC Spot Data:
Phase 1 Pac : 3.100kW - Uac: 243.49V - Iac: 12.733A
Phase 2 Pac : 0.000kW - Uac: 0.00V - Iac: 0.000A
Phase 3 Pac : 0.000kW - Uac: 0.00V - Iac: 0.000A
Total Pac : 3.100kW
SUSyID: 78 - SN: 2100086xxx
Grid Freq. : 50.00Hz
SUSyID: 78 - SN: 2100086xxx
Current Inverter Time: 04/04/2020 13:48:03
Inverter Wake-Up Time: 04/04/2020 07:16:11
Inverter Sleep Time : 04/04/2020 13:48:03


  • ArchiveDayData() *

startTime = 5E87B1E0 -> 04/04/2020 00:00:00


  • ArchiveMonthData() *

startTime = 5E847430 -> 01/04/2020 13:00:00
Reading events: 2020-Apr-01
Sat Apr 4 13:48:13 2020: INFO: Done.

So, Distance is very important at this moment. Even in times of corona…
I edited the serial number because of privacy.