MQTT Issue

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #8705
    Kokoi
    Participant

    Hello all,

    I have some issues with getting MQTT working.

    I’ve followed everything as per the video, but I’m getting a device error. I tried to look at the issues that other users had, it seems somebody had an issue similar to mine, but I couldn’t find a solution.

    I attached some pictures below, I will really appreciate if somebody can help me find the issues.

    https://ibb.co/3fZfzQF
    https://ibb.co/TPMPPTV
    https://ibb.co/2gP9HPX
    https://ibb.co/TTV5ncx
    https://ibb.co/5LNVDck
    https://ibb.co/7pdy7jL
    https://ibb.co/PmjX4Pb

    #8708
    Jure
    Participant

    I have similar problem. If I connect to broker trough client it works, but if I try to set up connection in Rapid SCADA I get same error. I followed youtube tututorial.

    #8715
    greenfoxx
    Participant

    Hi Kokoi!
    What broker do you use in your example? Have you tried to connect to server broker using MQTT Spy for example?

    #8716
    greenfoxx
    Participant

    From this link you can find Mqtt – Spy https://github.com/eclipse/paho.mqtt-spy

    #12557
    RapidScadaHan
    Participant

    Dear greenfoxx,
    I have been rode many topic about MQTT that can help me to read data from my device, but I did not understand. I need your help now.
    I have a device that can setup to forward data is in JSON. You can see a screenshot as bellowing.
    https://ibb.co/0FnHphk
    I used MQTT driver version 5.0 to read data with following configuration but not result.
    https://ibb.co/jVmgx1z
    https://ibb.co/Gph9WDX
    https://ibb.co/2gJjc36
    So I want to ask you:
    – Which version of MQTT driver that can read data from this device?
    – How to configure a MQTT communication line? (Note: the device has a IP 192.168.1.117)
    Thanks and best regards
    Han Hoang

    #12559
    RapidScadaHan
    Participant

    Dear greenfoxx and All
    The device forwards data in Json format likes this:
    ExampleJSON, for 1 meter being transmitted:
    {
        “rtdata”: [ {
        “uid”: “00:01:02:03:04:05:00:01”,
        “did”: 1,
        “S1”: 278.59,     //Phase1 Apparent Power (VA)
        “S”: 837.36,                                   //SystemApparent Power (VA)
        “A1”: 0,                                          //Angle1 (Degrees)
        “V3”: 242.17,      //Phase3 Voltage (V)
        “P2”: 262.23,      //Phase2 Power (W)
        “RE3”: 2046057.995, //Phase 3 Reactive Energy (varh)
        “Q3”: -95.057,    //Phase3 Reactive Power (var)
        “A2”: 0.15,        //Angle2 (Degrees)
        “E”: 53559.31592,  //System Energy (Wh)
        “U3”: 1.025,       //Phase 3 Line to Line Voltage (V)
        “P3”: 262.84,      //Phase3 Power (W)
        “REx”: 18592.91342, //System Reactive Energy Export(varh)
        “U1”: 0.73807,      //Phase 1 Line to Line Voltage (V)
        “V1”: 241.3,        //Phase1 Voltage (V)
        “RE2”: 512121.6998, //Phase 2 Reactive Energy (varh)
        “ts”: 1516362683,    //Servertime (Seconds)
        “Ex3”: 286326.6791,  //Phase 3 Export Energy (Wh)
        “AE2”: 541141.7201,  //Phase 2 Apparent Energy (VAh)
        “RE”: 2285337.066,   //System Reactive Energy (varh)
        “I2”: 2.423,        //Phase2 Current (A)
        “A3”: 0.13,         //Angle3 (Degrees)
        “E2”: 17881.0226,   //Phase 2 Energy (Wh)
        “REx1”: 352050.9531,  //Phase 1 Reactive Energy Export(varh)
        “I”: 7.2894,                                   //SystemCurrent (A)
        “In”: 6.5333,     //Neutral Current (A)
        “S3”: 279.52,     //Phase3 Apparent Power (VA)
        “U”: 0.7518,      //System Line to Line Voltage(V)
        “F”: 50.055,                                 //Frequency(Hz)
        “RE1”: 74246.0259,  //Phase 1 Reactive Energy(varh)
        “P1”: 263.19,       //Phase1 Power (W)
        “E1”: 110343.0785,  //Phase 1 Energy(Wh)
        “PF”: 0.94137,       //SystemPower FactorNounit
        “REx3”: 6239.513739, //Phase 3 Reactive Energy Export(varh)
        “AE3”: 2085295.743,  /Phase 3 Apparent Energy(VAh)
        “V”: 241.72,                                //SystemVoltage(V)
        “Ex”: 317545.1858,  //System Export Energy(Wh)
        “Q”: -282.33,                              //SystemReactive Power (var)
        “S2”: 279.24,       //Phase2 Apparent Power (VA)
        “REx2”: 7412.039811, //Phase 2 Reactive Energy Export(varh)
        “PF3”: 0.94495,     //Phase3 Power Factor Nounit
        “PF2”: 0.94336,    //Phase2 Power FactorNounit
        “E3”: 17169.13177, //Phase 3 Energy(Wh)
        “I3”: 2.4304,        //Phase3 Current(A)
        “PF1”: 0.94843,     //Phase1 Power FactorNounit
        “P”: 788.26,        //SystemPower (W)
        “U2”: 0.49234,      //Phase 2 Line to Line Voltage(V)
        “V2”: 241.68,        //Phase2 Voltage(V)
        “Q2”: -95.957,      //Phase2 Reactive Power (var)
        “Q1”: -91.319,      //Phase1 Reactive Power (var)
        “AE1”: 461996.2103,  //Phase 1 Apparent Energy(VAh)
        “Ex2”: 85510.65138,  //Phase 2 Export Energy(Wh)
        “Ex1”: 37562.71023,   //Phase 1 Export Energy(Wh)
        “AE”: 3088475.549,    //System Apparent Energy(VAh)
        “I1”: 2.436            //Phase1 Current (A)
        }]
    }
    Thank you again.
    Han Hoang

    #12560
    Mikhail
    Moderator

    Hello,

    In version 5, you should set communication channel type to Undefined.
    To get values from JSON, you should use JavaScript as described here.

    #12568
    RapidScadaHan
    Participant

    Dear Mr.Mikhail,
    Thank you for your reply.
    I am not good at mqtt so could you create online a mqtt driver of my meter device. This device is working now. My boss agreed with me to charge fee for you. You can suggest a fee via my email: Hoanghan1962@yahoo.com
    Thanks and best regards
    Han Hoang

    #12572
    Mikhail
    Moderator

    Hello,

    We can create a project to collect data from your MQTT device. To get an offer, please email us the details, including MQTT topic to read and JSON example if used.

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