Re: Plc4x connection reset by peer exception uncaught

2020-09-17 Thread Stefano Bossi
Hi Vlad, just a last advise, I have tried once to open more than one connection to a Siemens 1200 PLC with a multithread application and I got a problem of disconnection similat to your. In my code the disconnection was systematic when the second thread try to enstablish a connection. My

Re: Plc4x connection reset by peer exception uncaught

2020-09-17 Thread Vladyslav Milutin
Hi Christofer, I can't access this machine where I got this exception, that's the problem, I just got logs from the machine. Kind regards, Vlad чт, 17 сент. 2020 г. в 13:38, Christofer Dutz : > Hi Vlad, > > Your code says TCP ... so it should work, if you use WireShark on the > machine that is

Re: Plc4x connection reset by peer exception uncaught

2020-09-17 Thread Christofer Dutz
Hi Vlad, Your code says TCP ... so it should work, if you use WireShark on the machine that is trying to connect to the remote you won't even need the promiscuous mode. Chris Am 17.09.20, 12:26 schrieb "Vladyslav Milutin" : Hi Christofer, Thanks for your advice, I'm not sure that

Re: Plc4x connection reset by peer exception uncaught

2020-09-17 Thread Vladyslav Milutin
Hi Christofer, Thanks for your advice, I'm not sure that I can use wireshark in my case :( Thanks for your answers, I'll try to create a watchdog for it and look for the connection statuses. Kind regards, Vlad чт, 17 сент. 2020 г. в 13:02, Christofer Dutz : > Hi Vlad, > > I didn't miss the

Re: Plc4x connection reset by peer exception uncaught

2020-09-17 Thread Christofer Dutz
Hi Vlad, I didn't miss the email, but for me it's almost impossible to give you an advice to what might be going wrong. The error you are getting I usually got in the past as soon as I send out something the PLC doesn't like. Just recently when we didn't reset the message-id counters and they

Re: Plc4x connection reset by peer exception uncaught

2020-09-17 Thread Vladyslav Milutin
Hi guys, I just will resend this message in case you missed it. Hi guys, I can send you this code, which doesn't have much business logic, and all params are renamed. public abstract class LalelDriver extends GeneratedDriverBase { private final ChannelHandler handler; @Override

Re: Plc4x connection reset by peer exception uncaught

2020-09-17 Thread Christofer Dutz
Hi Vlad, 0.8.0-SNAPSHOT is the current development version ... we'll be releasing that as soon as we tied up some things we're currently working on. Chris Am 17.09.20, 11:02 schrieb "Vladyslav Milutin" : Hi Stefano, I'm curious about the 0.8.0 version, where I can find it? Since

Re: Plc4x connection reset by peer exception uncaught

2020-09-17 Thread Vladyslav Milutin
Hi Stefano, I'm curious about the 0.8.0 version, where I can find it? Since maven repo contains the latest version 0.7.0. Kind regards, Vlad ср, 16 сент. 2020 г. в 17:30, Stefano Bossi : > Hi Vlad, > > this seems similar to a bug fixed some time ago, I am not really sure but > it worth to try

Re: Plc4x connection reset by peer exception uncaught

2020-09-17 Thread Vladyslav Milutin
Hi guys, I can send you this code, which doesn't have much business logic, and all params are renamed. public abstract class LalelDriver extends GeneratedDriverBase { private final ChannelHandler handler; @Override public String getProtocolName() { return "Lalel"; }

Re: Plc4x connection reset by peer exception uncaught

2020-09-16 Thread Łukasz Dywicki
I can't say more than others, but based on my own experiences I can tell you that some exceptions are swallowed by Netty or surrounding classes resulting in dead connections. When I was working on socketcan transport its initialization failures lead to connections which were allowing writes but

Re: Plc4x connection reset by peer exception uncaught

2020-09-16 Thread Stefano Bossi
Hi Vladyslav, just because a I am a curious guy, why did you choose to build a custom driver? Do you need something special ? Regards, Stefano P.S. feel free to answer: it's not your business As said is just a curiosity, anyone has the right to choose it's road. On 16/09/2020 17:54,

Re: Plc4x connection reset by peer exception uncaught

2020-09-16 Thread Christofer Dutz
Hi Vladyslav, oh ... a custom driver. In that case it will definitely be tricky to help you unless we can have a look at the code. Is this something you consider bringing into the PLC4X project, or something that's meant to stay outside of the project? I guess this is the first time such a

Re: Plc4x connection reset by peer exception uncaught

2020-09-16 Thread Vladyslav Milutin
Hi Christofer, Thanks for your quick response. I'm using a custom driver which extends GeneratedDriverBase, for connection I use a simple call to .connect, I know that you have PooledDriverManager, but it won't have the same issue if connection was reset by peer, since it's just look up for the

Re: Plc4x connection reset by peer exception uncaught

2020-09-16 Thread Stefano Bossi
Hi, an another suggestion is to give a try to the pooled drive manager instead of the simple dirve manager, here you could fine some more info: https://plc4x.apache.org/users/tools/connection-pool.html Regards, Stefano On 16/09/2020 16:30, Stefano Bossi wrote: > Hi Vlad, > > this seems similar

Re: Plc4x connection reset by peer exception uncaught

2020-09-16 Thread Stefano Bossi
Hi Vlad, this seems similar to a bug fixed some time ago, I am not really sure but it worth to try to use the 0.8.0 version where this fix is present. You should try to build the version and here you could fine some help: https://plc4x.apache.org/developers/index.html Regards, Stefano On

Re: Plc4x connection reset by peer exception uncaught

2020-09-16 Thread Christofer Dutz
Hi Vladyslav, could you please tell us which driver and which version you are using? Also it would be interesting if you are using any integration modules? Chris Am 16.09.20, 14:36 schrieb "Vladyslav Milutin" : Hello guys, I'm writing to you with a hope that you can help me with