Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
hdhomerun_config [2019/06/22 03:33]
neds
hdhomerun_config [2019/08/29 01:53]
neds
Line 10: Line 10:
  
 ===== Compiling hdhomerun_config ===== ===== Compiling hdhomerun_config =====
 +<WRAP indent>
 +
 === Windows (pre-compiled) === === Windows (pre-compiled) ===
 +<WRAP indent>
 +
 Download and install the HDHomeRun software for Windows. The hdhomerun_config.exe executable can be found in the program directory - default C:\Program Files\Silicondust\HDHomeRun. Download and install the HDHomeRun software for Windows. The hdhomerun_config.exe executable can be found in the program directory - default C:\Program Files\Silicondust\HDHomeRun.
 +
 +</​WRAP>​
  
 === Windows (MSVC++) === === Windows (MSVC++) ===
 +<WRAP indent>
 +
 Download and extract the libhdhomerun archive. Create a new empty project and include all Download and extract the libhdhomerun archive. Create a new empty project and include all
 the .c and .h files. From the project properties page under C/C++ advanced, change the Compile As type to C, click apply and then change it back to C++ -- this is a workaround for a bug in MSVC++. Under the Linker input, add Ws2_32.lib and iphlpapi.lib as Additional Dependencies. the .c and .h files. From the project properties page under C/C++ advanced, change the Compile As type to C, click apply and then change it back to C++ -- this is a workaround for a bug in MSVC++. Under the Linker input, add Ws2_32.lib and iphlpapi.lib as Additional Dependencies.
Line 19: Line 27:
 Compile. Compile.
  
 +</​WRAP>​
  
 === Cygwin/​Linux/​Mac/​*BSD === === Cygwin/​Linux/​Mac/​*BSD ===
 +<WRAP indent>
 +
 Download and extract the libhdhomerun archive. Download and extract the libhdhomerun archive.
  
 Run "​make"​ Run "​make"​
  
 +</​WRAP>​
 +</​WRAP>​
  
 ===== Using hdhomerun_config ===== ===== Using hdhomerun_config =====
 +<WRAP indent>
 +
 The list of supported commands can be obtained by running hdhomerun_config without any parameters: The list of supported commands can be obtained by running hdhomerun_config without any parameters:
         hdhomerun_config discover         hdhomerun_config discover
Line 35: Line 50:
         hdhomerun_config <id> save <​tuner>​ <​filename>​         hdhomerun_config <id> save <​tuner>​ <​filename>​
         hdhomerun_config <id> upgrade <​filename>​         hdhomerun_config <id> upgrade <​filename>​
 +
 +</​WRAP>​
  
 ===== Discover the HDHomeRun devices on the network ===== ===== Discover the HDHomeRun devices on the network =====
 +<WRAP indent>
 +
 The discover command will find HDHomeRun devices that are on the same subnet as the host: The discover command will find HDHomeRun devices that are on the same subnet as the host:
         hdhomerun_config discover         hdhomerun_config discover
 +
 +</​WRAP>​
  
 ===== Sending commands to a specific HDHomeRun ===== ===== Sending commands to a specific HDHomeRun =====
 +<WRAP indent>
 +
 The "<​id>"​ shown above represents a unique identifier for a HDHomeRun device, this can be either Device ID, or IP address: The "<​id>"​ shown above represents a unique identifier for a HDHomeRun device, this can be either Device ID, or IP address:
         hdhomerun_config <device id> get help         hdhomerun_config <device id> get help
Line 48: Line 71:
  
 A Device ID of FFFFFFFF can be used as a wild card for the first HDHomeRun device found on the network. Do not use this syntax if there are multiple HDHomeRun devices on the network, as the device used will be random based on discovery order, which may change between commands. A Device ID of FFFFFFFF can be used as a wild card for the first HDHomeRun device found on the network. Do not use this syntax if there are multiple HDHomeRun devices on the network, as the device used will be random based on discovery order, which may change between commands.
 +
 +</​WRAP>​
  
 ===== Query the list of options supported by a HDHomeRun device ===== ===== Query the list of options supported by a HDHomeRun device =====
 +<WRAP indent>
  
 The get/set options supported by a specific HDHomeRun device can be queried using the get help command: The get/set options supported by a specific HDHomeRun device can be queried using the get help command:
Line 74: Line 100:
 | <​code>/​sys/​copyright</​code>​ | Display firmware copyright | | <​code>/​sys/​copyright</​code>​ | Display firmware copyright |
 | <​code>/​sys/​debug</​code>​ | Display debug info | | <​code>/​sys/​debug</​code>​ | Display debug info |
 +
 +</​WRAP>​
  
 ===== Channelmap ===== ===== Channelmap =====
 +<WRAP indent>
 +
 The channelmap is used to configure the auto-modulation detection and channel scan. This should be configured correctly for each tuner. The channelmap is used to configure the auto-modulation detection and channel scan. This should be configured correctly for each tuner.
  
Line 106: Line 136:
 | tw-bcast ​ | Digital Antenna (Taiwan) ​    | Taiwan ​              | | tw-bcast ​ | Digital Antenna (Taiwan) ​    | Taiwan ​              |
 | tw-cable ​ | Digital Cable (Taiwan) ​      | Taiwan ​              | | tw-cable ​ | Digital Cable (Taiwan) ​      | Taiwan ​              |
 +</​WRAP>​
 +
 </​WRAP>​ </​WRAP>​
  
 ===== Channel scan ===== ===== Channel scan =====
 +<WRAP indent>
 +
 To run a channel scan: To run a channel scan:
 <​code>​ <​code>​
Line 118: Line 152:
  
 When a digital channel is found it will identify the programs on the channel. The log filename is optional; if included it will log to the given filename. When a digital channel is found it will identify the programs on the channel. The log filename is optional; if included it will log to the given filename.
 +
 +</​WRAP>​
  
 ===== Tuning a physical channel ===== ===== Tuning a physical channel =====
 +<WRAP indent>
  
 To set a channel use the set channel command: To set a channel use the set channel command:
Line 139: Line 176:
 eg:     ​hdhomerun_config FFFFFFFF set /​tuner0/​channel none eg:     ​hdhomerun_config FFFFFFFF set /​tuner0/​channel none
 </​code>​ </​code>​
 +
 +</​WRAP>​
  
 ===== Checking the signal strength ===== ===== Checking the signal strength =====
 +<WRAP indent>
 +
 The basic signal information can be obtained by using the get status command: The basic signal information can be obtained by using the get status command:
 <​code>​ <​code>​
Line 188: Line 229:
  
 The counters are reset to zero upon a channel change, but may indicate a small number of errors caused before the tuner locks on the channel. As a result, diagnostics should be based on the change in values over time, and not the initial values. The counters are reset to zero upon a channel change, but may indicate a small number of errors caused before the tuner locks on the channel. As a result, diagnostics should be based on the change in values over time, and not the initial values.
 +
 +</​WRAP>​
  
 ===== Detecting the programs on a physical channel ===== ===== Detecting the programs on a physical channel =====
 +<WRAP indent>
  
 The HDHomeRun will detect the programs (sub-channels). Use the get streaminfo command to query the detected programs: The HDHomeRun will detect the programs (sub-channels). Use the get streaminfo command to query the detected programs:
Line 210: Line 254:
  
 It may take several seconds after setting the channel for the stream information to be fully populated (depending on how long the channel takes to lock and how often the stream information is sent by the broadcaster/​cable provider). It may take several seconds after setting the channel for the stream information to be fully populated (depending on how long the channel takes to lock and how often the stream information is sent by the broadcaster/​cable provider).
 +
 +</​WRAP>​
  
 ===== Filtering by program (sub-channel) ===== ===== Filtering by program (sub-channel) =====
 +<WRAP indent>
  
 The HDHomeRun supports automatic PID filtering by program number: The HDHomeRun supports automatic PID filtering by program number:
Line 231: Line 278:
 hdhomerun_config <id> set /​tuner0/​program "3 tvct_from_pmt=11.2(TEST)"​ hdhomerun_config <id> set /​tuner0/​program "3 tvct_from_pmt=11.2(TEST)"​
 </​code>​ </​code>​
 +
 +</​WRAP>​
  
 ===== Filtering by PID ===== ===== Filtering by PID =====
 +<WRAP indent>
 +
 The HDHomeRun supports arbitrary hardware PID filtering: The HDHomeRun supports arbitrary hardware PID filtering:
 <​code>​ <​code>​
Line 243: Line 294:
  
 The filter is cleared to pass-all (0x0000-0x1FFF) when a set channel command is received. The filter is cleared to pass-all (0x0000-0x1FFF) when a set channel command is received.
 +
 +</​WRAP>​
  
 ===== Saving a stream ===== ===== Saving a stream =====
 +<WRAP indent>
 +
 The hdhomerun_config command can be used to automate the process of saving to the local filesystem: The hdhomerun_config command can be used to automate the process of saving to the local filesystem:
 <​code>​ <​code>​
Line 265: Line 320:
  
 <​code>​eg: ​    ​hdhomerun_config FFFFFFFF save /tuner0 - | vlc -</​code>​ <​code>​eg: ​    ​hdhomerun_config FFFFFFFF save /tuner0 - | vlc -</​code>​
 +
 +</​WRAP>​
  
 ===== Streaming to a target machine ===== ===== Streaming to a target machine =====
 +<WRAP indent>
  
 Set the target IP address and port number using the set target command: Set the target IP address and port number using the set target command:
Line 281: Line 339:
  
 === Example: Streaming to VLC === === Example: Streaming to VLC ===
 +<WRAP indent>
 +
 Run VLC: File, Open Network Stream. Select UDP/RTP. Specify port 5000. Discover the HDHomeRun: Run VLC: File, Open Network Stream. Select UDP/RTP. Specify port 5000. Discover the HDHomeRun:
         hdhomerun_config discover         hdhomerun_config discover
Line 298: Line 358:
 Set the target: Set the target:
         hdhomerun_config FFFFFFFF set /​tuner0/​target <ip address of pc>:5000         hdhomerun_config FFFFFFFF set /​tuner0/​target <ip address of pc>:5000
 +
 +</​WRAP>​
 +</​WRAP>​
  
 {{tag>​troubleshooting}} {{tag>​troubleshooting}}
  • Last modified: 2024/02/07 03:04