Probleme mit schreiben auf HM-CC-RT-DN

Hallo zusammen,

Da ich selber nicht mehr weiterkomme, hoffe ich das mir hier geholfen werden kann.

Ich habe Homegear auf einem Raspberry Pi eingerichtet. Als Kommunikationsmodul dient ein CC1101-Funkmodul nach dem Vorbild von P.Mayer. Steuerung des Geräts soll über node red (+ dashboard) laufen.

Das Pairen des Geräts hat auch problemlos geklappt und nach Aktivierung von MQTT kann ich über MQTT Spy auch Nachrichten und Statusänderungen des Geräts verfolgen.

z.B.
homegear/PiHomegear/jsonobj/1/4

liefert

{“ACTUAL_TEMPERATURE”:22.9,“BATTERY_STATE”:3.2,“BOOST_STATE”:0,“CONTROL_MODE”:0,“FAULT_REPORTING”:0,“PARTY_START_TIME”:0,“VALVE_STATE”:2}

Soweit so gut.

Möchte ich aber z.b. mit einer mqtt-node das Topic

homegear/PiHomegear/set/1/4/SET_TEMPERATURE

& payload 18 (per button und drangehängtem String)

senden bekomme ich im Log folgenden Output:

11/06/18 15:37:17.584 Info: MQTT RPC call received. Method: setValue
11/06/18 15:37:17.584 RPC Server (Port 2001): Info: RPC Method called: setValue Parameters:
(Integer) 1
(Integer) 4
(String) SET_TEMPERATURE
(Integer) 18
11/06/18 15:37:17.945 Module HomeMatic BidCoS: TI CC110X “My-CC1101-Module”: Info: Sending (My-CC1101-Module): 0C13B01100FD845D1259810428
11/06/18 15:37:18.865 Module HomeMatic BidCoS: TI CC110X “My-CC1101-Module”: Info: Sending (My-CC1101-Module): 0C13B01100FD845D1259810428 Planned sending time: 11/06/18 15:37:18.505
11/06/18 15:37:19.425 Module HomeMatic BidCoS: TI CC110X “My-CC1101-Module”: Info: Sending (My-CC1101-Module): 0C13B01100FD845D1259810428 Planned sending time: 11/06/18 15:37:19.065
11/06/18 15:37:20.589 Module HomeMatic BidCoS: Info: Setting peer to unreachable, because the queue processing was interrupted.
11/06/18 15:37:20.589 Module HomeMatic BidCoS: Info: Queue is not finished (peer: 1). Retrying…
11/06/18 15:37:21.050 Module HomeMatic BidCoS: TI CC110X “My-CC1101-Module”: Info: Sending (My-CC1101-Module): 0C13B01100FD845D1259810428 Planned sending time: 11/06/18 15:37:19.625
11/06/18 15:37:21.970 Module HomeMatic BidCoS: TI CC110X “My-CC1101-Module”: Info: Sending (My-CC1101-Module): 0C13B01100FD845D1259810428 Planned sending time: 11/06/18 15:37:21.610
11/06/18 15:37:22.530 Module HomeMatic BidCoS: TI CC110X “My-CC1101-Module”: Info: Sending (My-CC1101-Module): 0C13B01100FD845D1259810428 Planned sending time: 11/06/18 15:37:22.170
11/06/18 15:37:23.693 Module HomeMatic BidCoS: Info: Setting peer to unreachable, because the queue processing was interrupted.
11/06/18 15:37:23.693 Module HomeMatic BidCoS: Info: Queue is not finished (peer: 1). Retrying…
11/06/18 15:37:24.154 Module HomeMatic BidCoS: TI CC110X “My-CC1101-Module”: Info: Sending (My-CC1101-Module): 0C13B01100FD845D1259810428 Planned sending time: 11/06/18 15:37:22.730
11/06/18 15:37:25.074 Module HomeMatic BidCoS: TI CC110X “My-CC1101-Module”: Info: Sending (My-CC1101-Module): 0C13B01100FD845D1259810428 Planned sending time: 11/06/18 15:37:24.714
11/06/18 15:37:25.634 Module HomeMatic BidCoS: TI CC110X “My-CC1101-Module”: Info: Sending (My-CC1101-Module): 0C13B01100FD845D1259810428 Planned sending time: 11/06/18 15:37:25.274
11/06/18 15:37:26.797 Module HomeMatic BidCoS: Info: Setting peer to unreachable, because the queue processing was interrupted.
11/06/18 15:37:26.797 Module HomeMatic BidCoS: Info: Queue is not finished (peer: 1). Retrying…
11/06/18 15:37:27.258 Module HomeMatic BidCoS: TI CC110X “My-CC1101-Module”: Info: Sending (My-CC1101-Module): 0C13B01100FD845D1259810428 Planned sending time: 11/06/18 15:37:25.834
11/06/18 15:37:28.178 Module HomeMatic BidCoS: TI CC110X “My-CC1101-Module”: Info: Sending (My-CC1101-Module): 0C13B01100FD845D1259810428 Planned sending time: 11/06/18 15:37:27.818
11/06/18 15:37:28.738 Module HomeMatic BidCoS: TI CC110X “My-CC1101-Module”: Info: Sending (My-CC1101-Module): 0C13B01100FD845D1259810428 Planned sending time: 11/06/18 15:37:28.378
11/06/18 15:37:29.901 Module HomeMatic BidCoS: Info: Setting peer to unreachable, because the queue processing was interrupted.
11/06/18 15:37:29.901 Info: Peer 1 is unreachable.
11/06/18 15:37:29.902 MQTT Client Info: Publishing topic homegear/PiHomegear/json/1/0/UNREACH
11/06/18 15:37:29.902 MQTT Client Info: Publishing topic homegear/PiHomegear/plain/1/0/UNREACH
11/06/18 15:37:29.903 MQTT Client Info: Publishing topic homegear/PiHomegear/json/1/0/STICKY_UNREACH
11/06/18 15:37:29.903 MQTT Client Info: Publishing topic homegear/PiHomegear/plain/1/0/STICKY_UNREACH
11/06/18 15:37:29.903 MQTT Client Info: Publishing topic homegear/PiHomegear/jsonobj/1/0
11/06/18 15:37:30.453 HomeMatic BidCoS packet received (My-CC1101-Module, RSSI: -97 dBm): 0FA186105D12590000000AA8E5110200
11/06/18 15:37:30.454 Info: Peer 1 is reachable again.

Wie schon beschrieben bin ich dort mit meinem Latein ein wenig am Ende, da Pairen ging scheint ja schreiben möglich zu sein und lesen geht ja auch, also kann es wohl auch nicht die Entfernung sein.

Wäre toll wenn mir da jemand unter die Arme greifen könnte, vielleicht sehe ich auch nur den Wald vor lauter Bäumen nicht^^

Vielen Dank schonmal im Vorfeld!

Hey,

danke für die Erwähnung :slight_smile: Hattest du meinen Blogpost zum Thema gesehen? https://allgeek.de/2017/07/09/homematic-mit-node-red-ueber-homegear/

Die Fehlermeldung könnte auf einen falsch konfigurierte GPIO für GDO0/2 deuten. Zeig mal wie du es angeschlossen hast, bzw. wie du es konfiguriert hast.
Im schlimmsten Fall könnte es auch ein defekter CC1101 sein.

Gruß,
Patrik

Hallo Patrik,

Ja deine Blogpost(s) waren die Inspiration. Fand ich eine super Lösung.
Hier mal der Aufbau:

Config ist so:
>
> #######################################
> ########## TI CC1101 Module ##########
> #######################################
>
> ## The device family this interface is for
> [TI CC1101 Module]
>
> ## Specify an unique id here to identify this device in Homegear
> id = My-CC1101-Module
>
> ## When default is set to “true” Homegear will assign this device
> ## to new peers.
> default = true
>
> ## Options: cul, cc1100, coc, cunx, hmcfglan, hmlgw, hm-mod-rpi-pcb, homegeargateway
> deviceType = cc1100
>
> device = /dev/spidev0.0
>
> ## Default: responseDelay = 95
> ## Should be “95” for CUL or COC, “100” for TI CC1101 and “60” for HM-CFG-LAN or HM-LGW
> responseDelay = 100
>
> ## The interrupt pin to use. “0” for GDO0 or “2” for GDO2.
> ## You only need to connect one of them. Specify the GPIO
> ## you connected the interrupt pin to below.
> interruptPin = 0
>
> ## The GPIO GDO0 or GDO2 is connected to. Specify which GDO to use above.
> gpio1 = 25
>
> ### Additional TI CC1190 Config ###
>
> ## The GPIO high gain mode of the CC1190 is connected to.
> ## Default: -1 (disabled)
> #gpio2 = 5
>
> ## The hexadecimal value for the PATABLE of the TI CC1101.
> ## Default:
> ## - Without high gain mode: 0xC2
> ## - With high gain mode: 0x27 (maximum legally allowed setting)
> #txPowerSetting = 0x27
>
> # vim: filetype=cfg

Viele Grüße,
Adrian

Ah, sehr schön. Welche Version der Platine hast du da? Ich meine mich zu erinnern, dass auf OshPark nur V0.2 lag, nicht V0.3.

https://allgeek.de/2017/07/31/cc1101-spi-raspberry-adapter-fuer-homegear-homematicmax/

Bei V0.2 war nur GDO2 ausgeführt auf GPIO25, du hast aber GDO0 auf GPIO25 konfiguriert.


Hmm, ne, auf OshPark liegt V0.3… da gilt dann diese Config: https://allgeek.de/2017/09/23/cc1101-spi-adapter-mit-u-fl-antennenbuchse/

V0.3 ist es. Dann müsste die Config ja eigentlich stimmen…

Mich wundert halt das pairen ging. Da müssen doch Daten gesendet werden.

Absolut…

@sathya, hast du noch eine Idee?

Ich hab den Fehler gefunden. Es ist die Antenne, wenn ich nahe genug mit dem Pi ans Thermostat gehe (d.h. wenn die Reichweite des Chips ohne Antenne genug ist) klappt alles problemlos.

Es war also wirklich einer der “Bäume”^^

Trotzdem vielen Dank für deine Hilfe Patrik und natürlich auch für die Inspiration!

2 Likes