Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. thommythekid

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    T
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 11
    • Best 0
    • Groups 1

    thommythekid

    @thommythekid

    Starter

    0
    Reputation
    6
    Profile views
    11
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    thommythekid Follow
    Starter

    Latest posts made by thommythekid

    • RE: SBFspot funktioniert nicht - Communication Error

      @sbf Hi again,
      well I really fear that something goes wrong when I try a software update since this is a very old system that is running for almost 14 years now and I would prefer not to touch it. I have read about cases where folks have bricked the inverters and the only answer from SMA was an expensive hardware replacement of the whole inverter.

      But I took a closer look to the data and have some questions: In the output it looks like
      each block occurs twice (when calling with -d5).

      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
      <<<=================================>>>
      
      

      I think I have understood that it always starts with 7E followed by the length (1B in my case - so 27 decimal) - right ? You also mentioned NetID is pos 22 (decimal) - ok - it is 1 in my case.

      What does getPacket(2) or getPacket(5) mean ?
      To me it looks like byte 16 is the command - right ?
      The commands occur in the sequence cmd = 2, cmd =10, cmd =5 !
      But what does this command mean ? Can you tell me ?

      kind regards
      ThommyTheKid

      posted in Einsteigerfragen
      T
      thommythekid
    • RE: SBFspot funktioniert nicht - Communication Error

      @sbf GREAT THANKS !! I have the make running, after performing the steps described in the Wiki from the beginning... But the executable does still not work - still aborts with the message: "CRITICAL: Failed to initialize communication with inverter"

      But I am able to build the executable now which is great. Let's see if I get get further here.
      Do you know if there is also a kind of documentation of the Bluetooth protocol somewhere within the SBFspot project ?

      If I do not make progress I am considering the sniffing approach. Let's see.

      kind regards
      ThommyTheKid

      posted in Einsteigerfragen
      T
      thommythekid
    • RE: SBFspot funktioniert nicht - Communication Error

      @sbf We are coming closer...
      Thank you very much for this link - I was able to Download Sunny Data Control 4.0, which I have searched for a long time before without success. Next I installed it without any problems on my Windows 10 machine. And finally I was able to Connect the inverter with my new stick LogiLink BT-0015 and it worked out of the box ! So special driver needed ! All the information I found before on the internet seems to be rubbish !

      Well, at least I have a working solution on a more current Windows which makes it easier to try to sniff the BT network traffic.

      But to be able to then change SBFspot accordingly (this might be some try and error approaches) I need to get this thing compiled on my Raspi. And I am not able to do so right now ! @sbf: do you probably also have a link to a documentation how to build (not only install) SBFspot on Raspi ?

      After copying the git sources from the SBFspot directory I tried:

      pi@raspberrypi:~/tom_sbf $ make
      test -d  || mkdir -p
      test -d sqlite/bin/ || mkdir -p sqlite/bin/
      g++  -s -o sqlite/bin/SBFspot -Wl,-Bdynamic -lpthread -lbluetooth -lboost_date_time -lboost_system
      /usr/bin/ld: cannot find -lboost_date_time
      /usr/bin/ld: cannot find -lboost_system
      collect2: error: ld returned 1 exit status
      make: *** [makefile:119: sqlite/bin/SBFspot] Error 1
      
      

      also this call fails with a fully different error message:

      pi@raspberrypi:~/tom_sbf $ make nosql
      test -d nosql/obj/ || mkdir -p nosql/obj/
      test -d nosql/bin/ || mkdir -p nosql/bin/
      g++ boost_ext.cpp -c -Wall -O2 -Wno-unused-local-typedefs -Wno-psabi -std=c++11 -o nosql/obj/boost_ext.o
      In file included from boost_ext.cpp:35:
      boost_ext.h:47:10: fatal error: boost/version.hpp: No such file or directory
       #include <boost/version.hpp>
                ^~~~~~~~~~~~~~~~~~~
      compilation terminated.
      make: *** [makefile:116: nosql/obj/boost_ext.o] Error 1
      

      What I would need is a full description how to build SBFspot on Raspi from scratch !

      kind regards
      ThommyTheKid

      posted in Einsteigerfragen
      T
      thommythekid
    • RE: SBFspot funktioniert nicht - Communication Error

      @uweklatt Das mit den Standardpasswörtern hab ich ja verstanden, aber ich habe ja nun
      schon X-fach ein neues konformes PW vergeben, für USER und INST - nur es hat nichts bewirkt (Wahrscheinlich weil er das neue PW nicht erfolgreich in den WR übertragen kann - kommt aber auch keine Fehlermeldung). Er geht einfach in den Hauptbildschirm über und sagt nichts.
      Wenn ich den Sunny Data Explorer dann schließe und wieder öffne, soll ich erneut die Passwörter ändern... Und die angezeigte NetID FF hab nicht ich mir ausgesucht - die wird einfach so angezeigt.

      Noch etwas, was vielleicht eine gewisse Logik reinbringt (Erklärung wären unterschiedliche Bluetooth Protokolle). Ich hab den Longshine Bluetooth Adapter wieder an den alten Windows95 PC gehängt und testen wollen ob alles noch funktioniert. Dabei habe ich festgestellt, dass die Software, die ich damals installiert habe und die ich noch immer verwende Sunny Data Control 4.0 - nicht Sunny Explorer heißt !!

      Ich denke, so kann das Ganze evtl. dann doch wieder Sinn machen. Sunny Data Control (wie es aussieht nur bis Windows7) - kompatibel mit dem alten Bluetooth Protokoll des WR und Sunny Explorer (mit Windows 10) - kompatibel mit dem neuen Bluetooth Protokoll und damit nicht fähig mit meinem WR mit dem aktuellen FW Stand vernünftig zu kommunizieren...

      Wäre dann aber schon schwach, wenn SMA keine Abwärtskompatibilität in Sunny Explorer eingebaut hat.

      Hätte jemand mal einen vernünftigen Link auf eine Anleitung wie nun der Software Update des WR vonstatten gehen soll. Und einen Link auf die Firmware des WR Sunny Boy 5000TL-20 ?
      Ich finde auf der SMA Seite nichts ! Nur Kraut und Rüben ...

      viele Grüße
      ThommyTheKid

      posted in Einsteigerfragen
      T
      thommythekid
    • RE: SBFspot funktioniert nicht - Communication Error

      Noch eine allgemeine Info - ich kapier gar nichts mehr ...

      Also: nachdem ich ja wie im letzten Post in Englisch beschrieben den BT Adapter, der seit 2008 an meinem alten Windows95 PC mit dem SunnyExplorer von damals zuverlässig läuft mal in meinen Raspi gesteckt habe und der hcitool scan genauso funktioniert und der SBFspot Aufruf genauso gescheitert ist, habe ich den alten Stick mal mit dem neuen Sunny Explorer an einem Windows 10 PC versucht.

      Ergebnis war, dass er jedes Mal nach dem Start von Sunny Explorer fordert, USER und INST Password zu ändern, es aber scheinbar nicht zum WR überträgt, denn wenn man Sunny Explorer erneut startet fordert er einem wieder auf die PWs zu ändern.

      Dann: Links ausgewählt: Sunny Explorer - Tab Momentanwerte - Bei Status steht Zustand OK, Bei Anlagenkommunikation steht Verbindungsqualität 100%, NetID FF, Status verbunden.
      Soweit so gut. Aber wenn man links Übertragungsversuch zu SN21xxxxxxxxxxx auswählt:
      kommt in der Übersicht "Zu dem gewählten Gerät besteht momentan keine Verbindung".
      Und unten rechts bei Tages / Monats / Jahresleistung sehe ich immer nur einen sich drehenden Refreshpfeil mit der Aussage: "Die Daten werden gerade geladen..." es kommen aber keine Daten.

      Kann es sein, dass selbst das gerade diese Woche runtergeladene Sunny Explorer mit Windows 10 nicht mehr mit meinem WR aus 2008 zurecht kommt ?

      P.S. In Sunny Explorer finde ich tatsächlich unter Extra die Option Geräte-Update...
      aber ich glaube ich trau mich das nicht, da was zu versuchen...

      Gruß
      ThommyTheKid

      posted in Einsteigerfragen
      T
      thommythekid
    • RE: SBFspot funktioniert nicht - Communication Error

      @sbf said in SBFspot funktioniert nicht - Communication Error:

      But remember: your setup of sunnyexplorer on windows and SBFspot on raspbian is totally different with different BT hard- and software. Your first test should be another BT adapter on the RPi

      I have another BT Adapter in my setup with windows and SunnyExplorer. So I tried this adapter (Longshine - recommended by SMA in the 2008 time period). HCItool scan also finds the inverter
      but SBFspot results in exactly the same error.

      kind regards
      ThommyTheKid

      posted in Einsteigerfragen
      T
      thommythekid
    • RE: SBFspot funktioniert nicht - Communication Error

      @wendy2702 said in SBFspot funktioniert nicht - Communication Error:

      @thommythekid sagte in SBFspot funktioniert nicht - Communication Error:

      5000TL ESS

      Ist das die komplette vollständige Bezeichnung?

      Ah sorry - das ist die Bezeichnung, die ich in meinen Unterlagen gefunden habe.
      Tatsächlich - auf dem Typenschild steht SB 5000TL-20 - also hab ich das falsch interpretiert
      mit der Gerätsbezeichnung - nur weil ich zu faul war in den Keller zu gehen und zu schauen,
      ob am WR selbst eine Bezeichnung steht...

      posted in Einsteigerfragen
      T
      thommythekid
    • RE: SBFspot funktioniert nicht - Communication Error

      @uweklatt Heißt das du hast das Update mal an dem gleichen (alten) Modell gemacht ?

      Ich hab heute bei SMA angerufen und war extrem enttäuscht von der fehlenden Fachkompetenz des technischen Hotline Menschen. Zuerst hat er gesagt, der WR hätte überhaupt keine Schnittstellen nach außen, als ich dann gesagt habe, er hat Bluetooth und eine Art Vorbereitung für RS485 (was aber eine Zusatzkomponente braucht, die ich nicht habe) hat er gemeint, das Update ginge über Bluetooth. Man solle das doch ruhig machen, die neue Firmware ist irgendwo auf der Homepage...
      Also das ist mir definitiv zu schwammig - ich glaube es ist eh schwierig die ganzen Gerätegenerationen auseinanderzuhalten... 5000TL ESS (so heißt meiner), 5000TL-20, 5000TL-21...
      Für mich steht jetzt fest, dass ich am WR und der Anlage, die brav seit Juni 2008 läuft nichts ändere. Ich schau mal ob ich mich iterativ ranarbeiten kann und versuchen kann, das Bluetooth Protokoll ein wenig zu verstehen. Vielleicht mal mit Wireshark protokollieren, was Sunny Explorer auf dem Windows PC mit dem WR redet. Dies habe ich ja am Laufen.

      Zum Thema alte Version hab ich auch gesucht, finde aber keine Historie, die länger als 2014 zurück geht. Ich denke fast, SBFspot wurde erst in neuerer Zeit entwickelt. Es gab da ja einen
      Vorläufer SMAspot...

      Keine Ahnung, vielleicht ist das Projekt ja auch zum Scheitern verurteilt - dann hab ich halt unnötig 6 EUR für den USB BT Stick ausgegeben.

      Wenn noch jemand Ideen hat ?

      Gruß
      ThommyTheKid

      posted in Einsteigerfragen
      T
      thommythekid
    • RE: SBFspot funktioniert nicht - Communication Error

      @uweklatt said in SBFspot funktioniert nicht - Communication Error:

      @wendy2702
      Das SMA Bluetoothprotokoll wurde nach 2008 geändert!
      Evtl. solltest Du ein Firmwareupdate in die WR einspielen.
      SBFspot nutzt vermutlich das "neue" Protokoll.

      Tschau
      Uwe

      Shit, das habe ich gehofft vermeiden zu können. Aber naja.
      Dass muss ich mich mal damit beschäftigen.

      Der WR hat ja kein Ethernet - ich glaube er hat sowas wie RS232
      aber das zugehörige Schnittstellenmodul habe ich glaube ich
      auch nicht. Irgendwo hatte ich mal was von einer eingebauten
      SD Karte gelesen - bin aber nicht sicher, ob das so stimmt.

      Hat jemand einen Tipp wie man FW Upgrades da drauf kriegt ?

      viele Grüße
      ThommyTheKid

      posted in Einsteigerfragen
      T
      thommythekid
    • RE: SBFspot funktioniert nicht - Communication Error

      @wendy2702 Hallo,
      Ja, die Bluetooth Adresse ist die, die bei hcitool scan gefunden wird. Sie ist zusammen mit dem User Password in der sbfsport.cfg enthalten. Entfernung USB Stick <=> WR ist ca 1 Meter.

      P.S. (nur dass ich bestätigt bekomme, dass ich da alles richtig gemacht habe):
      Also nachdem das am vergangenen Wochenende nicht auf Anhieb funktioniert hat mit dem RASPI und SBFspot habe ich mal versucht, den USB Stick an einem PC zum Laufen zu bringen.
      Dort habe ich die aktuelle Version von SunnyExplorer heruntergeladen und installiert. Bei der
      Kontaktaufnahme mit dem WR wurde ich gezwungen, ein User und ein Installer Passwort zu vergeben. Das User Passwort ist das Password, was ich im aktuellen cfg file eingetragen habe.
      Richtig ?
      Komisch finde ich, dass ich einen weiteren Uralt-PC, der seit 2008 (noch mit Windows95) und dem damaligen SunnyExplorer automatisiert läuft (Fährt über Bios um 22:45 automatisch hoch und Startet dann SunnyExplorer und zeichnet 10 sec auf (Aktuelle Leistung ist dann ja 0 aber in dem File, das man dann exportieren kann, steht auch der absolute Zählerstand des WR seit Inbetriebnahme). Diesen nutze ich dann zur Weiterverarbeitung und Darstellung der Erträge.
      Das funktioniert seit 2008 und interessanterweise auch immer noch, obwohl ich das User PW des Wechselrichters ja am Wochenende geändert habe.
      Ich würde halt gerne das Abrufen des Ertragswertes vom Raspi aus machen, dann könnte ich auch eine Intraday Kurve darstellen.

      Deinen Einwurf mit dem PW hab ich mal zum Anlass genommen, auch 0000 nochmal zu testen im cfg file, es kommt aber das gleiche Ergebnis raus.

      viele Grüße
      ThommyTherKid

      posted in Einsteigerfragen
      T
      thommythekid
    Community
    Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
    The ioBroker Community 2014-2023
    logo