-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LightMeasurementDevice SOAP interface #236
Comments
We are using some SQL scripts to create a handful of light measurement devices. Those devices have known names, IP addresses etc. There is no need to change/add/remove light measurement devices for our use cases. Coupling SSLD's to LMD's is supported and the coupling can be changed by users. If you need to add some light measurement devices, I could provide an anonymized version of the SQL scripts. Or if you need the SOAP web service operation(s), the team would be delighted to review your pull request. |
SQL script will be appreciated. |
I added this for you: https://github.com/OSGP/Config/tree/development/sql/light-measurement-devices Please have a look at these basic SQL scripts, these are inserting data which is very much like the production environment uses.
There are If you would like to use the IEC61850 simulator (https://github.com/OSGP/open-smart-grid-platform/tree/development/osgp/protocol-adapter-iec61850/protocol-simulator-iec61850) to simulate some LMD's, you're going to need some configuration for the protocol adapter and simulator. And a small change to the data as provided by the SQL scripts and a slightly tweaked server model / ICD file. If that's what you want to do, please let me know. |
I think it would be great if you want to contribute some code to this project. The SOAP web service operations to create, update, and delete LMD's are indeed missing. Even though we are using those SQL scripts, it would be nice if the platform web service supports those operations. |
Here is what I have managed to implement so far.
The following DeviceManagement IF operations can be resued:
The following PublicLightingAdHocManagement IF operations can also be resued:
Additionally, I plan to add a few integration tests, but if you want I can provide a pull request only with source code and update it when tests are finished. |
That sounds very nice, @ThE-MaRaC. I think it would be good to create a pull request with the initial changes. That way, you can have a look at the CLA and decide if you are in agreement with it. I don't mind a pull request which is updated at a later time. |
Pull request is available: OSGP/open-smart-grid-platform#504 |
LMD SOAP Interface integration tests are updated.
|
Additionally, I noticed that none of the currently available FindDevices/FindAllDevices operations is able to return LMD data.
Another option would be to implement a completely new operation which will return only LMD's. |
The operation
I don't think there's a PublicLighting web service operation that is returning LMD data. I would have to look into the actual usage of the operation(s) for retrieving devices as part of the PublicLighting web service. Personally, I think it would be nice if the PublicLighting web service could be used to retrieve both LMD's and SSLD's. |
PublicLightingAdHocManagement FindAllDevices operation has been extended to return SSLD's and LMD's.
|
Hi ThE-MaRaC, Thanks for reading through, your help will be greatly appreciated. |
@Rupali-2 I am not using protocol-simulator-iec61850, instead, I have Raspberry Pi + Photoresistor. On Pi I run MMS server which is written in https://libiec61850.com/libiec61850. |
The changes to add, update and request light measurement devices using the public lighting web service operations from pull requests OSGP/open-smart-grid-platform#504 and OSGP/open-smart-grid-platform#534 have been merged. |
SOAP interface for LightMeasurementDevice creation is missing.
It is only possible to assign existing LightMeasurementDevice to Ssld via SetLightMeasurementDeviceRequest from PublicLightingAdHocManagement IF, but not to create it.
Also, AddDeviceRequest from DeviceInstallation IF always creates Ssld.
The text was updated successfully, but these errors were encountered: