Announcement

Collapse
No announcement yet.

Thread ReceiveCallback: Index was outside the bounds of the array.

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

    Thread ReceiveCallback: Index was outside the bounds of the array.

    Hi,

    Installed ser2net on a PI.

    > /etc/ser2net.yaml
    connection: &con0096
    accepter: tcp,2000
    enable: on
    options:
    banner: *banner
    kickolduser: true
    telnet-brk-on-sync: true
    connector: serialdev,
    /dev/ttyUSB0,
    115200n81,localconnection: &con0096

    Connected to powermeter Kaifa MA304.


    Plugin version 4.0.14.0. Trial version.
    Running Linux
    Version
    HS4 Standard Edition 4.2.12.8 (Linux)
    MONO Version
    Mono JIT compiler version 6.12.0.122 (tarball Mon Feb 22 17:33:28 UTC 2021)Version

    Connection is ok. Debug log reported this:

    25/05/2022 22:36:41 Thread started
    25/05/2022 22:36:41 Connected to 192.168.1.52:2000
    25/05/2022 22:36:41 Thread ReceiveCallback: Index was outside the bounds of the array.

    No HS devices are created.

    When i telnet to port 2000 from the PI i receive every 5 seconds data from powermeter.

    root@linux12:/usr/local/HomeSeer/Logs# telnet p1-interface1 2000
    Trying 192.168.1.52...
    Connected to p1-interface1.
    Escape character is '^]'.

    ser2net port tcp,2000 device serialdev, /dev/ttyUSB0, 115200n81,local [] (Debian GNU/Linux)

    /KFM5KAIFA-METER

    1-3:0.2.8(42)
    0-0:1.0.0(220525224046S)
    0-0:96.1.1(4530303033303030303038373731303134)
    1-0:1.8.1(028105.444*kWh)
    1-0:1.8.2(022316.565*kWh)
    1-0:2.8.1(000000.000*kWh)
    1-0:2.8.2(000000.000*kWh)
    0-0:96.14.0(0001)
    1-0:1.7.0(00.629*kW)
    1-0:2.7.0(00.000*kW)
    0-0:96.7.21(00020)
    0-0:96.7.9(00009)
    1-0:99.97.0(2)(0-0:96.7.19)(201217052006W)(0000000286*s)(000101000014W)(21474 83647*s)
    1-0:32.32.0(00000)
    1-0:52.32.0(00000)
    1-0:72.32.0(00000)
    1-0:32.36.0(00000)
    1-0:52.36.0(00000)
    1-0:72.36.0(00000)
    0-0:96.13.1()
    0-0:96.13.0()
    1-0:31.7.0(002*A)
    1-0:51.7.0(000*A)
    1-0:71.7.0(000*A)
    1-0:21.7.0(00.436*kW)
    1-0:22.7.0(00.000*kW)
    1-0:41.7.0(00.095*kW)
    1-0:42.7.0(00.000*kW)
    1-0:61.7.0(00.081*kW)
    1-0:62.7.0(00.000*kW)
    !6744

    Before i buy this plugin i have to know what the problem is. Any suggestions?

    Regards, Walter

    #2
    Most likely is that there is some corruption in the data stream. Are you sure all communication parameters are correct?

    Also, did you change anything in the example message above? Because the checksum is incorrect...
    stefxx

    Comment


      #3
      Hi,

      the output is copy/pasted from the telnet terminal. Is there some checksum in the data? Communication parameters are ok because I get the data port 2000.

      regards, Walter

      Comment


        #4
        The number after the ! is the checksum. Somehow it is not correct. However, that is not your (main) issue, because the error indicates some data corruption and/or processing error.

        I like to test the stream for myself. Can you open it up to me? Please send me a PM so we can work out the details. Thanks!
        stefxx

        Comment

        Working...
        X