Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Long Delay between Event and action

  1. #1
    Join Date
    Mar 2010
    Posts
    14

    Default Long Delay between Event and action

    Hallo,

    I am using Girder in conjunction with the Igor Plug-In to control XBMC with my infrared remote. In general it is working fine and I was quite happy with that solution. One thing is bothering me more and more: Sometimes when I press a button on my remote it takes 10s of seconds until Girder sends the appropriate action... I have attached a picture of the log file and you can see that it takes more than 30s betwenn pushing the button on the remote until finally Girder executes the corresponding action..
    When using directly the keyboard XBMC follows my commands immidiatly..
    I am using keyboard spoofing to send the commands to XBMC. I also tried sending http requests but that did not make any difference in this respect..
    I also have activated the "Force Send Key". That does not make any difference either. Does anyone know what this option is all about? I could find any documentation..

    Any help greatly appreciated!!

    tobif2000
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	XBMC_Delay.jpg 
Views:	82 
Size:	91.9 KB 
ID:	6089  
    Attached Files Attached Files
    Last edited by tobif2000; November 22nd, 2010 at 12:03 PM.

  2. #2
    Join Date
    Jan 2000
    Location
    Jupiter, FL
    Posts
    11,347

    Default

    Can you try to use the RAW codes see if the delay goes away. So instead of using the ENTER event use the 8B7 event.
    Ron
    No support through PM

  3. #3
    Join Date
    Mar 2010
    Posts
    14

    Default

    Hi Ron,

    that did not make any difference (see attached screen shot)...

    Thanks for your help!
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	XBMC_Delay_2.jpg 
Views:	73 
Size:	78.8 KB 
ID:	6091  

  4. #4
    Join Date
    Jan 2000
    Location
    Jupiter, FL
    Posts
    11,347

    Default

    Do you have anti-repeat enabled? Upload your GML if you can. and pinpoint the node...
    Ron
    No support through PM

  5. #5
    Join Date
    Mar 2010
    Posts
    14

    Default

    Yes I have anti repeat enabled! See attached screen shot and GML File.
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	ENTER_Event_AntiRepeat.jpg 
Views:	76 
Size:	197.9 KB 
ID:	6093  
    Attached Files Attached Files

  6. #6
    Join Date
    Jan 2000
    Location
    Jupiter, FL
    Posts
    11,347

    Default

    Looks like it is working as designed.

    Event 18.53.43:537 <- triggers action. (action completes at 18.53.43.893)
    Event 18.53.04:773 <- does not trigger action (blocked by anti repeat 500ms)
    Event 18.53.04:687 <- triggers action (action completes at 18.53.05.193 )
    Ron
    No support through PM

  7. #7
    Join Date
    Mar 2010
    Posts
    14

    Default

    You are right. The logging looks ok.
    Nevertheless I am experiencing major delays between pressing a button and the action. Since the time is really long (10s of seconds) it is possible to find out what excatly is delayed: When I press the button on the remote Girder does not see the event immidiatly. It does take a very long time until the event is shown in the logger. Once it is recognised the action is triggered immidiatly: I can press a button on the remote, then switch to the logging window, put the remote on the table and only after a while the event is logged by Girder..
    The question now is why does it take that long from sending the command on the remote until an event is recognised by Girder.. Might it be a problem with the Igor Plug?

  8. #8
    Join Date
    Jan 2000
    Location
    Jupiter, FL
    Posts
    11,347

    Default

    I wonder if the key send is slowing things down. Can you disable the action and see if the key presses are coming in normally.
    Ron
    No support through PM

  9. #9
    Join Date
    Mar 2010
    Posts
    14

    Default

    Your assumption is true (see attached screen shot):
    I have disabled the send key action when the "ARROW UP" event is received. In the logging you can see that the event is coming through perfectly. Only after the "ARROW DOWN" event triggers a Sendkey action it takes a couple of seconds until girder sees the "ARROW UP" event again..
    Any idea what I could change so that these delays disappear?
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	XBMC_Delay_3.jpg 
Views:	58 
Size:	103.3 KB 
ID:	6094  

  10. #10
    Join Date
    Jan 2000
    Location
    Jupiter, FL
    Posts
    11,347

    Default

    This has to do with the application that we are controlling not responding to the keypresses. Try the send-to-foreground or alternative key send routines. (send to foreground should be your best bet)
    Ron
    No support through PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •