{"id":2847,"date":"2014-03-03T21:33:35","date_gmt":"2014-03-03T20:33:35","guid":{"rendered":"http:\/\/blog.wenzlaff.de\/?p=2847"},"modified":"2021-11-22T17:15:47","modified_gmt":"2021-11-22T16:15:47","slug":"mit-mac-os-x-maverick-einen-cul-cc1101-868mhz-von-busware-fuer-fs20-fuer-den-raspberry-pi-mit-culfw-1-55-flashen-und-in-fhem-einbinden","status":"publish","type":"post","link":"http:\/\/blog.wenzlaff.de\/?p=2847","title":{"rendered":"Mit Mac OS X Maverick einen CUL CC1101 868Mhz von Busware f\u00fcr FS20 f\u00fcr den Raspberry Pi mit culfw 1.55 flashen und in Fhem einbinden"},"content":{"rendered":"<p>Der <a href=\"https:\/\/wiki.fhem.de\/wiki\/CUL\" title=\"cul\" target=\"_blank\" rel=\"noopener noreferrer\">CUL<\/a>-V3-OEM CC1101 f\u00fcr 868 Mhz von Busware mit fester <a href=\"https:\/\/de.wikipedia.org\/wiki\/Antennentechnik\" title=\"lambda\" target=\"_blank\" rel=\"noopener noreferrer\">lambda<\/a>\/4 Mikroantenne wird <strong>ohne<\/strong> Firmware geliefert. CUL V3 &#8211; ATMega32U4 Prozessor, 2,5 kB RAM, 32 kB Flashmemory, 1 kByte EEPROM, Herstellungs <a href=\"http:\/\/www.youtube.com\/watch?v=HsNvnLwz6jQ\" title=\"youtube\" target=\"_blank\" rel=\"noopener noreferrer\">Video<\/a>):<br \/>\n<a href=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2014\/03\/20140303-205015.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2014\/03\/20140303-205015.jpg\" alt=\"20140303-205015.jpg\" width=\"3264\" height=\"2448\" class=\"aligncenter size-full wp-image-2850\" srcset=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2014\/03\/20140303-205015.jpg 3264w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2014\/03\/20140303-205015-300x225.jpg 300w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2014\/03\/20140303-205015-1024x768.jpg 1024w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><\/p>\n<p>Zuerst muss also der <a href=\"https:\/\/wiki.fhem.de\/wiki\/CUL\" title=\"cul\" target=\"_blank\" rel=\"noopener noreferrer\">CUL<\/a> mit einer aktuellen Firmware geflasht werden, so wie<br \/>\n<a href=\"https:\/\/wiki.fhem.de\/wiki\/CUL_unter_OS_X_flashen\" title=\"mac\" target=\"_blank\" rel=\"noopener noreferrer\">hier f\u00fcr Mac OS X<\/a> beschrieben.  Also die aktuelle <a href=\"http:\/\/culfw.de\/culfw.html\" title=\"culfw\" target=\"_blank\" rel=\"noopener noreferrer\">culfw 1.55<\/a> Firmware oder neuer laden und in ein Verzeichnis entpacken.<\/p>\n<p>Dann brauchen wir noch das Programm zum flashen der Firmware, welches wir mit<br \/>\n<code>sudo port install dfu-programmer<\/code><br \/>\nauf der Konsole installieren k\u00f6nnen.<\/p>\n<p>Testen ob der Programmer richtig installiert wurde geht mit<br \/>\n<code>$ dfu-programmer<\/code><br \/>\nAusgabe:<!--more--><br \/>\n<code>dfu-programmer 0.5.4<br \/>\nUsage: dfu-programmer target command [command-options] [global-options] [file|data]<br \/>\ntargets:<br \/>\n        at89c51snd1c<br \/>\n        at89c51snd2c<br \/>\n        at89c5130<br \/>\n        at89c5131<br \/>\n        at89c5132<br \/>\n        at90usb1287<br \/>\n        at90usb1286<br \/>\n        at90usb1287-4k<br \/>\n        at90usb1286-4k<br \/>\n        at90usb647<br \/>\n        at90usb646<br \/>\n        at90usb162<br \/>\n        at90usb82<br \/>\n        atmega32u6<br \/>\n        <strong>atmega32u4<\/strong><br \/>\n        atmega32u2<br \/>\n        atmega16u4<br \/>\n        atmega8u2<br \/>\n        at32uc3a0128<br \/>\n        at32uc3a1128<br \/>\n        at32uc3a0256<br \/>\n        at32uc3a1256<br \/>\n        at32uc3a0512<br \/>\n        at32uc3a1512<br \/>\n        at32uc3a0512es<br \/>\n        at32uc3a1512es<br \/>\n        at32uc3a364<br \/>\n        at32uc3a364s<br \/>\n        at32uc3a3128<br \/>\n        at32uc3a3128s<br \/>\n        at32uc3a3256<br \/>\n        at32uc3a3256s<br \/>\n        at32uc3b064<br \/>\n        at32uc3b164<br \/>\n        at32uc3b0128<br \/>\n        at32uc3b1128<br \/>\n        at32uc3b0256<br \/>\n        at32uc3b1256<br \/>\n        at32uc3b0256es<br \/>\n        at32uc3b1256es<br \/>\n        at32uc3b0512<br \/>\n        at32uc3b1512<br \/>\n        at32uc3c064<br \/>\n        at32uc3c0128<br \/>\n        at32uc3c0256<br \/>\n        at32uc3c0512<br \/>\n        at32uc3c164<br \/>\n        at32uc3c1128<br \/>\n        at32uc3c1256<br \/>\n        at32uc3c1512<br \/>\n        at32uc3c264<br \/>\n        at32uc3c2128<br \/>\n        at32uc3c2256<br \/>\n        at32uc3c2512<br \/>\nglobal-options: --quiet, --debug level<br \/>\ncommands:<br \/>\n        configure {BSB|SBV|SSB|EB|HSB} [--suppress-validation] [global-options] data<br \/>\n        dump [global-options]<br \/>\n        dump-eeprom [global-options]<br \/>\n        dump-user [global-options]<br \/>\n        erase [--suppress-validation] [global-options]<br \/>\n        flash [--suppress-validation] [--suppress-bootloader-mem] [global-options] {file|STDIN}<br \/>\n        flash-eeprom [--suppress-validation] [global-options] {file|STDIN}<br \/>\n        flash-user [--suppress-validation] [global-options] {file|STDIN}<br \/>\n        get {bootloader-version|ID1|ID2|BSB|SBV|SSB|EB|<br \/>\n            manufacturer|family|product-name|<br \/>\n            product-revision|HSB} [global-options]<br \/>\n        getfuse {LOCK|EPFL|BOOTPROT|BODLEVEL|BODHYST|<br \/>\n                BODEN|ISP_BOD_EN|ISP_IO_COND_EN|<br \/>\n                ISP_FORCE} [global-options]<br \/>\n        setfuse {LOCK|EPFL|BOOTPROT|BODLEVEL|BODHYST|<br \/>\n                BODEN|ISP_BOD_EN|ISP_IO_COND_EN|<br \/>\n                ISP_FORCE} [global-options] data<br \/>\n        reset [global-options]<br \/>\n        start [global-options]<br \/>\n        version [global-options]<br \/>\n<\/code><\/p>\n<p>Stick in USB Port mit <strong>gleichzeitig<\/strong> bet\u00e4tigten Reset-Knopf einstecken (mit B\u00fcroklammer). Keine LED leuchtet.<br \/>\nIn das Verzeichnis cd <code>\/culfw-1.55\/Devices\/CUL<\/code> wechseln.<\/p>\n<p><code>ls<\/code><br \/>\nAusgabe:<br \/>\n<code>CUL.c\t\tCUL_V2_HM.hex\t<strong>CUL_V3.hex<\/strong>\tboard.h\t\tmakefile.myusb<br \/>\nCUL_V2.hex\tCUL_V2_MAX.hex\tCUL_V4.hex\tmakefile<\/code><\/p>\n<p>Nun den flash Vorgang starten, es dauert nur ein paar Sekunden:<br \/>\n<strong>$ make usbprogram_v3<\/strong><br \/>\nAusgabe:<br \/>\n<code>dfu-programmer atmega32u4 erase || true<br \/>\ndfu-programmer atmega32u4 flash CUL_V3.hex<br \/>\nValidating...<br \/>\n18582 bytes used (64.81%)<br \/>\ndfu-programmer atmega32u4 start<br \/>\n<\/code><\/p>\n<p>Nun blinkt die gr\u00fcne LED am Stick.<\/p>\n<p>Nun den <a href=\"https:\/\/wiki.fhem.de\/wiki\/CUL\" title=\"cul\" target=\"_blank\" rel=\"noopener noreferrer\">CUL<\/a> USB-Stick in den Raspberry Pi stecken und testen ob er erkannt wird:<br \/>\n<code>lsusb<\/code><br \/>\nAusgabe zeigt den erkannten USB <a href=\"https:\/\/wiki.fhem.de\/wiki\/CUL\" title=\"cul\" target=\"_blank\" rel=\"noopener noreferrer\">CUL<\/a> an:<br \/>\n<code>Bus 001 Device 007: ID 03eb:204b Atmel Corp. LUFA USB to Serial Adapter Project<\/code><br \/>\nNun noch im Fhem Server in der <code>fhem.cfg<\/code> eintragen (0000=Hauscode):<br \/>\n<code><br \/>\ndefine myCUL CUL \/dev\/ttyACM0 <strong>0000<\/strong><br \/>\nattr myCUL room CUL_HM<br \/>\n<\/code><br \/>\nNach einem <code>reread<\/code> ist alles ok, und der <a href=\"https:\/\/wiki.fhem.de\/wiki\/CUL\" title=\"cul\" target=\"_blank\" rel=\"noopener noreferrer\">CUL<\/a> wird wie folgt erkannt:<br \/>\n<a href=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2014\/03\/Bildschirmfoto-2014-03-03-um-19.26.56.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2014\/03\/Bildschirmfoto-2014-03-03-um-19.26.56.png\" alt=\"Bildschirmfoto 2014-03-03 um 19.26.56\" width=\"1110\" height=\"1012\" class=\"aligncenter size-full wp-image-2852\" srcset=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2014\/03\/Bildschirmfoto-2014-03-03-um-19.26.56.png 1110w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2014\/03\/Bildschirmfoto-2014-03-03-um-19.26.56-300x273.png 300w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2014\/03\/Bildschirmfoto-2014-03-03-um-19.26.56-1024x933.png 1024w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2014\/03\/Bildschirmfoto-2014-03-03-um-19.26.56-900x820.png 900w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><\/p>\n<p>Der eingestellte Hauscode (= <strong>FHTID<\/strong> hier 0000) kann in Fhem mit:<br \/>\n<code>get myCUL raw T01<\/code><br \/>\nermittelt werden:<br \/>\nAusgabe:<br \/>\n<code>myCUL raw => 0000<\/code><br \/>\nUnd die Version mit<br \/>\n<code>get myCUL raw V<\/code><br \/>\nAusgabe:<br \/>\n<code>myCUL raw => V 1.55 CUL868<\/code><\/p>\n<p>In einem folgenden Blogbeitrag wird noch die Einbindung des FS20 <strong>KSE<\/strong> beschrieben.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Der CUL-V3-OEM CC1101 f\u00fcr 868 Mhz von Busware mit fester lambda\/4 Mikroantenne wird ohne Firmware geliefert. CUL V3 &#8211; ATMega32U4 Prozessor, 2,5 kB RAM, 32 kB Flashmemory, 1 kByte EEPROM, Herstellungs Video): Zuerst muss also der CUL mit einer aktuellen Firmware geflasht werden, so wie hier f\u00fcr Mac OS X beschrieben. Also die aktuelle culfw &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/blog.wenzlaff.de\/?p=2847\" class=\"more-link\"><span class=\"screen-reader-text\">\u201eMit Mac OS X Maverick einen CUL CC1101 868Mhz von Busware f\u00fcr FS20 f\u00fcr den Raspberry Pi mit culfw 1.55 flashen und in Fhem einbinden\u201c <\/span>weiterlesen<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_import_markdown_pro_load_document_selector":0,"_import_markdown_pro_submit_text_textarea":"","footnotes":""},"categories":[852,229,254,1023],"tags":[1350,1351,1349,1353,693,1354,792,1352,1348,2190],"class_list":["post-2847","post","type-post","status-publish","format-standard","hentry","category-heimautomatisierung","category-imac-2","category-os-x-2","category-raspberry-pi","tag-busware","tag-busware-de","tag-cul","tag-culfw-1-55","tag-fhem","tag-fhtid","tag-flashen","tag-fs20","tag-programmer","tag-raspberry-pi"],"_links":{"self":[{"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=\/wp\/v2\/posts\/2847","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=2847"}],"version-history":[{"count":0,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=\/wp\/v2\/posts\/2847\/revisions"}],"wp:attachment":[{"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2847"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2847"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2847"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}