Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Hardware
    4. Anleitung - Zigbee-Firmware auf der Kommandozeile flashen

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Anleitung - Zigbee-Firmware auf der Kommandozeile flashen

    This topic has been deleted. Only users with topic management privileges can see it.
    • Thomas Braun
      Thomas Braun Most Active @bimmi last edited by Thomas Braun

      @bimmi

      20796db9-318a-4cac-aea2-989384f61464-image.png

      Stretch hat am 06. Juli 2020 sein End Of Life erreicht.
      LTS ist nur noch im Koma halten, am 30. Juni 2022 werden die Maschinen abgestellt.

      1 Reply Last reply Reply Quote 1
      • C
        chris299 @Thomas Braun last edited by

        @thomas-braun vielen dank für diese Anleitung.
        Eine Ergänzung aus mac User Sicht:
        Ich habe die fehlenden Pakete per pip nachinstalliert, wobei man beachten muss dass die dann etwas anders heissen:
        pyserial und python-magic und intelhex

        B 1 Reply Last reply Reply Quote 0
        • B
          bimmi @chris299 last edited by

          So. Habe jetzt erfolgreich den Zigbee Stick über die Kommandozeile geflasht 🙂 Danke für die Anleitung!

          1 Reply Last reply Reply Quote 0
          • RaspiUser
            RaspiUser last edited by

            @Thomas-Braun
            ... ich wollte die Firmware von meinen SONOFF Zigbee Dongle updaten ... leider funktioniert deine Anleitung unter BOOKWORM nicht (ebenso wie bei dieser Anleitung).

            Hast Du mal die Zeit deine Anleitung hier im Forum zu aktualisieren ?

            Thomas Braun 2 Replies Last reply Reply Quote 0
            • Thomas Braun
              Thomas Braun Most Active @RaspiUser last edited by Thomas Braun

              @raspiuser

              Was heißt 'funktioniert nicht' konkret?
              Zumal ich ja auch beim Sonoff auf
              https://www.zigbee2mqtt.io/guide/adapters/flashing/flashing_via_cc2538-bsl.html
              verweise.

              1 Reply Last reply Reply Quote 0
              • Thomas Braun
                Thomas Braun Most Active @RaspiUser last edited by

                @raspiuser

                Hier funktioniert es wie ehedem... :

                echad@chet:~ $ mkdir zigbeefwflash
                echad@chet:~ $ cd zigbeefwflash/
                echad@chet:~/zigbeefwflash $ wget https://raw.githubusercontent.com/JelmerT/cc2538-bsl/master/cc2538-bsl.py
                --2024-01-11 18:38:19--  https://raw.githubusercontent.com/JelmerT/cc2538-bsl/master/cc2538-bsl.py
                Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 2606:50c0:8000::154, 2606:50c0:8003::154, 2606:50c0:8002::154, ...
                Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|2606:50c0:8000::154|:443... connected.
                HTTP request sent, awaiting response... 200 OK
                Length: 50812 (50K) [text/plain]
                Saving to: ‘cc2538-bsl.py’
                
                cc2538-bsl.py                                100%[==============================================================================================>]  49.62K  --.-KB/s    in 0.02s
                
                2024-01-11 18:38:19 (3.00 MB/s) - ‘cc2538-bsl.py’ saved [50812/50812]
                
                echad@chet:~/zigbeefwflash $ sudo apt update && sudo apt install python3-serial python3-intelhex python3-magic
                Hit:1 https://cli.github.com/packages stable InRelease
                Hit:2 http://deb.debian.org/debian testing InRelease
                Hit:3 http://archive.raspberrypi.com/debian bookworm InRelease
                Get:4 http://deb.debian.org/debian-security testing-security InRelease [43.5 kB]
                Hit:5 http://deb.debian.org/debian testing-updates InRelease
                Hit:6 http://phoscon.de/apt/deconz bookworm InRelease
                Hit:7 http://phoscon.de/apt/deconz bookworm-beta InRelease
                Hit:8 https://apt.grafana.com stable InRelease
                Hit:9 https://repos.influxdata.com/debian stable InRelease
                Hit:10 https://deb.nodesource.com/node_21.x nodistro InRelease
                Hit:11 https://deb.nodesource.com/node_18.x nodistro InRelease
                Get:12 https://pkgs.tailscale.com/stable/debian trixie InRelease
                Hit:13 https://packagecloud.io/ookla/speedtest-cli/debian trixie InRelease
                Fetched 50.0 kB in 3s (16.3 kB/s)
                Reading package lists... Done
                Building dependency tree... Done
                Reading state information... Done
                All packages are up to date.
                Reading package lists... Done
                Building dependency tree... Done
                Reading state information... Done
                Suggested packages:
                  python3-wxgtk3.0 | python3-wxgtk
                The following NEW packages will be installed:
                  python3-intelhex python3-magic python3-serial
                0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
                Need to get 153 kB of archives.
                After this operation, 741 kB of additional disk space will be used.
                Get:1 http://deb.debian.org/debian testing/main arm64 python3-intelhex all 2.3.0-2 [50.2 kB]
                Get:2 http://deb.debian.org/debian testing/main arm64 python3-magic all 2:0.4.27-2 [14.6 kB]
                Get:3 http://deb.debian.org/debian testing/main arm64 python3-serial all 3.5-2 [88.2 kB]
                Fetched 153 kB in 0s (510 kB/s)
                Selecting previously unselected package python3-intelhex.
                (Reading database ... 90202 files and directories currently installed.)
                Preparing to unpack .../python3-intelhex_2.3.0-2_all.deb ...
                Unpacking python3-intelhex (2.3.0-2) ...
                Selecting previously unselected package python3-magic.
                Preparing to unpack .../python3-magic_2%3a0.4.27-2_all.deb ...
                Unpacking python3-magic (2:0.4.27-2) ...
                Selecting previously unselected package python3-serial.
                Preparing to unpack .../python3-serial_3.5-2_all.deb ...
                Unpacking python3-serial (3.5-2) ...
                Setting up python3-intelhex (2.3.0-2) ...
                Setting up python3-serial (3.5-2) ...
                Setting up python3-magic (2:0.4.27-2) ...
                echad@chet:~/zigbeefwflash $ wget https://github.com/Koenkk/Z-Stack-firmware/raw/master/coordinator/Z-Stack_3.x.0/bin/CC2652RB_coordinator_20230507.zip
                --2024-01-11 18:40:31--  https://github.com/Koenkk/Z-Stack-firmware/raw/master/coordinator/Z-Stack_3.x.0/bin/CC2652RB_coordinator_20230507.zip
                Resolving github.com (github.com)... 140.82.121.3
                Connecting to github.com (github.com)|140.82.121.3|:443... connected.
                HTTP request sent, awaiting response... 302 Found
                Location: https://raw.githubusercontent.com/Koenkk/Z-Stack-firmware/master/coordinator/Z-Stack_3.x.0/bin/CC2652RB_coordinator_20230507.zip [following]
                --2024-01-11 18:40:31--  https://raw.githubusercontent.com/Koenkk/Z-Stack-firmware/master/coordinator/Z-Stack_3.x.0/bin/CC2652RB_coordinator_20230507.zip
                Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 2606:50c0:8000::154, 2606:50c0:8003::154, 2606:50c0:8002::154, ...
                Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|2606:50c0:8000::154|:443... connected.
                HTTP request sent, awaiting response... 200 OK
                Length: 217457 (212K) [application/zip]
                Saving to: ‘CC2652RB_coordinator_20230507.zip’
                
                CC2652RB_coordinator_20230507.zip            100%[==============================================================================================>] 212.36K  --.-KB/s    in 0.04s
                
                2024-01-11 18:40:31 (5.59 MB/s) - ‘CC2652RB_coordinator_20230507.zip’ saved [217457/217457]
                
                echad@chet:~/zigbeefwflash $ unzip CC2652RB_coordinator_20230507.zip
                Archive:  CC2652RB_coordinator_20230507.zip
                  inflating: CC2652RB_coordinator_20230507.hex
                echad@chet:~/zigbeefwflash $ ls -l /dev/serial/by-id/
                total 0
                lrwxrwxrwx 1 root root 13 Jan  9 22:13 usb-Silicon_Labs_slae.sh_cc2652rb_stick_-_slaesh_s_iot_stuff_00_12_4B_00_23_93_2C_A8-if00-port0 -> ../../ttyUSB0
                echad@chet:~/zigbeefwflash $ ls -la
                total 784
                drwxr-xr-x  2 echad echad   4096 Jan 11 18:40 .
                drwx------ 11 echad echad   4096 Jan 11 18:38 ..
                -rw-r--r--  1 echad echad  50812 Jan 11 18:38 cc2538-bsl.py
                -rw-r--r--  1 echad echad 516453 May  7  2023 CC2652RB_coordinator_20230507.hex
                -rw-r--r--  1 echad echad 217457 Jan 11 18:40 CC2652RB_coordinator_20230507.zip
                echad@chet:~/zigbeefwflash $ chmod +x cc2538-bsl.py
                echad@chet:~/zigbeefwflash $ ./cc2538-bsl.py -p /dev/serial/by-id/usb-Silicon_Labs_slae.sh_cc2652rb_stick_-_slaesh_s_iot_stuff_00_12_4B_00_23_93_2C_A8-if00-port0 -evw CC2652RB_coordinator_20230507.hex
                Opening port /dev/serial/by-id/usb-Silicon_Labs_slae.sh_cc2652rb_stick_-_slaesh_s_iot_stuff_00_12_4B_00_23_93_2C_A8-if00-port0, baud 500000
                Reading data from CC2652RB_coordinator_20230507.hex
                Firmware file: Intel Hex
                Connecting to target...
                CC1350 PG2.0 (7x7mm): 352KB Flash, 20KB SRAM, CCFG.BL_CONFIG at 0x00057FD8
                Primary IEEE Address: 00:12:4B:00:23:93:2C:A8
                    Performing mass erase
                Erasing all main bank flash sectors
                    Erase done
                Writing 360448 bytes starting at address 0x00000000
                Write 104 bytes at 0x00057F988
                    Write done
                Verifying by comparing CRC32 calculations.
                    Verified (match: 0x2620b49e)
                echad@chet:~/zigbeefwflash $
                
                RaspiUser 1 Reply Last reply Reply Quote 0
                • RaspiUser
                  RaspiUser @Thomas Braun last edited by RaspiUser

                  @thomas-braun Was heißt 'funktioniert nicht' konkret?

                  Sorry ... da kamen div. Fehlermeldungen (leider keine Screenshots) wie "pip funktioniert nicht" und das da irgendwas "external" und "virtual" benötigt wird .... uns da war ich total überfordert und habe entnervt aufgegeben ...

                  Wenn Du schreibst, dass es deine Anleitung funktioniert probiere ich es nochmal gaaaaanz langsam ...

                  Thomas Braun 3 Replies Last reply Reply Quote 0
                  • Thomas Braun
                    Thomas Braun Most Active @RaspiUser last edited by

                    @raspiuser

                    Ich bin ganz Ohr.

                    1 Reply Last reply Reply Quote 0
                    • Thomas Braun
                      Thomas Braun Most Active @RaspiUser last edited by Thomas Braun

                      @raspiuser sagte in Anleitung - Zigbee-Firmware auf der Kommandozeile flashen:

                      Wenn Du schreibst, dass es deine Anleitung funktioniert probiere ich es nochmal gaaaaanz langsam ...

                      Du siehst ja oben, wie das bei mir funktioniert. Ist 1:1 eben aus meinem Terminal kopiert worden.

                      Aber wie schon gesagt, der Sonoff-Stick braucht ein leicht anderes Vorgehen. Insbesondere die Option --bootloader-sonoff-usb sowie die Launchpad-Firmware.

                      1 Reply Last reply Reply Quote 0
                      • Thomas Braun
                        Thomas Braun Most Active @RaspiUser last edited by

                        @raspiuser

                        Ich glaube ich habe jetzt verstanden, wo es bei dir hängt.

                        Statt
                        sudo pip3 install pyserial intelhex

                        besser

                        sudo apt update && sudo apt install python3-serial python3-intelhex python3-magic 
                        

                        verwenden.

                        RaspiUser 1 Reply Last reply Reply Quote 0
                        • RaspiUser
                          RaspiUser @Thomas Braun last edited by

                          @thomas-braun
                          ... okay ... dann sollte ich besser Method without Docker statt deiner Anleitung verwenden ? zzgl. dem Hinweis ...

                          @thomas-braun sagte in Anleitung - Zigbee-Firmware auf der Kommandozeile flashen:

                          Statt sudo pip3 install pyserial intelhex

                          🙄

                          Thomas Braun 1 Reply Last reply Reply Quote 0
                          • Thomas Braun
                            Thomas Braun Most Active @RaspiUser last edited by Thomas Braun

                            @raspiuser

                            ? Häh?

                            Ich würde anders als in der Anleitung 'Method without Docker' beschrieben da nicht mit pip3 hantieren sondern die Pakete ganz handesüblich per

                            sudo apt update && sudo apt install python3-serial python3-intelhex python3-magic 
                            

                            reinholen. Der Rest ist doch gleich zu meinem Vorgehen bei meinem Stick. Beim sonoff kommt halt hinzu, dass die sonoff-Option gesetzt sein muss und die Firmware ist auch eine andere als die für meinen Stick.

                            RaspiUser 1 Reply Last reply Reply Quote 0
                            • RaspiUser
                              RaspiUser @Thomas Braun last edited by RaspiUser

                              @thomas-braun ... das meinte ich ...

                              EDIT:
                              @thomas-braun sagte in Anleitung - Zigbee-Firmware auf der Kommandozeile flashen:

                              Der sonoff Zigbee 3.0 Stick muss z. B. etwas anders behandelt werden:
                              https://www.zigbee2mqtt.io/guide/adapters/flashing/flashing_via_cc2538-bsl.html

                              Kurzes Feedback bzw. Bestätigung ... Ich habe mit diesen Befehlen die Firmware erfolgreich upgedatet ...

                              # SONOFF Zigbee Dongle Plus-P Firmware Update auf einem Raspberry Pi 3 Model B Rev 1.2, VERSION="11 (bullseye)"
                              
                              
                              sudo apt update && sudo apt install python3 python3-pip
                              
                              sudo apt update && sudo apt install python3-serial python3-intelhex python3-magic
                              
                              mkdir cc2538-bsl
                              
                              cd cc2538-bsl
                              
                              curl -sSL https://github.com/JelmerT/cc2538-bsl/archive/refs/heads/master.tar.gz | tar xz --strip 1
                              
                              wget https://github.com/Koenkk/Z-Stack-firmware/raw/Z-Stack_3.x.0_coordinator_20230507/coordinator/Z-Stack_3.x.0/bin/CC1352P2_CC2652P_launchpad_coordinator_20230507.zip
                              unzip CC1352P2_CC2652P_launchpad_coordinator_20230507.zip
                              
                              sudo python3 cc2538-bsl.py -ewv -p /dev/ttyUSB0 --bootloader-sonoff-usb ./CC1352P2_CC2652P_launchpad_coordinator_20230507.hex
                              

                              @thomas-braun Danke für's anschieben ...

                              Thomas Braun 1 Reply Last reply Reply Quote 0
                              • Thomas Braun
                                Thomas Braun Most Active @RaspiUser last edited by

                                @raspiuser sagte in Anleitung - Zigbee-Firmware auf der Kommandozeile flashen:

                                sudo python3

                                An der Stelle besser nicht per sudo/root-Rechten hantieren.
                                Der ausführende user muss lediglich Rechte an /dev/ttyUSB0 haben. Das geht über die Gruppe dialout, wenn ich mich richtig entsinne.

                                1 Reply Last reply Reply Quote 0
                                • David G.
                                  David G. last edited by

                                  Hab grad auch diesen Thread (durch Zufall) gefunden.

                                  Löscht bzw resertet das Script den Stick auch, dass er quasi im Auslieferungszustand ist?
                                  Eben dann mit der entsprechenden Firmware.

                                  Thomas Braun 1 Reply Last reply Reply Quote 0
                                  • Thomas Braun
                                    Thomas Braun Most Active @David G. last edited by

                                    @david-g

                                    Wenn du die entsprechende originale Firmware bekommst sollte das auch gehen.

                                    David G. 1 Reply Last reply Reply Quote 0
                                    • David G.
                                      David G. @Thomas Braun last edited by David G.

                                      @thomas-braun

                                      Beim Sonoff ist ja serienmäßig die von Koenkk drauf.

                                      Das mit dem Reset interessiert mich, da man bei einem Wechsel vom Stick ja "frische" Hardware benötigt damit der Zigbeeadapter wieder alles ans Laufen bekommt.

                                      Hab bisher diese Variante per Skript vermieden, da ich nicht die ganzen Dinge am Produktivsystem installieren wollte und mehr schlecht als recht über Windows erledigt. Seit ein paar Monaten ist proxmox am Start, da hat man sich ja schnell eine VM dafür aufgesetzt.

                                      Thomas Braun 1 Reply Last reply Reply Quote 0
                                      • Thomas Braun
                                        Thomas Braun Most Active @David G. last edited by

                                        @david-g

                                        ?

                                        David G. 1 Reply Last reply Reply Quote 0
                                        • David G.
                                          David G. @Thomas Braun last edited by

                                          @thomas-braun

                                          Dann ohne das ganze drum herum.

                                          Wirdwmit dem Script am Stick ALLES gelöscht oder bleibt noch irgendetwas von vorher bestehen?

                                          Der zu flashende Stick war bereits in Gebrauch und soll beim Defekt des aktuellen Sticks diesen ersetzen.
                                          Das geht aber wohl nur, wenn der Zigbeeadapter den neuen Stick als "neu" erkennt und keine alten Daten vorhanden sind.

                                          Thomas Braun 1 Reply Last reply Reply Quote 0
                                          • Thomas Braun
                                            Thomas Braun Most Active @David G. last edited by

                                            @david-g

                                            Das weiß ich nicht. Ich vermute, dass nvram nicht unbedingt gelöscht wird. Dafür gibt es soweit ich weiß eine extra Option beim Skript.

                                            arteck David G. 2 Replies Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            956
                                            Online

                                            31.6k
                                            Users

                                            79.6k
                                            Topics

                                            1.3m
                                            Posts

                                            how-to howto
                                            9
                                            55
                                            7158
                                            Loading More Posts
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            Community
                                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                            The ioBroker Community 2014-2023
                                            logo