1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

TiVo UI Control via Telnet - No Hacking Required!

Discussion in 'TiVo Underground' started by Omikron, Apr 30, 2008.

  1. pjewell

    pjewell New Member

    3
    0
    Jul 25, 2009
    Good news, the store found my remote. But I'm still interested in getting the remote from my computer working.:)

    I figured you'd need more info and I realise that the java script and python are different things. The DVR 48B3 is the model of TiVo i'm using.

    I can log into the "Now Playing" page using .ttps://ipaddress and then using the login tivo and password MAK. So I know the connection is working from laptop to tivo.

    Now, when I try to telnet i type "telnet ipaddress port 31339" and I get "Could not open connection to host on ..... port 31339". And, if i try telnet ipaddress I get the same response.

    I've added the port number to the firewall in UDP and TCP

    Using python 2.5.4 and your remote2.pyw, I get after the restart line:
    Traceback (most recent call last):
    File "C:\Users\Paul\Downlads\Topfield n Tivo\remote2.pyw", line 211, in <module>
    sock.connect((address, 31339))
    File "<string>", line 1, in connect
    gaierror: (11001, 'getaddrinfo failed')

    And, lastly, when I use Jeepguys Java script. I can enter the ip address and when I connect, the buttons don't activate anything on the tivo.

    Cheers,
    Paul
     
  2. wmcbrine

    wmcbrine Ziphead

    10,364
    22
    Aug 2, 2003
    Right, but, there is no such model name. Where are you getting that from? :confused:

    Ah, I think I just realized: it's the default "DVR Name" given to your TiVo if you don't rename it. But that's an individual, random name, not a model name. It's used to identify your TiVo on the LAN. It doesn't tell us what kind of TiVo you have.

    The remote service only works with the Series 3 TiVos, including the TiVo HD and TiVo HDXL. (I don't know if the Australian version works.) The other common way to refer to them is by the first three digits of their TiVo Service Numbers: 648 (S3), 652 (HD), 658 (HDXL).

    As outlined above, you also need to turn on the remote service on your TiVo. It's off by default.

    Where did that "2" come from?
     
  3. pjewell

    pjewell New Member

    3
    0
    Jul 25, 2009
    Ah maybe the Aussie one doesn't work.... those settings don't exist in any of the menus that I could find.... it's definately a Tivo HD but other than that..
     
  4. Sep 9, 2009 #444 of 692
    sanjonny

    sanjonny New Member

    202
    0
    Nov 2, 2008
    So I used the python version of the remote daily and love it, I have been trying to make some modifications and realized that if I looked on the board the modifications might have already been made so here I am. I constantly put my laptop to sleep and the tv telnet remote will not re initialize to control the tivo when I wake from hibernate (I don't know why of course) so I tried playing around in order to make my own button that would automatically rerun the script that runs to search out the tivo and reload the info. I know I could hard code it into the program and I think I did that about 6 months ago, then I got sidetracked and cannot remember if that test version is the one I am using or not.

    I cannot see the updated version because of posting restrictions so maybe somebody could tell me if this has been fixed yet or if not, help me to fix my looping issues, I know all the info is there, I just keep running it in the wrong order. I also discovered the java version tonight and tried it out but it seems not to work with my HD setup. I put in the proper ip address and hit connect but nothing else happens. The red light goes on but that is it. Running XP with all updates and wireless network.

    Not wanting to reinvent the wheel, I am available to trouble shoot both programs, I just never logged in again and just now am reading private messages from a year ago. Any way, I am back and ready to help. What thoughts do you have?
     
  5. paulbrown83

    paulbrown83 New Member

    1
    0
    Oct 15, 2009
    i've search around a good bit for this, but can't seem to find the answer. I can telnet into my tivo HD from a windows computer using telnet <tivo_ip> 31339 from the command prompt, and I can control it using the IRCODE commands. however, when I try to telnet to the tivo using the Mac Terminal, it immediately responds to my telnet command, saying "Connection closed by foreign host."

    How would the mac terminal be any different (with respect to telnet) from a windows command prompt? has anyone noticed this behavior, and found a way around it? maybe i'm missing something simple here...
     
  6. Nov 1, 2009 #446 of 692
    bizzy

    bizzy New Member

    707
    0
    Jan 20, 2004
    San...
    I thought you went off to "port out" the code to a language more acceptable to your preferences?
     
  7. Dec 3, 2009 #447 of 692
    wmccain

    wmccain Custom AV Consultant

    124
    0
    Dec 15, 2002
    Palo Alto,...
    Back To The PROTOCOL Discussion
    Nobody ever responded to the above (post #360) so I thought that I would give it a whack.

    1. IRCODE NOWSHOWING and/or TELEPORT NOWPLAYING may have worked at one time, but they don't work now. At least, not with 11.0d. Neither does IRCODE LIST (which you might think would work, since some older remotes have a button labeled "List" and the actual IR code for that button still works). IRCODE NOWSHOWING and IRCODE LIST produce the INVALID_KEY response. TELEPORT NOWPLAYING produces no response at all (it is ignored).

    I tried all of the above both while watching live TV and while in the TiVo Central menu.

    2. DISPLAY and INFO are apparently synonyms. So are TIVO and DIRECTV. ADVANCE and DELIMITER are probably also synonyms, since they are the same button on the remote (I have not tested this).

    Additional <COMMAND> Values for IRCODE

    INFO
    STOP
    WINDOW

    These were all mentioned in posts after Omikron's original post, and they all work. Since Omikron's list was never updated, I am listing them all in one place here.
     
  8. Dec 3, 2009 #448 of 692
    wmccain

    wmccain Custom AV Consultant

    124
    0
    Dec 15, 2002
    Palo Alto,...
    A Possible Clue on the KEYBOARD Command

    Like others before me, I have been frustrated in many attempts to get the KEYBOARD command to work. But I did notice a possible "clue".

    If you send "'KEYBOARD', $0D" to the TiVo HD, it responds with just a standalone Carriage Return character (CR, $0D, 0x0D &#8212; take your pick of syntax). (The preceding command syntax is in the AMX Axcess/NetLinx format for compound strings. It means the string 'KEYBOARD', immediately followed by the CR character.) The same response occurs if you follow the text 'KEYBOARD' by a blank and some more text (any text).

    Now the interesting thing about this observation, is that the TiVo HD does respond to the KEYBOARD command, it does not just ignore it. And the response is not an error message. It is just the single CR character. This suggests that maybe the TiVo HD is expecting a further command (from my AMX controller) with the actual text that is to be entered.

    Alas, I could not get that to work. I tried sending two "command lines" in a single message ("'KEYBOARD', $0D, 'ABC', $0D") and I also tried waiting for the CR response from the TiVo and then sending it one text character, or more than one text character, followed by a CR.

    Nothing that I tried worked. But maybe somebody else can come up with some more ideas ... I really think this is an important "clue".
     
  9. Jan 7, 2010 #449 of 692
    dfrick111

    dfrick111 New Member

    1
    0
    Jan 7, 2010
    Hi,

    We now can use this TiVo remote, a video capture card / usb, and Skype to do a nice slingbox. The problem has been how to control the tv but now, no problem.

    I ordered one of those $7 usb capture cards - won't come till Monday. It has s-video in, and the TiVo does a nice job of making all the SD and HD channels look good out the s-video simultaneously.

    Skype with auto-answer turned on should allow me and my contacts to watch the TiVo, and anyone with the remote app control it.

    fun.
     
  10. Jan 9, 2010 #450 of 692
    johnnynine

    johnnynine New Member

    7
    0
    Sep 18, 2006
    1. Is there a way to switch the current tuner?

    2. Is there a way to request the current channel on each tuner? When I connect it only shows one channel, something like:

    CH_STATUS 123 LOCAL

    3. I noticed in an earlier post someone used the SETCH command to change channels and received a channel for both LOCAL and REMOTE, however I only get a response for LOCAL.

    Thanks,
    Johnny
     
  11. Jan 9, 2010 #451 of 692
    ThAbtO

    ThAbtO TiVoholic by the bay

    6,724
    8
    Apr 6, 2000
    SF Bay Area
    LIVE TV button switches tuners.

    For Example:

    To set a tuner to 2.1 and the other to 7.2

    SETCH 2 1
    IRCODE LIVETV
    SETCH 7 2

    You would have to have CAPS LOCK'd and be a very fast typist or the entry would timeout fairly quickly.

    I've done it using the commands on a Notepad file and doing copy/Paste works.
     
  12. Jan 9, 2010 #452 of 692
    johnnynine

    johnnynine New Member

    7
    0
    Sep 18, 2006
    Excellent, thanks!

    I'm writing a driver for the J9 Automation Engine so I'm sending the commands programmatically.

    It looks like when you switch tuners you just get a single CH_STATUS command for the LOCAL channel, so you can't reliably know what channel is on the other tuner.

    Johnny
     
  13. jb1677

    jb1677 New Member

    13
    0
    Jun 30, 2008
    Thanks for the apps here guys, I had been looking for a Win32 app to do what I had been doing with the iphone for a while. The Python app (under windows) is working like a charm!
     
  14. dddanmar

    dddanmar tivo retinas

    1
    0
    Jan 26, 2010
    Hi everyone!

    I got a case of 'I really need something to do'itis on Sunday and started looking into what I could do with our Tivo short of pulling it apart. This thread came in very handy!

    My blog post - examples, source and binaries for controlling a tivo with vb.NET, Python or PHP

    dddanmar.net/?p=68

    We wanted to stop having to find the remote, and two PCs are in the shed with the projector so I started on my desktop under Linux with Python / PHP / wbar / Apache to make a web remote and short cuts on my PC to change the channel. After awhile I swapped over and started building a vb.net application to go on my friends latop.

    Its all been running now for a few days and its pretty sweet.

    I plan on cleaning the vb.net code up, and getting the connection details as user editable instead of hard set for my home here. Grab the source zip if you just want to have a look, and all of the sources compile with free tools, either GNU or from .NETs express range.

    I read earlier in the thread about how to do it in Python, so I'll post that one here:

    import sys
    import telnetlib

    HOST = “192.168.1.104&#8243;
    PORT = “31339&#8243;
    tn = telnetlib.Telnet(HOST, PORT)
    tn.write(”SETCH 010&#8243; + chr(13))
    tn.close()

    Easy.
     
  15. orangeboy

    orangeboy yes, I AM orangeboy!

    4,083
    0
    Apr 19, 2004
    East Moline, IL
    A follow-up question: Does this app (TiVo Remote 0.17) emulate a TiVo remote with Address (0), and reset the DVR to address (0) as well, regardless of being in the System Information screen?
     
  16. Fofer

    Fofer XenForo Rocks! TCF Club

    82,096
    287
    Oct 29, 2000
    I works over TCP/IP, not infared, so those IR remote codes do not apply.
     
  17. orangeboy

    orangeboy yes, I AM orangeboy!

    4,083
    0
    Apr 19, 2004
    East Moline, IL
    Thanks. I had a situation where my DVR stopped responding to my remote, and I successfully tried to control it using the app. I navigated to System Information and found Remote Address (0), which would explain why Remote Address (x) stopped working. However, I now gather from the post I quoted, it wasn't that the app had reset the Remote Address by merely using it; the Remote Address was reset by navigating to the System Information screen using the app. I'll do more testing to satisfy my own curiosity. I played hell this morning trying to get my remotes (including a Harmony) working and using the proper addresses. A daunting effort when not knowing exactly what is going on!
     
  18. bocktar

    bocktar New Member

    52
    0
    Sep 24, 2001
    Lawrence,...
    Haven't seen this on this thread...

    IRCODE EXIT

    Causes TiVo to go back to LiveTV from anywhere. Does not swap tuner if issued again. Appears to be a true exit command.

    Tested and works on TiVo HD.

    Is there another source for network commands that is more up to date?
     
  19. Tanquen

    Tanquen Member

    104
    0
    Jun 1, 2002
    Napa, CA
    TiVo Remote 0.17- Help.

    Was just wondering what the PC keyboard short cuts are. I’ve figured out most of them the arrows, P for ‘Play’ and so on but when I use C for what I think is ‘Clear’ it deletes the show I’m on and the moves down several rungs and deletes another. :( ???

    Everything else so far is great. I use it when I want to make lots of changes as it is so much faster than my pronto pro that is using learned commands and going RF to IR.

    Thanks!
     
  20. wmcbrine

    wmcbrine Ziphead

    10,364
    22
    Aug 2, 2003
    ESC is clear. C is closed-caption toggle, a multi-code sequence.

    You can see the full list by doing "remote.pyw -k" on the command line. There's a partial list in post #134, but it's outdated.
     

Share This Page