Comments (8)
Nice to hear that it works :-)
from libiec61850.
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.
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.
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.
And what is the value of ctlModel?
from libiec61850.
It would be good if you could post some wireshark captures to see what actually happens.
from libiec61850.
And what is the value of ctlModel?
The command control.GetControlModel() returns ControlModel.SBO_ENHANCED
It would be good if you could post some wireshark captures to see what actually happens.
[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 with Value (FAILED):
Operate (without select) (FAILED):
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)]
Wireshark
Filter: ip.addr == 192.168.0.108 && tcp.port == 102 && mms
Log (.pcapng file): SelectWithValueOnSimulator.zip
Select Command with Value + Operate (SUCCESS):
from libiec61850.
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)
- MinGW64 doesn't output libiec61850.dll - only static libiec61850.a is produced --> Solved HOT 1
- SegmentFault in mmsServer_handleDeleteNamedVariableListRequest in src/mms/iso_mms/server/mms_named_variable_list_service.c:146 HOT 1
- NULL Pointer Dereference was detected in the mmsServer_handleFileCloseRequest.c function of src/mms/iso_mms/server/mms_file_service.c. HOT 4
- TLS RELATED ISSUES
- GetDataSetDirectoryAsync got System.AccessViolationException HOT 7
- Error when writing all array elements at once HOT 1
- Client Report Handler in Python HOT 1
- NBReports generated despite IedServer_lockDataModel(), IedServer_lockDataModel() HOT 2
- Structure data object from MmsVariableSpecification is diffrent with value when received dataset from rcb HOT 3
- iec61850_client_example_files: Failed to get file!
- Incompatibility between 1.5.1 and 1.5.3
- heap-buffer-overflow in BerEncoder_encodeLength of /src/libiec61850/src/mms/asn1/ber_encoder.c HOT 1
- MmsValue_encode/decodeMmsData fails on Visible String attribute with empty payload
- Is there any peach pits to describe this protocol?
- libiec61850-1.5 goose build fail HOT 1
- Out-of-Bound Read in /src/libiec61850/src/goose/goose_receiver.c:665:9 in parseGoosePayload
- Out-of-Bound Read in BerDecoder_decodeBoolean /src/libiec61850/src/mms/asn1/ber_decode.c:218:9 HOT 1
- Multiple Out-of-Bound Read in parseAarqPdu /src/libiec61850/src/mms/iso_acse/acse.c HOT 1
- Out-of-Bound Read in parseAarePdu /src/libiec61850/src/mms/iso_acse/acse.c:215:17 HOT 1
- Integrate Fuzzers into OSS-Fuzz and Expand Fuzzing Coverage HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libiec61850.