Skip to content
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

[Help] Tag does not match mandatory sequence component. #14

Open
danilocgraciano opened this issue Aug 29, 2020 · 2 comments
Open

[Help] Tag does not match mandatory sequence component. #14

danilocgraciano opened this issue Aug 29, 2020 · 2 comments

Comments

@danilocgraciano
Copy link

danilocgraciano commented Aug 29, 2020

Hi,

Could someone help me with the exception below? I followed the examples and tested using IED Explorer.

Using com.beanit.iec61850bean.clientgui.ClientGui everything works.

`16:55:53.204 [iec61850bean-server-thread-1] DEBUG com.beanit.iec61850bean.ServerAssociation - Connection was closed by client.

16:56:03.533 [iec61850bean-server-thread-1] WARN com.beanit.iec61850bean.ServerAssociation - IOException decoding received MMS request PDU.
java.io.IOException: Tag does not match mandatory sequence component.
at com.beanit.iec61850bean.internal.mms.asn1.ConfirmedRequestPDU.decode(ConfirmedRequestPDU.java:112)
at com.beanit.iec61850bean.internal.mms.asn1.MMSpdu.decode(MMSpdu.java:209)
at com.beanit.iec61850bean.ServerAssociation.listenForMmsRequest(ServerAssociation.java:450)
at com.beanit.iec61850bean.ServerAssociation.handleConnection(ServerAssociation.java:248)
at com.beanit.iec61850bean.ServerAssociation.handleNewAssociation(ServerAssociation.java:155)
at com.beanit.iec61850bean.ServerSap.connectionIndication(ServerSap.java:307)
at com.beanit.iec61850bean.AcseListener.connectionIndication(AcseListener.java:31)
at com.beanit.josistack.ServerAcseSap.connectionIndication(ServerAcseSap.java:119)
at com.beanit.jositransport.ServerThread$ConnectionHandler.run(ServerThread.java:144)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)`

Please look at this picture:
https://github.com/danilocgraciano/iec-server/blob/master/ied_explorer.png

And this is the repo: https://github.com/danilocgraciano/iec-server

Thanks.

@pavel-ch
Copy link
Contributor

pavel-ch commented Apr 27, 2021

There are several issues identified using IedExplorer with iec61850bean server, all are linked to the missing implementations in iec61850bean library:

  1. missing implementation of "identify" combined with a wrong announcement of implementing it (see InitiateResponsePDU: "identify" support mismatch #22 ). This generates a stack trace but does not prevent communication.

  2. Read request: iec61850bean does not implement Read request with SpecificationWithResult = True; in that case the association is closed
    image

  3. read request: iec61850bean does not support reading at FC level (used by IedExplorer on startup) like this:
    image

although it is completely legal in MMS.

In IedExplorer, reading values at startup can be switched OFF:
image

But the 2) point prevents using the IedExplorer in the current version.

@pavel-ch
Copy link
Contributor

There is a new IedExplorer release to allow the above reading / Service release 0.79m 2021/04/27
You have to switch OFF Read Values and With Spec.
You must read values of interest by hand from the context menu.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants