Forum Home › Forums › Communicating with Devices › MQTT Issue
- This topic has 8 replies, 5 voices, and was last updated 10 months, 3 weeks ago by Mikhail.
-
AuthorPosts
-
April 11, 2021 at 9:30 pm #8705KokoiParticipant
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/PmjX4PbApril 12, 2021 at 10:15 am #8708JureParticipantI 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.
April 12, 2021 at 1:55 pm #8715greenfoxxParticipantHi Kokoi!
What broker do you use in your example? Have you tried to connect to server broker using MQTT Spy for example?April 12, 2021 at 2:21 pm #8716greenfoxxParticipantFrom this link you can find Mqtt – Spy https://github.com/eclipse/paho.mqtt-spy
May 11, 2023 at 9:18 am #12557RapidScadaHanParticipantDear 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 HoangMay 11, 2023 at 9:25 am #12559RapidScadaHanParticipantDear 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 HoangMay 11, 2023 at 10:46 am #12560MikhailModeratorHello,
In version 5, you should set communication channel type to Undefined.
To get values from JSON, you should use JavaScript as described here.May 12, 2023 at 3:50 am #12568RapidScadaHanParticipantDear 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 HoangMay 12, 2023 at 11:25 am #12572MikhailModeratorHello,
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.
-
AuthorPosts
- You must be logged in to reply to this topic.