FHEM Forum

FHEM => English Corner => Thema gestartet von: chanky am 05 Januar 2015, 13:39:20

Titel: debugging SCC
Beitrag von: chanky am 05 Januar 2015, 13:39:20
Hi everyone,

I recently purchased a SCC for my RPi and i still havent managed to get it working. After following absolutely every instruction on the net still no success. Ive reached to the point where i suspect the SCC module i purchased from Busware is defect. Could anyone kindly assist me in crosschecking if the Hardware is defect?

So far i have done as follows:

followed the instructions here step by step: http://blog.krannich.de/2014/08/busware-scc-in-fhem-einrichten/ that is:

Freeing up the serial interface:
in /etc/inittab and in /boot/cmdline.txt

Modified  /etc/init.d/fhem
in the switch start in included:


echo "resetting 868MHz extension..."
if test ! -d /sys/class/gpio/gpio17; then echo 17 > /sys/class/gpio/export; fi
if test ! -d /sys/class/gpio/gpio18; then echo 18 > /sys/class/gpio/export; fi
echo out > /sys/class/gpio/gpio17/direction
echo out > /sys/class/gpio/gpio18/direction
echo 1 > /sys/class/gpio/gpio18/value
echo 0 > /sys/class/gpio/gpio17/value
sleep 1
echo 1 > /sys/class/gpio/gpio17/value
sleep 1


After rebooting the led was blinking approximately every second.

I logged on to myip:8083/fhem/

added define SCC CUL /dev/ttyAMA0@38400 1234
attr SCC group CUL
attr SCC model CUL
attr SCC rfmode SlowRF
attr SCC room System
#EOF


But my SCC is stuck at the status opened and will not initialise


2015.01.05 13:13:16 3: telnetPort: port 7072 opened
2015.01.05 13:13:17 3: WEB: port 8083 opened
2015.01.05 13:13:17 3: WEBphone: port 8084 opened
2015.01.05 13:13:17 3: WEBtablet: port 8085 opened
2015.01.05 13:13:17 2: eventTypes: loaded 3 events from ./log/eventTypes.txt
2015.01.05 13:13:17 1: Including ./FHEM/01_scc.cfg
2015.01.05 13:13:17 3: Opening SCC device /dev/ttyAMA0
2015.01.05 13:13:18 3: Setting SCC baudrate to 38400
2015.01.05 13:13:18 3: SCC device opened
2015.01.05 13:13:41 1: Cannot init /dev/ttyAMA0, ignoring it (SCC)
2015.01.05 13:13:41 1: Including ./log/fhem.save
2015.01.05 13:13:41 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.
2015.01.05 13:13:41 0: Server started with 9 defined entities (version $Id: fhem.pl 6913 2014-11-08 10:32:44Z rudolfkoenig $, os linux, user fhem, pid 2253)


so i tried to manually connect to scc via the command screen /dev/ttyAMA0 but i can connect but if i try for instance "V+return" there is no response. i have tried changing permission of the port etc. nothing i even added user fhem to group dialout but nothing. How can i verify if SCC Hardware is working or not?

Any assistance will be will be highly appreciated.

Thanks inadvance
Titel: Antw:debugging SCC
Beitrag von: DerFrickler am 10 Januar 2015, 23:27:22
It looks like that the instruction you are referencing is taken from original busware.de-page: http://busware.de/tiki-index.php?page=SCC_Installation

first of all, is there a need to do "reset of 868MHz extension" also for Port 18? as the original installation manual says: "For normal operation leave it untouched or pull HIGH!" with an exclamation mark at the end  ;) what ever this means.

maybe it's worth to directly contact busware.de: http://busware.de/tiki-index.php?page=Impressum

I'm using the "stapelbarer CC1101" and did installation according to busware.de instruction "step-by-step", installation was done on a fresh installed Debian Wheezy without setting any further rights, for rfmode HomeMatic it worked directly.