Git Product home page Git Product logo

hides-drivers's Introduction

Device drivers for HiDes UT-100C DVB-T Modulator

About HiDes devices

HiDes is a company from Taiwan, a manufacturer of cheap DVB-T devices. These devices are based on chips from ITE Technologies Inc., also from Taiwan.

The UT-100C model is a USB DVB-T modulator adaptor (transmission). This device is probably the cheapest modulator on Earth for Digital TV. Other models include reception or PCIe interface.

The associated software, as currently delivered by HiDes, supports Windows and Linux. It is currently unclear who actually developed this software, HiDes or ITE.

The software is poorly packaged and its delivery mostly consists in a set of disorganized zip archives on DropBox, without fixed URL to reference in order to get notified of updates.

About this project

This project proposes an integrated packaging of the drivers for HiDes devices on Linux and Windows.

The latest repackaged drivers are available here.

Synthetic links to the latest versions are also available from the TSDuck site.

Windows drivers

The original packaging for the Windows driver for HiDes devices is acceptable. No change was made. This project only provides a fixed and known place from where the latest version can be downloaded.

Linux drivers

The original Linux driver has two problems:

  • It is delivered in source form only, in the middle of an archive containing sample test code and other software.
  • It has a polling design for send operations. A "normal" device driver for output device implements "waiting" or "blocking" send operations.

To solve the first issue, a DKMS (Dynamic Kernel Module Support) package is provided in this project. Install the DMKS package (available in .rpm or .deb form) and the driver is automatically recompiled and reinstalled after each kernel upgrade.

To solve the second issue, the Linux driver was modified to make all write operations waiting for the device to be ready. Thus, applications do not have to implement polling.

Note that the modified driver remains otherwise compatible with the original one. Thus, applications which were developed for the original driver will continue to work. But their polling code will never be used since all write calls always succeed the first time (except in case of real errors of course).

To let applications checking if the driver needs polling or not, the version string of the new driver ends with a 'w' letter.

API and SDK

The original SDK is hopeless. The API definition is not even the same between Linux and Windows. It is not possible to write portable applications using the original SDK. Moreover, the Linux version of the SDK exhibits blatant memory leaks in its so-called "API". Using the original SDK is consequently discouraged.

An alternate portable HiDes API is provided as part of TSDuck. This API is the C++ class HiDesDevice. The interface of this class is system-agnostic. Its implementation directly calls the underlying device driver but hides the differences between operating systems.

Reference links

Latest links

hides-drivers's People

Contributors

lelegard avatar ubaldus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

hides-drivers's Issues

Linux drivers

Hallo everyone,

I wanted to say that I am having the following issue.

It happens the same both with your modified linux drivers and hides inc original ones as well.

I am using utc 100 modulator tsrfsend ffmpeg and the linux drivers.

On linux kernel starting from 4.13 to the latest it happens the following.

I start the Script ffmpeg
ffmpeg -loglevel error -f alsa -ar 48000 -i pulse -f x11grab -framerate 25 -r 25
-video_size 1024x576 -acodec mp3 -i :0.0 -c:v mpeg2video -s $1 -aspect 16:9 -f mpegts
-mpegts_original_network_id 1 -mpegts_transport_stream_id 1
-mpegts_service_id 1 -mpegts_pmt_start_pid 1000 -mpegts_start_pid 1001
-metadata service_provider="DIGITAL VISIONS"
-metadata service_name=$2
-b:v 8372k -b:a 48k -y /home/da/dv/videots 2>> /home/da/dv/livecast.log``
which captures my desktop to the named pipe videots

then i run the Script tsrfsend
tsrfsend /home/da/dv/videots $NUML_DEVICE $3 8000 64 7/8 1/32 8 0 0 2>> /home/da/dv/livecast.log

which sends the data from named pipe videots

I installed the linux drivers and everything correctly.

Ubuntu 16.04 lts, 17.04 lts 18.04 lts with the linux kernels >= 4.13 .

What happens is that everything works fine at the beggining my desktop is displayed in the tv in the corresponding channel. But after 10 minutes its stops the tv screen says no signal found and is black, without any error or any other info.

When I check on ubuntu via top command I can see that ffmpeg and tsrfsend both are actually working fine.

So it is for sure the linux driver issue. And it happens with both your modified one and the original one.

Do you have any idea about this problem?

Kind Regards

Lecha

Unable to get HiDes UT-100C to transmit with hides-drivers

Hi there (Stephen Neal - who helped with the original HiDes driver development - here!)

Have built the drivers in both Raspberry Pi 32 and 64 bit OS and Ubuntu 32 bit OS on a Pi 4B 2GB today (21.01.23) - and have previously had no major issues with running a HiDes on a Pi. However this time I only ever get :
* hides: using device 0: "usb-it950x0" (/dev/usb-it950x0) with nominal output bitrate of 0 bits/s
when I try to run it

Test command line is :
tsp --bitrate 27144414 -v -m -I file "482000000.ts" -O hides -f 474000000 -b 8 -h "3/4" -g "1/32" -t "8k"
where the .ts file is the 482000000 mux ts downloaded from the TSDuck Stream Repository

Output of tshides is

Found 1 HiDes device

Index ........... 0
Name ............ "usb-it950x0"
Device .......... /dev/usb-it950x0
Chip type ....... 0x9507
Device type ..... 11
Driver version .. v18.04.16.2w
API version ..... 1.3.20160929.0
Link firmware ... 255.39.3.0
OFDM firmware ... 255.9.12.0
Company ......... ITEtech
Hardware info ... Eagle DVBT

I get no signal and no channels when tuning on a DVB-T TV.

Any thoughts - am I doing anything stupid?

(I have had issues with dkms and getting the right kernel headers in some cases - such as when I tried to use the pre-packaged hi-des deb for 32 bit Raspbian/Raspberry Pi OS)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.