iec61850bean
iec61850bean copied to clipboard
[Help] Tag does not match mandatory sequence component.
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.
There are several issues identified using IedExplorer with iec61850bean server, all are linked to the missing implementations in iec61850bean library:
-
missing implementation of "identify" combined with a wrong announcement of implementing it (see #22 ). This generates a stack trace but does not prevent communication.
-
Read request: iec61850bean does not implement Read request with SpecificationWithResult = True; in that case the association is closed
-
read request: iec61850bean does not support reading at FC level (used by IedExplorer on startup) like this:
although it is completely legal in MMS.
In IedExplorer, reading values at startup can be switched OFF:
But the 2) point prevents using the IedExplorer in the current version.
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.