Unexpected reboot problem solved - Voodoo required for Connector.open() | Telit Cinterion IoT Developer Community
January 9, 2017 - 10:53am, 3183 views
Hello!
Just for reference: I struggled over 1,5 years with unexpected reboots of a EHS5T module. The voodoo-esque workaround is:
Before closing resources, wich were opened in Java ME with Connector.open(), e.g.
- HTTP Request: httpc = (HttpConnection) Connector.open("http://...");
- HTTPS Request: httpsc = (HttpsConnection) Connector.open("https://...");
- Socket Request: sc = (SocketConnection) Connector.open("socket://...");
- Socket Server: ssc = (ServerSocketConnection) Connector.open("socket://:<port>...");
- File: fconn = (FileConnection) Connector.open("file:///...");
- COM-Port: comm = (CommConnection) Connector.open("comm://...");
one has to wait 100ms.
Java-Pseudocode:
xxxConnection conn; InputStream is; OutputStream os; try { conn = (xxxConnection) Connector.open(...); is = conn.openInputStream(); // Optional os = conn.openOutputStream(); // Optional ... } catch (...) { ... } finally { Thread.sleep(100); // sleep and each of all 3 close() commands in real code with try/catch is.close(); // Optional os.close(); // Optional conn.close(); }
Hello,
Does this case have something to do with this thread https://iot-developer.thalesgroup.com/comment/3451#comment-3451 ?
Could you write more about this timeout - should it be applied also after last read/write operation - or is it needed after just opening the connection that should be closed without data transfer?
Were these reboots frequent? Is there a simple way to reproduce this and proove that this timeout helps?
What is the firmware version you were using?
Thanks and regards,
Bartłomiej
Hi Bartłomiej!
My answer was blocked by the spam filter, did you get my email?
BR Helmut
EDIT: I just got an email from mail delivery system, the mail could not be delivered. Please tell me how to contact you.
Hi Helmut,
I've sent you an email - please respond.
Regards,
Bartłomiej
Hello,
Why are you communicating thru email? We have been having similar issues with reboots and searching the forum for information and we end up with dead end or threads that have no resolution.
What happended to this user´s situation? Was the problem resolved?
There are many other threads that speak of "reboots" and issues that are similar to ours and we are not able to get any information because the threads have no responses and you then communicate via email which leaves the rest of the forum in the dark.
Regards,