Device ID info

Want to write your own code to work with a HDHomeRun or work with the HDHomeRun DVR? We are happy to help with concepts, APIs, best practices.
Post Reply
emveepee
Posts: 194
Joined: Sun Nov 16, 2014 3:35 pm
x 1

Device ID info

Post by emveepee »

Is there a way to tell from the device ID if a device is legacy or not? If it is not legacy and perhaps an edge case in my own system can the device ID show if the device is ATSC/QAM vs DVB-T/C?

Martin

gtb
Expert
Posts: 4284
Joined: Thu Oct 06, 2011 1:00 pm
Location: Sunnyvale, CA USA
x 26

Re: Device ID info

Post by gtb »

emveepee wrote: Sun Aug 10, 2025 4:33 pm Is there a way to tell from the device ID if a device is legacy or not? If it is not legacy and perhaps an edge case in my own system can the device ID show if the device is ATSC/QAM vs DVB-T/C?
The official definition of the algorithm for determining from the device id if a device is legacy can be found in the libhdhomerun code (hdhomerun_discover.c).

You can gain a lot of additional information (presuming the device has recent firmware) from the http://<hdhr>/discover.json, and then decoding the json output.

nickk
Silicondust
Posts: 20828
Joined: Tue Jan 13, 2004 9:39 am
x 437

Re: Device ID info

Post by nickk »

If you are using the discover API from libhdhomerun there is a function that tells you if a detected device is a legacy model.

emveepee
Posts: 194
Joined: Sun Nov 16, 2014 3:35 pm
x 1

Re: Device ID info

Post by emveepee »

gtb wrote: Sun Aug 10, 2025 4:51 pm You can gain a lot of additional information (presuming the device has recent firmware) from the http://<hdhr>/discover.json, and then decoding the json output.
Thanks I don't have access to the API where I am calling from so this is perfect https://github.com/Silicondust/libhdhom ... er.c#L1490

Martin

Post Reply