News:

Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com

Main Menu

DCE Disconnects me after I intercept a message

Started by chrisbirkinshaw, January 23, 2009, 09:24:36 PM

Previous topic - Next topic

chrisbirkinshaw

I setup an event and command socket to DCE and register for message interceptors - all good so far. I can directly message my device as many times as I like, but when it receives an intercepted message the core seems to expect some response, and closes my connection when I don't give it any. What is the solution for this?

Thanks,

Chris

bulek

#1
Quote from: chrisbirkinshaw on January 23, 2009, 09:24:36 PM
I setup an event and command socket to DCE and register for message interceptors - all good so far. I can directly message my device as many times as I like, but when it receives an intercepted message the core seems to expect some response, and closes my connection when I don't give it any. What is the solution for this?

Thanks,

Chris

Hi,

look under 7. and 8. here (I think that you also have to reply with OK to intercepted message):
http://wiki.linuxmce.org/index.php/Plain_Text_DCE_Messages

DCERouter is waiting only for a really short time...Quite frequently my device gets disconnected if it doesn't response quickly enough...

And when your device is disconnected in such way, there is a problem, cause its entry in /usr/pluto/locks stays and router reload won't start it again - you'll have to delete its ID from that file manually... I've learned this the hard way...

You can also check connectivity with Router by sending PING and receiving PONG back....

HTH,

regards,

Bulek.
Thanks in advance,

regards,

Bulek.

chrisbirkinshaw

Thanks for the tips. When I send an Ok after receiving an intercepted message it does indeed stop me getting disconnected, however I now receive the same message around 60 times after saying Ok! Have you seen this?

Regards,

Chris

bulek

Quote from: chrisbirkinshaw on January 26, 2009, 07:57:58 PM
Thanks for the tips. When I send an Ok after receiving an intercepted message it does indeed stop me getting disconnected, however I now receive the same message around 60 times after saying Ok! Have you seen this?

Regards,

Chris
Not that I'm aware of... What messages do you intercept ? What is in DCERouter log ? Maybe this is normal behaviour....

Regards,

Bulek.

Thanks in advance,

regards,

Bulek.