Giter VIP home page Giter VIP logo

Comments (8)

mzillgith avatar mzillgith commented on August 15, 2024 2

Nice to hear that it works :-)

from libiec61850.

mzillgith avatar mzillgith commented on August 15, 2024 1

Ok. That information helps to get closer to the problem.
As the control model is 4 (SBO with enhanced security) only the selectWithValue should be accepted. That is also what can be observed with wireshark.
The response is "object-access-denied". That indicates that there is an access control restriction for that control. The value of "origin" is "192.168.0.100" this may indicate that the IED is configured to only allow select/operate from a client with that IP address and/or with this value of origin set.

from libiec61850.

mzillgith avatar mzillgith commented on August 15, 2024

I think there is nothing wrong. It just means that the server provides no additional information about a problem (if there is any).
But when using SBO control you have to use the proper select (Select/SelectWithValue) before operate.

from libiec61850.

IgorMundstein avatar IgorMundstein commented on August 15, 2024

@mzillgith

Sorry, I forgot to say...

Select/SelectWithValue commands does not work either.

if (control.Select()) {
	if (control.Operate(false))
		Console.WriteLine("operated successfully!");
	else
		Console.WriteLine("operate failed!");							
}
else
	Console.WriteLine("Select failed!");
	
if (control.SelectWithValue(true)) {
	if (control.Operate(false))
		Console.WriteLine("operated successfully!");
	else
		Console.WriteLine("operate failed!");							
}
else
	Console.WriteLine("Select failed!");

I get "Select failed" on both examples.

from libiec61850.

mzillgith avatar mzillgith commented on August 15, 2024

And what is the value of ctlModel?

from libiec61850.

mzillgith avatar mzillgith commented on August 15, 2024

It would be good if you could post some wireshark captures to see what actually happens.

from libiec61850.

IgorMundstein avatar IgorMundstein commented on August 15, 2024

@mzillgith

And what is the value of ctlModel?

The command control.GetControlModel() returns ControlModel.SBO_ENHANCED
image

It would be good if you could post some wireshark captures to see what actually happens.

CO structure:
image

[Test on IED (SIEMENS)]

SIEMENS ICD / CFG: SIEMENS.zip

Wireshark
Filter: ip.addr == 192.168.0.125 && tcp.port == 102 && mms
Logs (.pcapng files): Wireshark.zip

Select Command (FAILED):
image
image

Select Command with Value (FAILED):
image
image
image

Operate (without select) (FAILED):
image
image
image

Note: I was able to test the library on a simulator (https://www.infotech.pl/iec-61850/libraries/tip-iec-61850-browser-61850-avenue-tip) that uses the both versions of the protocol. This IED (SIEMENS) uses the firmware protocol in version 1. Would that be a problem or limitation?

[Test on IED SIMULATOR (INFOTECH)]

image

image

Wireshark
Filter: ip.addr == 192.168.0.108 && tcp.port == 102 && mms
Log (.pcapng file): SelectWithValueOnSimulator.zip

Select Command with Value + Operate (SUCCESS):
image
image
image

from libiec61850.

IgorMundstein avatar IgorMundstein commented on August 15, 2024

@mzillgith

OMG. That makes sense.

I used the command: control.SetOrigin("192.168.0.100", OrCat.REMOTE_CONTROL);
before control.SelectWithValue / control.Operate

It works!

Thank you so much.

from libiec61850.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.