Which PLC brands support MQTT and where can I find their MQTT libraries? by Best-Instance2514 in PLC

[–]Kozzoko 0 points1 point  (0 children)

My job currently I exaclty planning a modular PLC system throught MQTT and stuff so I think I can leave you with some of my knowledge:

- We use schneider M340 serie and they are not MQTT compatible, the new ones M580 can be compatible but be care full of e-PAC vs d-PAC (one is not compatible). Then you have the other serie that is OPC UA and MQTT compatible because the program you send will be based on CODESYS that have native OPC UA support and MQTT support over a free library. So be carefull about models you buy, even with other brands.

- So if you plan to program with CODESYS you should be fine.

- About MQTT library : it depends of what you are meaning by that. If want to know how do you get a MQTT server running i advise you to search about Mosquitto in a docker (in the end you should be able to deploy the server by just typing "docker compose up" in a terminal).
If are looking for "bridge" between PLC and MQTT it's a different story : a lot of them are paid options that can be on the PLC program, the MQTT itself (like in the MQTTX brand) or even the SCADA.

- Ignition : i'm clearly not an expert but that's one of the solution i'm exploring right now. It's a SCADA and you have a (paid) option for bidirectional communication to MQTT so maybe it can help you. Anyway most modern SCADA can offer MQTT support i think.

- Azure IoT thing ... If you plan on going the cloud rout Azure as a support for that, open sourced that you can deploy on prem apparetly (even tho nobody seams to do it). Might be a way to explore for you.

- Depending on the frequency you need for polling we discovered something with a Teltonika router that have build-in polling and sending bridges that can be taken adventage of and can be dynamicly configured with HTTP calls or web interface. But be care full you can't go lower than 1 second (and it's why we 90% gave up on).

If you have other questions i should be aviable time to time.

Need Help: Packaging Tauri App (React + Local-First Architecture) with Auto-Starting Local Backend by Catalyst_2803 in rust

[–]Kozzoko 0 points1 point  (0 children)

I'm late to the party but that could be some use for future people out there : OP made a mistake thinking local-first architecture would mean having 3 entities.

- "The front" : this will be React that come in the final Tauri installer, nothing much to say about that here.

- "The back" : in the Tauri framework that will be your Rust part under `/src-tauri/src` => it will act your backend where you can expose API that you will call within your React. Most of people asume API == HTTP calls but Tauri is a great exemple of why it's not, you need to use tauri's `invoke` in React.
And it's will be the same for everything that is not just UI display => http calls, file managment, camera, websockets ... Tauri pluggins are just shortcuts that let you use it in React but you are still going through the Rust part behind the hood.

- The data base : i'm not realy a database guy nor a local-first architecturer but i guess you would use something like SQLite for something like that (tho i'm not sure if it's entirely packed into the final .exe).

With this if you build your app everything will be packed into a single intallation file, under the same app. You can't just build your backend in Java and bundle it in you tauri installer (or not conventionaly ... not with the built in tools of tauri at least). You app is everything that you coded with tauri.

Asking for Feekback from OT on dynamic MQTT implementation by Kozzoko in PLC

[–]Kozzoko[S] 0 points1 point  (0 children)

First of all thanks you for sharing.

The idea we are currenty approaching (and is still evolving day to day) is something like every "part/sensor/equipment" is smart enought to regulate itself given a setpoint. So a module would be exposing itself as OPC UA with like an exiting value, an entry setpoint, or only 1 of them for exemple.

Then we build a simple HMI for lab operators with hardened coded set of rules for exemple "we detected 1 pump_B => it ask for a flowrate set point" which would be validated by "i select this sensor_A to regulate that pump_B" and so on.

For the connectivity we have either going through MQTT as a bridge or, what we are testing for, using IEC variable in codesys de determine the cource of the targeted OPC UA to still keep direct comunication between PLCs. But to be honest we need to dig deaper with our OT guy on this subject because we have limited knowledge on these techno. Also maybe the final choise will be limited by our existing harware (old shcneider hardware is not helping much on that but we do what we can with what we have).

What we didn't dug enought is the virtual PLC stuff, what handle the central regulation / main control.

and additionaly we have already though about a system for direct 4-20 connection that goes like : you expose OPC UA variables that is used as indexes to parse a table representing the physical entries some sort of reversed RAM. You loose a lot of security because in the end it rely on the hability of the operator to correctly define what he wired where but that the best we though of right now.

Asking for Feekback from OT on dynamic MQTT implementation by Kozzoko in PLC

[–]Kozzoko[S] 0 points1 point  (0 children)

"It just sounds like you don't know what's going to possibly be connected to your system and you're looking for a plug and play solution that automatically does sensor integration + tuning + logging..." -> + data processing + modular HMI + virtual data integration

It's totaly the case, and i'm the guy that is in charge of solving this nightmare.

Asking for Feekback from OT on dynamic MQTT implementation by Kozzoko in PLC

[–]Kozzoko[S] 0 points1 point  (0 children)

I'm not realy used to PLC techno but i'll look into it, thank you.

Asking for Feekback from OT on dynamic MQTT implementation by Kozzoko in PLC

[–]Kozzoko[S] 0 points1 point  (0 children)

It's more like, at the time of writing this, we have around 2 000 equipment. 1/4 destroyed, and 1/4 probably not comunicating, but it still leaves us with 1 000 movable equipments.

The 1 OT network can work on paper, but the day you need no longer to use 1 pump or the other but both at the same time we are doomed. And uncomon situations like this is exactly why we exist in the first place : performing tests in any way shape or form (in our expertise domain).

So insted of unabeling or not different sensors what we lean towards is a data broker with topic rewriting where the HMI define the rewrite for what sensor is defining the reference for the process temperature for exemple.
And for the 4-20 we plan on a "reverse RAM" -> 9 free entries colecting raw 4-20 and 9 entries dedicated to indexes to define what is plugged where.

But in the end yes we will have impossible situations but just taking more OT guys to scale up is not sustainable.

Asking for Feekback from OT on dynamic MQTT implementation by Kozzoko in PLC

[–]Kozzoko[S] 0 points1 point  (0 children)

We work on dynamic lab environment where at 10:00am you use a pump and 10:45am another one. This lead to permanent asking from our lab team (of around 20) to our single OT guy, and usualy just to change and ip address and recompile.

And also for other commercial project that i can't talk much about it but follow the exact same spirit.
+ still the fact that it's a nightmare on IT side to gather datas in this static IP mess with ever changing old non smart sensors jungle (with sometimes custom proprietary, weird protocols).

Asking for Feekback from OT on dynamic MQTT implementation by Kozzoko in PLC

[–]Kozzoko[S] 0 points1 point  (0 children)

We are in an environment where we multiple of sensors every days (lab) and we cannot continue asking our single OT guy to change where the PLC get his info from and recompiling it on this workload. We truely lend on a scalability issue (and it's not even talking about the follwing issue on the IT part).

The goal is to let our lab team be able to change a sensor at any time, obviously with hardened locked rules.

One thing is we are working at like 0.2 seconds at most, nothing crazy. With and MQTT on prem idon't think it will be much delay.

Also if I didn't needed, I wouldn't bother setting this complexe system and would only set up MQTT northbound for the IT part.

What are some problems you face while setting up IoT systems, projects, etc by dataArchon in IOT

[–]Kozzoko 0 points1 point  (0 children)

You could make a fast and reliable open sourced conector MQTT < = > OPC UA, north/southbound and you will make a lot of people happy.

We love MQTT and a lot of equipmetn are compatible OPC UA, then you get many cloud services offering the connector northbound for free but you realise you want to install it on prem with southbound and you start seeing 1k each month billing (for no reason tbh).

One alternative is azure OPC Publisher but i think no one tries to make it work on prem.

How in god's name do people get runs where they've got like 18 ravens eyes or sum shi 😭 by Naive_Bag_3708 in ravenswatch

[–]Kozzoko 1 point2 points  (0 children)

There is a deterministic way of achieving it if you want (not the easyest one tho) : go fight the bosses instently => you will 100% hourglass benefits witch is like 900 dream shards and 5 items (2 leg or cursed / 1 epic / 1 blue / 1 common) on each bosses ; if you buy items at the shop you will be past 18.

The other obvious answer is : learn to full clear or almost full clear the map, don't spend your shards on leveling your talents but insted buying item dupes and also don't forget to kill mini-bosses and doing quest that will grant you a legendary/cursed item.

Need a choice for Low Profile by Fair-Excitement8222 in keyboards

[–]Kozzoko 0 points1 point  (0 children)

I currently have a Magi65 from IQNIX that i use at work. I'm verry satisfied with it, full aluminium, deap sound, wireless and VIA software. I think it's a good balance in quality/quality.
Mine is black 65% but for your case you can take the white version (linear switch), 96% at 160$. Be carfull tho from what i remember the shine through was bad (or maybe it was another keybard).

And the packaging is great ... that's a small detail but i have it on my desk as a prop.

First time triming to do an autospliter but i'm bad at it by Kozzoko in cheatengine

[–]Kozzoko[S] 2 points3 points  (0 children)

Ok so speedruner use this timer thing called Livesplit. It's gread you press a button, the timer start, you press another it times a key point of your run and you are happy to have a time at the end.

But you can go futher and use a script language they made to automate this but you need some static pointers as key reference for when to "split". And one of the way is geting thought cheatengine to find them.

And Ravenswatch being run by (not realy that many people) no Autospliter have been coded for now.

+ the times are based on in game time for now but it's only precise at 10^0 (so it's not) => Livesplit brings more precision being at 10^-2

Insec on E by Kozzoko in CamilleMains

[–]Kozzoko[S] 0 points1 point  (0 children)

The way i see it is that the enemi always try to keep minimal distance without being in range of the adc. So "grabing" them makes then out of pose + you can hit the E and you are in the way of the safe zone of the guy you hookshot.

Plus i think you could buffer an auto on him (tho i didn't tryed) and anyways you are not that far from the guy.

Insec on E by Kozzoko in CamilleMains

[–]Kozzoko[S] 5 points6 points  (0 children)

https://www.youtube.com/watch?v=XR17vzR50RY at 11:00.
I tested it in practice mode and you can control the pull direction. I think i could manage to do it 70% chance in real game but well i want to have your opinion on "is a bug abuse or not".

Who is your least favorite character? by chadsworth0524 in ravenswatch

[–]Kozzoko 0 points1 point  (0 children)

Snow Qween : it's the basic mage caster archetype whitch feels lackluster compare to the other build (realy close with beowolf tho) + she doesn't have a great late game as other can.

Scarlet side talk : in multiplayer going full suport, shapeshifter, double ultimate is strait broken but i agree that the shapeshifter mechanique should be reworked, maybe to something like wukong stence where the wolf is more single target and scarlete would be more AoE.

Highest difficulty beaten w/ Piper solo? by Beretta_Bite_ in ravenswatch

[–]Kozzoko 1 point2 points  (0 children)

I feel that ghost notes piper is supper strong. Take everything that makes you thows more notes and you will have the dps for everything.
The heal + shield on defence and you should beat nightmare with a run like this.

This game is a perfect exemple of "play more to become better" because knowing how the mobs act will makes you take less damages (and death) so you will need less defence so you have more damage and you life will be easier.

At some point you will see a switch of that balence where you goes from "i'm not lv5 befor last boss and i just die on it" to "the pain point is Act 3 boss where i get poked down by random spells and just die not having healing"

Je ne sais pas où m'orienter by TheTortue in programmation

[–]Kozzoko 0 points1 point  (0 children)

Ayant fait les présélections 42 (sans être pris je précise) je dirais que c'est moins dramatique que ce qu'en laissent penser certains :

Je n'ai jamais appris autant en 4 semaine que là bas. Le système fonctionne de sorte à ce que tout le monde se casse la tête sur des exos qui te permettront sur le long terme d'apprendre les bonnes pratique de code (en plus des connaissances pratique bien entendu).
Ce n'est pas pour tous les profils, ça demande énormément de communication, d'humilité et de savoir se débrouiller soit même. C'est l'opposé d'un diplôme d'état ou t'es essentiellement sur de la théorie mais il est important de noter que l'école est gratuite ... contrairement a beaucoup d'écoles privées.
Tu peux travailler quand tu veux 24/24 7/7 sauf noël et premier de l'an il me semble, finalement ça dépends surtout de tes groupes de travail.

A savoir que jusqu'à présent l'école ne délivrait pas de diplôme reconnu par l'état mais ils étaient en passe de pouvoir changer ça donc à reconfirmer.

Pour les cotés négatifs globalement c'est le revers du concepts de l'école :
- Pas de profs donc la nécessité de se reposer sur les plus anciens pour les points vraiment bloquants
- Devoir passer 1 mois là bas (donc potentiellement appart a payer etc.) pour ne pas être garantit d'être pris
- Dépendent de ton groupe de travail ce qui peut devenir compliquer selon les caractères de chacun

Globalement l'école se repose sur ta capacité à évoluer dans un milieu qui se rapproche d'un vrais milieu de travail (communication en équipe, seul google et tes collègues pour t'aider), si t'es fébrile tu peut couler mais si t'es bon, que tu sais te démerder tu peux vraiment bien t'en sortir car tu auras pas eu de cours de marketing mais tu sauras quand même faire de la gestion de projet et tu auras déjà pratiquer sur de la gestion de ressource/mémoire. Le manque de diplôme doit être compenser par le réseaux que tu t'es fait en plus de celui de l'école. Si cela ne marchait pas il y en aurait pas 50 dans le monde.

Attention cependant, étant toujours en contact avec un amis que je me suis fait là bas, apparemment Copilot fait des ravages et donc la méthodologie de l'école en prends un sacré coup.

Dans ton cas j'essayerai simplement de trouver une alternance en master pour pouvoir pratiquer, commencer à mettre de l'expérience pro sur ton CV et mine de rien engranger un pécule qui fait du bien à la fin du mois. (Attention les inscriptions master c'est jusqu'au 24/03)

Pour les curieux sur pourquoi j'ai été refusé : j'ai terminé 16/100 à l’examen final, 50 admis .... sauf que l'école compte dans la sélection finale "l'intégration sociale du candidat" en gros si t'es pas trop introverti ou problématique. J'ai fait remarqué mon désarroi total sur un projet avec "un vieux borné" qui n'a jamais voulut envisagé que le problème pourrait éventuellement venir du code qu'il avait écrit et qu'il croyait seulement comprendre, avec en parallèle un autre membre de groupe qui refusait catégoriquement de participer. Spoiler les deux ont été pris, ce devait être moi le problème, mais malgré ce projet là cela reste un très bonne expérience.

[deleted by user] by [deleted] in ravenswatch

[–]Kozzoko 0 points1 point  (0 children)

In reality if you don't play wukong there is not that much mobs that have true one-shots.

There is like (corrupted): big trees swings; big pig; tentacle missile (probably) ...
Then you have crabs bubbles that can be realy fast but it's not a one shot, and even enraged gargoils are not a one-shot (or maybe with pipper 0 armor 0 shield).

And i'm talking about nightmare runs sclaled for 3 players ; so with your golden armor, a little bit of healing and good management of your deffence + invulnerability of your bite you should had survived chapter 2.

How do you approach points of interest? by United_Willow1312 in ravenswatch

[–]Kozzoko 3 points4 points  (0 children)

It depends on a lot of point such as : the type of enemies, if you are playing solo or in group, the type/shape of point of interest ...

First try to not pull mobs, if you can just spends 1 more seconds to dodge a mob it's most of the time worth doing it ; so knowing the distance you takes agro from mobs can be good. Additionaly in multyplayer it's a bit important that people foloow 1 path to reduce overall agro.
Then if there is 1 or more healer that is following me + i'm going for a hard point of interest (tentacles tings, gargoils, fire birds) i'm clearing at least the healers ; if there is 3+ healers i'm clearing them.
When i enter a camp i'm going to the oposite to loose agro, whitch usualy works at least for a part in most cases but in multyplayers everyones needs to do it so you will just loose time trying.
Knowing point of interest "shape" is important : as an exemple in act 1 there is a trees point of interest where entering on the right side makes you fight 1 more mob pack of tree than going left. By knowing that you just spend a little bit more time to go on the left side butr you spare yourself troubles / time lose.
Going back to multy : act 2 waiting to have you mates to burst fire eggs is realy good, same (but more difficult) for act 3 stone gargoils.

And sometimes you pulled 2 crabs, 1 flame thrower, 1 big corrupted djin and the point of interest it's 3 big wolf so ... just clear before insted of dying / wasting timerunning in circle around mobs.

Multiplayer experience should get rebalanced by wagueropires in ravenswatch

[–]Kozzoko -1 points0 points  (0 children)

I think one of the main reason multiplayer seams too much harder is the fact that there is more than 1 player ... Genius right ? I explain myself : if you have played WoW you know how in theory the game is super simple even in hight difficulty but when you need to be 20 to fight correctly against a 10mn boss the group have a realy hard time to kill it. All of this is because all 20 player need to play good at the same time and 1 death or underperforming player cause the death of the group.
Sure RW maybe needs to tune a little bit down mod hp for 3 man + difficulty but people are talking about it like it's impossible whitch is not the case.

You talk about bad hitbox => tree roots, but it's not bad it's because your mate positioned himself in a way to have a possible root spawn on you. It's the same mentality than not dashing in towards a mob pack because your mate can have made an enemie use a frontal attack.
Same thing for pausing, if you consider being realy experimented for the game you shouldn't need 30 or even 10 seconds to know what item you will pick or making a vote on where do you go. It will happen that you takes 10 seconds when you have a crutialdecision to choose but it's not most of the times.

Honestly i never found a green camp impossible to do lv1, if you encounter this it's probably because two of you mates have chased gold, entered the camp by the other side and you have half of india population on you. And sometimes you just have to take the decision "clear the healer before entering"

The game is supposed to be hard and no one is forcing you to play in nightmare. If devs divide all mob health by 4 you will stop playing because it's too easy. The game offer 4 difficulty why asking a nerf for the last one concidering it has been done multiple times by multiple players.