EcoStruxure Geo SCADA Expert Forum
Schneider Electric support forum about installation, configuration, integration and troubleshooting of EcoStruxure Geo SCADA Expert (ClearSCADA, ViewX, WebX).
Link copied. Please paste this link to share this article on your social media post.
Posted: 2023-02-25 02:10 AM . Last Modified: 2023-05-02 11:48 PM
Hey,
I have managed to stumble through the Sparkplug B driver documentation and created the driver without editing the source code provided. Has anyone had this working with security (TLS/SSL) yet?
Specifically I am just after how the CA certificate and Client certificate fields are populated. Looks like they are defined as a string in the driver, and then created on the go?
With the native MQTT driver the security setup has the option to create certificate variables and then link to these in the broker. Is this an option that can be added to the sparkplug driver?
Cheers,
Cam
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2023-02-27 03:06 AM
Hi Cam,
First - well done!
Second - there's a native built-in Geo SCADA driver for Sparkplug in the 2022 release and this may be the best option for you.
Third - if you still want to use the driver code (and you are welcome to!), it may be because you want to customise it or use it with earlier Geo SCADA/ClearSCADA versions.
The certificate stuff is just exposing the M2MQTT .Net library call parameters, so it's all down to whether the underlying open source .Net library works the way you want/expect it to work. There's nothing in the Sparkplug driver code on GitHub which you can tweak if the library doesn't support what you need. See their github page at: https://github.com/eclipse/paho.mqtt.m2mqtt
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2023-02-27 02:46 PM
Thanks Steve,
Our customer is using v2020 with a 2021 update, so looks like we are stuck with building and testing the driver at this stage.
I am not so proficient in C# or building drivers, so i don't see this going far. Is there any chance the v2022 Sparkplug driver can be compatible with previous versions of Geo SCADA?
What i did manage to do is get Node-red working as a Sparkplug MQTT client with SSL and was able to see the message data as needed from the devices were are trying to talk to.
I guess the next step could be to use this data from Node-red (or decode first) and then push to GeoScada using some other protocol (OPC-UA, modbus).
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2023-02-28 02:26 AM
Drivers can only work with their released software versions.
Getting the Sparkplug DDK driver working is not so hard - see the PDF document and videos should help.
Download PDF by getting 'product' at: https://shop.exchange.se.com/en-US/apps/61786/ecostruxure-geo-scada-expert-sparkplug-b-sample-driver
See: https://www.youtube.com/watch?v=tVEIMkj9PnM&list=PLa7UGrWOTyjnPpCJxnTZkdBM_6D70qoKl&index=11
and: https://www.youtube.com/watch?v=8gXaw6seCfc&list=PLa7UGrWOTyjnPpCJxnTZkdBM_6D70qoKl&index=12
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2023-02-28 04:47 PM
Hi Steve,
I had followed those videos and pdf file - hence the question around the ssl/tls and certificates, as I can't see any examples of this being used or noted how to setup in the pdf/videos.
All I am really after is how the certificate fields in the Geo SCADA need to be filled in. Are they a file location to where the certificates need to be? or are they the name of the files - if this is the case, where do we put these files?
Or do I need to call a different M2MQTT client function to get this functionality into the driver and database?
Cheers,
Cam
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2023-03-01 05:55 AM
I believe you pass in certificate filenames in these fields, so the files are read by the driver, so they need to be in locations the driver can read. e.g. in ProgramData
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2023-03-08 03:15 AM
Hey Steve,
I have managed to get the security working. I believe the field names for the certificates need to be the path, as GeoScada kept throwing errors until I included the path - something like C:/ca.crt
As a bit of background we are using mosquitto as a broker and i couldnt get GeoScada to connect with the cert files, so i added the cert files to the trusted root certificates of both broker and Geo Scada PC
Now for the next part, hopefully you can point me in the right direction.
The device we want to talk to is a flow meter, its using sparkplug topic structure but the documentation also says its not sparkplug compliant!
Using Node-red i can see the message payload and it seems slightly different to some of the node-red layout I can see in the sparkplug youtube video.
Here is a snip from Node-red
An this is a snip from the device documenation
And I can see the broker sending GeoScada the data
I have had a bit of a play with trying to setup this tag in GeoScada, but not getting anywhere. The auto setup didnt pick up any devices, so i manually tried to create the device, which seems ok, just getting the message to an analog sparkplug doesnt seem to work. Any ideas for what I can try?
Cheers,
Cam
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2023-03-08 06:01 PM
So an update to this, looks like the flow meter doesn't quite follow the Sparkplug message structure, so I managed to play with the Driver and adjust the decode function to accept the correct parts. Now i am getting an error from the driver logs about logging into to something - i imagine this is the driver trying to log into GeoScada to make changes to tag structure? Where do these usernames and passwords reside in the driver? or can i just hard code something for now to get going.
Cheers,
Cameron
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2023-03-08 06:14 PM
Ok found out it username and password just needs to be added to the device setup.
Now i have the device created automatically in GeoScada. All seems to be working nicely!
Cheers,
Cam
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2023-03-09 12:28 AM
Brilliant! Well done.
Link copied. Please paste this link to share this article on your social media post.
Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.