Homebridge UI raspberry pi image

Discussion in 'Voice Control' started by DarylMc, Jul 9, 2020.

  1. DarylMc

    theboyg

    Joined:
    Apr 3, 2005
    Messages:
    210
    Likes Received:
    9
    I can reproduce this every time, so something odd at my end. Just happened again, as the power saving kicked in. From the logs, there's a 16 mins gap on Homebridge of nothing in the logs - then Homebridge reappears

    [10/26/2020, 16:16:39] [HB Supervisor] OS: Linux 5.4.51-v7+ arm
    [10/26/2020, 16:16:39] [HB Supervisor] Node.js v12.19.0 /usr/local/bin/node
    [10/26/2020, 16:16:39] [HB Supervisor] Homebridge Path: /usr/local/lib/node_modules/homebridge/bin/homebridge
    [10/26/2020, 16:16:39] [HB Supervisor] UI Path: /usr/local/lib/node_modules/homebridge-config-ui-x/dist/bin/standalone.js
    [10/26/2020, 16:16:39] [HB Supervisor] Starting Homebridge with extra flags: -I
    [10/26/2020, 16:16:39] [HB Supervisor] Started Homebridge v1.1.6 with PID: 744
    [10/26/2020, 16:16:42] Loaded config.json with 0 accessories and 10 platforms.
    [10/26/2020, 16:16:42] ---
    [10/26/2020, 16:16:44] Loaded plugin: [email protected]
    [10/26/2020, 16:16:44] Registering platform 'homebridge-cbus.CBus'
    [10/26/2020, 16:16:44] ---
    [10/26/2020, 16:16:44] Loaded plugin: [email protected]
    [10/26/2020, 16:16:44] Registering platform 'homebridge-comfort.Comfort'


    Then I see this

    2020-10-26T16:16:56.341Z cbus:client C-Gate socket error: Error: connect ECONNREFUSED 127.0.0.1:20023
    2020-10-26T16:16:56.342Z cbus:client C-Gate connection could not be opened; exiting.

    And Homebridge keeps looping. The only way to fix is to restart the whole Pi via the Homebridge UI, restarting Homebridge on it's own doesn't fix.
     
    theboyg, Oct 26, 2020
    #41
  2. DarylMc

    DarylMc

    Joined:
    Mar 24, 2006
    Messages:
    1,308
    Likes Received:
    49
    Location:
    Cleveland, QLD, Australia
    In the UI, Homebridge settings, Startup options, turn on "Homebridge Debug Mode".
    Lots more info.
    Logs should then be showing "Starting Homebridge with extra flags: -I -D"

    Clear the logs and start a fresh log.
    If you then go and pull the power to your device server you will see I think it is InterfaceState= closed or opening or closed whatever the case may be.
    CGate should be trying to reconnect at this stage.
    Leave it keep trying for 10 minutes or so then restore the power to the device server.
    I'd like to see what happens in the logs before and after the power is restored.
    From the UI save the log as a text file.

    Keep in mind you dont want to publish the logs here directly because there may be api keys or other sensitive information.
    Search the log text file for the relevant CBus information and post here.
    Maybe something will stand out to give a clue.
     
    DarylMc, Oct 26, 2020
    #42
  3. DarylMc

    DarylMc

    Joined:
    Mar 24, 2006
    Messages:
    1,308
    Likes Received:
    49
    Location:
    Cleveland, QLD, Australia
    Just a thought but it might be worth a try to pull the ethernet from the device server rather than power cycle it and see if you get the same result.
     
    DarylMc, Oct 26, 2020
    #43
  4. DarylMc

    DarylMc

    Joined:
    Mar 24, 2006
    Messages:
    1,308
    Likes Received:
    49
    Location:
    Cleveland, QLD, Australia
    To restart CGate service with rebooting the pi
    sudo systemctl restart cgate
     
    DarylMc, Oct 26, 2020
    #44
  5. DarylMc

    DarylMc

    Joined:
    Mar 24, 2006
    Messages:
    1,308
    Likes Received:
    49
    Location:
    Cleveland, QLD, Australia
    sorry "without rebooting"
     
    DarylMc, Oct 27, 2020
    #45
  6. DarylMc

    theboyg

    Joined:
    Apr 3, 2005
    Messages:
    210
    Likes Received:
    9
    Working, then I pulled the ethernet out of the MSS100 which connects to the RS232 CBUS Interface. I then power cycled the MSS100, still no connection. I cycled Homebridge, no connection. I cycled the Homebridge Pi it runs on, then it will come back again.

    Would we need some lower level c-gate debug rather than Homebridge? When this dies, a Windows machine with the Toolkit on also then can't connect to C-Gate on the Pi until I cycle the entire Pi.

    Before

    2020-12-08T09:29:51.185Z cbus:client sent command '[101] get //HOMECBUS/254/56/26 level'
    2020-12-08T09:29:51.185Z cbus:client sent command '[102] get //HOMECBUS/254/56/18 level # getOn'
    2020-12-08T09:29:51.186Z cbus:client sent command '[103] get //HOMECBUS/254/56/15 level # getOn'
    2020-12-08T09:29:51.186Z cbus:client sent command '[104] get //HOMECBUS/254/56/44 level # getOn'
    2020-12-08T09:29:51.186Z cbus:client sent command '[105] get //HOMECBUS/254/56/81 level # getOn'
    2020-12-08T09:29:51.186Z cbus:client sent command '[106] get undefined zonestate'
    2020-12-08T09:29:51.187Z cbus:client sent command '[107] get //HOMECBUS/254/56/3 level # getOn'
    2020-12-08T09:29:51.187Z cbus:client sent command '[108] get //HOMECBUS/254/56/34 level # getOn'
    2020-12-08T09:29:51.187Z cbus:client sent command '[109] get //HOMECBUS/254/56/101 level # getOn'
    2020-12-08T09:29:51.187Z cbus:client sent command '[110] get //HOMECBUS/254/56/11 level # getOn'
    2020-12-08T09:29:51.187Z cbus:client sent command '[111] get //HOMECBUS/254/56/9 level # getOn'
    2020-12-08T09:29:51.187Z cbus:client sent command '[112] get //HOMECBUS/254/56/50 level # getOn'
    2020-12-08T09:29:51.187Z cbus:client sent command '[113] get //HOMECBUS/254/56/69 level # getOn'
    2020-12-08T09:29:51.188Z cbus:client sent command '[114] get //HOMECBUS/254/56/17 level # getOn'
    2020-12-08T09:29:51.188Z cbus:client sent command '[115] get //HOMECBUS/254/56/20 level # getOn'
    2020-12-08T09:29:51.188Z cbus:client sent command '[116] get //HOMECBUS/254/56/13 level # getOn'
    2020-12-08T09:29:51.188Z cbus:client sent command '[117] get //HOMECBUS/254/56/61 level # getOn'
    2020-12-08T09:29:51.188Z cbus:client sent command '[118] get //HOMECBUS/254/56/4 level # getOn'
    2020-12-08T09:29:51.188Z cbus:client sent command '[119] get //HOMECBUS/254/56/1 level # getOn'
    2020-12-08T09:29:51.188Z cbus:client sent command '[120] get //HOMECBUS/254/56/2 level # getOn'
    2020-12-08T09:29:51.189Z cbus:client sent command '[121] get //HOMECBUS/254/56/7 level # getOn'
    2020-12-08T09:29:51.189Z cbus:client sent command '[122] get //HOMECBUS/254/56/33 level # getOn'
    2020-12-08T09:29:51.189Z cbus:client sent command '[123] get //HOMECBUS/254/56/16 level # getOn'
    2020-12-08T09:29:51.189Z cbus:client sent command '[124] get //HOMECBUS/254/56/6 level # getOn'
    2020-12-08T09:29:51.189Z cbus:client sent command '[125] get //HOMECBUS/254/56/10 level # getOn'
    2020-12-08T09:29:51.189Z cbus:client sent command '[126] get //HOMECBUS/254/56/5 level # getOn'
    2020-12-08T09:29:51.189Z cbus:client sent command '[127] get //HOMECBUS/254/56/21 level # getOn'
    2020-12-08T09:29:51.189Z cbus:client sent command '[128] get //HOMECBUS/254/56/25 level # getOn'
    2020-12-08T09:29:51.190Z cbus:client sent command '[129] get //HOMECBUS/254/56/94 level # getOn'
    2020-12-08T09:29:51.190Z cbus:client sent command '[130] get //HOMECBUS/254/56/36 level # getOn'
    2020-12-08T09:29:51.190Z cbus:client sent command '[131] get //HOMECBUS/254/56/0 level # getOn'
    2020-12-08T09:29:51.190Z cbus:client sent command '[132] get undefined zonestate'
    2020-12-08T09:29:51.190Z cbus:client sent command '[133] get //HOMECBUS/254/56/23 level # getOn'
    2020-12-08T09:29:51.190Z cbus:client sent command '[134] get //HOMECBUS/254/56/8 level # getOn'
    2020-12-08T09:29:51.190Z cbus:client sent command '[135] get //HOMECBUS/254/56/38 level # getOn'
    2020-12-08T09:29:51.190Z cbus:client sent command '[136] get //HOMECBUS/254/56/35 level # getOn'
    2020-12-08T09:29:51.190Z cbus:client sent command '[137] get //HOMECBUS/254/56/22 level # getOn'
    2020-12-08T09:29:51.190Z cbus:client sent command '[138] get //HOMECBUS/254/56/71 level # getOn'
    2020-12-08T09:29:51.191Z cbus:client sent command '[139] get //HOMECBUS/254/56/32 level # getOn'
    2020-12-08T09:29:51.191Z cbus:client sent command '[140] get //HOMECBUS/254/56/43 level # getOn'
    2020-12-08T09:29:51.191Z cbus:client sent command '[141] get //HOMECBUS/254/56/12 level # getOn'
    2020-12-08T09:29:51.191Z cbus:client sent command '[142] get //HOMECBUS/254/56/47 level # getOn'
    2020-12-08T09:29:51.194Z cbus:client rx response { commandId: 101, code: 300, matched: false, processed: true, netId: CBusNetId { project: 'HOMECBUS', network: 254, application: 56, group: 26 }, level: 0, type: 'response', raw: '[101] 300 //HOMECBUS/254/56/26: level=0' }
    2020-12-08T09:29:51.195Z cbus:client matched request '[101] get //HOMECBUS/254/56/26 level' with response '[101] 300 //HOMECBUS/254/56/26: level=0' (41 pending requests)
    2020-12-08T09:29:51.197Z cbus:client rx response { commandId: 102, code: 300, matched: false, processed: true, netId: CBusNetId { project: 'HOMECBUS', network: 254, application: 56, group: 18 }, level: 0, type: 'response', raw: '[102] 300 //HOMECBUS/254/56/18: level=0' }
    2020-12-08T09:29:51.198Z cbus:client matched request '[102] get //HOMECBUS/254/56/18 level # getOn' with response '[102] 300 //HOMECBUS/254/56/18: level=0' (40 pending requests)
    2020-12-08T09:29:51.199Z cbus:client rx response { commandId: 103, code: 300, matched: false, processed: true, netId: CBusNetId { project: 'HOMECBUS', network: 254, application: 56, group: 15 }, level: 0, type: 'response', raw: '[103] 300 //HOMECBUS/254/56/15: level=0' }
    2020-12-08T09:29:51.199Z cbus:client matched request '[103] get //HOMECBUS/254/56/15 level # getOn' with response '[103] 300 //HOMECBUS/254/56/15: level=0' (39 pending requests)
    2020-12-08T09:29:51.200Z cbus:client rx response { commandId: 104, code: 300, matched: false, processed: true, netId: CBusNetId { project: 'HOMECBUS', network: 254, application: 56, group: 44 }, level: 0, type: 'response', raw: '[104] 300 //HOMECBUS/254/56/44: level=0' }
    2020-12-08T09:29:51.200Z cbus:client matched request '[104] get //HOMECBUS/254/56/44 level # getOn' with response '[104] 300 //HOMECBUS/254/56/44: level=0' (38 pending requests)
    2020-12-08T09:29:51.201Z cbus:client rx response { commandId: 105, code: 300, matched: false, processed: true, netId: CBusNetId { project: 'HOMECBUS', network: 254, application: 56, group: 81 }, level: 0, type: 'response', raw: '[105] 300 //HOMECBUS/254/56/81: level=0' }
    2020-12-08T09:29:51.202Z cbus:client matched request '[105] get //HOMECBUS/254/56/81 level # getOn' with response '[105] 300 //HOMECBUS/254/56/81: level=0' (37 pending requests)
    2020-12-08T09:29:51.203Z cbus:client rx response { commandId: 106, code: 401, matched: false, processed: false, type: 'response', raw: '[106] 401 Bad object or device ID: undefined (Network not found)' }
    2020-12-08T09:29:51.203Z cbus:client matched request '[106] get undefined zonestate' with response '[106] 401 Bad object or device ID: undefined (Network not found)' (36 pending requests)
    2020-12-08T09:29:51.204Z cbus:client rx response { commandId: 107, code: 300, matched: false, processed: true, netId: CBusNetId { project: 'HOMECBUS', network: 254, application: 56, group: 3 }, level: 0, type: 'response', raw: '[107] 300 //HOMECBUS/254/56/3: level=0' }
    2020-12-08T09:29:51.204Z cbus:client matched request '[107] get //HOMECBUS/254/56/3 level # getOn' with response '[107] 300 //HOMECBUS/254/56/3: level=0' (35 pending requests)
    2020-12-08T09:29:51.205Z cbus:client rx response { commandId: 108, code: 300, matched: false, processed: true, netId: CBusNetId { project: 'HOMECBUS', network: 254, application: 56, group: 34 }, level: 0, type: 'response', raw: '[108] 300 //HOMECBUS/254/56/34: level=0' }
    2020-12-08T09:29:51.205Z cbus:client matched request '[108] get //HOMECBUS/254/56/34 level # getOn' with response '[108] 300 //HOMECBUS/254/56/34: level=0' (34 pending requests)
    2020-12-08T09:29:51.206Z cbus:client rx response { commandId: 109, code: 300, matched: false, processed: true, netId: CBusNetId { project: 'HOMECBUS', network: 254, application: 56, group: 101 }, level: 0, type: 'response', raw: '[109] 300 //HOMECBUS/254/56/101: level=0' }
    2020-12-08T09:29:51.207Z cbus:client matched request '[109] get //HOMECBUS/254/56/101 level # getOn' with response '[109] 300 //HOMECBUS/254/56/101: level=0' (33 pending requests)
    2020-12-08T09:29:51.208Z cbus:client rx response { commandId: 110, code: 300, matched: false, processed: true, netId: CBusNetId { project: 'HOMECBUS', network: 254, application: 56, group: 11 }, level: 0, type: 'response', raw: '[110] 300 //HOMECBUS/254/56/11: level=0' }
    2020-12-08T09:29:51.208Z cbus:client matched request '[110] get //HOMECBUS/254/56/11 level # getOn' with response '[110] 300 //HOMECBUS/254/56/11: level=0' (32 pending requests)
    2020-12-08T09:29:51.209Z cbus:client rx response { commandId: 111, code: 300, matched: false, processed: true, netId: CBusNetId { project: 'HOMECBUS', network: 254, application: 56, group: 9 }, level: 0, type: 'response', raw: '[111] 300 //HOMECBUS/254/56/9: level=0' }
    2020-12-08T09:29:51.209Z cbus:client matched request '[111] get //HOMECBUS/254/56/9 level # getOn' with response '[111] 300 //HOMECBUS/254/56/9: level=0' (31 pending requests)
    2020-12-08T09:29:51.210Z cbus:client rx response { commandId: 112, code: 300, matched: false, processed: true, netId: CBusNetId { project: 'HOMECBUS', network: 254, application: 56, group: 50 }, level: 0, type: 'response', raw: '[112] 300 //HOMECBUS/254/56/50: level=0' }
    2020-12-08T09:29:51.210Z cbus:client matched request '[112] get //HOMECBUS/254/56/50 level # getOn' with response '[112] 300 //HOMECBUS/254/56/50: level=0' (30 pending requests)
    2020-12-08T09:29:51.211Z cbus:client rx response { commandId: 113, code: 300, matched: false, processed: true, netId: CBusNetId { project: 'HOMECBUS', network: 254, application: 56, group: 69 }, level: 0, type: 'response', raw: '[113] 300 //HOMECBUS/254/56/69: level=0' }
    2020-12-08T09:29:51.211Z cbus:client matched request '[113] get //HOMECBUS/254/56/69 level # getOn' with response '[113] 300 //HOMECBUS/254/56/69: level=0' (29 pending requests)
    2020-12-08T09:29:51.212Z cbus:client rx response { commandId: 114, code: 300, matched: false, processed: true, netId: CBusNetId { project: 'HOMECBUS', network: 254, application: 56, group: 17 }, level: 0, type: 'response', raw: '[114] 300 //HOMECBUS/254/56/17: level=0' }
    2020-12-08T09:29:51.212Z cbus:client matched request '[114] get //HOMECBUS/254/56/17 level # getOn' with response '[114] 300 //HOMECBUS/254/56/17: level=0' (28 pending requests)
    2020-12-08T09:29:51.213Z cbus:client rx response { commandId: 115, code: 300, matched: false, processed: true, netId: CBusNetId { project: 'HOMECBUS', network: 254, application: 56, group: 20 }, level: 0, type: 'response', raw: '[115] 300 //HOMECBUS/254/56/20: level=0' }
    2020-12-08T09:29:51.213Z cbus:client matched request '[115] get //HOMECBUS/254/56/20 level # getOn' with response '[115] 300 //HOMECBUS/254/56/20: level=0' (27 pending requests)
    2020-12-08T09:29:51.214Z cbus:client rx response { commandId: 116, code: 300, matched: false, processed: true, netId: CBusNetId { project: 'HOMECBUS', network: 254, application: 56, group: 13 }, level: 0, type: 'response', raw: '[116] 300 //HOMECBUS/254/56/13: level=0' }
    2020-12-08T09:29:51.214Z cbus:client matched request '[116] get //HOMECBUS/254/56/13 level # getOn' with response '[116] 300 //HOMECBUS/254/56/13: level=0' (26 pending requests)
    2020-12-08T09:29:51.215Z cbus:client rx response { commandId: 117, code: 300, matched: false, processed: true, netId: CBusNetId { project: 'HOMECBUS', network: 254, application: 56, group: 61 }, level: 100, type: 'response', raw: '[117] 300 //HOMECBUS/254/56/61: level=255' }
    2020-12-08T09:29:51.215Z cbus:client matched request '[117] get //HOMECBUS/254/56/61 level # getOn' with response '[117] 300 //HOMECBUS/254/56/61: level=255' (25 pending requests)
    2020-12-08T09:29:51.217Z cbus:client rx response { commandId: 118, code: 300, matched: false, processed: true, netId: CBusNetId { project: 'HOMECBUS', network: 254, application: 56, group: 4 }, level: 0, type: 'response', raw: '[118] 300 //HOMECBUS/254/56/4: level=0' }
    2020-12-08T09:29:51.217Z cbus:client matched request '[118] get //HOMECBUS/254/56/4 level # getOn' with response '[118] 300 //HOMECBUS/254/56/4: level=0' (24 pending requests)
    2020-12-08T09:29:51.218Z cbus:client rx response { commandId: 119, code: 300, matched: false, processed: true, netId: CBusNetId { project: 'HOMECBUS', network: 254, application: 56, group: 1 }, level: 0, type: 'response', raw: '[119] 300 //HOMECBUS/254/56/1: level=0' }
    2020-12-08T09:29:51.218Z cbus:client matched request '[119] get //HOMECBUS/254/56/1 level # getOn' with response '[119] 300 //HOMECBUS/254/56/1: level=0' (23 pending requests)
    2020-12-08T09:29:51.219Z cbus:client rx response { commandId: 120, code: 300, matched: false, processed: true, netId: CBusNetId { project: 'HOMECBUS', network: 254, application: 56, group: 2 }, level: 0, type: 'response', raw: '[120] 300 //HOMECBUS/254/56/2: level=0' }
    2020-12-08T09:29:51.219Z cbus:client matched request '[120] get //HOMECBUS/254/56/2 level # getOn' with response '[120] 300 //HOMECBUS/254/56/2: level=0' (22 pending requests)
    2020-12-08T09:29:51.220Z cbus:client rx response { commandId: 121, code: 300, matched: false, processed: true, netId: CBusNetId { project: 'HOMECBUS', network: 254, application: 56, group: 7 }, level: 0, type: 'response', raw: '[121] 300 //HOMECBUS/254/56/7: level=0' }
    2020-12-08T09:29:51.220Z cbus:client matched request '[121] get //HOMECBUS/254/56/7 level # getOn' with response '[121] 300 //HOMECBUS/254/56/7: level=0' (21 pending requests)
    2020-12-08T09:29:51.221Z cbus:client rx response { commandId: 122, code: 300, matched: false, processed: true, netId: CBusNetId { project: 'HOMECBUS', network: 254, application: 56, group: 33 }, level: 100, type: 'response', raw: '[122] 300 //HOMECBUS/254/56/33: level=255' }
    2020-12-08T09:29:51.221Z cbus:client matched request '[122] get //HOMECBUS/254/56/33 level # getOn' with response '[122] 300 //HOMECBUS/254/56/33: level=255' (20 pending requests)
    2020-12-08T09:29:51.222Z cbus:client rx response { commandId: 123, code: 300, matched: false, processed: true, netId: CBusNetId { project: 'HOMECBUS', network: 254, application: 56, group: 16 }, level: 0, type: 'response', raw: '[123] 300 //HOMECBUS/254/56/16: level=0' }
    2020-12-08T09:29:51.223Z cbus:client matched request '[123] get //HOMECBUS/254/56/16 level # getOn' with response '[123] 300 //HOMECBUS/254/56/16: level=0' (19 pending requests)
    2020-12-08T09:29:51.224Z cbus:client rx response { commandId: 124, code: 300, matched: false, processed: true, netId: CBusNetId { project: 'HOMECBUS', network: 254, application: 56, group: 6 }, level: 0, type: 'response', raw: '[124] 300 //HOMECBUS/254/56/6: level=0' }
    2020-12-08T09:29:51.224Z cbus:client matched request '[124] get //HOMECBUS/254/56/6 level # getOn' with response '[124] 300 //HOMECBUS/254/56/6: level=0' (18 pending requests)
    2020-12-08T09:29:51.225Z cbus:client rx response { commandId: 125, code: 300, matched: false, processed: true, netId: CBusNetId { project: 'HOMECBUS', network: 254, application: 56, group: 10 }, level: 0, type: 'response', raw: '[125] 300 //HOMECBUS/254/56/10: level=0' }
    2020-12-08T09:29:51.225Z cbus:client matched request '[125] get //HOMECBUS/254/56/10 level # getOn' with response '[125] 300 //HOMECBUS/254/56/10: level=0' (17 pending requests)
    2020-12-08T09:29:51.226Z cbus:client rx response { commandId: 126, code: 300, matched: false, processed: true, netId: CBusNetId { project: 'HOMECBUS', network: 254, application: 56, group: 5 }, level: 0, type: 'response', raw: '[126] 300 //HOMECBUS/254/56/5: level=0' }
    2020-12-08T09:29:51.226Z cbus:client matched request '[126] get //HOMECBUS/254/56/5 level # getOn' with response '[126] 300 //HOMECBUS/254/56/5: level=0' (16 pending requests)
    2020-12-08T09:29:51.227Z cbus:client rx response { commandId: 127, code: 300, matched: false, processed: true, netId: CBusNetId { project: 'HOMECBUS', network: 254, application: 56, group: 21 }, level: 100, type: 'response', raw: '[127] 300 //HOMECBUS/254/56/21: level=255' }
    2020-12-08T09:29:51.227Z cbus:client matched request '[127] get //HOMECBUS/254/56/21 level # getOn' with response '[127] 300 //HOMECBUS/254/56/21: level=255' (15 pending requests)
    2020-12-08T09:29:51.228Z cbus:client rx response { commandId: 128, code: 300, matched: false, processed: true, netId: CBusNetId { project: 'HOMECBUS', network: 254, application: 56, group: 25 }, level: 0, type: 'response', raw: '[128] 300 //HOMECBUS/254/56/25: level=0' }
    2020-12-08T09:29:51.228Z cbus:client matched request '[128] get //HOMECBUS/254/56/25 level # getOn' with response '[128] 300 //HOMECBUS/254/56/25: level=0' (14 pending requests)
    2020-12-08T09:29:51.229Z cbus:client rx response { commandId: 129, code: 300, matched: false, processed: true, netId: CBusNetId { project: 'HOMECBUS', network: 254, application: 56, group: 94 }, level: 100, type: 'response', raw: '[129] 300 //HOMECBUS/254/56/94: level=255' }
    2020-12-08T09:29:51.229Z cbus:client matched request '[129] get //HOMECBUS/254/56/94 level # getOn' with response '[129] 300 //HOMECBUS/254/56/94: level=255' (13 pending requests)
    2020-12-08T09:29:51.230Z cbus:client rx response { commandId: 130, code: 300, matched: false, processed: true, netId: CBusNetId { project: 'HOMECBUS', network: 254, application: 56, group: 36 }, level: 0, type: 'response', raw: '[130] 300 //HOMECBUS/254/56/36: level=0' }
    2020-12-08T09:29:51.230Z cbus:client matched request '[130] get //HOMECBUS/254/56/36 level # getOn' with response '[130] 300 //HOMECBUS/254/56/36: level=0' (12 pending requests)
    2020-12-08T09:29:51.231Z cbus:client rx response { commandId: 131, code: 300, matched: false, processed: true, netId: CBusNetId { project: 'HOMECBUS', network: 254, application: 56, group: 0 }, level: 0, type: 'response', raw: '[131] 300 //HOMECBUS/254/56/0: level=0' }


    After


    2020-12-08T09:32:47.825Z cbus:client rx event { time: '20201208-999999', code: 834, processed: false, message: '//HOMECBUS/254 xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx Restarting stuck transmitter', type: 'event', raw: '#e# 20201208-999999 834 //HOMECBUS/254 xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx Restarting stuck transmitter' }
    2020-12-08T09:32:47.828Z cbus:client rx event { time: '20201208-999999', code: 735, processed: false, message: '//HOMECBUS/254 xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx cc014 sent cmd (fastpci): \\4601002101k (254: \\4601002101k)', type: 'event', raw: '#e# 20201208-999999 735 //HOMECBUS/254 xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx cc014 sent cmd (fastpci): \\4601002101k (254: \\4601002101k)' }
    2020-12-08T09:32:47.977Z cbus:client rx event { time: '20201208-999999', code: 755, processed: false, message: '//HOMECBUS/254 xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx InterfaceState=closing, TargetState=closed', type: 'event', raw: '#e# 20201208-999999 755 //HOMECBUS/254 xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx InterfaceState=closing, TargetState=closed' }
    2020-12-08T09:32:47.979Z cbus:client rx event { time: '20201208-999999', code: 754, processed: false, message: '//HOMECBUS/254 xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx State=error Previous=ok Reason=PCI polling failed', type: 'event', raw: '#e# 20201208-999999 754 //HOMECBUS/254 xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx State=error Previous=ok Reason=PCI polling failed' }
    2020-12-08T09:32:47.979Z cbus:client rx event { time: '20201208-999999', code: 754, processed: false, message: '//HOMECBUS/254 xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx State=sync Previous=error Reason=closing network', type: 'event', raw: '#e# 20201208-999999 754 //HOMECBUS/254 xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx State=sync Previous=error Reason=closing network' }
    2020-12-08T09:32:47.981Z cbus:client rx event { time: '20201208-999999', code: 755, processed: false, message: '//HOMECBUS/254 xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx InterfaceState=streamsclosed, TargetState=closed', type: 'event', raw: '#e# 20201208-999999 755 //HOMECBUS/254 xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx InterfaceState=streamsclosed, TargetState=closed' }
    2020-12-08T09:32:47.982Z cbus:client rx event { time: '20201208-999999', code: 755, processed: false, message: '//HOMECBUS/254 xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx InterfaceState=closed, TargetState=closed', type: 'event', raw: '#e# 20201208-999999 755 //HOMECBUS/254 xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx InterfaceState=closed, TargetState=closed' }
    2020-12-08T09:32:47.983Z cbus:client rx event { time: '20201208-999999', code: 735, processed: false, message: '//HOMECBUS/254 xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx cc261 Abandoning command: \\053800020700', type: 'event', raw: '#e# 20201208-999999 735 //HOMECBUS/254 xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx cc261 Abandoning command: \\053800020700' }
    2020-12-08T09:32:47.984Z cbus:client rx event { time: '20201208-999999', code: 754, processed: false, message: '//HOMECBUS/254 xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx State=new Previous=sync Reason=Interface Closed', type: 'event', raw: '#e# 20201208-999999 754 //HOMECBUS/254 xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx State=new Previous=sync Reason=Interface Closed' }
     
    theboyg, Dec 8, 2020
    #46
  7. DarylMc

    DarylMc

    Joined:
    Mar 24, 2006
    Messages:
    1,308
    Likes Received:
    49
    Location:
    Cleveland, QLD, Australia
    Did you try to restart CGate without rebooting the raspberry pi?
    sudo systemctl restart cgate
    That should give the same effect as rebooting but take Homebridge out of the equation.
     
    DarylMc, Dec 8, 2020
    #47
  8. DarylMc

    DarylMc

    Joined:
    Mar 24, 2006
    Messages:
    1,308
    Likes Received:
    49
    Location:
    Cleveland, QLD, Australia
    As I said I didn't notice any problem with my Moxa device server.
    I've also recently tried a FTDI USB to serial adapter using the method in this link.
    https://blog.addictedtopi.com/2017/05/21/installing-c-gate-on-a-raspberry-pi/
    "It uses a script to turn the serial connection into a socket connection, which makes the PCI module act like a CNI module. "
    This has no problem reconnecting if I remove the USB adapter and replug it some time later.

    It seems to me it would be a lot simpler to not power cycle the device server but if we can find out why it is not reconnecting will be one less potential problem.
    Maybe someone else could experiment by disconnecting their Clipsal CNI device from the LAN, wait a while plug it back in and see if it reconnects.
    If someone can confirm I think that might narrow the issue down to your device server.
    Have you looked in the MSS100 config for some settings?
     
    DarylMc, Dec 8, 2020
    #48
  9. DarylMc

    Rytech

    Joined:
    Sep 11, 2017
    Messages:
    8
    Likes Received:
    0
    Location:
    Sydney
    Rytech, Jul 4, 2022
    #49
  10. DarylMc

    DarylMc

    Joined:
    Mar 24, 2006
    Messages:
    1,308
    Likes Received:
    49
    Location:
    Cleveland, QLD, Australia
    Last edited: Jul 6, 2022
    DarylMc, Jul 6, 2022
    #50
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.