PLEASE NOTE: If you had an account with the previous forum, it has been ported to the new Genetry website!
You will need to reset the password to access the new forum. Click Log In → Forgot Password → enter your username or forum email address → click Email Reset Link.

Notifications
Clear all

WiFi function

18 Posts
6 Users
0 Likes
307 Views
(@sid-genetry-solar)
Member Admin
Joined: 4 years ago
Posts: 2883
 
8 hours ago, NotMario said:

I'm not very experienced with MQTT, but it sounds to me like what you're saying is i can make a MQTT "broker" (what i would call a server). The inverter already is set to post to topics that would run the gambit of the data in the JSON?

Yes, the JSON data is actually just the MQTT data all pulled together with a bit of formatting.

 

8 hours ago, NotMario said:

My original thought was the inverter would have an MQTT port open and one could just subscribe to the topics he wanted. But i suppose the other way around works just as well - with the pitfall you brought up.

MQTT isn't designed that way; the MQTT client libraries are designed to connect to a common "broker" (server, whatever)...2 clients cannot talk to each other directly, they need a broker/server.

 

8 hours ago, NotMario said:

I was just wondering because there are some monitoring products out there that "support" Modbus. It was something i was thinking about because i like well-integrated systems. Having one system monitor my Bank, Generator, PV output shunts, and the inverter is nice and clean.

If we can find a clean and simple library (i.e. not overbloated messes like MOST libraries are), it might be possible to implement ModBus TCP.


   
ReplyQuote
(@notmario)
Reputable Member
Joined: 3 years ago
Posts: 314
 
12 hours ago, Sid Genetry Solar said:

MQTT isn't designed that way; the MQTT client libraries are designed to connect to a common "broker" (server, whatever)...2 clients cannot talk to each other directly, they need a broker/server.

See this is why i say i'm not an expert. Very interesting. That sort of makes sense given it's design.

12 hours ago, Sid Genetry Solar said:

If we can find a clean and simple library (i.e. not overbloated messes like MOST libraries are), it might be possible to implement ModBus TCP.

The protocol is pretty simple as i understand. If you ever seriously consider the functionality, i'll write you a library for it. I presume you use C.
I've been meaning to write an implementation of it at some point anyway. (I run into it occasionally in my line of work)


   
ReplyQuote
(@sid-genetry-solar)
Member Admin
Joined: 4 years ago
Posts: 2883
 
Posted by: @notmario
See this is why i say i'm not an expert. Very interesting. That sort of makes sense given it's design.

Hey, if you want to 😉

Just write it for the ESP32; developer boards for that are quite cheap.  There might be a super lightweight library out there yet that I haven't found--but to be honest, I haven't really looked.  I really don't like to reinvent the wheel if I don't have to 😉.


   
ReplyQuote
Page 2 / 2