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 @David G. last edited by

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

      Gillt das pauschal in Linux?

      Die Syntax ist in der Regel gültig. Gibt aber ein paar Tools, die anders ticken.

      Dann hast du den Befehl zum Löschen vom nvram ja sogar auch schon mitgegeben.

      Richtig.

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

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

        -ewv -p -e

        wozu den 2 mal -e

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

          @arteck

          Gibt's wohl keinen Grund.
          Hab den Code von @RaspiUser der es so hat als Grundlage für meine Frage genommen.

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

            @david-g
            @arteck sagte in Anleitung - Zigbee-Firmware auf der Kommandozeile flashen:

            wozu den 2 mal -e

            .... in meinem Beitrag #26 gibt's nur ein "e" ... keine Ahnung, woher das 2te kommen soll ...

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

              @raspiuser

              Vermutlich zu viel c&p in der Zwischenablage gehabt...

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

                Wie kann ich noch den Pfad/Port in Erfahrung bringen?

                Last login: Tue Mar  5 20:45:49 2024 from 192.168.99.50
                zigbee@zigbee:~$ ls -l /dev/serial/by-id/
                ls: Zugriff auf '/dev/serial/by-id/' nicht möglich: Datei oder Verzeichnis nicht gefunden
                zigbee@zigbee:~$ find /dev/serial/by-id/ -maxdepth 1 -mindepth 1
                find: ‘/dev/serial/by-id/’: Datei oder Verzeichnis nicht gefunden
                zigbee@zigbee:~$ lsusb
                Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
                Bus 002 Device 002: ID 10c4:ea60 Silicon Labs CP210x UART Bridge
                Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
                Bus 001 Device 002: ID 0627:0001 Adomax Technology Co., Ltd QEMU Tablet
                Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
                zigbee@zigbee:~$
                

                Ist ein frisch installiertes Debian.

                EDIT
                Ein reboot hat es gerichtet

                EDIT 2

                Last login: Tue Mar  5 20:54:28 2024 from 192.168.99.50
                zigbee@zigbee:~$ cd cc2538-bsl
                zigbee@zigbee:~/cc2538-bsl$ sudo python3 cc2538-bsl.py -ewv -p /dev/ttyUSB0 --bootloader-sonoff-usb ./CC1352P2_CC2652P_launchpad_coordinator_20230507.hex
                [sudo] Passwort für zigbee:
                sonoff
                Opening port /dev/ttyUSB0, baud 500000
                Reading data from ./CC1352P2_CC2652P_launchpad_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:24:C2:75: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: 0xe83aa727)
                zigbee@zigbee:~/cc2538-bsl$
                
                Thomas Braun 1 Reply Last reply Reply Quote 0
                • Thomas Braun
                  Thomas Braun Most Active @David G. last edited by Thomas Braun

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

                  sudo python3

                  Wo haste den Quark denn her? Hab ich das etwa bei mir drin?
                  Und beim Port nimmt man nicht die Gerätedatei direkt sondern den Link-by-id.

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

                    @thomas-braun

                    Über das sudo wurde ja oben schonmal gesprochen.

                    Da die vm genau einen Flashvorgang existiert hat, habe ich mir da keine Gedanken zu gemacht und copy paste von einer Variante weiter oben.

                    Beim Port hast du recht. Hab es zum testen einfach mal übernommen (aus dem Beispiel wo auch das sudo stand).

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

                    # 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 1 Reply Last reply Reply Quote 0
                    • Thomas Braun
                      Thomas Braun Most Active @David G. last edited by Thomas Braun

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

                      Über das sudo wurde ja oben schonmal gesprochen.

                      Und warum kopiert man es dann dennoch?
                      Hier wird immer noch viel zu oft mit root-Rechten um sich geworfen...

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

                        @thomas-braun

                        @thomas-braun

                        Hallo Thomas,

                        Vielen Dank für die Anleitung für den Sonoff-Stick (Z-Variante; vorher war eine Version aus dem Jahre 2021 drauf).

                        Bei mir hat es 95% funktioniert; beim eigentlichen Flash-Befehl bekomme ich folgen Rückgabe:

                        sonoff
                        Opening port /dev/ttyUSB0, baud 500000
                        Reading data from ./CC1352P2_CC2652P_launchpad_coordinator_20230507.hex
                        Firmware file: Intel Hex
                        Connecting to target...
                        CC1350 PG2.1 (7x7mm): 352KB Flash, 20KB SRAM, CCFG.BL_CONFIG at 0x00057FD8
                        Primary IEEE Address: 00:12:4B:00:2E:20:C6:0F
                        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: 0xe83aa727)
                        ERROR: int() can't convert non-string with explicit base

                        Der Stick scheint aber aktuell zu funktionieren, es wird auch die aktuelle FW angezeigt.

                        Muss ich mir Sorgen machen oder ist die letzte Zeile zu ignorieren?

                        VG Christian

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

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

                          Muss ich mir Sorgen machen oder ist die letzte Zeile zu ignorieren?

                          Keine Ahnung. Bei mir läuft das immer ohne Meldungen durch.
                          Gewöhn dir an, die Links 'by-id' zu verwenden.

                          Opening port /dev/ttyUSB0

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

                            @thomas-braun
                            Hallo Thomas,
                            Danke für die schnelle Rückmeldung.
                            Nächstes Mal dann so:

                            sudo python3 cc2538-bsl.py -ewv -p /dev/serial/by-id/usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_dccba656b08ded11af7404f6b86ce6f8-if00-port0 --bootloader-sonoff-usb ./CC1352P2_CC2652P_launchpad_coordinator_20230507.hex

                            Das meintest Du doch, oder?

                            VG Christian

                            1 Reply Last reply Reply Quote 0
                            • arteck
                              arteck Developer Most Active last edited by

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

                              Verifying by comparing CRC32 calculations.
                              Verified (match: 0xe83aa727)
                              ERROR: int() can't convert non-string with explicit base

                              da ist nur der verify vor die Wand gelaufen

                              1 Reply Last reply Reply Quote 0
                              • First post
                                Last post

                              Support us

                              ioBroker
                              Community Adapters
                              Donate

                              577
                              Online

                              31.7k
                              Users

                              79.6k
                              Topics

                              1.3m
                              Posts

                              how-to howto
                              9
                              55
                              7203
                              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