{"id":13824,"date":"2019-11-03T05:55:44","date_gmt":"2019-11-03T04:55:44","guid":{"rendered":"http:\/\/blog.wenzlaff.de\/?p=13824"},"modified":"2024-03-15T09:31:32","modified_gmt":"2024-03-15T08:31:32","slug":"zigbee-cc2531-mit-neuer-firmware-vom-raspberry-pi-aus-flashen-ohne-cc-debugger","status":"publish","type":"post","link":"http:\/\/blog.wenzlaff.de\/?p=13824","title":{"rendered":"Zigbee CC2531 mit neuer Firmware vom Raspberry Pi aus flashen ohne CC Debugger"},"content":{"rendered":"\n<p>Um das <strong>CC2531<\/strong> auch ohne CC Debugger neu zu flashen, gehen wir wie folgt vor.<\/p>\n<h2>Wiring Pi installieren<\/h2>\n<p>Wir ben\u00f6tigen auf dem Raspberry Pi die wiringpi zum ansteuern der GPIO-Ports<\/p>\n<p><strong>sudo apt-get install wiringpi <\/strong><\/p>\n<p>Nach der Installation testen wir mit <strong>gpio -v<\/strong> es muss diese Ausgabe kommen:<\/p>\n<pre class=\"lang:default decode:true \" >\r\ngpio version: 2.50\r\nCopyright (c) 2012-2018 Gordon Henderson\r\nThis is free software with ABSOLUTELY NO WARRANTY.\r\nFor details type: gpio -warranty\r\n\r\nRaspberry Pi Details:\r\n  Type: Model B+, Revision: 02, Memory: 512MB, Maker: Sony\r\n  * Device tree is enabled.\r\n  *--&gt; Raspberry Pi Model B Plus Rev 1.2\r\n  * This Raspberry Pi supports user-level GPIO access.<\/pre>\n<p>Wenn eine Fehlermeldung kommt, wie bei mir, da zwei der Raspberry Pis nicht unterst\u00fczt wurden, erst fixen.<\/p>\n<h2>CC2531 an Pi<\/h2>\n<p>Die vier Dr\u00e4hte anl\u00f6ten und mit dem Pi wie folgt anschlie\u00dfen:<\/p>\n<pre class=\"lang:default decode:true \" >\r\n\r\nGND - 1 - braun  an Pi Pin 39\r\nDC  - 3 - organg an Pi Pin 36\r\nRST - 7 - gr\u00fcn   an Pi Pin 35\r\nDD  - 4 - gelb   an Pi Pin 38<\/pre>\n<p><a href=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2019\/11\/cc2531.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2019\/11\/cc2531.png\" alt=\"\" width=\"2958\" height=\"2426\" class=\"aligncenter size-full wp-image-13826\" srcset=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2019\/11\/cc2531.png 2958w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2019\/11\/cc2531-300x246.png 300w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2019\/11\/cc2531-768x630.png 768w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2019\/11\/cc2531-1024x840.png 1024w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><\/p>\n<h2>Flasher installieren<\/h2>\n<p><!--more--><\/p>\n<p>Wir clonen das <a href=\"https:\/\/github.com\/jmichault\/flash_cc2531\" rel=\"noopener noreferrer\" target=\"_blank\">Repo<\/a> mit:<\/p>\n<p><strong>git clone https:\/\/github.com\/jmichault\/flash_cc2531.git<\/strong><\/p>\n<p>Wenn alles verkabelt ist, checken ob alles richtig ist mit:<\/p>\n<pre class=\"lang:default decode:true \" >\r\ncd flash_cc2531\r\n.\/cc_chipid<\/pre>\n<p>es muss <strong>ID = b524<\/strong> ausgegeben werden, wenn nicht ist die Verkabelung falsch. Fixen.<\/p>\n<h2>Firmware installieren<\/h2>\n<p>Wir laden die aktuellste Firmware:<\/p>\n<p><strong>wget https:\/\/github.com\/Koenkk\/Z-Stack-firmware\/raw\/master\/coordinator\/Z-Stack_Home_1.2\/bin\/default\/CC2531_DEFAULT_20190608.zip<\/strong><\/p>\n<p>Archive auspacken:<br \/>\n<strong><br \/>\nunzip CC2531_DEFAULT_20190608.zip<\/strong><\/p>\n<p>es gibt jetzt zwei Dateien wir brauchen die <strong>CC2531ZNP-Prod.hex<\/strong> zum flashen.<br \/>\nDie kopieren wir in das flash_cc2531 Verzeichnis.<\/p>\n<h2>Firmware flashen<\/h2>\n<p>Wir flashen die Firmware <strong>CC2531ZNP-Prod.hex<\/strong> in den CC2531. Zuvor sichern wir die alte Firmware und l\u00f6schen alles.<\/p>\n<p><strong>.\/cc_read sicherung.hex<\/strong><br \/>\n<strong>.\/cc_erase<\/strong><br \/>\n<strong>.\/cc_write CC2531ZNP-Prod.hex<\/strong><\/p>\n<p>Nach ein paar Minuten:<br \/>\n<a href=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2019\/11\/Bildschirmfoto-2019-11-02-um-14.39.12.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2019\/11\/Bildschirmfoto-2019-11-02-um-14.39.12.png\" alt=\"\" width=\"1722\" height=\"372\" class=\"aligncenter size-full wp-image-13827\" srcset=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2019\/11\/Bildschirmfoto-2019-11-02-um-14.39.12.png 1722w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2019\/11\/Bildschirmfoto-2019-11-02-um-14.39.12-300x65.png 300w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2019\/11\/Bildschirmfoto-2019-11-02-um-14.39.12-768x166.png 768w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2019\/11\/Bildschirmfoto-2019-11-02-um-14.39.12-1024x221.png 1024w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><\/p>\n<p>Nun k\u00f6nnen wir den CC2531 in einen Raspberry Pi verwenden (oder den aktuellen rebooten).<\/p>\n<p>Check:<\/p>\n<pre class=\"lang:default decode:true \" >\r\nls -l \/dev\/ttyACM0\r\ncrw-rw---- 1 root dialout 166, 0 Nov  2 12:47 \/dev\/ttyACM0<\/pre>\n<p>Ok, er wird erkannt. Dann kann es ja zum <a href=\"https:\/\/www.zigbee2mqtt.io\/getting_started\/running_zigbee2mqtt.html\">zigbee2mqtt starten<\/a> gehen.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Um das CC2531 auch ohne CC Debugger neu zu flashen, gehen wir wie folgt vor. Wiring Pi installieren Wir ben\u00f6tigen auf dem Raspberry Pi die wiringpi zum ansteuern der GPIO-Ports sudo apt-get install wiringpi Nach der Installation testen wir mit gpio -v es muss diese Ausgabe kommen: gpio version: 2.50 Copyright (c) 2012-2018 Gordon Henderson &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/blog.wenzlaff.de\/?p=13824\" class=\"more-link\"><span class=\"screen-reader-text\">\u201eZigbee CC2531 mit neuer Firmware vom Raspberry Pi aus flashen ohne CC Debugger\u201c <\/span>weiterlesen<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[220,1023,2752,7],"tags":[3790,3531,3791,795,3526],"class_list":["post-13824","post","type-post","status-publish","format-standard","hentry","category-anleitung","category-raspberry-pi","category-raspberry-pi-zero-w","category-tools","tag-3790","tag-cc2531","tag-flaschen-ohne-cc-debugger","tag-flash","tag-zigbee"],"_links":{"self":[{"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=\/wp\/v2\/posts\/13824","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=13824"}],"version-history":[{"count":0,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=\/wp\/v2\/posts\/13824\/revisions"}],"wp:attachment":[{"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=13824"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=13824"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=13824"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}