Selbstbau CUL steigt bei HomeMatic-Modus aus

Begonnen von presskopf, 29 Januar 2016, 15:46:26

Vorheriges Thema - Nächstes Thema

presskopf

Hallo zusammen,

mein erster Post. Als Laie ist das fast zwangsläufig schon eine Frage.

Ich habe einen CUL zusammengebaut und hoffe, dass alles richtig war.
Gekauft habe den quadratischen aus dem FHEM-Wiki: http://www.fhemwiki.de/wiki/Selbstbau_CUL
Allerdings war ich mir bzgl. der Beschaltung nicht so sicher, habe aber nach Recherchen im Netz folgende ermittelt:

(https://forum.homegear.eu/download/file.php?id=86&sid=fe9c01eb6105d4003bd974c8772c718d)

SI, SCLK und CSN habe ich mit einem Pegelwandler 3,3 - 5 V am nano angeschlossen
VCC mit 3,3 V

Die Verbindungen zum nano sind wie folgt:
D11 - SI
D13 - SCLK
D12 - SO
D02 - GDO2
D03 - GDO0
D10 - CSN

D09  Leuchtdiode, 470 ohm

Pullup-Widerstand: 3V3 - 10kohm - CSN

quasi alles analog zu http://www.fhemwiki.de/w/images/2/24/Selbstbau_cul_Schaltplan.png

Das Flashen wurde wie hier vorgenommen: http://blog.gummibaer-tech.de/cul-stick-868433-im-selbstbau/

Nach dem Anschließen blinkt der CUL vorschriftsmäßig.  :)

Nach dem Einpflegen von
define CUL1 CUL /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_AL021NLB-if00-port0@38400 1234

finde ich den CUL in der FHEM-Oberfläche und kann ccconf und Version auslesen.

Setze ich aber
attr CUL1 rfmode HomeMatic
dahinter, erlischt die LED an D09, die grüne auf dem Nano blinkt sehr schnell und der Kamerad ist nicht mehr ansprechbar.  :(

Das Log offenbart auch kein Problem, oder?

ohne HomeMatic-Modus
2016.01.29 15:34:34 0: Server shutdown
2016.01.29 15:34:37 1: Including fhem.cfg
2016.01.29 15:34:38 3: telnetPort: port 7072 opened
2016.01.29 15:34:39 3: WEB: port 8083 opened
2016.01.29 15:34:39 3: WEBphone: port 8084 opened
2016.01.29 15:34:39 3: WEBtablet: port 8085 opened
2016.01.29 15:34:39 2: eventTypes: loaded 1 events from ./log/eventTypes.txt
2016.01.29 15:34:40 3: Opening CUL1 device /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_AL021NLB-if00-port0
2016.01.29 15:34:40 3: Setting CUL1 serial parameters to 38400,8,N,1
2016.01.29 15:34:40 3: CUL1 device opened
2016.01.29 15:34:43 3: CUL1: Possible commands: BCFiAZEkGMKUYRTVWXefltx
2016.01.29 15:34:43 1: Including ./log/fhem.save
2016.01.29 15:34:43 1: usb create starting
2016.01.29 15:34:45 3: Probing CUL device /dev/ttyAMA0
2016.01.29 15:34:46 3: Probing TCM_ESP3 device /dev/ttyAMA0
2016.01.29 15:34:46 3: Probing FRM device /dev/ttyAMA0
2016.01.29 15:34:51 1: usb create end
2016.01.29 15:34:51 2: SecurityCheck:  WEB,WEBphone,WEBtablet has no basicAuth attribute. telnetPort has no password/globalpassword attribute.  Restart FHEM for a new check if the problem is fixed, or set the global attribute motd to none to supress this message.
2016.01.29 15:34:51 0: Featurelevel: 5.7
2016.01.29 15:34:51 0: Server started with 10 defined entities (version $Id: fhem.pl 9893 2015-11-15 08:43:05Z rudolfkoenig $, os linux, user fhem, pid 1322)

mit HM-Modus
2016.01.29 15:40:33 0: Server shutdown
2016.01.29 15:40:36 1: Including fhem.cfg
2016.01.29 15:40:37 3: telnetPort: port 7072 opened
2016.01.29 15:40:38 3: WEB: port 8083 opened
2016.01.29 15:40:38 3: WEBphone: port 8084 opened
2016.01.29 15:40:38 3: WEBtablet: port 8085 opened
2016.01.29 15:40:38 2: eventTypes: loaded 1 events from ./log/eventTypes.txt
2016.01.29 15:40:39 3: Opening CUL1 device /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_AL021NLB-if00-port0
2016.01.29 15:40:39 3: Setting CUL1 serial parameters to 38400,8,N,1
2016.01.29 15:40:39 3: CUL1 device opened
2016.01.29 15:40:42 3: CUL1: Possible commands: BCFiAZEkGMKUYRTVWXefltx
2016.01.29 15:40:42 2: Switched CUL1 rfmode to HomeMatic
2016.01.29 15:40:42 1: Including ./log/fhem.save
2016.01.29 15:40:42 1: usb create starting
2016.01.29 15:40:44 3: Probing CUL device /dev/ttyAMA0
2016.01.29 15:40:45 3: Probing TCM_ESP3 device /dev/ttyAMA0
2016.01.29 15:40:45 3: Probing FRM device /dev/ttyAMA0
2016.01.29 15:40:50 1: usb create end
2016.01.29 15:40:50 2: SecurityCheck:  WEB,WEBphone,WEBtablet has no basicAuth attribute. telnetPort has no password/globalpassword attribute.  Restart FHEM for a new check if the problem is fixed, or set the global attribute motd to none to supress this message.
2016.01.29 15:40:50 0: Featurelevel: 5.7
2016.01.29 15:40:50 0: Server started with 10 defined entities (version $Id: fhem.pl 9893 2015-11-15 08:43:05Z rudolfkoenig $, os linux, user fhem, pid 1349)

Damit nicht irgendwas anderes beeinflusst, habe ich ein jungfräuchliches FHEM verwendet; hier die fhem.cfg:
attr global logfile ./log/fhem-%Y-%m.log
attr global modpath .
attr global statefile ./log/fhem.save
attr global verbose 3
attr global updateInBackground

define telnetPort telnet 7072 global

define WEB FHEMWEB 8083 global

define WEBphone FHEMWEB 8084 global
attr WEBphone stylesheetPrefix smallscreen

define WEBtablet FHEMWEB 8085 global
attr WEBtablet stylesheetPrefix touchpad

# Fake FileLog entry, to access the fhem log from FHEMWEB
define Logfile FileLog ./log/fhem-%Y-%m.log fakelog

define autocreate autocreate
attr autocreate filelog ./log/%NAME-%Y.log

define eventTypes eventTypes ./log/eventTypes.txt

# Disable this to avoid looking for new USB devices on startup
define initialUsbCheck notify global:INITIALIZED usb create

define CUL1 CUL /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_AL021NLB-if00-port0@38400 1234
attr CUL1 rfmode HomeMatic


Jetzt weiß ich nicht mehr weiter und bin für alle Tipps dankbar!

spranz

Hast du vorm compilieren die board.h angepasst? (die 433MHz Zeile auskommentiert?)

presskopf

Habe nochmal sicherheitshalber nachgesehen.
Ja, die ist auskommentiert.

presskopf

Mir war das ganze irgendwie nicht koscher.
Also habe mal auf Verdacht, das Sendemodul am nano ausgetauscht und.... sieh da! :) .... jetzt tut der CUL vorschriftsmäßig.
Entweder war das Ding schon kaputt, oder ich hab's geschrottet...