HM-MOD-RPI-PCB with OCCU getting started problem

Fragen, Support etc.

Moderator: Co-Administratoren

Antworten
bosschaert
Beiträge: 8
Registriert: 25.03.2016, 23:20

HM-MOD-RPI-PCB with OCCU getting started problem

Beitrag von bosschaert » 25.03.2016, 23:33

Hi,

I bought the HM-MOD-RPI-PCB, soldered it together and put it in my pi. Rather than running RaspberryMatic I would like to run OCCU on my own operating system. However, I'm running into a few problems...

When I to ls /dev I can see that the following devices are there: ccu2-ic200 and ttyAMA0 - does this mean that the HM-MOD-RPI-PCB is correctly recognized?

I downloaded the OCCU, both the 1.0.0 version and the 2.15.5 version. Now I'd like to start running it. I have run the install.sh script and now I do 'sudo ./start_hm.sh'.

When I go to http://localhost:8181 in a browser I get 'Not Found' - is this the correct address?

When I look at the syslog, I'm seeing the following (with occu 2.15.5):

Code: Alles auswählen

Mar 25 22:17:54 zzz rfd: () CCU2CommController::startCoprocessorApp(): Trying to start coprocessor application
Mar 25 22:17:55 zzz rfd: CCU2CommController::startCoprocessorAppThreadFunction(): Send start command
Mar 25 22:17:55 zzz rfd: CCU2CoprocessorCommand::CCU2CoprocessorCommand(): Message too small: 0 bytes.
Mar 25 22:17:55 zzz rfd: () CCU2CommController::handleIncomingSerialFrame(): Command not parseable.
Mar 25 22:17:56 zzz ReGaHss: Info: Create thread 'HssComTestThread', stack size = 131072, ThreadID = 1977689168, Called-PID = 1180 [../Platform/Common/iseSysLx.cpp (1025)]
Mar 25 22:17:56 zzz ReGaHss: Info: Start thread 'HssComTestThread, ThreadID = 1977689168, PID = 1180 [../Platform/Common/iseSysLx.cpp (1187)]
Mar 25 22:17:56 zzz ReGaHss: Info: HssComTestThread thread function started [../Platform/RT/iseRTHss.cpp (206)]
Mar 25 22:17:56 zzz ReGaHss: Info: HssComTestThread: RegisterOnChange succeeded [../Platform/RT/iseRTHss.cpp (210)]
Mar 25 22:17:56 zzz ReGaHss: Info: HssComTestThread: clear all running IDs [../Platform/RT/iseRTHss.cpp (222)]
Mar 25 22:17:56 zzz rfd: () CCU2CommController::waitForCoProcessorResponse(): Timeout while waiting for response.
Mar 25 22:17:59 zzz rfd: CCU2CommController::init(): Init failed. Cannot start coprocessor application.
Mar 25 22:18:00 zzz rfd: () CCU2CommController::waitForCoProcessorResponse(): Timeout while waiting for response.
Mar 25 22:18:00 zzz rfd: () CCU2CommController::setCSMACAEnabled(): Error disabling CSMA/CA.
Mar 25 22:18:01 zzz rfd: () CCU2CommController::waitForCoProcessorResponse(): Timeout while waiting for response.
Mar 25 22:18:01 zzz rfd: No BidCoS-Interface available
Mar 25 22:18:01 zzz rfd: Error initializing interfaces
With the 1.0.0 version, I'm getting a different error - initially it says 'Coprocessor entered application. Life is good.' but then it says 'Init failed. Serial number could not be determined and is not set/'overridden' in rfd config file.':

Code: Alles auswählen

Mar 25 22:15:21 zzz rfd: () CCU2CommController::startCoprocessorApp(): Trying to start coprocessor application
Mar 25 22:15:21 zzz rfd: CCU2CommController::startCoprocessorAppThreadFunction(): Send start command
Mar 25 22:15:22 zzz rfd: () CCU2CommController::handleIdentifyEvent(): Handling incoming identify event.
Mar 25 22:15:22 zzz rfd: () CCU2CommController::handleIdentifyEvent(): Coprocessor entered application. Life is good.
Mar 25 22:15:22 zzz ReGaHss: Info: Create thread 'HssComTestThread', stack size = 131072, ThreadID = 1977689168, Called-PID = 1047 [../Platform/Common/iseSysLx.cpp (1025)]
Mar 25 22:15:22 zzz ReGaHss: Info: Start thread 'HssComTestThread, ThreadID = 1977689168, PID = 1047 [../Platform/Common/iseSysLx.cpp (1187)]
Mar 25 22:15:22 zzz ReGaHss: Info: HssComTestThread thread function started [../Platform/RT/iseRTHss.cpp (206)]
Mar 25 22:15:22 zzz ReGaHss: Info: HssComTestThread: RegisterOnChange succeeded [../Platform/RT/iseRTHss.cpp (210)]
Mar 25 22:15:22 zzz ReGaHss: Info: HssComTestThread: clear all running IDs [../Platform/RT/iseRTHss.cpp (222)]
Mar 25 22:15:23 zzz rfd: CCU2CommController::init(): Coprocessor Bootloader Version is:
Mar 25 22:15:23 zzz rfd: CCU2CommController::init(): Coprocessor Firmware Version is:
Mar 25 22:15:24 zzz rfd: () CCU2CommController::waitForCoProcessorResponse(): Timeout while waiting for response.
Mar 25 22:15:24 zzz rfd: () CCU2CommController::setCSMACAEnabled(): Error disabling CSMA/CA.
Mar 25 22:15:25 zzz rfd: () CCU2CommController::waitForCoProcessorResponse(): Timeout while waiting for response.
Mar 25 22:15:26 zzz rfd: () CCU2CommController::waitForCoProcessorResponse(): Timeout while waiting for response.
Mar 25 22:15:26 zzz rfd: CCU2CommController::readSerialNumber(): Could not read serial number from coprocessor.
Mar 25 22:15:26 zzz rfd: Init failed. Serial number could not be determined and is not set/'overridden' in rfd config file.
Mar 25 22:15:26 zzz rfd: No BidCoS-Interface available
Mar 25 22:15:26 zzz rfd: Error initializing interfaces
Anyone an idea what I need to do to get started?

Thanks!

David

PS I can read German, so feel free to respond in German.

bosschaert
Beiträge: 8
Registriert: 25.03.2016, 23:20

Re: HM-MOD-RPI-PCB with OCCU getting started problem

Beitrag von bosschaert » 11.04.2016, 18:33

I reverted back to RaspberryMatic and that works, but I would be interested in the steps needed to get OCCU running on simple raspbian linux. Does anyone have these instructions?

bosschaert
Beiträge: 8
Registriert: 25.03.2016, 23:20

Re: HM-MOD-RPI-PCB with OCCU getting started problem

Beitrag von bosschaert » 14.04.2016, 22:52

I finally got everything to work they way I wanted: on Raspbian Jessie.

Here's what I did:

I followed these instructions: http://homematic-forum.de/forum/viewtop ... 56&t=28905 although I did not create the separate partition as I don't use the OCC backup functionality (I always use https://github.com/billw2/rpi-clone to backup my entire Pi)

Then I made the changes that michio suggested: http://homematic-forum.de/forum/viewtop ... 20#p274746

And finally I had to make one additional change: http://homematic-forum.de/forum/viewtop ... 30#p278872

And now it works. I am running openhab on the same Pi device to integrate with a few other things and bring it all together. Works pretty neat!

zioalex
Beiträge: 4
Registriert: 06.04.2017, 07:17

Re: HM-MOD-RPI-PCB with OCCU getting started problem

Beitrag von zioalex » 06.04.2017, 07:22

Hi, after some tries and trouble I managed to make almost everything working.

The only service that is not yet running is the rfd.

Running it manually I get:

Code: Alles auswählen

root@raspberrypi:/etc/config# /bin/rfd  -f /etc/config/rfd.conf -l 0 -c
2017/04/06 07:20:25.843 <Info> BidCoS-Service started
2017/04/06 07:20:25.852 <Info> XmlRpc Server is listening on TCP port 2001
2017/04/06 07:20:25.861 <Debug> CCU2CommController::init() - Improved initialization.
2017/04/06 07:20:25.862  CCU2CommController::SendSystemCommdand()
2017/04/06 07:20:25.862  CCU2CommController::SendSystemCommdand() sending: fd 00 03 00 00 00 18 00 
2017/04/06 07:20:25.863 <Debug> CCU2CommController::improvedInit() - Coprocessor state could not be determined.
2017/04/06 07:20:25.863 <Error> CCU2CommController::improvedInit() - Identify response string not handled: 
2017/04/06 07:20:30.865 <Debug> CCU2CommController::improvedInit() - Timeout while waiting for coprocessor application
2017/04/06 07:20:30.865  CCU2CommController::SendSystemCommdand()
2017/04/06 07:20:30.866  CCU2CommController::SendSystemCommdand() sending: fd 00 04 00 01 0a 00 3d 2c 
2017/04/06 07:20:30.866 <Error> () CCU2CommController::setCSMACAEnabled(): Error disabling CSMA/CA.
2017/04/06 07:20:30.866 <Error> No BidCoS-Interface available
2017/04/06 07:20:30.866 <Warning> Error initializing interfaces
Do you have any idea?
Thanks
Alessandro

zioalex
Beiträge: 4
Registriert: 06.04.2017, 07:17

Re: HM-MOD-RPI-PCB with OCCU getting started problem

Beitrag von zioalex » 18.04.2017, 12:53

This issue was solved thanks to @leonsio at https://github.com/leonsio/YAHM/issues/109

Antworten

Zurück zu „Allgemeines zur OCCU“