Mqtt communication error

Forum Home Forums Communicating with Devices Mqtt communication error

Tagged: 

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #9416
    trauden
    Participant

    Hi everyone,
    I’ve installed 2 mqtt communication channels on Rapidscada on Ubuntu,
    One mqtt channel works well,
    but another don’t work.
    Everyone can help me. I appreciate any help.
    errors show below:
    ==============
    Send packet
    Error reconnecting: Could not read remaining length

    2021-08-22 17:08:10 Communication session with the Device 3 “MQTT Solar Pannel”, type: KpMqtt
    Receive packet
    Error: StriderMqtt.MqttProtocolException: Could not read remaining length
    at StriderMqtt.PacketReader.ReadRemainingLength (System.IO.Stream stream) [0x0003a] in <3945b90035204b459b00abe558ec2c55>:0
    at StriderMqtt.PacketReader..ctor (System.IO.Stream stream) [0x0001f] in <3945b90035204b459b00abe558ec2c55>:0
    at StriderMqtt.BaseTransport.Read () [0x00006] in <3945b90035204b459b00abe558ec2c55>:0
    at Scada.Comm.Devices.KpMqttLogic.ReceivePacket () [0x00010] in <3945b90035204b459b00abe558ec2c55>:0
    Send packet
    Disconnect from MQTT broker
    ==================

    #9417
    Mikhail
    Moderator

    Hi,

    Which driver version do you use?

    #9419
    trauden
    Participant

    Hi Mikhail,
    I use driver version KpMqtt 5.0.4.0 En.

    #9422
    Mikhail
    Moderator

    Hi,

    If you share the MQTT broker and provide the MQTT settings file, I can try to reproduce and fix this error.

    #10031
    morellana
    Participant

    Hi everyone, I’m having the same problem. Only one mqtt client using driver 5.3.1 En.

    2022-01-31 18:37:17 Communication session with the Device 300 “MQTTDEVICE”, type: KpMqtt
    Send packet

    2022-01-31 18:37:18 Communication session with the Device 300 “MQTTDEVICE”, type: KpMqtt
    Receive packet
    Error: StriderMqtt.MqttProtocolException: Could not read remaining length
    at StriderMqtt.PacketReader.ReadRemainingLength(Stream stream)
    at StriderMqtt.PacketReader..ctor(Stream stream)
    at StriderMqtt.BaseTransport.Read()
    at Scada.Comm.Devices.KpMqttLogic.ReceivePacket()
    Send packet
    Disconnect from MQTT broker

    can someone help me with this?
    thanks in advance.
    Mauricio

    #10036
    Mikhail
    Moderator

    Hi,

    Please provide more info
    1. What the 2nd MQTT client software do you use?
    2. What MQTT broker do you use?
    3. Can other 2 MQTT (not Rapid SCADA) clients communicate normally?

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.