Linux for satellite receiver

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

cheap DVB-S2 Satellite Tuner / Sat-Receiver using CX24116 for Linux DVB

xenpac/Linux-DVB-S2-SatReceiver

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Sign In Required

Please sign in to use Codespaces.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching Xcode

If nothing happens, download Xcode and try again.

Launching Visual Studio Code

Your codespace will open once ready.

There was a problem preparing your codespace, please try again.

Latest commit

Git stats

Files

Failed to load latest commit information.

README.md

Linux DVB-S2 NIM Sat-Tuner CX24116

What is this ?

Its a hardware and software project, building a satellite tuner to be used with Linux DVB.

Something like the MiniTiouner.

modul

This Satellite Receiver connects to a linux computer via USB cable.
It will be detected by linux-kernel as a «DVBWorld DW2104 USB2.0» DVB-Tuner-device. Its basicly a clone.

  • Sharp BSBE2-401A NIM Tuner (CX24116/8) from ALI for about 7 $. (Tuner is from 2008, used fe. in dreambox)
  • CY7C68013A FX2LP LCsoft-Board USB controller from ALI for about 3 $
  • salvaged old SatReceiver case with powersupply for free.
  • some additional circuitry for powersupply and LNB supply.
  • connects to a Linux-machine via USB

The Linux DVB framework dates back to around 2009 with not much improvement ever since.
At that time a couble of Sat-Tuners came on the market and Linux implemented support for them.

Читайте также:  Linux show arp table

Using the Linux DVB framework has the advantage that you do not need to write one line of code.
Its all there. Use Kaffeine, TvHeadEnd or VLC to watch television.

I was especially looking for a Tuner whos chipset was supported by the Linux Kernel.
Eh Viola inexpensive Sharp Tuner turned up having the CX24116/8 chipset.

It is a NIM(Network Interface Module) Tuner, meaning it has a Tuner(cx24118) and a Demodulator Chip(cx24116) in it.
So it outputs the MPEG TS stream from the tuned transponder.

Now i had to look into the list of supported devices for Linux DVB-S2 USB:

Ok, now i had to design my circuit such that the resulting device immitates a «DVBWorld DW2104 USB2.0» product,
so the Kernel will accepts it.

The Linux kernel needs two firmware files for this SatReceiver:

  • dvb-fe-cx24116.fw = code for the cx24116 internal processor V1.26.90.0 , to do automated tuning etc.
  • dvb-usb-dw2104.fw = code for the fx2lp Cypress chip, custom version, USB interface to support streaming and i2c transfer to/from cx24116.

These two files reside in Linux under /lib/firmware and are downloaded on USB connect by the kernel.

DISH—LNB—COAX-CABLE—[NIM-TUNER—USB-INTERFACE]—USB-CABLE—LINUX-MACHINE

The original DVBWORLD device also uses the Cypress FX2LP Chip, so the LCsoft-board will do the USB interface job.

The original firmware «dvb-usb-dw2104.fw» cannot be used, as my HW-design is different.
(at least i could not find a schematic for the DVBWORLD device to do an exact copy.)

So the only software that needs to be developed was the one for the FX2LP Chip, replacing the «dvb-usb-dw2104.fw».

All i2c-control transfer is done via USB Endpoint 0 and it is very important to get this right,
otherwise you wonder why things not working.

There is a pdf with the schematic.

Powersupply for the Tuner and LNB

The salvaged receiver case provided already a switching power supply with 5V and 23V, how handy 😉

The cx24116 is taking 1.2V and approx. 500mA. from 5V
The LNB needs 13 or 18V at around 100mA. from 23V
For the 3.3V i took a standard LM1117 LDO regulator. from 5V.

Читайте также:  Получение пароля от wifi kali linux

For the 1.2V i took an SMPS i had available, but also a LM317 can be used as 1.2V is the minimum voltage it can deliver.
For the LNB the LM317 is ideal as the voltage switching is easy to implement.
LM317 need heatsink.
As for the FX2LP LCsoft-board, i disconnected the USB-side 5V supply and hooked the board up to the internal 5V supply.
(may not be necessary)

I wrote a custom version of the «dvb-usb-dw2104.fw» firmware for the fx2lp controller.

To get Linux-DVB to operate this device, you need to install the following 2 files:

Also you need to flash the fx2lp chip once:

The custom firmware «dvb-usb-dw2104.fw» features the two onboard Leds to indicate:

  • Led1 : blinking = streaming is on; constantly on = no data from tuner, constantly off = host not reading
  • Led2 : on = Host not reading USB stream, ie. change channels; off = all ok.

I havent included the «dvb-usb-dw2104.fw» firmware sourcecode, but can do on request.

As DVB-S2X seems to be dead, this DVB-S2 receiver would serve as a nice Sat-Frontend for the raspberry pi/tvheadend.

I was reading about the MiniTiouner project on amsat-dl.org forum, hmm, maybe there is a usecase for this too,
for the amateur TV hobbyist.
Might require to write a special kernel-driver which has the benefit of speed and Demux-filters readily available.
Also might need a special firmware written for the cx24116 instead of the standard «dvb-fe-cx24116.fw».

Add issues/suggestions in the «issue-sction».

About

cheap DVB-S2 Satellite Tuner / Sat-Receiver using CX24116 for Linux DVB

Источник

How to install OpenATV and OScam for satellite receiver and connect to the remote OScam server and secure it together with OpenWebif

This tutorial will be about installation of latest version OpenATV (during writing of this article version 6.2) for Enigma2 compatible Linux Satellite receivers and installation of OScam (CAM software). Later OScam will be configured to connect to external OScam server and secured by password together with OpenWebIf.

In this tutorial I assume you have already running OScam server (if not check this post) and you want just connect OpenATV satellite receiver to the remote OScam server. You already pre-created user and password on remote OScam server for the client who we will configure below.

  • From beining OpenATV comes without password set for root user. Set password for root user by following command (save the password. Password won’t be shown during typing):
cd ~/Downloads/ scp XYZ.ipk 192.168.0.100:/root/
  • After a file was succesfully copied Switch back to the SSH console of receiver
  • Install Softcam OScam .IPK package (replace XYZ.ipk by real name of ipk package you copied to the receiver before):
cd /root opkg install XYZ.ipk
  • And replace whole content by this (modify yellow marked lines by your configuration):
    • Remeber:
      • device – this is IP address of remote OScam server. Change it to your remote OScam server IP. A “30000” is default port of cccam protocol you have open on remote OScam server.
      • user – username of user who is registered in remote OScam server
      • password – password of user who is registered in remote OScam server
      [reader] label = cccam_server protocol = cccam device = 192.168.1.100,30000 user = USERNAME password = PASSWORD inactivitytimeout = 30 group = 1 cccversion = 2.2.1 ccckeepalive = 1 cccreshare = 1
      • Go physically to the satellite receiver, press menu button on remote controller and navigate to the Information Panel >Softcam-panel. On the screen you should see something like “Setting CAM1 – no cam“. On the remote controller press right arrow, it should change from “Setting CAM1 – no cam” to “Setting CAM1 – OSCam.EMU 11392“. On remote controller now press Green button (ReStart) to start installed OScam. When successfully configured you should see “CAM1 active: OSCam.EMU 11392“.
      • I recommend to enable Softcam stuck prevention. Go again to the menu > Information Panel > Setting Softcam panel > enable there prevention against stucked/frozen softcam.

      Done. Our satellite receiver will start communicate with remote OScam server.

      To secure OScam portal on satellite receiver and OpenWebif portal proceed with following:

      • Go to the http://SatelliteReceiverIP:8888
      • Click to Files >oscam.conf
      • Look for section “[webif]” and set httpuser and httppwd:
      [webif] . httpuser = root httppwd = MySecretPassword .
      • Click to save button
      • To secure OpenWebif on http://SatelliteReceiverIP:80 go physically to your satellite receiver and press Menu >Plugins >openwebif >Enable http authentication: Yes
      • Now you will authenticate to OpenWebif portal by password you set in the begining of the post for root user (like in system via SSH).

      Share this:

      Источник

Оцените статью
Adblock
detector