Home AMX User Forum MODPEDIA - The Public Repository of Modules for Everyone

TCP/IP program

Hi guys

I want program for XBMC Navigation.it showing online but ,i don't know how to send the command for up,down,right,left and enter ..please help me any one know how to send command xbmc media server 'via TCP/IP',
Those Navigation Controls


Thanks .........

Comments

  • AuserAuser Posts: 506
    Hi Vijay,

    Please don't cross post threads in different subforums.

    These messages that you've posted are all the same:

    http://www.amxforums.com/showthread.php?8063-TCP-IP-program&p=55699#post55699
    http://www.amxforums.com/showthread.php?8069-TCP-IP-program&p=55721#post55721
    http://www.amxforums.com/showthread.php?8070-TCP-IP-program&p=55722#post55722

    Spawning multiple identical threads for a single question such as you've been doing is considered poor forum etiquette and could mean that people won't answer your questions if they do have information which could be of help to you. It looks like you've been sending the same message to folks on the forums as private messages too.

    If somebody hasn't answered your initial post, it could well be because we can't offer advice based on the information you've given.

    If nobody responds and you're desperate for an answer, post another message in the same thread you started providing more information on your situation instead of just posting the same question over and over in new threads. Posting code you've already written and the protocol for the device/application that you're having trouble with generally helps us to help you. The more information you provide, the more likely it is that we'll be able to help.

    Now, in order to help you out, you say that "it" is showing online but aren't clear on what that "it" is and how you know "it"'s online. Please clarify what you are referring to by "it", what you've tried so far, and post any code that you've started but are having trouble with and we may be able to help.

    I would also recommend doing a search on the forums for "TCP" or similar. There are lots of code samples showing how to communicate with IP devices if that's the bit you're having trouble with.
  • vijaykumarvijaykumar Posts: 18
    tcp/ip

    Hi Auser

    Sorry for that Multiple Thread posting.Actually i Post a 1 thread last 2 days back,but no one replay .that's y i posted in multiple Threads.

    Actually i am trying to write program for XBMC Media Server Controlling,in my program XBMC showing it's status in a touch panel(Online or Offline) .next i want control the navigation buttons from my touch pannel but i don't know those keypad commands for Navigation(UP,DOWN,LEFT,RIGHT).I Search in internet for that keypad commands i found one wiki regarding Keymap.xml but i don't know how to use those commands in my program,i need this program please help me. i am attaching my program

    thanks...
    X.axs 1.2K
  • VladaPUBVladaPUB Posts: 138
    You have attached empty file !
  • vijaykumarvijaykumar Posts: 18
    Sorry ..once again attching ,just check ..
    X.axs 1.2K
  • VladaPUBVladaPUB Posts: 138
    BUTTON_EVENT[dvTP,2] // On
    {
    PUSH:
    {
    
    if(nOnkyoConnected==1)
    {
    send_command dvTP, "'^TXT-',itoa(1),',0,',__VERSION__"
    }
    else
    {
    send_command dvTP, "'^TXT-',itoa(1),',0,','System Is in Offline'"
    }
    }
    }
    

    I think you need first of all to replace this to
    BUTTON_EVENT[dvTP,2] // On
    {
    PUSH:
    {
    
    if(nOnkyoConnected==1)
    {
    send_command dvTP, "'^TXT-1,0,',__VERSION__"
    }
    else
    {
    send_command dvTP, "'^TXT-1,0,','System Is in Offline'"
    }
    }
    }
    

    More logic to me ! And also here :
    BUTTON_EVENT[dvtp,31]
    {
     PUSH:
     {
    
       //SEND_STRING dvOnkyo, " 'play=',31"
     
    // SEND_CONTROL("'IRCODE NUM',itoa(10)")
     SEND_STRING dvOnkyo ," 'http://xbox/xbmcCmds/xbmcHttp?command="Play"',$0D,$0A "
       }
    }
    
    

    I would first open IP , as I see you open it when device is offline, so you need to wait to see device offline before open IP communication with client.
  • AuserAuser Posts: 506
    vijaykumar wrote: »
    i need program for XBMC Navigation controls ,if u have please send me

    Yes, we got that the first umpteen times. You get no points for persistence.

    According to: http://wiki.xbmc.org/index.php?title=Web_Server_HTTP_API the API you are using is deprecated. Check out the JSON interface detailed at http://wiki.xbmc.org/index.php?title=JSON_RPC instead.

    There are Input.Up, Input.Down, etc. methods which you can utilise.
  • XBMC Controls in AMX

    Completed XBMC Module in Netlinx programming ...almost 90%...completed ...
Sign In or Register to comment.