BananaPi and CC1101

Hello everyone,

i have a BananaPi (in fact its a Banana Pi R1) and i want to use it with homegear to control my MAX-Devices through a CC1101 via SPI.

The system on my BananaPi is a

Armbian 5.31 stable Debian GNU/Linux 8 (jessie) 4.9.7-sunxi

On this OS the SPI is disabled by default but i managed to enable it by adding the following device-tree-overlay (or at least i hope that i have enabled it now):

DT Overlay for BananaPi A20
/dts-v1/;

    /plugin/;

     {
    	compatible = "allwinner,sun7i-a20";
    	fragment@0 {
    		target-path = "/aliases";
    		__overlay__ {
    			spi0 = "/soc@01c00000/spi@01c05000";
    			spi1 = "/soc@01c00000/spi@01c06000";
    			spi2 = "/soc@01c00000/spi@01c17000";
    		};
    	};

    	fragment@1 {
    		target = <&spi0>;
    		__overlay__ {
    			#address-cells = <1>;
    			#size-cells = <0>;
    			spidev {
    				compatible = "spidev";
    				status = "okay";
    				reg = <0>;
    				spi-max-frequency = <1000000>;
    			};
    		};
    	};

    	fragment@2 {
    		target = <&spi1>;
    		__overlay__ {
    			#address-cells = <1>;
    			#size-cells = <0>;
    			spidev {
    				compatible = "spidev";
    				status = "disabled";
    				reg = <0>;
    				spi-max-frequency = <1000000>;
    			};
    		};
    	};

    	fragment@3 {
    		target = <&spi2>;
    		__overlay__ {
    			#address-cells = <1>;
    			#size-cells = <0>;
    			spidev {
    				compatible = "spidev";
    				status = "disabled";
    				reg = <0>;
    				spi-max-frequency = <1000000>;
    			};
    		};
    	};
    };

Now i have at least a /dev/spidev0.0, so I connected my CC1101 to the bananaPi-PinHeader like here and added the following sequence to /etc/homegear/families/max.conf

[TI CC1101 Module]
id = My-C1101-Module
default = true
deviceType = cc1100
device = /dev/spidev0.0
responseDelay = 100

interruptPin = 0
gpio1 = 25

I know that BananaPi and Rasperry Pi are different bords but i could not find an example for the bananaPi with CC1101 and the corresponding GPIO-Busnumbers.

When i restart my system i get the following error message:

homegear.log

06/15/19 00:46:45.562 Starting Homegear…
06/15/19 00:46:45.563 Homegear version 0.7.39-2773
06/15/19 00:46:45.563 Git commit SHA of libhomegear-base: -
06/15/19 00:46:45.563 Git branch of libhomegear-base: -
06/15/19 00:46:45.563 Git commit SHA of Homegear: -
06/15/19 00:46:45.563 Git branch of Homegear: -
06/15/19 00:46:45.565 Info: Setting allowed core file size to “4294967295” for user with id 0 and group with id 0.
06/15/19 00:46:45.565 Info: Core file size now is “4294967295”.
06/15/19 00:46:45.565 Info: Setting maximum thread priority to “4294967295” for user with id 0 and group with id 0.
06/15/19 00:46:45.565 Info: Maximum thread priority now is “4294967295”.
06/15/19 00:46:45.678 Info: Backing up database…
06/15/19 00:46:46.640 Initializing database…
06/15/19 00:46:46.732 Info: Loading family module (type 1) mod_homematicbidcos.so
06/15/19 00:46:46.933 Info: Loading settings from /etc/homegear/families/homematicbidcos.conf
06/15/19 00:46:47.033 Info: Loading family module (type 1) mod_miscellaneous.so
06/15/19 00:46:47.140 Info: Loading settings from /etc/homegear/families/miscellaneous.conf
06/15/19 00:46:47.144 Info: Loading family module (type 1) mod_max.so
06/15/19 00:46:47.292 Info: Loading settings from /etc/homegear/families/max.conf
06/15/19 00:46:47.342 Info: Setting up physical interfaces and GPIOs…
06/15/19 00:46:47.343 Error: Could not set owner for GPIO value file /sys/class/gpio/gpio25/edge: No such file or directory
06/15/19 00:46:47.344 Error: Could not set permissions for GPIO value file /sys/class/gpio/gpio25/edge: No such file or di$
06/15/19 00:46:47.344 Info: Dropping privileges to user homegear (110) and group homegear (117)
06/15/19 00:46:47.348 Info: Homegear is (now) running as user with id 110 and group with id 117.
06/15/19 00:46:47.913 Starting script engine server…
06/15/19 00:46:48.091 Initializing licensing controller…
06/15/19 00:46:48.091 Loading licensing controller data…
06/15/19 00:46:48.091 Loading devices…
06/15/19 00:46:48.092 Loading XML RPC devices…
06/15/19 00:46:55.049 Loading device 2
06/15/19 00:46:55.049 Module HomeMatic BidCoS: Info: Central address set to 0xFD5A74.
06/15/19 00:46:55.066 Loading XML RPC devices…
06/15/19 00:46:55.524 Loading device 3
06/15/19 00:46:55.525 Module MAX: Info: Central address set to 0xFD81F8.
06/15/19 00:46:55.529 Loading XML RPC devices…
06/15/19 00:46:55.541 Loading device 1
06/15/19 00:46:55.542 Initializing RPC client…
06/15/19 00:46:55.542 Starting XML RPC server FamilyRPCServer listening on ::1:2000…
06/15/19 00:46:55.737 RPC Server (Port 2000): Info: Enabling basic authentication for WebSockets.
06/15/19 00:46:55.738 Starting XML RPC server RPCServer1 listening on :::2001…
06/15/19 00:46:55.751 RPC Server (Port 2000): Info: RPC Server started listening on address ::1 and port 2000
06/15/19 00:46:55.930 RPC Server (Port 2001): Warning: SSL is not enabled for this RPC server. It is strongly recommended $
06/15/19 00:46:55.930 RPC Server (Port 2001): Warning: RPC server has no authorization enabled. Everybody on your local ne$
06/15/19 00:46:55.931 RPC Server (Port 2001): Info: Enabling session authentication for WebSockets.
06/15/19 00:46:55.932 Starting XML RPC server RPCServer2 listening on :::2002, SSL enabled…
06/15/19 00:46:55.950 RPC Server (Port 2001): Info: RPC Server started listening on address :: and port 2001
06/15/19 00:46:56.114 RPC Server (Port 2002): Warning: RPC server has no authorization enabled. Everybody on your local ne$
06/15/19 00:46:56.114 RPC Server (Port 2002): Info: Enabling session authentication for WebSockets.
06/15/19 00:46:56.231 Starting XML RPC server RPCServer3 listening on :::2003, SSL enabled, authentication enabled…
06/15/19 00:46:56.241 RPC Server (Port 2002): Info: RPC Server started listening on address :: and port 2002
06/15/19 00:46:56.411 RPC Server (Port 2003): Info: Enabling basic authentication.
06/15/19 00:46:56.411 RPC Server (Port 2003): Info: Enabling client certificate authentication.
06/15/19 00:46:56.411 RPC Server (Port 2003): Info: Enabling session authentication for WebSockets.
06/15/19 00:46:56.510 Initializing event handler…
06/15/19 00:46:56.511 Loading events…
06/15/19 00:46:56.512 Start listening for packets…
06/15/19 00:46:56.528 Could not write to direction file “/sys/class/gpio/gpio25/direction”: Unknown error 517
06/15/19 00:46:56.529 Could not write to edge file (/sys/class/gpio/gpio25/edge) of GPIO with index 1: No such file or dir$
06/15/19 00:46:56.530 Starting Node-BLUE server…
06/15/19 00:46:56.753 Starting IPC server…
06/15/19 00:46:56.774 Startup complete. Waiting for physical interfaces to connect.
06/15/19 00:46:56.774 Info: Waiting for physical interfaces to connect (0 of 180s).
06/15/19 00:46:56.774 All physical interfaces are connected now.

I don’t really know how to get this GPIO-Error fixed. Does anyone have an idea?

Previous topics in this forum about the banana-Pi and CC1101 are several years old and a lot of the sunxi-Kernel seems to have changed since then, so perhaps someone has managed to configure a banana-Pi to work with CC1101 on SPI sucessfully on Armbian.

Additional I also have a short question about the homegear-max-Plugin:

Is it possible to simple check the SPI-connection to the CC1101. So can i get some feedback from the CC1101 even without understanding how the pairing works? (Just to test if the SPI-connection is working)

best regards,

flashbanger

Hey @flashbanger,

I think here is your problem. Obviosly Homegear can’t get control over the GPIO-Pins. Maybe you have to add the user homegear to a group which is allowed to use the GPIO. On Raspbian this is done via sudo adduser homegear gpio.
Could you make sure that the gpio number on the BananaPi is correct? Maybe double check the pinout as your example is from an Pi 1.

A good sign of a working cc1101-spi-module is when the log states “All physical devices are connected now” (or similar) on startup.

Cheers,
Patrik

Dear Patrik,

thank you for your fast reply. I have managed to get it work. Therefore i have used the following steps:

First:

The max.conf i have used was not matching the to the electrical connection i have used. I did connected the CC1101’s GDO2 to Pin22 of the 26-Pin-Header of the BananaR1. So interruptPin needs to be set to 2. The new max.conf is:

    [TI CC1101 Module]
    id = My-C1101-Module
    default = true
    deviceType = cc1100
    device = /dev/spidev0.0
    responseDelay = 45
    interruptPin = 2
    gpio1 = 272

Second:

About the value of the gpio1… The Banana-Pi(R1) has got a 26-Pin-Header similar to the Raspberry Pi 1. Luckily i found here that the UART2_RTS-Pin (thats the one opposite to the MISO-Pin) is called PI16. I found here that the number to access the GPIO can be calculated with the following formula: (for a sunxi-Mainline-Kernel)

(position of letter in alphabet - 1) * 32 + pin number

In this case the result is 272.

After that two changes and a restart homegear.log shows this.

homegear.log

06/15/19 23:39:12.320 Starting Homegear…
06/15/19 23:39:12.320 Homegear version 0.7.39-2773
06/15/19 23:39:12.320 Git commit SHA of libhomegear-base: -
06/15/19 23:39:12.320 Git branch of libhomegear-base: -
06/15/19 23:39:12.320 Git commit SHA of Homegear: -
06/15/19 23:39:12.320 Git branch of Homegear: -
06/15/19 23:39:12.322 Info: Setting allowed core file size to “4294967295” for user with id 0 and group with id 0.
06/15/19 23:39:12.322 Info: Core file size now is “4294967295”.
06/15/19 23:39:12.322 Info: Setting maximum thread priority to “4294967295” for user with id 0 and group with id 0.
06/15/19 23:39:12.322 Info: Maximum thread priority now is “4294967295”.
06/15/19 23:39:12.429 Info: Backing up database…
06/15/19 23:39:13.971 Initializing database…
06/15/19 23:39:14.024 Debug: Loading licensing modules
06/15/19 23:39:14.038 Debug: Loading family modules
06/15/19 23:39:14.038 Info: Loading family module (type 1) mod_homematicbidcos.so
06/15/19 23:39:14.242 Info: Loading settings from /etc/homegear/families/homematicbidcos.conf
06/15/19 23:39:14.270 Debug: Loading section “General”
06/15/19 23:39:14.271 Debug: Family setting moduleenabled set to true
06/15/19 23:39:14.271 Debug: Family setting rfkey set to 00112233445566778899aabbccddeeff
06/15/19 23:39:14.271 Debug: Family setting currentrfkeyindex set to 1
06/15/19 23:39:14.272 Debug: Family setting processbroadcastwithaesenabled set to false
06/15/19 23:39:14.273 Module HomeMatic BidCoS: Debug: Loading module…
06/15/19 23:39:14.337 Info: Loading family module (type 1) mod_miscellaneous.so
06/15/19 23:39:14.451 Info: Loading settings from /etc/homegear/families/miscellaneous.conf
06/15/19 23:39:14.453 Module Miscellaneous: Debug: Loading module…
06/15/19 23:39:14.453 Info: Loading family module (type 1) mod_max.so
06/15/19 23:39:14.589 Info: Loading settings from /etc/homegear/families/max.conf
06/15/19 23:39:14.598 Debug: Loading section “General”
06/15/19 23:39:14.598 Debug: Family setting moduleenabled set to true
06/15/19 23:39:14.598 Debug: Loading section “TI CC1101 Module”
06/15/19 23:39:14.598 Debug: id set to My-C1101-Module
06/15/19 23:39:14.599 Debug: default set to 1
06/15/19 23:39:14.599 Debug: deviceType set to cc1100
06/15/19 23:39:14.599 Debug: device set to /dev/spidev0.0
06/15/19 23:39:14.599 Debug: responseDelay set to 45
06/15/19 23:39:14.599 Debug: interruptPin set to 2
06/15/19 23:39:14.599 Debug: GPIO1 set to 272
06/15/19 23:39:14.600 Module MAX: Debug: Loading module…
06/15/19 23:39:14.600 Module MAX: Debug: Creating physical device. Type defined in max.conf is: cc1100
06/15/19 23:39:14.613 Module MAX: TI CC110X “My-C1101-Module”: Debug: PATABLE will be set to 0xC0
06/15/19 23:39:14.613 Info: Setting up physical interfaces and GPIOs…
06/15/19 23:39:14.614 Debug: Setting up physical device.
06/15/19 23:39:14.614 Module MAX: TI CC110X “My-C1101-Module”: Debug: CC1100: Setting device permissions
06/15/19 23:39:14.614 Module MAX: TI CC110X “My-C1101-Module”: Debug: CC1100: Exporting GPIO
06/15/19 23:39:14.614 Debug: Exporting GPIO with index 1 and number 272 for device “cc1100”.
06/15/19 23:39:14.617 Module MAX: TI CC110X “My-C1101-Module”: Debug: CC1100: Setting GPIO permissions
06/15/19 23:39:14.617 Debug: GPIO path for GPIO with index 1 and device cc1100 set to “/sys/class/gpio/gpio272”.
06/15/19 23:39:14.618 Info: Dropping privileges to user homegear (110) and group homegear (117)
06/15/19 23:39:14.619 Info: Homegear is (now) running as user with id 110 and group with id 117.
06/15/19 23:39:15.104 Starting script engine server…
06/15/19 23:39:15.275 Script Engine Server: Debug: Waiting for script engine server’s client threads to finish.
06/15/19 23:39:15.291 Initializing licensing controller…
06/15/19 23:39:15.291 Loading licensing controller data…
06/15/19 23:39:15.291 Loading devices…
06/15/19 23:39:15.292 Loading XML RPC devices…
06/15/19 23:39:15.331 Loading XML RPC device /etc/homegear/devices/0/rf_pb-2-wm55_ge_v1_4.xml
06/15/19 23:39:15.372 Loading XML RPC device /etc/homegear/devices/0/rf_sen_mdir.xml
06/15/19 23:39:15.393 Loading XML RPC device /etc/homegear/devices/0/rf_dim_1l_644.xml
06/15/19 23:39:15.592 Loading XML RPC device /etc/homegear/devices/0/rf_s_1conf_644_le_v2_1.xml
06/15/19 23:39:15.608 Loading XML RPC device /etc/homegear/devices/0/rf_cc_vd.xml
06/15/19 23:39:15.618 Loading XML RPC device /etc/homegear/devices/0/rf_cc_rt_dn.xml
06/15/19 23:39:15.691 Loading XML RPC device /etc/homegear/devices/0/rf_dim_1t_644.xml
06/15/19 23:39:15.829 Loading XML RPC device /etc/homegear/devices/0/rf_wds_v1_0.xml
06/15/19 23:39:15.855 Loading XML RPC device /etc/homegear/devices/0/rf_rc-4-3_single_on.xml
06/15/19 23:39:15.861 Loading XML RPC device /etc/homegear/devices/0/rf_dim_1t_dr.xml
06/15/19 23:39:16.021 Loading XML RPC device /etc/homegear/devices/0/rf_sen_ep.xml
06/15/19 23:39:16.037 Loading XML RPC device /etc/homegear/devices/0/rf_s_1conf_644_le_v2_3.xml
06/15/19 23:39:16.074 Loading XML RPC device /etc/homegear/devices/0/rf_cf.xml
06/15/19 23:39:16.146 Loading XML RPC device /etc/homegear/devices/0/rf_dim_1t_644_le_v2_4.xml
06/15/19 23:39:16.309 Loading XML RPC device /etc/homegear/devices/0/rf_ws550.xml
06/15/19 23:39:16.324 Loading XML RPC device /etc/homegear/devices/0/rf_rc_12.xml
06/15/19 23:39:16.329 Loading XML RPC device /etc/homegear/devices/0/rf_sen_mdir_v1_5.xml
06/15/19 23:39:16.334 Loading XML RPC device /etc/homegear/devices/0/rf_rhs_e_v1_7.xml
06/15/19 23:39:16.339 Loading XML RPC device /etc/homegear/devices/0/rf_s_4_ba.xml
06/15/19 23:39:16.384 Loading XML RPC device /etc/homegear/devices/0/rf_wds30_ot2.xml
06/15/19 23:39:16.429 Loading XML RPC device /etc/homegear/devices/0/rf_dim_2l_644_le_v2_4.xml
06/15/19 23:39:16.589 Loading XML RPC device /etc/homegear/devices/0/rf_dw.xml
06/15/19 23:39:17.048 Loading XML RPC device /etc/homegear/devices/0/rf_rc-sec4-2.xml
06/15/19 23:39:17.097 Loading XML RPC device /etc/homegear/devices/0/rf_dim_2t_644.xml
06/15/19 23:39:17.247 Loading XML RPC device /etc/homegear/devices/0/rf_hm-wds100-c6-o-2.xml
06/15/19 23:39:17.263 Loading XML RPC device /etc/homegear/devices/0/rf_roto_wdf_solar.xml
06/15/19 23:39:17.373 Loading XML RPC device /etc/homegear/devices/0/rf_s_ba.xml
06/15/19 23:39:17.408 Loading XML RPC device /etc/homegear/devices/0/rf_bl_conf_644.xml
06/15/19 23:39:17.473 Loading XML RPC device /etc/homegear/devices/0/rf_ao.xml
06/15/19 23:39:17.637 Loading XML RPC device /etc/homegear/devices/0/rf_sc_le_v1_6.xml
06/15/19 23:39:17.660 Loading XML RPC device /etc/homegear/devices/0/rf_sen_db.xml
06/15/19 23:39:17.665 Loading XML RPC device /etc/homegear/devices/0/rf_wds_v1_1.xml
06/15/19 23:39:17.723 Loading XML RPC device /etc/homegear/devices/0/rf_tis.xml
06/15/19 23:39:17.739 Loading XML RPC device /etc/homegear/devices/0/rf_rc-key4-2.xml
06/15/19 23:39:17.771 Loading XML RPC device /etc/homegear/devices/0/rf_ou_led16_le_v1_0.xml
06/15/19 23:39:17.777 Loading XML RPC device /etc/homegear/devices/0/rf_sc_e_v1_7.xml
06/15/19 23:39:17.793 Loading XML RPC device /etc/homegear/devices/0/rf_fs_ba.xml
06/15/19 23:39:17.849 Loading XML RPC device /etc/homegear/devices/0/rf_sec_sfa.xml
06/15/19 23:39:17.875 Loading XML RPC device /etc/homegear/devices/0/rf_rc-4-2.xml
06/15/19 23:39:17.919 Loading XML RPC device /etc/homegear/devices/0/rf_rep.xml
06/15/19 23:39:17.966 Loading XML RPC device /etc/homegear/devices/0/rf_cm.xml
06/15/19 23:39:17.996 Loading XML RPC device /etc/homegear/devices/0/rf_rd.xml
06/15/19 23:39:18.010 Loading XML RPC device /etc/homegear/devices/0/rf_sec_sir_wm.xml
06/15/19 23:39:18.148 Loading XML RPC device /etc/homegear/devices/0/rf_rc_dis.xml
06/15/19 23:39:18.164 Loading XML RPC device /etc/homegear/devices/0/rf_sec_sd.xml
06/15/19 23:39:18.203 Loading XML RPC device /etc/homegear/devices/0/rf_ash550.xml
06/15/19 23:39:18.205 Loading XML RPC device /etc/homegear/devices/0/rf_s.xml
06/15/19 23:39:18.240 Loading XML RPC device /etc/homegear/devices/0/rf_wds40_th_i_2.xml
06/15/19 23:39:18.251 Loading XML RPC device /etc/homegear/devices/0/rf_s_644.xml
06/15/19 23:39:18.292 Loading XML RPC device /etc/homegear/devices/0/rf_dim_1pwm_644_le_v2_4.xml
06/15/19 23:39:18.427 Loading XML RPC device /etc/homegear/devices/0/rf_rgbw.xml
06/15/19 23:39:18.509 Loading XML RPC device /etc/homegear/devices/0/rf_s_le_v1_5.xml
06/15/19 23:39:18.544 Loading XML RPC device /etc/homegear/devices/0/rf_ddc.xml
06/15/19 23:39:18.600 Loading XML RPC device /etc/homegear/devices/0/rf_dim_1pwm_644.xml
06/15/19 23:39:18.820 Loading XML RPC device /etc/homegear/devices/0/rf_s550ia.xml
06/15/19 23:39:18.859 Loading XML RPC device /etc/homegear/devices/0/rf_rc_19.xml
06/15/19 23:39:18.872 Loading XML RPC device /etc/homegear/devices/0/rf_es_tx_wm_le_v1_0.xml
06/15/19 23:39:18.908 Loading XML RPC device /etc/homegear/devices/0/rf_dim_2pwm.xml
06/15/19 23:39:19.432 Loading XML RPC device /etc/homegear/devices/0/rf_sen_wa_od.xml
06/15/19 23:39:19.509 Loading XML RPC device /etc/homegear/devices/0/rf_sec_mdir.xml
06/15/19 23:39:19.557 Loading XML RPC device /etc/homegear/devices/0/rf_d_le_v1_9.xml
06/15/19 23:39:19.641 Loading XML RPC device /etc/homegear/devices/0/rf_keymatic.xml
06/15/19 23:39:19.666 Loading XML RPC device /etc/homegear/devices/0/rf_dis_ep_wm55_le_v1_0.xml
06/15/19 23:39:19.684 Loading XML RPC device /etc/homegear/devices/0/rf_dim_1l_644_le_v2_4.xml
06/15/19 23:39:19.862 Loading XML RPC device /etc/homegear/devices/0/rf_rc_single_on.xml
06/15/19 23:39:19.900 Loading XML RPC device /etc/homegear/devices/0/rf_s_le_v2_3.xml
06/15/19 23:39:19.965 Loading XML RPC device /etc/homegear/devices/0/rf_bl_le_v2_3.xml
06/15/19 23:39:20.072 Loading XML RPC device /etc/homegear/devices/0/rf_oligo_smart_iq.xml
06/15/19 23:39:20.552 Loading XML RPC device /etc/homegear/devices/0/rf_sci_3.xml
06/15/19 23:39:20.577 Loading XML RPC device /etc/homegear/devices/0/rf_tc_it_wm-w-eu.xml
06/15/19 23:39:20.740 Loading XML RPC device /etc/homegear/devices/0/rf_bl.xml
06/15/19 23:39:20.786 Loading XML RPC device /etc/homegear/devices/0/rf_s_8_ba.xml
06/15/19 23:39:20.811 Loading XML RPC device /etc/homegear/devices/0/rf_em_8.xml
06/15/19 23:39:20.831 Loading XML RPC device /etc/homegear/devices/0/rf_es_pmsw_le_v2_4.xml
06/15/19 23:39:20.865 Loading XML RPC device /etc/homegear/devices/0/rf_bl_conf_644_e_v2_1.xml
06/15/19 23:39:20.948 Loading XML RPC device /etc/homegear/devices/0/rf_bl_644.xml
06/15/19 23:39:21.017 Loading XML RPC device /etc/homegear/devices/0/rf_d.xml
06/15/19 23:39:21.069 Loading XML RPC device /etc/homegear/devices/0/rf_cfm_tw.xml
06/15/19 23:39:21.145 Loading XML RPC device /etc/homegear/devices/0/rf_swi.xml
06/15/19 23:39:21.154 Loading XML RPC device /etc/homegear/devices/0/rf_rc.xml
06/15/19 23:39:21.165 Loading XML RPC device /etc/homegear/devices/0/rf_sen_mdir_wm55.xml
06/15/19 23:39:21.179 Loading XML RPC device /etc/homegear/devices/0/rf_es_tx_wm.xml
06/15/19 23:39:21.202 Loading XML RPC device /etc/homegear/devices/0/rf_s_1conf_644.xml
06/15/19 23:39:21.251 Loading XML RPC device /etc/homegear/devices/0/rf_sc.xml
06/15/19 23:39:21.257 Loading XML RPC device /etc/homegear/devices/0/rf_pb-2-wm55_le_v1_3.xml
06/15/19 23:39:21.269 Loading XML RPC device /etc/homegear/devices/0/rf_dim_t.xml
06/15/19 23:39:21.338 Loading XML RPC device /etc/homegear/devices/0/rf_dim_1tconf_644_le_v2_4.xml
06/15/19 23:39:21.505 Loading XML RPC device /etc/homegear/devices/0/rf_ja_conf_644.xml
06/15/19 23:39:21.572 Loading XML RPC device /etc/homegear/devices/0/rf_cc_tc.xml
06/15/19 23:39:21.691 Loading XML RPC device /etc/homegear/devices/0/rf_cc_rt_dn_bom.xml
06/15/19 23:39:21.753 Loading XML RPC device /etc/homegear/devices/0/rf_pbi.xml
06/15/19 23:39:21.760 Loading XML RPC device /etc/homegear/devices/0/rf_winmatic.xml
06/15/19 23:39:21.786 Loading XML RPC device /etc/homegear/devices/0/rf_dim_1tconf_644.xml
06/15/19 23:39:21.891 Loading XML RPC device /etc/homegear/devices/0/rf_dim_2l_644.xml
06/15/19 23:39:22.013 Loading XML RPC device /etc/homegear/devices/0/rf_ou_led16_ge_v1_1.xml
06/15/19 23:39:22.018 Loading XML RPC device /etc/homegear/devices/0/rf_dis_ep_wm55.xml
06/15/19 23:39:22.024 Loading XML RPC device /etc/homegear/devices/0/rf_scd_v1_0.xml
06/15/19 23:39:22.030 Loading XML RPC device /etc/homegear/devices/0/rf_cfm.xml
06/15/19 23:39:22.078 Loading XML RPC device /etc/homegear/devices/0/rf_sec_sd_2.xml
06/15/19 23:39:22.084 Loading XML RPC device /etc/homegear/devices/0/rf_rc_2_fm.xml
06/15/19 23:39:22.098 Loading XML RPC device /etc/homegear/devices/0/rf_dim_2t_644_le_v2_4.xml
06/15/19 23:39:22.231 Loading XML RPC device /etc/homegear/devices/0/rf_es_pmsw.xml
06/15/19 23:39:22.277 Loading XML RPC device /etc/homegear/devices/0/rf_dim_1t_fm_lf.xml
06/15/19 23:39:22.334 Loading XML RPC device /etc/homegear/devices/0/rf_rhs.xml
06/15/19 23:39:22.340 Loading XML RPC device /etc/homegear/devices/0/rf_em_8_bit.xml
06/15/19 23:39:22.349 Loading XML RPC device /etc/homegear/devices/0/rf_sec_sco.xml
06/15/19 23:39:22.354 Loading XML RPC device /etc/homegear/devices/0/rf_rd_le_v1_3.xml
06/15/19 23:39:22.366 Loading XML RPC device /etc/homegear/devices/0/rf_st_6_sh.xml
06/15/19 23:39:22.377 Loading XML RPC device /etc/homegear/devices/0/rf_dim_t_le_v1_9.xml
06/15/19 23:39:22.426 Loading XML RPC device /etc/homegear/devices/0/rf_ks550.xml
06/15/19 23:39:22.436 Loading XML RPC device /etc/homegear/devices/0/rf_tis_le_v1_0.xml
06/15/19 23:39:22.441 Loading XML RPC device /etc/homegear/devices/0/rf_sec_sd_schueco.xml
06/15/19 23:39:22.452 Loading XML RPC device /etc/homegear/devices/0/rf_pb-2.xml
06/15/19 23:39:22.465 Loading XML RPC device /etc/homegear/devices/0/rf_resc_win_pcb_sc.xml
06/15/19 23:39:22.520 Loading XML RPC device /etc/homegear/devices/0/rf_sen_li.xml
06/15/19 23:39:22.525 Loading XML RPC device /etc/homegear/devices/0/rf_sec_mdir_v1_5.xml
06/15/19 23:39:22.531 Loading XML RPC device /etc/homegear/devices/0/rf_4dis.xml
06/15/19 23:39:22.537 Loading XML RPC device /etc/homegear/devices/0/rf_cc_tc_le_v1_9.xml
06/15/19 23:39:22.626 Loading XML RPC device /etc/homegear/devices/0/rf_s_2conf_644.xml
06/15/19 23:39:22.682 Loading XML RPC device /etc/homegear/devices/0/rf_dis_wm55.xml
06/15/19 23:39:22.695 Loading XML RPC device /etc/homegear/devices/0/rf_d_le_v1_7.xml
06/15/19 23:39:22.728 Loading XML RPC device /etc/homegear/devices/0/rf_rhs_le_v1_6.xml
06/15/19 23:39:22.741 Loading XML RPC device /etc/homegear/devices/0/rf_s_mega168.xml
06/15/19 23:39:22.758 Loading XML RPC device /etc/homegear/devices/0/rf_bl_conf_644_e_v2_0.xml
06/15/19 23:39:22.845 Loading device 2
06/15/19 23:39:22.845 Module HomeMatic BidCoS: Info: Central address set to 0xFD5A74.
06/15/19 23:39:22.857 Loading XML RPC devices…
06/15/19 23:39:22.867 Loading XML RPC device /etc/homegear/devices/4/BC-TC-C-WM-4.xml
06/15/19 23:39:22.939 Loading XML RPC device /etc/homegear/devices/4/BC-RT-TRX-CyG.xml
06/15/19 23:39:23.014 Loading XML RPC device /etc/homegear/devices/4/BC-RT-TRX-CyN.xml
06/15/19 23:39:23.072 Loading XML RPC device /etc/homegear/devices/4/BC-SC-Rd-WM-2.xml
06/15/19 23:39:23.078 Loading XML RPC device /etc/homegear/devices/4/BC-PB-2-WM.xml
06/15/19 23:39:23.086 Loading XML RPC device /etc/homegear/devices/4/BC-RT-TRX-CyG-3.xml
06/15/19 23:39:23.162 Loading XML RPC device /etc/homegear/devices/4/BC-SC-Rd-WM.xml
06/15/19 23:39:23.172 Loading XML RPC device /etc/homegear/devices/4/BC-RT-TRX-CyG-2.xml
06/15/19 23:39:23.207 Loading XML RPC device /etc/homegear/devices/4/BC-TC-C-WM-2.xml
06/15/19 23:39:23.259 Loading XML RPC device /etc/homegear/devices/4/BC-TS-Sw-Pl.xml
06/15/19 23:39:23.314 Loading device 3
06/15/19 23:39:23.314 Module MAX: Info: Central address set to 0xFD81F8.
06/15/19 23:39:23.335 Loading XML RPC devices…
06/15/19 23:39:23.341 Loading XML RPC device /etc/homegear/devices/254/OpenWeatherMap.xml
06/15/19 23:39:23.345 Loading XML RPC device /etc/homegear/devices/254/VirtualWindowContact.xml
06/15/19 23:39:23.351 Loading XML RPC device /etc/homegear/devices/254/VirtualDimmer.xml
06/15/19 23:39:23.354 Loading device 1
06/15/19 23:39:23.354 Initializing RPC client…
06/15/19 23:39:23.355 Starting XML RPC server FamilyRPCServer listening on ::1:2000…
06/15/19 23:39:23.526 RPC Server (Port 2000): Info: Enabling basic authentication for WebSockets.
06/15/19 23:39:23.528 Starting XML RPC server RPCServer1 listening on :::2001…
06/15/19 23:39:23.541 RPC Server (Port 2000): Info: RPC Server started listening on address ::1 and port 2000
06/15/19 23:39:23.676 RPC Server (Port 2001): Warning: SSL is not enabled for this RPC server. It is strongly recommended to disable all unencrypted RPC servers when the connected clients support it.
06/15/19 23:39:23.676 RPC Server (Port 2001): Warning: RPC server has no authorization enabled. Everybody on your local network can login into this installation. It is strongly recommended to enable authorization on all RPC servers when the connected clients support it.
06/15/19 23:39:23.676 RPC Server (Port 2001): Info: Enabling session authentication for WebSockets.
06/15/19 23:39:23.677 Starting XML RPC server RPCServer2 listening on :::2002, SSL enabled…
06/15/19 23:39:23.694 RPC Server (Port 2001): Info: RPC Server started listening on address :: and port 2001
06/15/19 23:39:23.792 RPC Server (Port 2002): Warning: RPC server has no authorization enabled. Everybody on your local network can login into this installation. It is strongly recommended to enable authorization on all RPC servers when the connected clients support it.
06/15/19 23:39:23.792 RPC Server (Port 2002): Info: Enabling session authentication for WebSockets.
06/15/19 23:39:23.951 Starting XML RPC server RPCServer3 listening on :::2003, SSL enabled, authentication enabled…
06/15/19 23:39:23.961 RPC Server (Port 2002): Info: RPC Server started listening on address :: and port 2002
06/15/19 23:39:24.150 RPC Server (Port 2003): Info: Enabling basic authentication.
06/15/19 23:39:24.150 RPC Server (Port 2003): Info: Enabling client certificate authentication.
06/15/19 23:39:24.150 RPC Server (Port 2003): Info: Enabling session authentication for WebSockets.
06/15/19 23:39:24.249 Initializing event handler…
06/15/19 23:39:24.257 Loading events…
06/15/19 23:39:24.259 Start listening for packets…
06/15/19 23:39:24.281 Module MAX: TI CC110X “My-C1101-Module”: Debug: CC1100: Setting GPIO direction
06/15/19 23:39:24.282 Module MAX: TI CC110X “My-C1101-Module”: Debug: CC1100: Setting GPIO edge
06/15/19 23:39:24.286 Starting Node-BLUE server…
06/15/19 23:39:24.286 Node-BLUE Server: Debug: Waiting for flows engine server’s client threads to finish.
06/15/19 23:39:24.289 Module MAX: TI CC110X “My-C1101-Module”: Debug: MAX! packet received, but CRC failed.
06/15/19 23:39:25.049 Starting IPC server…
06/15/19 23:39:25.049 IPC Server: Debug: Waiting for IPC server’s client threads to finish.
06/15/19 23:39:25.085 Startup complete. Waiting for physical interfaces to connect.
06/15/19 23:39:25.086 Info: Waiting for physical interfaces to connect (0 of 180s).
06/15/19 23:39:25.086 All physical interfaces are connected now.

also pairing works:

homegear.log while pairing
06/15/19 23:42:42.371 Debug (My-C1101-Module): Packet 170004001A2D4F000000001101A14F455130393433383732 enters raisePacketReceived.
06/15/19 23:42:42.371 Debug (My-C1101-Module): Packet 170004001A2D4F000000001101A14F455130393433383732 is now passed to the EventHandler.
06/15/19 23:42:42.370 MAX packet received (My-C1101-Module, RSSI: 0x3A): 170004001A2D4F000000001101A14F455130393433383732
06/15/19 23:42:42.372 Module MAX: Creating SAVEPOINT PacketQueue1715535_0
06/15/19 23:42:42.373 Debug (My-C1101-Module): Packet processing of packet 170004001A2D4F000000001101A14F455130393433383732 took 2 ms.
06/15/19 23:42:43.477 Module MAX: TI CC110X "My-C1101-Module": Info: Sending (My-C1101-Module, WOR: yes): 0B000001FD81F81A2D4F0000
06/15/19 23:42:43.535 Debug (My-C1101-Module): Packet 0E0002021A2D4FFD81F80001190027 enters raisePacketReceived.
06/15/19 23:42:43.536 Debug (My-C1101-Module): Packet 0E0002021A2D4FFD81F80001190027 is now passed to the EventHandler.
06/15/19 23:42:43.535 MAX packet received (My-C1101-Module, RSSI: 0x38): 0E0002021A2D4FFD81F80001190027
06/15/19 23:42:43.536 Module MAX: Popping from MAX! queue: 0
06/15/19 23:42:43.536 Module MAX: Message now at front: Message type: 0x2 Message subtype: 0xFFFFFFFF
06/15/19 23:42:43.867 Not loading XML RPC device translation /etc/homegear/devices/4/l10n/en-US/BC-RT-TRX-CyN.xml: Translation not found.
06/15/19 23:42:43.867 Not loading XML RPC device translation /etc/homegear/devices/4/l10n/en-US/BC-RT-TRX-CyN.xml: Translation not found.
06/15/19 23:42:43.876 Module MAX: Added peer 0x1A2D4F.
06/15/19 23:42:43.876 Module MAX: Popping from MAX! queue: 0
06/15/19 23:42:43.876 Module MAX: Packet now at front of queue: 0F010003FD81F81A2D4F00130F956AAA
06/15/19 23:42:43.877 Module MAX: TI CC110X "My-C1101-Module": Info: Sending (My-C1101-Module, WOR: no): 0F010003FD81F81A2D4F00130F956AAA
06/15/19 23:42:43.883 Debug (My-C1101-Module): Packet processing of packet 0E0002021A2D4FFD81F80001190027 took 347 ms.
06/15/19 23:42:43.946 Debug (My-C1101-Module): Packet 0E0102021A2D4FFD81F80001190027 enters raisePacketReceived.
06/15/19 23:42:43.947 Debug (My-C1101-Module): Packet 0E0102021A2D4FFD81F80001190027 is now passed to the EventHandler.
06/15/19 23:42:43.946 MAX packet received (My-C1101-Module, RSSI: 0x3C): 0E0102021A2D4FFD81F80001190027
06/15/19 23:42:43.948 Module MAX: Popping from MAX! queue: 0
06/15/19 23:42:43.948 Module MAX: Message now at front: Message type: 0x2 Message subtype: 0xFFFFFFFF
06/15/19 23:42:43.948 Module MAX: Popping from MAX! queue: 0
06/15/19 23:42:43.948 Module MAX: Info: Queue 0 is empty and there are no pending queues.
06/15/19 23:42:43.948 Debug (My-C1101-Module): Packet processing of packet 0E0102021A2D4FFD81F80001190027 took 1 ms.
06/15/19 23:42:43.975 Module MAX: Debug: Deleting queue 0 for peer with address 0x1A2D4F
06/15/19 23:42:44.219 Module MAX: Releasing SAVEPOINT PacketQueue1715535_0
06/15/19 23:42:59.812 Debug (My-C1101-Module): Packet 0F0004601A2D4F0000000019002800E9 enters raisePacketReceived.
06/15/19 23:42:59.812 Debug (My-C1101-Module): Packet 0F0004601A2D4F0000000019002800E9 is now passed to the EventHandler.
06/15/19 23:42:59.811 MAX packet received (My-C1101-Module, RSSI: 0x39): 0F0004601A2D4F0000000019002800E9
06/15/19 23:42:59.815 Module MAX: Info: ACTUAL_TEMPERATURE on channel 1 of peer 1 with serial number OEQ0943872 was set to 0x00E9.
06/15/19 23:42:59.816 Module MAX: Info: CONTROL_MODE on channel 1 of peer 1 with serial number OEQ0943872 was set to 0x01.
06/15/19 23:42:59.816 Module MAX: Info: LOCKED on channel 1 of peer 1 with serial number OEQ0943872 was set to 0x00.
06/15/19 23:42:59.816 Module MAX: Info: SET_TEMPERATURE on channel 1 of peer 1 with serial number OEQ0943872 was set to 0x28.
06/15/19 23:42:59.816 Module MAX: Info: VALVE_STATE on channel 1 of peer 1 with serial number OEQ0943872 was set to 0x00.
06/15/19 23:42:59.819 Debug (My-C1101-Module): Packet processing of packet 0F0004601A2D4F0000000019002800E9 took 6 ms.

Hope that helps somone with a similar problem.

Note that this may also work for the Banana Pi M1 as the UART2_RTS-Pin is also connected to PI16…

best,

flashbanger

1 Like

Good work!!