Announcement

Collapse
No announcement yet.

Waiting for ACK?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    Unfortunately it doesn't solve the issue.
    Still messages in the log.


    <table border="0" cellpadding="0" cellspacing="2" width="100%"><tbody><tr> <td colspan="1" class="LOGDateTime0" align="left" nowrap="nowrap">30-7-2011 10:11:05 </td><td colspan="3" class="LOGType0" align="left"> PLCBUS Error </td><td colspan="8" class="LOGEntry0" align="left">Too long wait for interface response to command: (255) A2 Off Data1:0 Data2:0 Tx:False AckReq:False Ack:False IDreq:False Id:False 3PhReq:False RiscOK:False PlcBusOK:False</td></tr> <tr> <td colspan="1" class="LOGDateTime1" align="left" nowrap="nowrap">30-7-2011 10:10:54 </td><td colspan="3" class="LOGType1" align="left"> Device Control </td><td colspan="8" class="LOGEntry1" align="left">Device: 1st floor Livingroom Clock (A2) OFF</td></tr> <tr> <td colspan="1" class="LOGDateTime0" align="left" nowrap="nowrap">30-7-2011 10:10:45 </td><td colspan="3" class="LOGType0" align="left"> PLCBUS Error </td><td colspan="8" class="LOGEntry0" align="left">Too long wait for interface response to command: (255) A2 On Data1:0 Data2:0 Tx:False AckReq:False Ack:False IDreq:False Id:False 3PhReq:False RiscOK:False PlcBusOK:False</td></tr> <tr> <td colspan="1" class="LOGDateTime1" align="left" nowrap="nowrap">30-7-2011 10:10:34 </td><td colspan="3" class="LOGType1" align="left"> Device Control </td><td colspan="8" class="LOGEntry1" align="left">Device: 1st floor Livingroom Clock (A2) ON</td></tr></tbody></table>

    Comment


      #17
      Can you switch on all debug modes (received bytes and all), and post another log for a simple command.
      --
      stipus

      Comment


        #18
        I've put this in config/hspi_plcbus.ini and restarted HS.
        Not sure if restarting HS is necessary, just in case.

        [Settings]
        Debug=True
        DebugReceivedBytes=True

        <table border="0" cellpadding="0" cellspacing="2" width="100%"><tbody><tr><td colspan="1" class="LOGDateTime0" align="left" nowrap="nowrap">30-7-2011 14:49:29 </td><td colspan="3" class="LOGType0" align="left"> PLCBUS Debug </td><td colspan="8" class="LOGEntry0" align="left">PLCBUS Error : Too long wait for interface response to command: (255) A2 Off Data1:0 Data2:0 Tx:False AckReq:False Ack:False IDreq:False Id:False 3PhReq:False RiscOK:False PlcBusOK:False</td></tr> <tr> <td colspan="1" class="LOGDateTime1" align="left" nowrap="nowrap">30-7-2011 14:49:27 </td><td colspan="3" class="LOGType1" align="left"> PLCBUS Debug </td><td colspan="8" class="LOGEntry1" align="left">Sending: (255) A2 Off Data1:0 Data2:0 Tx:False AckReq:False Ack:False IDreq:False Id:False 3PhReq:False RiscOK:False PlcBusOK:False</td></tr> <tr> <td colspan="1" class="LOGDateTime0" align="left" nowrap="nowrap">30-7-2011 14:49:25 </td><td colspan="3" class="LOGType0" align="left"> PLCBUS Debug </td><td colspan="8" class="LOGEntry0" align="left">Sending: (255) A2 Off Data1:0 Data2:0 Tx:False AckReq:False Ack:False IDreq:False Id:False 3PhReq:False RiscOK:False PlcBusOK:False</td></tr> <tr> <td colspan="1" class="LOGDateTime1" align="left" nowrap="nowrap">30-7-2011 14:49:23 </td><td colspan="3" class="LOGType1" align="left"> PLCBUS Debug </td><td colspan="8" class="LOGEntry1" align="left">Sending: (255) A2 Off Data1:0 Data2:0 Tx:False AckReq:False Ack:False IDreq:False Id:False 3PhReq:False RiscOK:False PlcBusOK:False</td></tr> <tr> <td colspan="1" class="LOGDateTime0" align="left" nowrap="nowrap">30-7-2011 14:49:21 </td><td colspan="3" class="LOGType0" align="left"> PLCBUS Debug </td><td colspan="8" class="LOGEntry0" align="left">Sending: (255) A2 Off Data1:0 Data2:0 Tx:False AckReq:False Ack:False IDreq:False Id:False 3PhReq:False RiscOK:False PlcBusOK:False</td></tr> <tr> <td colspan="1" class="LOGDateTime1" align="left" nowrap="nowrap">30-7-2011 14:49:19 </td><td colspan="3" class="LOGType1" align="left"> PLCBUS Debug </td><td colspan="8" class="LOGEntry1" align="left">Sending: (255) A2 Off Data1:0 Data2:0 Tx:False AckReq:False Ack:False IDreq:False Id:False 3PhReq:False RiscOK:False PlcBusOK:False</td></tr> <tr> <td colspan="1" class="LOGDateTime0" align="left" nowrap="nowrap">30-7-2011 14:49:19 </td><td colspan="3" class="LOGType0" align="left"> PLCBUS Debug </td><td colspan="8" class="LOGEntry0" align="left">SetIO() called HC=A DC=2 COMMAND=3 BRIGHTNESS=0 DATA1=0 DATA2=0</td></tr> <tr> <td colspan="1" class="LOGDateTime1" align="left" nowrap="nowrap">30-7-2011 14:49:19 </td><td colspan="3" class="LOGType1" align="left"> Device Control </td><td colspan="8" class="LOGEntry1" align="left">Device: 1st floor Livingroom Clock (A2) OFF</td></tr></tbody></table>

        I was expecting something with raw bytes instead of what is shown above so did I do it correctly?

        Comment


          #19
          I think it's correct.

          The debug received bytes option prints all bytes received by the plugin from the interface.

          In your case, the problem is still the same: The interface doesn't send anything to the plugin... and doesn't reply with any byte to commands. There is nothing to print !

          Honestly I think your PLCBUS interface has a problem, or there is something on your power network that makes it go bad.

          If you have a mini-controller or scene module (or any other way to send a PLCBUS signal without using the PLCBUS PC interface) you can try the following:

          - open one of the circuit breakers that perturbates everything
          - send a PLCBUS signal with the mini-controller or scene module
          - The plugin should print a few received bytes from the interface

          - close the circuit breaker
          - send a PLCBUS signal again
          - Check if the plugin printed any received bytes

          If you are not getting any byte, then it's a hardware related problem...
          --
          stipus

          Comment


            #20
            That is a good test, will try that shortly although I think I know the result already as I already use Homeseer this way.

            I use a PLC4023 to receive RF signals from 2 PLCBUS remotes, a PLC4060E and a PLC4073E.

            Some of the buttons on these remotes go directly to the modules, others go through homeseer.

            The buttons that go through homeseer are received by the PC interface, processed and then a resulting command is transmitted through the PC interface.

            Although it seems that there is a malfunction of some sort ALL commands sent by the PC interface and the remotes work fine. I cannot recall one of the modules missing one of the commands. So as far as I know at this point only the ack from the the PC interface that a command has been sent is affected, the on/off/dim commands are not.

            But nevertheless I will do the test and log the bytes coming in and going out using a simple ON/OFF command.

            Comment


              #21
              The result of A2 ON and a few seconds later A2 OFF.

              <table border="0" cellpadding="0" cellspacing="2" width="100%"><tbody><tr><td colspan="1" class="LOGDateTime0" align="left" nowrap="nowrap">3-8-2011 10:33:29 </td><td colspan="3" class="LOGType0" align="left"> PLCBUS Debug </td><td colspan="8" class="LOGEntry0" align="left">Rcvd Ack: (255) A2 Off Data1:0 Data2:0 Tx:False AckReq:True Ack:True IDreq:False Id:False 3PhReq:False RiscOK:False PlcBusOK:False</td></tr> <tr> <td colspan="1" class="LOGDateTime1" align="left" nowrap="nowrap">3-8-2011 10:33:29 </td><td colspan="3" class="LOGType1" align="left"> X10 Received </td><td colspan="8" class="LOGEntry1" align="left">A2 (1st floor Livingroom Clock) A Off</td></tr> <tr> <td colspan="1" class="LOGDateTime0" align="left" nowrap="nowrap">3-8-2011 10:33:29 </td><td colspan="3" class="LOGType0" align="left"> PLCBUS Debug </td><td colspan="8" class="LOGEntry0" align="left">Received: (255) A2 Off Data1:0 Data2:0 Tx:False AckReq:True Ack:False IDreq:False Id:False 3PhReq:False RiscOK:True PlcBusOK:True</td></tr> <tr> <td colspan="1" class="LOGDateTime1" align="left" nowrap="nowrap">3-8-2011 10:33:12 </td><td colspan="3" class="LOGType1" align="left"> PLCBUS Debug </td><td colspan="8" class="LOGEntry1" align="left">Rcvd Ack: (255) A2 On Data1:100 Data2:0 Tx:False AckReq:True Ack:True IDreq:False Id:False 3PhReq:False RiscOK:False PlcBusOK:False</td></tr> <tr> <td colspan="1" class="LOGDateTime0" align="left" nowrap="nowrap">3-8-2011 10:33:12 </td><td colspan="3" class="LOGType0" align="left"> X10 Received </td><td colspan="8" class="LOGEntry0" align="left">A2 (1st floor Livingroom Clock) A On</td></tr> <tr> <td colspan="1" class="LOGDateTime1" align="left" nowrap="nowrap">3-8-2011 10:33:12 </td><td colspan="3" class="LOGType1" align="left"> PLCBUS Debug </td><td colspan="8" class="LOGEntry1" align="left">Received: (255) A2 On Data1:100 Data2:0 Tx:False AckReq:True Ack:False IDreq:False Id:False 3PhReq:False RiscOK:True PlcBusOK:True</td></tr></tbody></table>

              The light went ON and OFF as expected and all circuit breakers are active.



              Second try below with one of the "affected" circuit breakers switched off.



              3-8-2011 10:41:47 PLCBUS Debug Rcvd Ack: (255) A2 Off Data1:0 Data2:0 Tx:False AckReq:True Ack:True IDreq:False Id:False 3PhReq:False RiscOK:False PlcBusOK:False
              3-8-2011 10:41:47 X10 Received A2 (1st floor Livingroom Clock) A Off
              3-8-2011 10:41:47 PLCBUS Debug Received: (255) A2 Off Data1:0 Data2:0 Tx:False AckReq:True Ack:False IDreq:False Id:False 3PhReq:False RiscOK:True PlcBusOK:True
              3-8-2011 10:41:38 PLCBUS Debug Rcvd Ack: (255) A2 On Data1:100 Data2:0 Tx:False AckReq:True Ack:True IDreq:False Id:False 3PhReq:False RiscOK:False PlcBusOK:False
              3-8-2011 10:41:38 X10 Received A2 (1st floor Livingroom Clock) A On
              3-8-2011 10:41:38 PLCBUS Debug Received: (255) A2 On Data1:100 Data2:0 Tx:False AckReq:True Ack:False IDreq:False Id:False 3PhReq:False RiscOK:True PlcBusOK:True


              Identical result.

              Comment

              Working...
              X