A Forum run by Enthusiasts of MidNite Solar

Charge Controllers and Clippers => Hawke's Bay => Topic started by: ClassicCrazy on April 09, 2023, 11:33:15 AM

Title: MNGP2 / Hawkes Bay suggestion for MQTT
Post by: ClassicCrazy on April 09, 2023, 11:33:15 AM
With the Canbus comms being more complex and always evolving , as well as perhaps propriety compared to the Classic modbus published protocol , I have a suggestion and request.
Would it be possible for Midnite to  build into the software mqtt output? 
That would make it possible for those of us who want to grab the basic data for our monitoring or control systems to get it. It would be make it easy without having to be digging into code and would also make remote monitoring much easier since mqtt data can be sent to local or internet based servers.
I am not a programmer but perhaps the Midnite software team could consider this during the development of code ?
Thanks
Larry
Title: Re: MNGP2 / Hawkes Bay suggestion for MQTT
Post by: boB on April 09, 2023, 03:02:48 PM
Larry, nice idea.

But I don't think that will happen anytime soon because this canbus stuff is hard enough already as well as evolving as you say.

But certainly didn't hurt to ask !

I thought I heard Wizbandit talking about MQTT though ?

boB
Title: Re: MNGP2 / Hawkes Bay suggestion for MQTT
Post by: ClassicCrazy on April 09, 2023, 03:58:22 PM
Quote from: boB on April 09, 2023, 03:02:48 PMLarry, nice idea.

But I don't think that will happen anytime soon because this canbus stuff is hard enough already as well as evolving as you say.

But certainly didn't hurt to ask !

I thought I heard Wizbandit talking about MQTT though ?

boB
yes Wizbandit is using the code he wrote to convert the data to mqtt and then it is easy to send to whatever - in his case I think he uses a raspberry pi running grafana to graph it.
That is the solution we used for the Classic since only one device could connect to Classic via IP, but if you convert it to mqtt then you can have as many things as you want getting the mqtt data.
I am a novice at this, though I have learned enough on how to use mqtt now.
Larry
Title: Re: MNGP2 / Hawkes Bay suggestion for MQTT
Post by: boB on April 09, 2023, 07:51:49 PM
Our com box uses an Orange Pi single board computer that works very well actually.

raspberri Pi's aren't available any more unfortunately. They were always more $$ than
 the O-Pi anyway.

I don't know anything about MQTT.  I thought MQTT was some kind of graphical programming language.

Title: Re: MNGP2 / Hawkes Bay suggestion for MQTT
Post by: ClassicCrazy on April 09, 2023, 09:35:28 PM
here is a brief summary

What is MQTT?

MQTT stands for Message Queuing Telemetry Transport. MQTT is a simple messaging protocol, designed for constrained devices with low bandwidth. So, it's the perfect solution to exchange data between multiple IoT devices.

MQTT communication works as a publish and subscribe system. Devices publish messages on a specific topic. All devices that are subscribed to that topic receive the message.
MQTT Publish Subscribe
Its main applications include sending messages to control outputs, read and publish data from sensor nodes and much more.
MQTT Basic Concepts

In MQTT there are a few basic concepts that you need to understand:

    Publish/Subscribe
    Messages
    Topics
    Broker

MQTT – Publish/Subscribe

The first concept is the publish and subscribe system. In a publish and subscribe system, a device can publish a message on a topic, or it can be subscribed to a particular topic to receive messages

https://randomnerdtutorials.com/what-is-mqtt-and-how-it-works/