Evolving Software

I’m sure that you know if you have a Tivo or not, but I’m providing a class based on the “Tivo Connect Automatic Machine Discovery Protocol Specification” that will listen for the Tivo UDP heartbeat and provide a notification when the heartbeat is detected.

Usage:

1
2
3
4
5
6
7
 TivoLocator.getInstance().addListener(new TivoLocatorListener() {
 
      public void processTivoHeartbeat(TivoInformation info) {
          System.out.println("Tivo IP: " + info.getAddress());
      }
 
 });

The Tivo will send out these hearbeats about every 60 seconds or so. The TivoInformation class will tell you information such as:

Internet Address: getAddress()
Connect Method: getMethod()
Platform: getPlatform()
Machine Name: getMachineName()
Identity: getIdentity()
Services: getServices()
Software Version: getSwVersion()

Code: TivoLocator.java
Spec: TivoConnectDiscoverySpec.pdf

Categories: Software Engineering