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

OpENer CIP connection Timeout event is occurring rarely in 24 hours test #335

Closed
rakesh1225 opened this issue Feb 22, 2021 · 7 comments
Closed

Comments

@rakesh1225
Copy link

Hello,

We are using OpENer stack version 2.1.0 on Linux for our development test. We ran 24 hours CIP communication test between our device(Adapter - OpENer stack) and computer(Scanner). After a couple of hours Timeout event is observed from OpENer stack callback. Can anyone let us know why this Timeout event occurs?
Note: Scanner is sending data periodically, however after sometime the adapter is throwing timeout after couple of hours.(RPI is 500ms). Scanner reconnects(using ForwardOpen) after no response from adapter(for 500*4=2000ms).

@MartinMelikMerkumians
Copy link
Member

One thing which could be, is when the message number overflows. Do you have a wireshark trace of the relevant time period?

@rakesh1225
Copy link
Author

Wireshark logs are attached for reference. xxx.30 is Adapter IP and xxx.35 is the Scanner IP. From the logs I understood that Scanner is keep sending messages periodically to the adapter, whereas Adapter stopped sending messages. This issue is intermittently observed in 24 hours test. Once the Adapter stopped sending messages, scanner initiates ForwardOpen requests and then the communication resumes.
Not clear why the Timeout is triggered from the Adapter callbacks.
post1
post2

@MartinMelikMerkumians
Copy link
Member

So, do I see this correct, you have 3 O->T connections and one T->O? Could you please tell me the connections configurations? (EO, IO, LO, etc.).
Perhaps the algorithm when the Timeout has to be reset has a corner-case error, if all sequence numbers connected to an assembly are equal.

@rakesh1225
Copy link
Author

Yes, in this test I have 3 O->T connections and one T->O connection.

@rakesh1225
Copy link
Author

O->T Connection: 0x4802
Owner:Exclusive
ConnectionType: Point To Point
Priority: Scheduled(2)
Connection Size Type: Fixed
Connection Size: 2 bytes

T->O Connection: 0x29fa
Owner:Exclusive
ConnectionType: Multicast
Priority: Scheduled(2)
Connection Size Type: Fixed
Connection Size: 506 bytes

@rakesh1225
Copy link
Author

@CapXilinx , please let me know if any idea on the above issue
small info: we are using OpENer stack with commitID: 9181a4d
9181a4d

@MartinMelikMerkumians
Copy link
Member

Probably the same as #349

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