Unable to leverage CNI

Discussion in 'C-Bus Toolkit and C-Gate Software' started by chromus, Jul 28, 2019.

  1. chromus

    chromus

    Joined:
    Jan 27, 2014
    Messages:
    422
    Likes Received:
    50
    Location:
    Perth
    Hi All,

    I have a somewhat ancient White Wiser unit (the 1 with the black box CNI and separate White Wiser brain box/wifi router).

    The Wiser has been playing up so rather than spend a lot of cash on a replacement I am trying to setup a RaspberryPi based Homekit Bridge.

    I followed @DarylMc execellent updated instruction spreadsheet. He helped me with some basic troubleshooting and I know my config.json is being processed.

    I have narrowed things down to an error to do with the CNI rejecting connection attempts from the PI as per this error:

    Can\'t open: C-Bus interface (port failure (Connection refused (Connection refused))):192.168.1.253:10001' }

    I CAN connect to the CNI from my Win10 Laptop using local CGATE, but the remote CGATE on the Pi is unable to connect to the CNI. My local CGATE can turn individual lights on and off etc from the Applications menu.

    The CNI has NO password set, I have confirmed the Control Systems IP Utility details for the CNI match the
    CNI Port 80 readout page

    When connecting to the CNI's port 80 readout page I get
    CNI2
    Description: CNI Mk 2
    Project: BEENYUP
    Part name: WISERCNI
    C-Bus status: Ready for client connection
    Network voltage: 22.9V
    IP Address: 192.168.1.253 << matches the IP
    Netmask: 255.255.255.0
    Gateway: 192.168.1.1
    TCP Port: 10001 << matches the port
    Unit Address: 003
    MAC Address: 00:17:DD:01:2A:43
    Serial Number: 001008383311
    C-Bus Firmware: 5.4.00
    Ethernet Firmware: 1.1.1
    Hardware variant: Inline


    Any pointers would be gratefully Rx

    Here is an error log print from the PI
    Code:
    Jul 28 11:34:16 cbuspi homebridge[551]: 2019-07-28T03:34:16.828Z cbus:client rx event { time: '20190728-113416', code: 755, processed: false, message: '//BEENYUP/254 b2646ed0-92ad-1037-985e-91bb1f49737d InterfaceState=streamsclosed, TargetState=closed', type: 'event', raw: '#e# 20190728-113416 755 //BEENYUP/254 b2646ed0-92ad-1037-985e-91bb1f49737d InterfaceState=streamsclosed, TargetState=closed' }
    Jul 28 11:34:16 cbuspi homebridge[551]: 2019-07-28T03:34:16.829Z cbus:client rx event { time: '20190728-113416', code: 755, processed: false, message: '//BEENYUP/254 b2646ed0-92ad-1037-985e-91bb1f49737d InterfaceState=closed, TargetState=closed', type: 'event', raw: '#e# 20190728-113416 755 //BEENYUP/254 b2646ed0-92ad-1037-985e-91bb1f49737d InterfaceState=closed, TargetState=closed' }
    Jul 28 11:34:16 cbuspi homebridge[551]: 2019-07-28T03:34:16.830Z cbus:client rx event { time: '20190728-113416', code: 754, processed: false, message: '//BEENYUP/254 b2646ed0-92ad-1037-985e-91bb1f49737d State=new Previous=sync Reason=Interface Closed', type: 'event', raw: '#e# 20190728-113416 754 //BEENYUP/254 b2646ed0-92ad-1037-985e-91bb1f49737d State=new Previous=sync Reason=Interface Closed' }
    Jul 28 11:34:31 cbuspi homebridge[551]: 2019-07-28T03:34:31.833Z cbus:client rx event { time: '20190728-113431', code: 755, processed: false, message: '//BEENYUP/254 b2646ed0-92ad-1037-985e-91bb1f49737d InterfaceState=opening, TargetState=running', type: 'event', raw: '#e# 20190728-113431 755 //BEENYUP/254 b2646ed0-92ad-1037-985e-91bb1f49737d InterfaceState=opening, TargetState=running' }
    Jul 28 11:34:31 cbuspi homebridge[551]: 2019-07-28T03:34:31.841Z cbus:client rx event { time: '20190728-113431', code: 911, processed: false, message: '//BEENYUP/254 b2646ed0-92ad-1037-985e-91bb1f49737d Can\'t open: C-Bus interface (port failure (Connection refused (Connection refused))):192.168.1.253:10001', type: 'event', raw: '#e# 20190728-113431 911 //BEENYUP/254 b2646ed0-92ad-1037-985e-91bb1f49737d Can\'t open: C-Bus interface (port failure (Connection refused (Connection refused))):192.168.1.253:10001' }
    Jul 28 11:34:31 cbuspi homebridge[551]: 2019-07-28T03:34:31.842Z cbus:client rx event { time: '20190728-113431', code: 755, processed: false, message: '//BEENYUP/254 b2646ed0-92ad-1037-985e-91bb1f49737d InterfaceState=closing, TargetState=closed', type: 'event', raw: '#e# 20190728-113431 755 //BEENYUP/254 b2646ed0-92ad-1037-985e-91bb1f49737d InterfaceState=closing, TargetState=closed' }
    Jul 28 11:34:31 cbuspi homebridge[551]: 2019-07-28T03:34:31.843Z cbus:client rx event { time: '20190728-113431', code: 754, processed: false, message: '//BEENYUP/254 b2646ed0-92ad-1037-985e-91bb1f49737d State=sync Previous=new Reason=closing network', type: 'event', raw: '#e# 20190728-113431 754 //BEENYUP/254 b2646ed0-92ad-1037-985e-91bb1f49737d State=sync Previous=new Reason=closing network' }
    Jul 28 11:34:31 cbuspi homebridge[551]: 2019-07-28T03:34:31.845Z cbus:client rx event { time: '20190728-113431', code: 755, processed: false, message: '//BEENYUP/254 b2646ed0-92ad-1037-985e-91bb1f49737d InterfaceState=streamsclosed, TargetState=closed', type: 'event', raw: '#e# 20190728-113431 755 //BEENYUP/254 b2646ed0-92ad-1037-985e-91bb1f49737d InterfaceState=streamsclosed, TargetState=closed' }
    Jul 28 11:34:31 cbuspi homebridge[551]: 2019-07-28T03:34:31.847Z cbus:client rx event { time: '20190728-113431', code: 755, processed: false, message: '//BEENYUP/254 b2646ed0-92ad-1037-985e-91bb1f49737d InterfaceState=closed, TargetState=closed', type: 'event', raw: '#e# 20190728-113431 755 //BEENYUP/254 b2646ed0-92ad-1037-985e-91bb1f49737d InterfaceState=closed, TargetState=closed' }
    Jul 28 11:34:31 cbuspi homebridge[551]: 2019-07-28T03:34:31.849Z cbus:client rx event { time: '20190728-113431', code: 754, processed: false, message: '//BEENYUP/254 b2646ed0-92ad-1037-985e-91bb1f49737d State=new Previous=sync Reason=Interface Closed', type: 'event', raw: '#e# 20190728-113431 754 //BEENYUP/254 b2646ed0-92ad-1037-985e-91bb1f49737d State=new Previous=sync Reason=Interface Closed' }
    
     
    chromus, Jul 28, 2019
    #1
  2. chromus

    DarylMc

    Joined:
    Mar 24, 2006
    Messages:
    1,308
    Likes Received:
    49
    Location:
    Cleveland, QLD, Australia
    Hi
    I’ve never used the Wiser2 CNI so I’m not familiar with any peculiarities but a few things could be checked first.
    Check your Homebridge config client_ip_address is 127.0.0.1
    The IP address and port that CGate will use for the CNI is in the CBus project.xml file.
    Make sure you are only opening one connection to the CNI at a time.
     
    DarylMc, Aug 3, 2019
    #2
  3. chromus

    chromus

    Joined:
    Jan 27, 2014
    Messages:
    422
    Likes Received:
    50
    Location:
    Perth
    Thanks for looking Daryl, turned out to be a broken CNI, replaced and it "just worked" so all sorted
     
    chromus, Aug 29, 2019
    #3
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.