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

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

Open
dhirajthaokar opened this issue Oct 10, 2023 · 5 comments
Open

Comments

@dhirajthaokar
Copy link

dhirajthaokar commented Oct 10, 2023

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
Copy link
Author

icd file report block is








@tusky2015
Copy link

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

@dhirajthaokar
Copy link
Author

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
Copy link
Author

dhirajthaokar commented Nov 17, 2023

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

@dgefremov
Copy link

dgefremov commented Nov 30, 2024

According to source code transmitting ConfRevision, DataReferences, BufferOverflow, EntryId in RCB is not supported.
When client tries to set these parameters to RCB the "access violation" error should be sent.
Replace this code block in src/main/java/com/beanit/iec61850bean/ServerAssociation.java (line number 1399)

if (!((BdaOptFlds) modelNode).isBufferOverflow()
                && !((BdaOptFlds) modelNode).isConfigRevision()
                && !((BdaOptFlds) modelNode).isDataReference()
                && !((BdaOptFlds) modelNode).isEntryId()) {
              ((BasicDataAttribute) modelNode).setValueFrom((BasicDataAttribute) fcModelNodeCopy);
              return writeSuccess;

with the following code:

if (!((BdaOptFlds) fcModelNodeCopy).isBufferOverflow()
                && !((BdaOptFlds) fcModelNodeCopy).isConfigRevision()
                && !((BdaOptFlds) fcModelNodeCopy).isDataReference()
                && !((BdaOptFlds) fcModelNodeCopy).isEntryId()) {
              ((BasicDataAttribute) modelNode)
                  .setValueFrom((BasicDataAttribute) fcModelNodeCopy);
              return writeSuccess;

@dgefremov dgefremov mentioned this issue Dec 1, 2024
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

3 participants