Hang-up in SendRemoteCommand()

The place where software developers meet

Moderator: marcus

Hang-up in SendRemoteCommand()

Postby alexirion » Sat 27. Aug 2011, 00:56

Hello,

Calling "SendRemoteCommand()" from my application does sometimes not return und seems to block forever.

The ir server logs say, that the last sent comand reached the server and send status is 8-8, as it also is in the good case.

2011-08-27 02:33:59.489 [0.0] off groundcontrol
2011-08-27 02:33:59.991 Netcommand Size: 112/112
2011-08-27 02:33:59.991 Netcommand: 1 [0]
2011-08-27 02:33:59.991 Send [0] mediacenter - off [0 - B:0 M:0x0 LED: Default]
2011-08-27 02:33:59.992 Send Status 8 - 8 [0]

I have debug output in my application just before and after the SendRemoteCommand(). The output after sending was not done anymore.

After this happens I still can connect with another client to the ir server and everything is still working, only my application is still stuck.

The bug is happening only very rarely, but I can reproduce it after some time.

Can I please have the source code for the client library, so I can further investigate where it is hanging? Why are the sources of the client library not available??

Server and client are the current versions from the download section.

OS is Ubuntu 11.04 Server on a VIA EPIA Pico PX 5000 system.

Kind regards,
--Alex
alexirion
 
Posts: 9
Joined: Sat 6. Nov 2010, 15:48

Re: Hang-up in SendRemoteCommand()

Postby IRTrans » Sat 27. Aug 2011, 08:05

Hi,
so far we have not seen this problem - there are some people using this lib.

Of course you can get the source code. Simply send us an email to info@irtrans.de.

IRTrans
IRTrans
Administrator
 
Posts: 2115
Joined: Mon 21. Apr 2008, 23:32

Re: Hang-up in SendRemoteCommand()

Postby alexirion » Sun 28. Aug 2011, 22:03

Ok, I wrote you an email for getting the sources of the client api.

I have two threads, one is receiving IR commands with ReceiveIR(), while the other one is sending with SendRemoteCommand(). Both threads use different socket connections.

I was able to send IR comands all night long without hang-up, as I was sending them triggered by a timer and not by a received IR comand. But the normal use case is that a IR comand is received and then the other comands are sent and this fails sometimes, as I described.

Could there be any problems with multiple threads accessing the IR server?

--Alex
alexirion
 
Posts: 9
Joined: Sat 6. Nov 2010, 15:48

Re: Hang-up in SendRemoteCommand()

Postby IRTrans » Mon 29. Aug 2011, 08:15

Hi,
in general we do not know of such problems. The irserver can be accessed by multiple users/processes. Therefore using multiple threads should also work.

IRTrans
IRTrans
Administrator
 
Posts: 2115
Joined: Mon 21. Apr 2008, 23:32


Return to APIs

Who is online

Users browsing this forum: No registered users and 10 guests