Connector.Open() Halts the software | Telit Cinterion IoT Developer Community
February 14, 2018 - 5:13pm, 3438 views
Hello all,
I am using Connector.Open() to connect to a certain host. Since, we need to make some debugging tests regarding whether the host is alive or not... I try to use the wrong port in the Connector.open() method, but it halts the software for random amount of time.... Any thougths on that ?
Br,
Umair
So, after some careful testing and observations... I have realized that if we use two different socket objects to connect to a url with wrong port numbers ... different exceptions are occuring so for example for one socket object IO exception ( which doesn't cause the software to halt) occurs after 2-3 minutes and for the other socket object ConnectionnotfoundException occurs ( which causes the software to halt ) after 2 to 3 minutes... I am not able to understand still the issue... It would always be possible to use different socket objects and behaviour should be same. Any thoughts on that issue?
Br,
Umair
Hello,
Could you specify the module type that you are using (ATI1 reply)?
The exception type depends on what happens inside so probably only the packet capture trace could help to answer the question. If you connect to two different servers on different ports the server answers and client-server interaction may probably differ. Or maybe it happens always when you connect to the same server on different ports at the same time? Have you tested this with more then one server? Maybe it is also the consequence of server behavior. Generally both types of exceptions are legal for Connector.open() method.
Could you explain what you mean that for IOException the software does not halt while for ConnectionnotfoundException it does? Is this state recoverable?
Best regards,
Bartłomiej
Hello Mr. Bartlomiej,
ATI1 reply : Cinterion
EHS6
REVISION 03.001
A-REVISION 00.000.42
I am trying to connect to the same server but with wrong port using two different socket objects... So, the first one which connects to the server does give an IO Exception, but without halting the software in terms of doing some basic serial communication... but the second socket objects gives Connection not found error and halts ( serial communication doesn't work on the hardware) the software for 2 to 3 minutes which is quite random...
Basically I have an C# application which is used to send commands to modem using Serial interface for example asking for registration status etc.. and this doesn't works when the socket gives Connection not found Exception ( which also takes 2 to 3 minutes to happen)
Br,
Umair
Hello,
I think that you could try to test this problem with freezing other threads for some time with the newer firmware version, which is available (A-REVISION 00.000.55). I believe it will not exist in that firmware.
As for the different exceptions - if it is the same server and if it would be same port, I can imagine that one connection tries to connect on a certain port, the server replies and at the same time another one tries the same port... But we'd have to have pcap trace and maybe we'd find the answer there.
Regards,
Bartłomiej
Hello,
How can I update the firmware ?
Br,
Umair
Please check your email.
Regards,
Bartłomiej