Debugging & analysing DVB signal

With w_scan -f t -c SK -vv -X > channels.conf 2>w_scan.log

I get w_scan.log with some progress&debug info

and channels.conf has channel data for tunning (zapping) a channel from channels.conf:

mike@jarvis:~$ tzap -x -c channels.conf “TV2(MTM-SBS Zrt.)”

mike@jarvis:~$ cat channels.conf
RTL Klub(Magyar RTL TelevŦzið Zrt.):506000000:INVERSION_AUTO:BANDWIDTH_8_MHZ:FEC_AUTO:FEC_AUTO:QAM_AUTO:TRANSMISSION_MODE_AUTO:GUARD_INTERVAL_AUTO:HIERARCHY_AUTO:2001:2002:20
TV2(MTM-SBS Zrt.):506000000:INVERSION_AUTO:BANDWIDTH_8_MHZ:FEC_AUTO:FEC_AUTO:QAM_AUTO:TRANSMISSION_MODE_AUTO:GUARD_INTERVAL_AUTO:HIERARCHY_AUTO:2011:2012:40
Cool(Antenna HungÆria):506000000:INVERSION_AUTO:BANDWIDTH_8_MHZ:FEC_AUTO:FEC_AUTO:QAM_AUTO:TRANSMISSION_MODE_AUTO:GUARD_INTERVAL_AUTO:HIERARCHY_AUTO:2021:2022:202
Film+(Antenna HungÆria):506000000:INVERSION_AUTO:BANDWIDTH_8_MHZ:FEC_AUTO:FEC_AUTO:QAM_AUTO:TRANSMISSION_MODE_AUTO:GUARD_INTERVAL_AUTO:HIERARCHY_AUTO:2031:2032:203
HBO(Antenna HungÆria):506000000:INVERSION_AUTO:BANDWIDTH_8_MHZ:FEC_AUTO:FEC_AUTO:QAM_AUTO:TRANSMISSION_MODE_AUTO:GUARD_INTERVAL_AUTO:HIERARCHY_AUTO:2041:2046:204
National Geographic(Antenna HungÆria):506000000:INVERSION_AUTO:BANDWIDTH_8_MHZ:FEC_AUTO:FEC_AUTO:QAM_AUTO:TRANSMISSION_MODE_AUTO:GUARD_INTERVAL_AUTO:HIERARCHY_AUTO:2051:2052:205
Disney Channel(Antenna HungÆria):506000000:INVERSION_AUTO:BANDWIDTH_8_MHZ:FEC_AUTO:FEC_AUTO:QAM_AUTO:TRANSMISSION_MODE_AUTO:GUARD_INTERVAL_AUTO:HIERARCHY_AUTO:2061:2062:206
AXN(Antenna HungÆria):506000000:INVERSION_AUTO:BANDWIDTH_8_MHZ:FEC_AUTO:FEC_AUTO:QAM_AUTO:TRANSMISSION_MODE_AUTO:GUARD_INTERVAL_AUTO:HIERARCHY_AUTO:2071:2072:207
FEM3(Antenna HungÆria):506000000:INVERSION_AUTO:BANDWIDTH_8_MHZ:FEC_AUTO:FEC_AUTO:QAM_AUTO:TRANSMISSION_MODE_AUTO:GUARD_INTERVAL_AUTO:HIERARCHY_AUTO:2081:2082:208
Dorcel TV(Antenna HungÆria):506000000:INVERSION_AUTO:BANDWIDTH_8_MHZ:FEC_AUTO:FEC_AUTO:QAM_AUTO:TRANSMISSION_MODE_AUTO:GUARD_INTERVAL_AUTO:HIERARCHY_AUTO:2091:2092:209
ATV(Antenna HungÆria):506000000:INVERSION_AUTO:BANDWIDTH_8_MHZ:FEC_AUTO:FEC_AUTO:QAM_AUTO:TRANSMISSION_MODE_AUTO:GUARD_INTERVAL_AUTO:HIERARCHY_AUTO:2101:2102:210
HirTV(Antenna HungÆria):506000000:INVERSION_AUTO:BANDWIDTH_8_MHZ:FEC_AUTO:FEC_AUTO:QAM_AUTO:TRANSMISSION_MODE_AUTO:GUARD_INTERVAL_AUTO:HIERARCHY_AUTO:2111:2112:211
Sportklub(Antenna HungÆria):506000000:INVERSION_AUTO:BANDWIDTH_8_MHZ:FEC_AUTO:FEC_AUTO:QAM_AUTO:TRANSMISSION_MODE_AUTO:GUARD_INTERVAL_AUTO:HIERARCHY_AUTO:2121:2122:212
Euronews Teszt(Antenna HungÆria):506000000:INVERSION_AUTO:BANDWIDTH_8_MHZ:FEC_AUTO:FEC_AUTO:QAM_AUTO:TRANSMISSION_MODE_AUTO:GUARD_INTERVAL_AUTO:HIERARCHY_AUTO:2131:2132:213
D1 TV(Antenna HungÆria):506000000:INVERSION_AUTO:BANDWIDTH_8_MHZ:FEC_AUTO:FEC_AUTO:QAM_AUTO:TRANSMISSION_MODE_AUTO:GUARD_INTERVAL_AUTO:HIERARCHY_AUTO:2151:2152:215

 

To test tuned data run the following

mike@jarvis:~$ dvbsnoop -s feinfo
dvbsnoop V1.4.50 — http://dvbsnoop.sourceforge.net/

———————————————————
FrontEnd Info…
———————————————————

Device: /dev/dvb/adapter0/frontend0

Basic capabilities:
Name: “ITE 9135(9006) Generic_1”
Frontend-type:       OFDM (DVB-T)
Frequency (min):     51000.000 kHz
Frequency (max):     1680000.000 kHz
Frequency stepsiz:   62.500 kHz
Frequency tolerance: 0.000 kHz
Symbol rate (min):     0.000000 MSym/s
Symbol rate (max):     0.000000 MSym/s
Symbol rate tolerance: 0 ppm
Notifier delay: 0 ms
Frontend capabilities:
auto inversion
FEC 1/2
FEC 2/3
FEC 3/4
FEC 4/5
FEC 5/6
FEC 6/7
FEC 7/8
FEC AUTO
QAM 16
QAM 64
QAM AUTO
auto transmission mode
auto guard interval
auto hierarchy

Current parameters:
Frequency:  506000.000 kHz
Inversion:  ON
Bandwidth:  8 MHz
Stream code rate (hi prio):  FEC 3/4
Stream code rate (lo prio):  FEC 1/2
Modulation:  QAM 64
Transmission mode:  8k mode
Guard interval:  1/4
Hierarchy:  none
Show Program Association Table
mike@jarvis:~$ dvbsnoop -n 1 0x0000

dvbsnoop V1.4.50 — http://dvbsnoop.sourceforge.net/

————————————————————
SECT-Packet: 00000001   PID: 0 (0x0000), Length: 80 (0x0050)
Time received: Sun 2014-04-27  19:54:58.348
————————————————————
0000:  00 b0 4d 00 02 c5 00 00  00 00 e0 10 00 14 e7 d0   ..M………….
0010:  00 28 e7 da 00 ca e7 e4  00 cb e7 ee 00 cc e7 f8   .(…………..
0020:  00 cd e8 02 00 ce e8 0c  00 cf e8 16 00 d0 e8 20   ……………
0030:  00 d1 e8 2a 00 d2 e8 34  00 d3 e8 3e 00 d4 e8 48   …*…4…>…H
0040:  00 d5 e8 52 00 d7 e8 66  01 0e ea 8c ec 12 a6 6b   …R…f…….k

PID:  0 (0x0000)  [= assigned for: ISO 13818-1 Program Association Table (PAT)]

Guess table from table id…
PAT-decoding….
Table_ID: 0 (0x00)  [= Program Association Table (PAT)]
section_syntax_indicator: 1 (0x01)
(fixed): 0 (0x00)
reserved_1: 3 (0x03)
Section_length: 77 (0x004d)
Transport_Stream_ID: 2 (0x0002)
reserved_2: 3 (0x03)
Version_number: 2 (0x02)
current_next_indicator: 1 (0x01)  [= valid now]
Section_number: 0 (0x00)
Last_Section_number: 0 (0x00)

Program_number: 0 (0x0000)
reserved: 7 (0x07)
Network_PID: 16 (0x0010)

Program_number: 20 (0x0014)
reserved: 7 (0x07)
Program_map_PID: 2000 (0x07d0)

Program_number: 40 (0x0028)
reserved: 7 (0x07)
Program_map_PID: 2010 (0x07da)

Program_number: 202 (0x00ca)
reserved: 7 (0x07)
Program_map_PID: 2020 (0x07e4)

Program_number: 203 (0x00cb)
reserved: 7 (0x07)
Program_map_PID: 2030 (0x07ee)

Program_number: 204 (0x00cc)
reserved: 7 (0x07)
Program_map_PID: 2040 (0x07f8)

Program_number: 205 (0x00cd)
reserved: 7 (0x07)
Program_map_PID: 2050 (0x0802)

Program_number: 206 (0x00ce)
reserved: 7 (0x07)
Program_map_PID: 2060 (0x080c)

Program_number: 207 (0x00cf)
reserved: 7 (0x07)
Program_map_PID: 2070 (0x0816)

Program_number: 208 (0x00d0)
reserved: 7 (0x07)
Program_map_PID: 2080 (0x0820)

Program_number: 209 (0x00d1)
reserved: 7 (0x07)
Program_map_PID: 2090 (0x082a)

Program_number: 210 (0x00d2)
reserved: 7 (0x07)
Program_map_PID: 2100 (0x0834)

Program_number: 211 (0x00d3)
reserved: 7 (0x07)
Program_map_PID: 2110 (0x083e)

Program_number: 212 (0x00d4)
reserved: 7 (0x07)
Program_map_PID: 2120 (0x0848)

Program_number: 213 (0x00d5)
reserved: 7 (0x07)
Program_map_PID: 2130 (0x0852)

Program_number: 215 (0x00d7)
reserved: 7 (0x07)
Program_map_PID: 2150 (0x0866)

Program_number: 270 (0x010e)
reserved: 7 (0x07)
Program_map_PID: 2700 (0x0a8c)

CRC: 3960645227 (0xec12a66b)
==========================================================
To print Conditional Access Table (CAT), it’s PID is 0x0001 as stated on Wikipedia
mike@jarvis:~$ dvbsnoop -n 1 0x0001
dvbsnoop V1.4.50 — http://dvbsnoop.sourceforge.net/

————————————————————
SECT-Packet: 00000001   PID: 1 (0x0001), Length: 18 (0x0012)
Time received: Sun 2014-04-27  20:02:10.753
————————————————————
0000:  01 b0 0f ff ff c5 00 00  09 04 0b 00 13 88 b2 07   …………….
0010:  c5 d8                                              ..

PID:  1 (0x0001)  [= assigned for: ISO 13818-1 Conditional Access Table (CAT)]

Guess table from table id…
CAT-decoding….
Table_ID: 1 (0x01)  [= Conditional Access Table (CAT)]
section_syntax_indicator: 1 (0x01)
(fixed): 0 (0x00)
reserved_1: 3 (0x03)
Section_length: 15 (0x000f)
reserved_2: 262143 (0x3ffff)
Version_number: 2 (0x02)
current_next_indicator: 1 (0x01)  [= valid now]
Section_number: 0 (0x00)
Last_Section_number: 0 (0x00)

MPEG-DescriptorTag: 9 (0x09)  [= CA_descriptor]
descriptor_length: 4 (0x04)
CA_system_ID: 2816 (0x0b00)  [= Norwegian Telekom (Conax)]
reserved: 0 (0x00)
CA_PID: 5000 (0x1388)

CRC: 2986853848 (0xb207c5d8)
==========================================================

Other examples:

DVB scan, tune and stream

DVB scan, tune and stream

http://dvbsnoop.sourceforge.net/examples/examplelist.html

Advertisements

About Michal Zuber

Biker and rollerblader. Owner and developer at http://nevilleweb.sk/ Co-founded http://neville.sk/ Blog at https://michalzuber.wordpress.com/
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s