beanit / iec61850bean

A Java IEC 61850 MMS stack for clients and servers.
https://www.beanit.com/iec-61850/
Apache License 2.0
139 stars 80 forks source link

i got error IED Connection Lost . when i used 3rd party IED Scout . #39

Open dhirajthaokar opened 11 months ago

dhirajthaokar commented 11 months ago

photo_2023-10-10_17-37-31

when i enable reports then i got error which is mention in image .

exception is : java.io.EOFException at java.base/java.io.DataInputStream.readByte(DataInputStream.java:272) at com.beanit.jositransport.TConnection.receive(TConnection.java:501) at com.beanit.josistack.AcseAssociation.receive(AcseAssociation.java:838) at com.seiritech.alectra.beanit.iec61850bean.ServerAssociation.listenForMmsRequest(ServerAssociation.java:428) at com.seiritech.alectra.beanit.iec61850bean.ServerAssociation.handleConnection(ServerAssociation.java:248) at com.seiritech.alectra.beanit.iec61850bean.ServerAssociation.handleNewAssociation(ServerAssociation.java:155) at com.seiritech.alectra.beanit.iec61850bean.ServerSap.connectionIndication(ServerSap.java:307) at com.seiritech.alectra.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.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:829) 13:01:49.360 [iec61850bean-server-thread-1] DEBUG c.s.a.b.i.ServerAssociation - Connection was closed by client.

dhirajthaokar commented 11 months ago

icd file report block is

                    <ReportControl name="urcb1" confRev="0" datSet="dataset1" buffered="false" rptID="urcb1" intgPd="5000" bufTime="0">
                        <TrgOps dchg="true" qchg="true" dupd="true" period="true" gi="true" />
                        <OptFields dataSet="true" bufOvfl="true" configRef="true" dataRef="true" entryID="false" reasonCode="true" timeStamp="true" seqNum="true"/>
                        <RptEnabled max="3"/>
                    </ReportControl>
tusky2015 commented 11 months ago

BdaReasonForInclusion.java modify (line 19) maxNumBits from 7 to 6

dhirajthaokar commented 10 months ago

thanks for reply . i gone with this solution . but still i got above error . when i refer 1 st image then connection will loss and when i refer 2nd image then connection is success.
1 IMAGE 2ND IMAGE..

dhirajthaokar commented 10 months ago

after success connection, it does not work with Siemens RTU. its shows NT(no transmit). i use Rpi as 61850 server and RTU is client . icd file is attached.

server_icd.txt