CC1101: Error (check) writing to register 62

Hi,

ich habe heute probiert einen CC1101 an meinen Raspberry Pi 3 anzuschließen. Auf dem Raspberry Pi 3 läuft Arch Linux, Homegear habe ich über das Arch User Repository installiert (Pakete: libhomegear-base-git, homegear-homematicbidcos-git, homegear-git). Allerdings stürzt Homegear beim starten immer mit der folgenden Fehlermeldung ab:

Module HomeMatic BidCoS: TI CC110X "My-CC1101": Error (check) writing to register 62."

Im Forum habe ich hier schon einen ähnlichen Fall gefunden, leider blieb dieser Thread ohne Lösung. Den CC1101 habe ich wie in der Dokumentation beschrieben angeschlossen.

Mein CC1101 ist dieses hier von Aliexpress, es sollte meiner Meinung nach eines der Funktionierenden sein.

Der SPI Treiber an sich funktionieren:

[alarm@alarmpi ~]$ sudo ./spidev_test
spi mode: 0x0
bits per word: 8
max speed: 500000 Hz (500 KHz)
RX | 00 00 0D 3D 49 FE 9B BD 31 9C F5 86 FB C2 F9 0B F3 C2 00 32 02 BE 65 1F D4 1B 17 01 FD 00 5C A0  | ...=I▒▒▒1▒▒▒▒▒.▒▒.2.▒e.▒...▒.\▒

An dem Raspberry Pi ist ansonsten noch das orignale Touchscreen Display angeschlossen, aber dieses sollte ja nichts mit dem SPI Pins zu tun haben…

Meine Konfigurationsdatei und das komplette Log hätte ich gerne angehängt, dieses darf ich leider nicht als neuer Nutzer.

Ist mein Modul defekt, oder könnte das Problem noch an etwas anderem liegen?

Vielen Dank schon einmal für die Hilfe.

Felix

Hi @Felix,

vielleicht kannst du die entsprechenden Konfigdateien auszugsweise posten. Folgende Infos wären super:

  • uname -a
  • Log vom Start von homegear
  • homematicbidcos.conf

Hi @pmayer,

die Ausgaben sind die folgenden:

uname -a:

 Linux alarmpi 4.9.14-2-ARCH #1 SMP Wed Mar 15 01:34:52 UTC 2017 armv7l GNU/Linux

homegear log:

03/16/17 00:49:19.506 Starting Homegear...
03/16/17 00:49:19.506 Homegear version 0.6.19-962
03/16/17 00:49:19.506 Git commit SHA of libhomegear-base: -
03/16/17 00:49:19.506 Git branch of libhomegear-base:     -
03/16/17 00:49:19.506 Git commit SHA of Homegear:         cb090c27ff53a4dd9f8d579dcc744d8b62e03f23
03/16/17 00:49:19.506 Git branch of Homegear:             master
03/16/17 00:49:19.508 Info: Setting allowed core file size to "4294967295" for user with id 566 and group with id 565.
03/16/17 00:49:19.508 Info: Core file size now is "4294967295".
03/16/17 00:49:19.508 Info: Setting maximum thread priority to "100" for user with id 566 and group with id 565.
03/16/17 00:49:19.508 Info: Maximum thread priority now is "100".
03/16/17 00:49:19.518 Info: Backing up database...
03/16/17 00:49:19.883 Initializing database...
03/16/17 00:49:19.889 Debug: Loading licensing modules
03/16/17 00:49:19.890 Debug: Loading family modules
03/16/17 00:49:19.890 Info: Loading family module mod_homematicbidcos.so
03/16/17 00:49:19.904 /etc/homegear/families/homematicbidcos.conf
03/16/17 00:49:19.904 Debug: Loading section "General"
03/16/17 00:49:19.905 Debug: Family setting rfkey set to ac245ae5781bc262af57ae72108abef21
03/16/17 00:49:19.905 Debug: Family setting currentrfkeyindex set to 1
03/16/17 00:49:19.905 Debug: Family setting processbroadcastwithaesenabled set to false
03/16/17 00:49:19.905 Debug: Loading section "TI CC1101 Module"
03/16/17 00:49:19.905 Debug: id set to My-CC1101
03/16/17 00:49:19.905 Debug: default set to 1
03/16/17 00:49:19.905 Debug: deviceType set to cc1100
03/16/17 00:49:19.906 Debug: device set to /dev/spidev0.0
03/16/17 00:49:19.906 Debug: responseDelay set to 100
03/16/17 00:49:19.906 Debug: interruptPin set to 0
03/16/17 00:49:19.906 Debug: GPIO1 set to 25
03/16/17 00:49:19.906 Module HomeMatic BidCoS: Debug: Loading module...
03/16/17 00:49:19.907 Module HomeMatic BidCoS: Debug: Creating physical device. Type defined in homematicbidcos.conf is: cc1100
03/16/17 00:49:19.907 Module HomeMatic BidCoS: TI CC110X "My-CC1101": Debug: PATABLE will be set to 0xC0
03/16/17 00:49:19.907 Info: Loading family module mod_miscellaneous.so
03/16/17 00:49:19.911 /etc/homegear/families/miscellaneous.conf
03/16/17 00:49:19.912 Module Miscellaneous: Debug: Loading module...
03/16/17 00:49:19.912 Info: Homegear is (now) running as user with id 566 and group with id 565.
03/16/17 00:49:19.913 Starting script engine server...
03/16/17 00:49:19.960 Script Engine Server: Debug: Waiting for script engine server's client threads to finish.
03/16/17 00:49:19.962 Initializing licensing controller...
03/16/17 00:49:19.962 Loading licensing controller data...
03/16/17 00:49:19.962 Loading devices...
03/16/17 00:49:19.962 Loading XML RPC devices...
--- gekürzt --- Laden verschiedener XML Dateien
03/16/17 00:49:20.756 Loading device 1
03/16/17 00:49:20.756 Module HomeMatic BidCoS: Info: Central address set to 0xFDE264.
03/16/17 00:49:20.757 Loading XML RPC devices...
03/16/17 00:49:20.758 Could not read device description files in directory: "/etc/homegear/devices/254/": Could not open directory "/etc/homegear/devices/254/"
03/16/17 00:49:20.758 Error: Could not initialize device family Miscellaneous.
03/16/17 00:49:20.758 Debug: Disposing central...
03/16/17 00:49:20.758 Info: Disposing family module mod_miscellaneous.so
03/16/17 00:49:20.758 Debug: Deleting factory pointer of module mod_miscellaneous.so
03/16/17 00:49:20.758 Debug: Closing dynamic library module mod_miscellaneous.so
03/16/17 00:49:20.758 Debug: Dynamic library mod_miscellaneous.so disposed
03/16/17 00:49:20.758 Start listening for packets...
03/16/17 00:49:20.761 Module HomeMatic BidCoS: TI CC110X "My-CC1101": Error (check) writing to register 62.
03/16/17 00:49:20.761 Module HomeMatic BidCoS: TI CC110X "My-CC1101": Debug: CC1100: Setting GPIO direction
03/16/17 00:49:20.761 Debug: GPIO path for GPIO with index 1 and device cc1100 set to "/sys/class/gpio/gpio25".
03/16/17 00:49:20.761 Module HomeMatic BidCoS: TI CC110X "My-CC1101": Debug: CC1100: Setting GPIO edge
03/16/17 00:49:20.761 Critical: At least one of the physical devices could not be opened... Exiting...
03/16/17 00:49:20.762 Module HomeMatic BidCoS: TI CC110X "My-CC1101": Connection to TI CC1101 closed unexpectedly... Trying to reconnect...
03/16/17 00:49:20.765 Module HomeMatic BidCoS: TI CC110X "My-CC1101": Error (check) writing to register 62.
03/16/17 00:49:20.765 Module HomeMatic BidCoS: TI CC110X "My-CC1101": Debug: CC1100: Setting GPIO direction
03/16/17 00:49:20.765 Module HomeMatic BidCoS: TI CC110X "My-CC1101": Debug: CC1100: Setting GPIO edge
03/16/17 00:49:21.765 Debug: Disposing central...
03/16/17 00:49:21.765 Module HomeMatic BidCoS: Debug: Waiting for worker thread of device 1...
03/16/17 00:49:22.757 Module HomeMatic BidCoS: Removing device 1 from physical device's event queue...
03/16/17 00:49:23.930 Closing database...
03/16/17 00:49:23.931 Debug: Can't execute "COMMIT": cannot commit - no transaction is active
03/16/17 00:49:24.081 Info: Disposing family module mod_homematicbidcos.so
03/16/17 00:49:24.081 Debug: Deleting factory pointer of module mod_homematicbidcos.so
03/16/17 00:49:24.081 Debug: Closing dynamic library module mod_homematicbidcos.so
03/16/17 00:49:24.082 Debug: Dynamic library mod_homematicbidcos.so disposed
03/16/17 00:49:24.082 Script Engine Server: Debug: Waiting for script engine server's client threads to finish.

Interessanter teil der homematicbidcos.conf:

#######################################
########## 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

## 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
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

Vielen Dank schon einmal für deine Hilfe

Felix

:thumbsup:

Von dem was ich sehen kann, scheint alles gut. Kannst du ein Foto vom Anschluss des Moduls an den Pi machen? Also was steckt wo?

Hier noch mal die Verkabelung:

Aus diesem Thread: Homegear direkt mit CC1101 über SPI

1 Like

Hi,

ich bin leider gerade nicht Zuhause, die logs habe ich gerade über ssh vom PI geholt, ich kann dir heute Abend ein Bild schicken. Die Kabel sollten aber so wie in der Doku beschrieben an den SPI0 Port vom Raspberry Pi 3 angeschlossen sein.

Schöne Grüße
Felix

1 Like

Hi,

ich bin gerade dazu gekommen meine Verkabelung zu fotografieren.

Bild 1:

Bild 2 kommt in der nächsten Antwort, da ich nur ein Bild hochladen darf als neuer User.

Ich habe das gerade nochmal mit der Doku verglichen und es müsste meiner Meinung nach richtig sein.

Viele Grüße und danke für deine Hilfe
Felix

Bild 2:

Hmm… Sind da nicht rot und orange vertauscht? (braun/türkis im Beispielbield)

1 Like

Anscheinend bin ich zu blöd ein einfaches Diagramm richtig zu lesen. Homegear startet jetzt ohne Probleme.

Danke für deine Hilfe! :smile:
Felix

1 Like

Ich find’s trotzdem super, dass wir jetzt eine Lösung für die Fehlermeldung haben :smiley:

Kurz festgehalten für Blöde wie mich: Das Bild für die Verkabelung zeigt die GPIO Leiste des ersten Pis. Aktuelle Pis haben mehr GPIOs, man sollte daher beim Anschließen nicht von unten anfangen, die Pins zu zählen … :wink:

Richtig verkabelt funktioniert’s dann auch.

Kauftipp: Funktionieren, sind günstig (2,70 Eur) und mit optionalem DHL Versand (ca 6,- Eur Aufpreis) auch in einer Woche da:
https://www.aliexpress.com/item/NEW-CC1101-wireless-module-Long-Distance-Transmission-Antenna-868MHZ/32599592298.html

1 Like