This page last changed on Apr 06, 2013 by juha.

Hello,

I try to add some delay on the time out of the telnet as I get an error after 1.04 s while I would need a 3 or 4 seconds delay for the device to answer.

In the "read timeout" field of the telnet commande, I enter 3 different values.

First: Read Timeout = empty.

2013-02-25 21:46:50,521 INFO [Controller Definition File Watcher for Default Deployer]: Startup complete.
2013-02-25 21:47:27,936 INFO [HTTP-Thread-14]: WaitForString received: Debian GNU/Linux 7.0
squeezeplug login:
2013-02-25 21:47:27,937 INFO [HTTP-Thread-14]: send: pi
2013-02-25 21:47:28,196 INFO [HTTP-Thread-14]: WaitForString received:  pi
Password:
2013-02-25 21:47:28,196 INFO [HTTP-Thread-14]: send: raspberry
2013-02-25 21:47:29,235 INFO [HTTP-Thread-14]: WaitForString read before running into timeout:  

2013-02-25 21:47:29,236 ERROR [HTTP-Thread-14]: could not perform telnetEvent
java.lang.Exception: waitForString response timed-out waiting for "$"
	at org.openremote.controller.protocol.telnet.TelnetCommand.waitForString(TelnetCommand.java:314)

I get a Timeout at = 1,040 s.

---------------------

Second: Read Timeout = 3

2013-02-25 21:51:38,047 INFO [Controller Definition File Watcher for Default Deployer]: Startup complete.
2013-02-25 21:51:55,074 INFO [HTTP-Thread-12]: WaitForString received: Debian GNU/Linux 7.0
squeezeplug login:
2013-02-25 21:51:55,075 INFO [HTTP-Thread-12]: send: pi
2013-02-25 21:51:55,333 INFO [HTTP-Thread-12]: WaitForString received:  pi
Password:
2013-02-25 21:51:55,333 INFO [HTTP-Thread-12]: send: raspberry
2013-02-25 21:51:56,373 INFO [HTTP-Thread-12]: WaitForString read before running into timeout:  

2013-02-25 21:51:56,373 ERROR [HTTP-Thread-12]: could not perform telnetEvent
java.lang.Exception: waitForString response timed-out waiting for "$"
	at org.openremote.controller.protocol.telnet.TelnetCommand.waitForString(TelnetCommand.java:314)

I get a Timeout at = 1,040 s.

------------------------------

Third : Read Timeout = 6

2013-02-25 21:38:41,810 INFO [Controller Definition File Watcher for Default Deployer]: Startup complete.
2013-02-25 21:39:08,441 INFO [HTTP-Thread-10]: WaitForString received: Debian GNU/Linux 7.0
squeezeplug login:
2013-02-25 21:39:08,442 INFO [HTTP-Thread-10]: send: pi
2013-02-25 21:39:08,701 INFO [HTTP-Thread-10]: WaitForString received:  pi
Password:
2013-02-25 21:39:08,701 INFO [HTTP-Thread-10]: send: raspberry
2013-02-25 21:39:09,740 INFO [HTTP-Thread-10]: WaitForString read before running into timeout:  

2013-02-25 21:39:09,741 ERROR [HTTP-Thread-10]: could not perform telnetEvent
java.lang.Exception: waitForString response timed-out waiting for "$"
	at org.openremote.controller.protocol.telnet.TelnetCommand.waitForString(TelnetCommand.java:314)

Timeout = 1,040 s.

-----------------------

All 3 results are strictly identical. Could this be a bug ?

Any help please ?

Thanks,

Same thing here (OR 2.0.2 on Linux)

Posted by renatoriolino at Apr 05, 2013 21:10

I remember another thread on the forums with this issue and I recall to have posted some fixes in that thread.
Please try the forum search.

Posted by mredeker at Apr 07, 2013 20:29

I found nothing on search except another thread with PA CHAPELLE reporting the same issue.

Posted by juha at Apr 11, 2013 06:13

Nothing relevant shows up in JIRA either.

Posted by juha at Apr 11, 2013 06:17

I went through my emails and found a conversation with Pierce Maher regarding this.
I accidentally thought it was on the forums, sorry.
The latest code should be Rev.6420 which I think is in the latest controller already.

Posted by mredeker at Apr 11, 2013 08:44
Document generated by Confluence on Jun 05, 2016 09:31