ATSC Tuner -> tvheadend

Support forum for minisatip
fognl
Posts: 8
Joined: Tue May 09, 2017 6:40 pm

ATSC Tuner -> tvheadend

Post by fognl »

This is my first time using this software, and I have been trying to share my tuner across my network to my tvheadend server.

On one system, I'm running Ubuntu with the TV Tuner Hauppauge 950Q. I've previously had tvheadend running on this system which displayed the tuner as:
TV Adaptors
- /dev/dvb/adapter0 [Auvitek AU8522 QAM/8VSB Frontend #0]
o Auvitek AU8522 QAM/8VSB Frontend : ATSC-C #0
o Auvitek AU8522 QAM/8VSB Frontend : ATSC-T #0
With the ATSC-T #0 as the one enabled. The mux used in the network tab was:
[CHANNEL]
DELIVERY_SYSTEM = ATSC
FREQUENCY = 515000000
MODULATION = VSB/8
INVERSION = AUTO

[CHANNEL]
DELIVERY_SYSTEM = ATSC
FREQUENCY = 183000000
MODULATION = VSB/8
INVERSION = AUTO
After killing the tvhendend service, I downloaded/compiled minisatip and ran it with the -f parameter. The server appears in my adapter list for a tvheadend server elsewhere on the network, but doesn't show any adapters underneath:
TV adapters
- minisatip - 192.168.1.250
I'm assuming something else should be listed under this IP, but I can't figure out how to get it to work.

My log file (note: 192.168.1.200=tvheadend, 192.168.1.250=minisatip, 192.168.1.2=desktop):

Code: Select all

fog@adria:~/Downloads/minisatip-master$ sudo ./minisatip -f -lll
[09/05 16:23:10.563 main]: minisatip version 0.7.4, compiled with s2api version: 050A
[09/05 16:23:10.564 main]: Built with dvbcsa
[09/05 16:23:10.564 main]: Built with CI
[09/05 16:23:10.564 main]: Built with dvbapi
[09/05 16:23:10.564 main]: Built without AES (OpenSSL)
[09/05 16:23:10.564 main]: Built with tables processing
[09/05 16:23:10.564 main]: Built with satip client
[09/05 16:23:10.564 main]: Built with linux dvb client
[09/05 16:23:10.564 main]: Built with backtrace
[09/05 16:23:10.564 main]: Built without netceiver
[09/05 16:23:10.565 main]: New UDP socket 3 bound to 0.0.0.0:1900
[09/05 16:23:10.566 main]: setting multicast for 239.255.255.250
[09/05 16:23:10.566 main]: New UDP socket 4 bound to 239.255.255.250:1900
[09/05 16:23:10.566 main]: Mutex init 0x641fe0
[09/05 16:23:10.566 main]: Mutex init 0x1d9bc28
[09/05 16:23:10.566 main]: sockets_add: handle 3 (type 0) returning socket index 0 [0.0.0.0:0] read: 0x408d2c
[09/05 16:23:10.566 main]: Mutex init 0x1d9bd58
[09/05 16:23:10.566 main]: sockets_add: handle 4 (type 0) returning socket index 1 [0.0.0.0:0] read: 0x408d2c
[09/05 16:23:10.567 main]: Mutex init 0x1d9be88
[09/05 16:23:10.567 main]: sockets_add: handle 5 (type 2) returning socket index 2 [0.0.0.0:0] read: 0x408bdf
[09/05 16:23:10.567 main]: Mutex init 0x1d9bfb8
[09/05 16:23:10.567 main]: sockets_add: handle 6 (type 2) returning socket index 3 [0.0.0.0:0] read: 0x408bdf
[09/05 16:23:10.567 main]: Mutex init 0x1d9c0e8
[09/05 16:23:10.567 main]: sockets_add: handle -2 (type 0) returning socket index 4 [0.0.0.0:0] read: 0x408d2c
[09/05 16:23:10.567 main]: set_socket_thread: thread c0594700 for sockets 4
[09/05 16:23:10.567 main]: Mutex init 0x1d9c348
[09/05 16:23:10.568 main]: sockets_add: handle -2 (type 0) returning socket index 5 [0.0.0.0:0] read: 0x408d2c
[09/05 16:23:10.568 main]: set_socket_thread: thread c0594700 for sockets 5
[09/05 16:23:10.568 main]: Mutex init 0x643f80
[09/05 16:23:10.568 main]: Mutex init 0x1d9c478
[09/05 16:23:10.568 main]: sockets_add: handle -2 (type 0) returning socket index 6 [0.0.0.0:0] read: 0x408d2c
[09/05 16:23:10.568 main]: Mutex init 0x643520
[09/05 16:23:10.568 main]: starting init_all_hw 0
[09/05 16:23:10.569 main]: Mutex init 0x6428e0
[09/05 16:23:10.569 signal]: Starting select_and_execute on thread ID c0594700, thread_name signal
[09/05 16:23:10.570 main]: find_dvb_adapter: adding 0 0 to the list of devices
[09/05 16:23:10.587 main]: Mutex init 0x1d9d2e8
[09/05 16:23:10.587 main]: trying to open [0] adapter 0 and frontend 0
[09/05 16:23:10.589 main]: opened DVB adapter 0 fe:7 dvr:8
[09/05 16:23:10.591 main]: DVR buffer set to 5775360 bytes
[09/05 16:23:10.591 main]: deleting pids on adapter 0, sid -1, pids=NULL
[09/05 16:23:10.591 main]: clearing type and pat processed for adapter 0
[09/05 16:23:13.907 main]: Detected adapter 0 handle 7 DVB Card Name: Auvitek AU8522 QAM/8VSB Frontend
[09/05 16:23:13.908 main]: Detected delivery system for adapter 0: atsc [11]
[09/05 16:23:13.909 main]: Detected delivery system for adapter 0: dvbcb [2]
[09/05 16:23:13.909 main]: Mutex init 0x1d9c5a8
[09/05 16:23:13.910 main]: sockets_add: handle 8 (type 5) returning socket index 7 [0.0.0.0:0] read: 0x408ce3
[09/05 16:23:13.911 main]: set_socket_thread: thread bfd93700 for sockets 7
[09/05 16:23:13.912 main]: pthread_setschedparam failed with error 22
[09/05 16:23:13.912 main]: No CA device detected on adapter 0
[09/05 16:23:13.913 main]: done opening adapter 0 delivery systems: atsc dvbcb undefined undefined
[09/05 16:23:13.913 main]: done init_hw 1
[09/05 16:23:13.914 main]: Initializing with 1 devices
[09/05 16:23:13.914 main]: Starting select_and_execute on thread ID c17ca8c0, thread_name main
[09/05 16:23:13.916 AD0]: Starting select_and_execute on thread ID bfd93700, thread_name AD0
[09/05 16:23:14.015 main]: ssdp_discovery: bootid: 18 deviceid: 1 http: 192.168.1.250:8080
[09/05 16:23:16.848 main]: Mutex init 0x1d9c808
[09/05 16:23:16.849 main]: sockets_add: handle 10 (type 1) returning socket index 8 [192.168.1.2:33396] read: 0x408ce3
[09/05 16:23:16.849 main]: read HTTP from 10 sid: -1: 
[09/05 16:23:16.849 main]: GET /desc.xml HTTP/1.1
Host: 192.168.1.250:8080
Connection: keep-alive
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36
Accept: */*
DNT: 1
Accept-Encoding: gzip, deflate, sdch
Accept-Language: en-CA,en-GB;q=0.8,en-US;q=0.6,en;q=0.4


[09/05 16:23:16.849 main]: reply -> 10 (192.168.1.2:33396) CL:1206 [sock_id 8]:
[09/05 16:23:16.849 main]: HTTP/1.0 200 OK
Date: Tue, May 9 18:53:16 2017 GMT
CACHE-CONTROL: no-cache
Content-type: text/xml
X-SATIP-RTSP-Port: 554
Server: minisatip/0.7.4
Content-Length: 1206

<?xml version="1.0"?><root xmlns="urn:schemas-upnp-org:device-1-0" configId="0"><specVersion><major>1</major><minor>1</minor></specVersion><device><deviceType>urn:ses-com:device:SatIPServer:1</deviceType><friendlyName>minisatip</friendlyName><manufacturer>cata</manufacturer><manufacturerURL>http://github.com/catalinii/minisatip</manufacturerURL><modelDescription>minisatip for Linux</modelDescription><modelName>minisatip</modelName><modelNumber>1.1</modelNumber><modelURL></modelURL><serialNumber>1</serialNumber><UDN>uuid:11223344-9999-0000-b7ae-a0cec808359f</UDN><iconList><icon><mimetype>image/png</mimetype><width>48</width><height>48</height><depth>24</depth><url>/sm.png</url></icon><icon><mimetype>image/png</mimetype><width>120</width><height>120</height><depth>24</depth><url>/lr.png</url></icon><icon><mimetype>image/jpeg</mimetype><width>48</width><height>48</height><depth>24</depth><url>/sm.jpg</url></icon><icon><mimetype>image/jpeg</mimetype><width>120</width><height>120</height><depth>24</depth><url>/lr.jpg</url></icon></iconList><presentationURL>http://192.168.1.250:8080/</presentationURL>
<satip:X_SATIPCAP xmlns:satip="urn:ses-com:satip">DVBS2-0</satip:X_SATIPCAP></device></root>
[09/05 16:23:16.851 main]: select_and_execute[8]: Close on socket 10 (sid:-1) from 192.168.1.2:33396 - type http errno 0
[09/05 16:23:16.851 main]: sockets_del: 8 -> handle 10, sid -1, overflow 0, allocated 0, used 0
[09/05 16:23:16.851 main]: minisatip.c:1232 get_sid returns NULL for s_id = -1
[09/05 16:23:16.851 main]: Requested stream close -1 timeout -1 type -1
[09/05 16:23:16.851 main]: closing stream -1
[09/05 16:23:16.852 main]: sockets_del: 8 Last open socket is at index 7 current_handle 10
[09/05 16:23:16.852 main]: Delete socket 8 done: sid -1
[09/05 16:23:16.941 main]: Mutex init 0x1d9c808
[09/05 16:23:16.941 main]: sockets_add: handle 10 (type 1) returning socket index 8 [192.168.1.200:37834] read: 0x408ce3
[09/05 16:23:16.941 main]: read HTTP from 10 sid: -1: 
[09/05 16:23:16.942 main]: GET /desc.xml HTTP/1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36
Host: 192.168.1.250:8080
Accept: */*
Accept-Encoding: gzip


[09/05 16:23:16.942 main]: reply -> 10 (192.168.1.200:37834) CL:1206 [sock_id 8]:
[09/05 16:23:16.942 main]: HTTP/1.0 200 OK
Date: Tue, May 9 18:53:16 2017 GMT
CACHE-CONTROL: no-cache
Content-type: text/xml
X-SATIP-RTSP-Port: 554
Server: minisatip/0.7.4
Content-Length: 1206

<?xml version="1.0"?><root xmlns="urn:schemas-upnp-org:device-1-0" configId="0"><specVersion><major>1</major><minor>1</minor></specVersion><device><deviceType>urn:ses-com:device:SatIPServer:1</deviceType><friendlyName>minisatip</friendlyName><manufacturer>cata</manufacturer><manufacturerURL>http://github.com/catalinii/minisatip</manufacturerURL><modelDescription>minisatip for Linux</modelDescription><modelName>minisatip</modelName><modelNumber>1.1</modelNumber><modelURL></modelURL><serialNumber>1</serialNumber><UDN>uuid:11223344-9999-0000-b7ae-a0cec808359f</UDN><iconList><icon><mimetype>image/png</mimetype><width>48</width><height>48</height><depth>24</depth><url>/sm.png</url></icon><icon><mimetype>image/png</mimetype><width>120</width><height>120</height><depth>24</depth><url>/lr.png</url></icon><icon><mimetype>image/jpeg</mimetype><width>48</width><height>48</height><depth>24</depth><url>/sm.jpg</url></icon><icon><mimetype>image/jpeg</mimetype><width>120</width><height>120</height><depth>24</depth><url>/lr.jpg</url></icon></iconList><presentationURL>http://192.168.1.250:8080/</presentationURL>
<satip:X_SATIPCAP xmlns:satip="urn:ses-com:satip">DVBS2-0</satip:X_SATIPCAP></device></root>
[09/05 16:23:16.943 main]: select_and_execute[8]: Close on socket 10 (sid:-1) from 192.168.1.200:37834 - type http errno 0
[09/05 16:23:16.943 main]: sockets_del: 8 -> handle 10, sid -1, overflow 0, allocated 0, used 0
[09/05 16:23:16.943 main]: minisatip.c:1232 get_sid returns NULL for s_id = -1
[09/05 16:23:16.943 main]: Requested stream close -1 timeout -1 type -1
[09/05 16:23:16.943 main]: closing stream -1
[09/05 16:23:16.944 main]: sockets_del: 8 Last open socket is at index 7 current_handle 10
[09/05 16:23:16.944 main]: Delete socket 8 done: sid -1
[09/05 16:23:17.606 signal]: BW 2KB/s, Total BW: 0 MB, ns/read 0, r: 1, w: 2 fw: 0, tt: 0 ms
What am I doing wrong here?
cata
Site Admin
Posts: 768
Joined: Tue May 12, 2015 1:01 am

Re: ATSC Tuner -> tvheadend

Post by cata »

The satip protocol does not have support for atsc.

However I see tvh supports atsct tuners over network.

I will try to add support for this in minisatip in 0.7-ca branch.
cata
Site Admin
Posts: 768
Joined: Tue May 12, 2015 1:01 am

Re: ATSC Tuner -> tvheadend

Post by cata »

You will have the support in the next commit of 0.7-ca.

Please remove old files, download it from git again, ./configure
and then:

make clean;make DVBAPI=0 DVBCSA=0 DVBAES=0 DVBCA=0

Thanks
fognl
Posts: 8
Joined: Tue May 09, 2017 6:40 pm

Re: ATSC Tuner -> tvheadend

Post by fognl »

Thanks for the quick reply and effort! However, after downloading the 0.7-ca branch, I come across an error while compiling:

Code: Select all

fog@adria:~/Downloads/minisatip-0.7-ca$ make DVBAPI=0 DVBCSA=0 DVBAES=0 DVBCA=0
gcc -Wall -Wno-switch -ggdb -fPIC   -DDISABLE_DVBAES -DDISABLE_DVBCSA -DDISABLE_DVBAPI -DDISABLE_DVBCA -DDISABLE_TABLES -DDISABLE_NETCVCLIENT  -c minisatip.c -o minisatip.o
gcc -Wall -Wno-switch -ggdb -fPIC   -DDISABLE_DVBAES -DDISABLE_DVBCSA -DDISABLE_DVBAPI -DDISABLE_DVBCA -DDISABLE_TABLES -DDISABLE_NETCVCLIENT  -c socketworks.c -o socketworks.o
gcc -Wall -Wno-switch -ggdb -fPIC   -DDISABLE_DVBAES -DDISABLE_DVBCSA -DDISABLE_DVBAPI -DDISABLE_DVBCA -DDISABLE_TABLES -DDISABLE_NETCVCLIENT  -c stream.c -o stream.o
In file included from stream.c:46:0:
pmt.h:4:2: warning: #warning "compile with make DVBAPI=0 DVBCSA=0 DVBAES=0  DVBCA=0" [-Wcpp]
 #warning "compile with make DVBAPI=0 DVBCSA=0 DVBAES=0  DVBCA=0"
  ^
stream.c: In function ‘send_rtp’:
stream.c:592:6: warning: unused variable ‘k’ [-Wunused-variable]
  int k;
      ^
stream.c: In function ‘send_rtcp’:
stream.c:630:6: warning: unused variable ‘c_time’ [-Wunused-variable]
  int c_time = (int)(ctime / 1000) & 0xFFFFFFFF;
      ^
stream.c: In function ‘check_new_transponder’:
stream.c:787:9: warning: unused variable ‘j’ [-Wunused-variable]
     int j = 0;
         ^
stream.c: In function ‘check_cc’:
stream.c:812:6: warning: unused variable ‘rtime’ [-Wunused-variable]
  int rtime = ad->rtime;
      ^
stream.c:809:11: warning: unused variable ‘sid’ [-Wunused-variable]
  streams *sid;
           ^
stream.c: In function ‘process_packet’:
stream.c:885:9: warning: unused variable ‘cc’ [-Wunused-variable]
  int j, cc, max_pack;
         ^
stream.c: In function ‘process_dmx’:
stream.c:926:6: warning: unused variable ‘send’ [-Wunused-variable]
  int send = 0;
      ^
stream.c:923:13: warning: unused variable ‘cnt’ [-Wunused-variable]
  static int cnt;
             ^
stream.c:922:9: warning: unused variable ‘j’ [-Wunused-variable]
  int i, j, dp;
         ^
stream.c:921:14: warning: unused variable ‘max’ [-Wunused-variable]
  void *min, *max;
              ^
stream.c:921:8: warning: unused variable ‘min’ [-Wunused-variable]
  void *min, *max;
        ^
stream.c: In function ‘read_dmx’:
stream.c:989:11: warning: unused variable ‘stime’ [-Wunused-variable]
  uint64_t stime;
           ^
stream.c:987:40: warning: unused variable ‘i’ [-Wunused-variable]
  int send = 0, flush_all = 0, ls, lse, i;
                                        ^
stream.c:985:11: warning: unused variable ‘sid’ [-Wunused-variable]
  streams *sid;
           ^
stream.c: In function ‘get_stream_pids’:
stream.c:1299:6: warning: unused variable ‘lp’ [-Wunused-variable]
  int lp, i, j;
      ^
stream.c:1298:6: warning: unused variable ‘pids’ [-Wunused-variable]
  int pids[MAX_PIDS];
      ^
stream.c: In function ‘close_stream_for_socket’:
stream.c:308:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
gcc -Wall -Wno-switch -ggdb -fPIC   -DDISABLE_DVBAES -DDISABLE_DVBCSA -DDISABLE_DVBAPI -DDISABLE_DVBCA -DDISABLE_TABLES -DDISABLE_NETCVCLIENT  -c adapter.c -o adapter.o
In file included from adapter.c:37:0:
pmt.h:4:2: warning: #warning "compile with make DVBAPI=0 DVBCSA=0 DVBAES=0  DVBCA=0" [-Wcpp]
 #warning "compile with make DVBAPI=0 DVBCSA=0 DVBAES=0  DVBCA=0"
  ^
adapter.c: In function ‘close_adapter’:
adapter.c:337:12: warning: unused variable ‘dvr’ [-Wunused-variable]
  int sock, dvr;
            ^
adapter.c: In function ‘adapter_update_threshold’:
adapter.c:584:11: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
   if (sid && sid->type == STREAM_RTSP_TCP || sid->type == STREAM_HTTP)
           ^
adapter.c: In function ‘tune’:
adapter.c:777:3: warning: implicit declaration of function ‘pmt_tune’ [-Wimplicit-function-declaration]
   pmt_tune(ad);
   ^
gcc -Wall -Wno-switch -ggdb -fPIC   -DDISABLE_DVBAES -DDISABLE_DVBCSA -DDISABLE_DVBAPI -DDISABLE_DVBCA -DDISABLE_TABLES -DDISABLE_NETCVCLIENT  -c utils.c -o utils.o
utils.c: In function ‘http_client’:
utils.c:1482:14: warning: unused variable ‘sep1’ [-Wunused-variable]
  char *sep, *sep1;
              ^
utils.c:1514:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
gcc -Wall -Wno-switch -ggdb -fPIC   -DDISABLE_DVBAES -DDISABLE_DVBCSA -DDISABLE_DVBAPI -DDISABLE_DVBCA -DDISABLE_TABLES -DDISABLE_NETCVCLIENT  -c satipc.c -o satipc.o
satipc.c: In function ‘satip_getxml’:
satipc.c:1269:2: warning: implicit declaration of function ‘http_client’ [-Wimplicit-function-declaration]
  http_client("http://10.0.0.3:8080/desc.xml", "", satip_getxml_data, "");
  ^
satipc.c:1249:6: warning: unused variable ‘la’ [-Wunused-variable]
  int la;
      ^
satipc.c:1248:8: warning: unused variable ‘arg’ [-Wunused-variable]
  char *arg[50];
        ^
satipc.c:1247:7: warning: unused variable ‘satip_xml’ [-Wunused-variable]
  char satip_xml[SATIP_STR_LEN];
       ^
satipc.c:1246:7: warning: unused variable ‘satip_xml_servers’ [-Wunused-variable]
  char satip_xml_servers[SATIP_STR_LEN];
       ^
gcc -Wall -Wno-switch -ggdb -fPIC   -DDISABLE_DVBAES -DDISABLE_DVBCSA -DDISABLE_DVBAPI -DDISABLE_DVBCA -DDISABLE_TABLES -DDISABLE_NETCVCLIENT  -c dvb.c -o dvb.o
gcc -Wall -Wno-switch -ggdb -fPIC   -DDISABLE_DVBAES -DDISABLE_DVBCSA -DDISABLE_DVBAPI -DDISABLE_DVBCA -DDISABLE_TABLES -DDISABLE_NETCVCLIENT  -o minisatip minisatip.o socketworks.o stream.o adapter.o utils.o satipc.o dvb.o  -lpthread -lrt   
adapter.o: In function `init_hw':
/home/fog/Downloads/minisatip-0.7-ca/adapter.c:276: undefined reference to `pmt_init_device'
adapter.o: In function `close_adapter':
/home/fog/Downloads/minisatip-0.7-ca/adapter.c:362: undefined reference to `pmt_close_device'
adapter.o: In function `update_pids':
/home/fog/Downloads/minisatip-0.7-ca/adapter.c:671: undefined reference to `pmt_pid_del'
adapter.o: In function `tune':
/home/fog/Downloads/minisatip-0.7-ca/adapter.c:777: undefined reference to `pmt_tune'
adapter.o: In function `mark_pid_add':
/home/fog/Downloads/minisatip-0.7-ca/adapter.c:918: undefined reference to `pmt_pid_add'
/home/fog/Downloads/minisatip-0.7-ca/adapter.c:932: undefined reference to `pmt_pid_add'
collect2: error: ld returned 1 exit status
Makefile:103: recipe for target 'minisatip' failed
make: *** [minisatip] Error 1
fog@adria:~/Downloads/minisatip-0.7-ca$
cata
Site Admin
Posts: 768
Joined: Tue May 12, 2015 1:01 am

Re: ATSC Tuner -> tvheadend

Post by cata »

You need to delete previous version and do configure again
fognl
Posts: 8
Joined: Tue May 09, 2017 6:40 pm

Re: ATSC Tuner -> tvheadend

Post by fognl »

Weird, I deleted the source directory and downloaded the 'zip' under the 0.7-ca branch and got that error.

I just re-deleted it all, and used git instead, and that seems to have compiled and worked.

The one thing though, and forgive me if I'm not understanding how this all works, but now in TVHeadend, i'm only getting an option for "ATSC-C" tuner, and no option for "ATSC-T", which is what I require for over-the-air. I'm not sure if this is an issue on minisatip side or Tvheadend side.

Before in tvheadend (the service is now shutdown as to not interfere):
Image

Currently from the other system (can't include picture due to post limitation of only 1):
TV adapters
- minisatip - 192.168.1.250
- SAT>IP ATSC-C Tuner #1 (192.168.1.250)

Code: Select all

fog@adria:~/Downloads/minisatip$ sudo ./minisatip -f -lll
[10/05 11:57:56.483 main]: minisatip version 0.7.4, compiled with s2api version: 050A
[10/05 11:57:56.483 main]: Built without dvbcsa
[10/05 11:57:56.483 main]: Built without CI
[10/05 11:57:56.483 main]: Built without dvbapi
[10/05 11:57:56.483 main]: Built without AES (OpenSSL)
[10/05 11:57:56.483 main]: Built without tables processing
[10/05 11:57:56.483 main]: Built with satip client
[10/05 11:57:56.484 main]: Built with linux dvb client
[10/05 11:57:56.484 main]: Built with backtrace
[10/05 11:57:56.484 main]: Built without netceiver
[10/05 11:57:56.484 main]: New UDP socket 3 bound to 0.0.0.0:1900
[10/05 11:57:56.484 main]: setting multicast for 239.255.255.250
[10/05 11:57:56.484 main]: New UDP socket 4 bound to 239.255.255.250:1900
[10/05 11:57:56.484 main]: Mutex init 0x636500
[10/05 11:57:56.484 main]: utils.c:1315 allocation_wrapper malloc allocated 312 bytes at 0x20ecc20
[10/05 11:57:56.485 main]: Mutex init 0x20ecc28
[10/05 11:57:56.485 main]: sockets_add: handle 3 (type 0) returning socket index 0 [0.0.0.0:0] read: 0x407e2d
[10/05 11:57:56.485 main]: utils.c:1315 allocation_wrapper malloc allocated 312 bytes at 0x20ecd60
[10/05 11:57:56.485 main]: Mutex init 0x20ecd68
[10/05 11:57:56.485 main]: sockets_add: handle 4 (type 0) returning socket index 1 [0.0.0.0:0] read: 0x407e2d
[10/05 11:57:56.485 main]: utils.c:1315 allocation_wrapper malloc allocated 312 bytes at 0x20ecea0
[10/05 11:57:56.485 main]: Mutex init 0x20ecea8
[10/05 11:57:56.485 main]: sockets_add: handle 5 (type 2) returning socket index 2 [0.0.0.0:0] read: 0x407cda
[10/05 11:57:56.485 main]: utils.c:1315 allocation_wrapper malloc allocated 312 bytes at 0x20ecfe0
[10/05 11:57:56.485 main]: Mutex init 0x20ecfe8
[10/05 11:57:56.485 main]: sockets_add: handle 6 (type 2) returning socket index 3 [0.0.0.0:0] read: 0x407cda
[10/05 11:57:56.485 main]: utils.c:1315 allocation_wrapper malloc allocated 312 bytes at 0x20ed120
[10/05 11:57:56.485 main]: Mutex init 0x20ed128
[10/05 11:57:56.485 main]: sockets_add: handle -2 (type 0) returning socket index 4 [0.0.0.0:0] read: 0x407e2d
[10/05 11:57:56.486 main]: set_socket_thread: thread b9ca0700 for sockets 4
[10/05 11:57:56.486 main]: utils.c:1315 allocation_wrapper malloc allocated 312 bytes at 0x20ed390
[10/05 11:57:56.486 main]: Mutex init 0x20ed398
[10/05 11:57:56.486 main]: sockets_add: handle -2 (type 0) returning socket index 5 [0.0.0.0:0] read: 0x407e2d
[10/05 11:57:56.486 main]: set_socket_thread: thread b9ca0700 for sockets 5
[10/05 11:57:56.486 main]: starting init_all_hw 0
[10/05 11:57:56.486 main]: Mutex init 0x636e80
[10/05 11:57:56.486 signal]: Starting select_and_execute on thread ID b9ca0700, thread_name signal
[10/05 11:57:56.488 main]: find_dvb_adapter: adding 0 0 to the list of devices
[10/05 11:57:56.488 main]: adapter.c:65 allocation_wrapper malloc allocated 3728 bytes at 0x20ee2e0
[10/05 11:57:56.508 main]: Mutex init 0x20ee2e8
[10/05 11:57:56.508 main]: trying to open [0] adapter 0 and frontend 0
[10/05 11:57:56.513 main]: opened DVB adapter 0 fe:7 dvr:8
[10/05 11:57:56.514 main]: DVR buffer set to 5775360 bytes
[10/05 11:57:56.515 main]: adapter.c:235 allocation_wrapper malloc allocated 56410 bytes at 0x20ef180
[10/05 11:57:56.515 main]: deleting pids on adapter 0, sid -1, pids=NULL
[10/05 11:57:59.833 main]: Detected adapter 0 handle 7 DVB Card Name: Auvitek AU8522 QAM/8VSB Frontend
[10/05 11:57:59.834 main]: Detected delivery system for adapter 0: atsc [11]
[10/05 11:57:59.834 main]: Detected delivery system for adapter 0: dvbcb [2]
[10/05 11:57:59.834 main]: utils.c:1315 allocation_wrapper malloc allocated 312 bytes at 0x20ed4d0
[10/05 11:57:59.834 main]: Mutex init 0x20ed4d8
[10/05 11:57:59.834 main]: sockets_add: handle 8 (type 5) returning socket index 6 [0.0.0.0:0] read: 0x407de4
[10/05 11:57:59.834 main]: set_socket_thread: thread b949f700 for sockets 6
[10/05 11:57:59.834 main]: pthread_setschedparam failed with error 22
[10/05 11:57:59.834 main]: done opening adapter 0 delivery systems: atsc dvbcb undefined undefined
[10/05 11:57:59.834 main]: FE 1 mapped to Adapter 2117956368, sys atsc
[10/05 11:57:59.834 main]: FE 2 mapped to Adapter 2117955296, sys dvbcb
[10/05 11:57:59.834 main]: done init_hw 1
[10/05 11:57:59.834 main]: Initializing with 1 devices
[10/05 11:57:59.834 AD0]: Starting select_and_execute on thread ID b949f700, thread_name AD0
[10/05 11:57:59.835 main]: Starting select_and_execute on thread ID ba6978c0, thread_name main
[10/05 11:57:59.835 main]: ssdp_discovery: bootid: 5 deviceid: 1 http: 192.168.1.250:8080
[10/05 11:57:59.835 main]: Discovery packet 1:
NOTIFY * HTTP/1.1
HOST: 239.255.255.250:1900
CACHE-CONTROL: max-age=1800
LOCATION: http://192.168.1.250:8080/desc.xml
NT: upnp:rootdevice
NTS: ssdp:alive 
SERVER: Linux/1.0 UPnP/1.1 minisatip/0.7.4
USN: uuid:11223344-9999-0000-b7ae-a0cec808359f::upnp:rootdevice
BOOTID.UPNP.ORG: 5
CONFIGID.UPNP.ORG: 0
DEVICEID.SES.COM: 1


[10/05 11:57:59.835 main]: Discovery packet 2:
NOTIFY * HTTP/1.1
HOST: 239.255.255.250:1900
CACHE-CONTROL: max-age=1800
LOCATION: http://192.168.1.250:8080/desc.xml
NT: uuid:11223344-9999-0000-b7ae-a0cec808359f
NTS: ssdp:alive 
SERVER: Linux/1.0 UPnP/1.1 minisatip/0.7.4
USN: uuid:11223344-9999-0000-b7ae-a0cec808359f
BOOTID.UPNP.ORG: 5
CONFIGID.UPNP.ORG: 0
DEVICEID.SES.COM: 1


[10/05 11:57:59.836 main]: Discovery packet 3:
NOTIFY * HTTP/1.1
HOST: 239.255.255.250:1900
CACHE-CONTROL: max-age=1800
LOCATION: http://192.168.1.250:8080/desc.xml
NT: urn:ses-com:device:SatIPServer:1
NTS: ssdp:alive 
SERVER: Linux/1.0 UPnP/1.1 minisatip/0.7.4
USN: uuid:11223344-9999-0000-b7ae-a0cec808359f::urn:ses-com:device:SatIPServer:1
BOOTID.UPNP.ORG: 5
CONFIGID.UPNP.ORG: 0
DEVICEID.SES.COM: 1


[10/05 11:57:59.836 main]: Received SSDP packet from 192.168.1.200:38776 -> handle 3
[10/05 11:57:59.836 main]: M-SEARCH * HTTP/1.1
Host: 239.255.255.250:1900
Man: "ssdp:discover"
ST: ssdp:all
MX: 5


[10/05 11:57:59.836 main]: ssdp_reply fd: 3 -> 192.168.1.200:38776, bootid: 5 deviceid: 1 http: 192.168.1.250:8080
[10/05 11:57:59.836 main]: HTTP/1.1 200 OK
CACHE-CONTROL: max-age=1800
DATE: Wed, May 10 14:27:59 2017 GMT
EXT:
LOCATION: http://192.168.1.250:8080/desc.xml
SERVER: Linux/1.0 UPnP/1.1 minisatip/0.7.4
ST: urn:ses-com:device:SatIPServer:1
USN: uuid:11223344-9999-0000-b7ae-a0cec808359f::urn:ses-com:device:SatIPServer:1
BOOTID.UPNP.ORG: 5
CONFIGID.UPNP.ORG: 0
DEVICEID.SES.COM: 1


[10/05 11:57:59.836 main]: Received SSDP packet from 192.168.1.200:38776 -> handle 4
[10/05 11:57:59.836 main]: M-SEARCH * HTTP/1.1
Host: 239.255.255.250:1900
Man: "ssdp:discover"
ST: ssdp:all
MX: 5


[10/05 11:57:59.837 main]: ssdp_reply fd: 3 -> 192.168.1.200:38776, bootid: 5 deviceid: 1 http: 192.168.1.250:8080
[10/05 11:57:59.837 main]: HTTP/1.1 200 OK
CACHE-CONTROL: max-age=1800
DATE: Wed, May 10 14:27:59 2017 GMT
EXT:
LOCATION: http://192.168.1.250:8080/desc.xml
SERVER: Linux/1.0 UPnP/1.1 minisatip/0.7.4
ST: urn:ses-com:device:SatIPServer:1
USN: uuid:11223344-9999-0000-b7ae-a0cec808359f::urn:ses-com:device:SatIPServer:1
BOOTID.UPNP.ORG: 5
CONFIGID.UPNP.ORG: 0
DEVICEID.SES.COM: 1


[10/05 11:57:59.837 main]: Dropping packet from the same UUID as mine (from 192.168.1.250:1900)
Message repeated 5 times
[10/05 11:57:59.839 main]: utils.c:1315 allocation_wrapper malloc allocated 312 bytes at 0x20ed740
[10/05 11:57:59.839 main]: Mutex init 0x20ed748
[10/05 11:57:59.839 main]: sockets_add: handle 10 (type 1) returning socket index 7 [192.168.1.200:43860] read: 0x407de4
[10/05 11:57:59.839 main]: read HTTP from 10 sid: -1: 
[10/05 11:57:59.839 main]: GET /desc.xml HTTP/1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36
Host: 192.168.1.250:8080
Accept: */*
Accept-Encoding: gzip


[10/05 11:57:59.839 main]: reply -> 10 (192.168.1.200:43860) CL:1214 [sock_id 7]:
[10/05 11:57:59.839 main]: HTTP/1.0 200 OK
Date: Wed, May 10 14:27:59 2017 GMT
Cache-Control: no-cache
Content-type: text/xml
X-SATIP-RTSP-Port: 554
Connection: close
Server: minisatip/0.7.4
Content-Length: 1214

<?xml version="1.0"?><root xmlns="urn:schemas-upnp-org:device-1-0" configId="0"><specVersion><major>1</major><minor>1</minor></specVersion><device><deviceType>urn:ses-com:device:SatIPServer:1</deviceType><friendlyName>minisatip</friendlyName><manufacturer>cata</manufacturer><manufacturerURL>http://github.com/catalinii/minisatip</manufacturerURL><modelDescription>minisatip for Linux</modelDescription><modelName>minisatip</modelName><modelNumber>1.1</modelNumber><modelURL></modelURL><serialNumber>1</serialNumber><UDN>uuid:11223344-9999-0000-b7ae-a0cec808359f</UDN><iconList><icon><mimetype>image/png</mimetype><width>48</width><height>48</height><depth>24</depth><url>/sm.png</url></icon><icon><mimetype>image/png</mimetype><width>120</width><height>120</height><depth>24</depth><url>/lr.png</url></icon><icon><mimetype>image/jpeg</mimetype><width>48</width><height>48</height><depth>24</depth><url>/sm.jpg</url></icon><icon><mimetype>image/jpeg</mimetype><width>120</width><height>120</height><depth>24</depth><url>/lr.jpg</url></icon></iconList><presentationURL>http://192.168.1.250:8080/</presentationURL>
<satip:X_SATIPCAP xmlns:satip="urn:ses-com:satip">ATSCT-1,ATSCC-1</satip:X_SATIPCAP></device></root>
[10/05 11:57:59.840 main]: select_and_execute[7]: Close on socket 10 (sid:-1) from 192.168.1.200:43860 - type http errno 0
[10/05 11:57:59.840 main]: minisatip.c:1242 get_sid returns NULL for s_id = -1
[10/05 11:57:59.840 main]: Requested stream close -1 timeout -1 type -1
[10/05 11:57:59.840 main]: closing stream -1
[10/05 11:57:59.840 main]: sockets_del: 7 -> handle 10, sid -1, overflow 0, allocated 0, used 0
[10/05 11:57:59.841 main]: sockets_del: closing socket 10
[10/05 11:57:59.841 main]: sockets_del: 7 Last open socket is at index 7 current_handle 10
[10/05 11:57:59.841 main]: Destroying mutex 0x20ed748
[10/05 11:57:59.841 main]: Delete socket 7 done: sid -1
[10/05 11:58:00.076 main]: Received SSDP packet from 192.168.1.5:47148 -> handle 3
[10/05 11:58:00.076 main]: M-SEARCH * HTTP/1.1
HOST: 239.255.255.250:1900
MAN: "ssdp:discover"
MX: 2
ST: urn:dial-multiscreen-org:service:dial:1


[10/05 11:58:00.076 main]: ssdp_reply fd: 3 -> 192.168.1.5:47148, bootid: 5 deviceid: 1 http: 192.168.1.250:8080
[10/05 11:58:00.076 main]: HTTP/1.1 200 OK
CACHE-CONTROL: max-age=1800
DATE: Wed, May 10 14:28:00 2017 GMT
EXT:
LOCATION: http://192.168.1.250:8080/desc.xml
SERVER: Linux/1.0 UPnP/1.1 minisatip/0.7.4
ST: urn:ses-com:device:SatIPServer:1
USN: uuid:11223344-9999-0000-b7ae-a0cec808359f::urn:ses-com:device:SatIPServer:1
BOOTID.UPNP.ORG: 5
CONFIGID.UPNP.ORG: 0
DEVICEID.SES.COM: 1


[10/05 11:58:04.634 main]: Received SSDP packet from 192.168.1.200:57369 -> handle 3
[10/05 11:58:04.634 main]: M-SEARCH * HTTP/1.1
MX: 1
ST: upnp:rootdevice
MAN: "ssdp:discover"
User-Agent: UPnP/1.0 DLNADOC/1.50 Platinum/1.0.5.13
Host: 239.255.255.250:1900
Connection: close


[10/05 11:58:04.634 main]: ssdp_reply fd: 3 -> 192.168.1.200:57369, bootid: 5 deviceid: 1 http: 192.168.1.250:8080
[10/05 11:58:04.634 main]: HTTP/1.1 200 OK
CACHE-CONTROL: max-age=1800
DATE: Wed, May 10 14:28:04 2017 GMT
EXT:
LOCATION: http://192.168.1.250:8080/desc.xml
SERVER: Linux/1.0 UPnP/1.1 minisatip/0.7.4
ST: urn:ses-com:device:SatIPServer:1
USN: uuid:11223344-9999-0000-b7ae-a0cec808359f::urn:ses-com:device:SatIPServer:1
BOOTID.UPNP.ORG: 5
CONFIGID.UPNP.ORG: 0
DEVICEID.SES.COM: 1


[10/05 11:58:04.635 main]: Received SSDP packet from 192.168.1.200:57369 -> handle 3
[10/05 11:58:04.635 main]: M-SEARCH * HTTP/1.1
MX: 1
ST: upnp:rootdevice
MAN: "ssdp:discover"
User-Agent: UPnP/1.0 DLNADOC/1.50 Platinum/1.0.5.13
Host: 239.255.255.250:1900
Connection: close


[10/05 11:58:04.636 main]: ssdp_reply fd: 3 -> 192.168.1.200:57369, bootid: 5 deviceid: 1 http: 192.168.1.250:8080
[10/05 11:58:04.636 main]: HTTP/1.1 200 OK
CACHE-CONTROL: max-age=1800
DATE: Wed, May 10 14:28:04 2017 GMT
EXT:
LOCATION: http://192.168.1.250:8080/desc.xml
SERVER: Linux/1.0 UPnP/1.1 minisatip/0.7.4
ST: urn:ses-com:device:SatIPServer:1
USN: uuid:11223344-9999-0000-b7ae-a0cec808359f::urn:ses-com:device:SatIPServer:1
BOOTID.UPNP.ORG: 5
CONFIGID.UPNP.ORG: 0
DEVICEID.SES.COM: 1


[10/05 11:58:06.939 main]: Received SSDP packet from 192.168.1.200:38776 -> handle 3
[10/05 11:58:06.939 main]: M-SEARCH * HTTP/1.1
Host: 239.255.255.250:1900
Man: "ssdp:discover"
ST: ssdp:all
MX: 5


[10/05 11:58:06.939 main]: ssdp_reply fd: 3 -> 192.168.1.200:38776, bootid: 5 deviceid: 1 http: 192.168.1.250:8080
[10/05 11:58:06.939 main]: HTTP/1.1 200 OK
CACHE-CONTROL: max-age=1800
DATE: Wed, May 10 14:28:06 2017 GMT
EXT:
LOCATION: http://192.168.1.250:8080/desc.xml
SERVER: Linux/1.0 UPnP/1.1 minisatip/0.7.4
ST: urn:ses-com:device:SatIPServer:1
USN: uuid:11223344-9999-0000-b7ae-a0cec808359f::urn:ses-com:device:SatIPServer:1
BOOTID.UPNP.ORG: 5
CONFIGID.UPNP.ORG: 0
DEVICEID.SES.COM: 1


[10/05 11:58:06.940 main]: Received SSDP packet from 192.168.1.200:38776 -> handle 4
[10/05 11:58:06.940 main]: M-SEARCH * HTTP/1.1
Host: 239.255.255.250:1900
Man: "ssdp:discover"
ST: ssdp:all
MX: 5


[10/05 11:58:06.941 main]: ssdp_reply fd: 3 -> 192.168.1.200:38776, bootid: 5 deviceid: 1 http: 192.168.1.250:8080
[10/05 11:58:06.941 main]: HTTP/1.1 200 OK
CACHE-CONTROL: max-age=1800
DATE: Wed, May 10 14:28:06 2017 GMT
EXT:
LOCATION: http://192.168.1.250:8080/desc.xml
SERVER: Linux/1.0 UPnP/1.1 minisatip/0.7.4
ST: urn:ses-com:device:SatIPServer:1
USN: uuid:11223344-9999-0000-b7ae-a0cec808359f::urn:ses-com:device:SatIPServer:1
BOOTID.UPNP.ORG: 5
CONFIGID.UPNP.ORG: 0
DEVICEID.SES.COM: 1


[10/05 11:58:11.738 main]: Received SSDP packet from 192.168.1.200:53857 -> handle 3
[10/05 11:58:11.738 main]: M-SEARCH * HTTP/1.1
MX: 1
ST: upnp:rootdevice
MAN: "ssdp:discover"
User-Agent: UPnP/1.0 DLNADOC/1.50 Platinum/1.0.5.13
Host: 239.255.255.250:1900
Connection: close


[10/05 11:58:11.738 main]: ssdp_reply fd: 3 -> 192.168.1.200:53857, bootid: 5 deviceid: 1 http: 192.168.1.250:8080
[10/05 11:58:11.739 main]: HTTP/1.1 200 OK
CACHE-CONTROL: max-age=1800
DATE: Wed, May 10 14:28:11 2017 GMT
EXT:
LOCATION: http://192.168.1.250:8080/desc.xml
SERVER: Linux/1.0 UPnP/1.1 minisatip/0.7.4
ST: urn:ses-com:device:SatIPServer:1
USN: uuid:11223344-9999-0000-b7ae-a0cec808359f::urn:ses-com:device:SatIPServer:1
BOOTID.UPNP.ORG: 5
CONFIGID.UPNP.ORG: 0
DEVICEID.SES.COM: 1


[10/05 11:58:11.739 main]: Received SSDP packet from 192.168.1.200:53857 -> handle 4
[10/05 11:58:11.740 main]: M-SEARCH * HTTP/1.1
MX: 1
ST: upnp:rootdevice
MAN: "ssdp:discover"
User-Agent: UPnP/1.0 DLNADOC/1.50 Platinum/1.0.5.13
Host: 239.255.255.250:1900
Connection: close


[10/05 11:58:11.740 main]: ssdp_reply fd: 3 -> 192.168.1.200:53857, bootid: 5 deviceid: 1 http: 192.168.1.250:8080
[10/05 11:58:11.740 main]: HTTP/1.1 200 OK
CACHE-CONTROL: max-age=1800
DATE: Wed, May 10 14:28:11 2017 GMT
EXT:
LOCATION: http://192.168.1.250:8080/desc.xml
SERVER: Linux/1.0 UPnP/1.1 minisatip/0.7.4
ST: urn:ses-com:device:SatIPServer:1
USN: uuid:11223344-9999-0000-b7ae-a0cec808359f::urn:ses-com:device:SatIPServer:1
BOOTID.UPNP.ORG: 5
CONFIGID.UPNP.ORG: 0
DEVICEID.SES.COM: 1


[10/05 11:58:11.741 main]: Received SSDP packet from 192.168.1.200:53857 -> handle 3
[10/05 11:58:11.741 main]: M-SEARCH * HTTP/1.1
MX: 1
ST: upnp:rootdevice
MAN: "ssdp:discover"
User-Agent: UPnP/1.0 DLNADOC/1.50 Platinum/1.0.5.13
Host: 239.255.255.250:1900
Connection: close


[10/05 11:58:11.741 main]: ssdp_reply fd: 3 -> 192.168.1.200:53857, bootid: 5 deviceid: 1 http: 192.168.1.250:8080
[10/05 11:58:11.741 main]: HTTP/1.1 200 OK
CACHE-CONTROL: max-age=1800
DATE: Wed, May 10 14:28:11 2017 GMT
EXT:
LOCATION: http://192.168.1.250:8080/desc.xml
SERVER: Linux/1.0 UPnP/1.1 minisatip/0.7.4
ST: urn:ses-com:device:SatIPServer:1
USN: uuid:11223344-9999-0000-b7ae-a0cec808359f::urn:ses-com:device:SatIPServer:1
BOOTID.UPNP.ORG: 5
CONFIGID.UPNP.ORG: 0
DEVICEID.SES.COM: 1


[10/05 11:58:11.742 main]: Received SSDP packet from 192.168.1.200:53857 -> handle 4
[10/05 11:58:11.742 main]: M-SEARCH * HTTP/1.1
MX: 1
ST: upnp:rootdevice
MAN: "ssdp:discover"
User-Agent: UPnP/1.0 DLNADOC/1.50 Platinum/1.0.5.13
Host: 239.255.255.250:1900
Connection: close


[10/05 11:58:11.743 main]: ssdp_reply fd: 3 -> 192.168.1.200:53857, bootid: 5 deviceid: 1 http: 192.168.1.250:8080
[10/05 11:58:11.743 main]: HTTP/1.1 200 OK
CACHE-CONTROL: max-age=1800
DATE: Wed, May 10 14:28:11 2017 GMT
EXT:
LOCATION: http://192.168.1.250:8080/desc.xml
SERVER: Linux/1.0 UPnP/1.1 minisatip/0.7.4
ST: urn:ses-com:device:SatIPServer:1
USN: uuid:11223344-9999-0000-b7ae-a0cec808359f::urn:ses-com:device:SatIPServer:1
BOOTID.UPNP.ORG: 5
CONFIGID.UPNP.ORG: 0
DEVICEID.SES.COM: 1


[10/05 11:58:16.285 main]: Received SSDP packet from 192.168.1.200:42007 -> handle 3
[10/05 11:58:16.285 main]: M-SEARCH * HTTP/1.1
HOST: 239.255.255.250:1900
MAN: "ssdp:discover"
MX: 2
ST: urn:ses-com:device:SatIPServer:1
USER-AGENT: unix/1.0 UPnP/1.1 TVHeadend/4.2.1-29~g21c97e1


[10/05 11:58:16.285 main]: ssdp_reply fd: 3 -> 192.168.1.200:42007, bootid: 5 deviceid: 1 http: 192.168.1.250:8080
[10/05 11:58:16.285 main]: HTTP/1.1 200 OK
CACHE-CONTROL: max-age=1800
DATE: Wed, May 10 14:28:16 2017 GMT
EXT:
LOCATION: http://192.168.1.250:8080/desc.xml
SERVER: Linux/1.0 UPnP/1.1 minisatip/0.7.4
ST: urn:ses-com:device:SatIPServer:1
USN: uuid:11223344-9999-0000-b7ae-a0cec808359f::urn:ses-com:device:SatIPServer:1
BOOTID.UPNP.ORG: 5
CONFIGID.UPNP.ORG: 0
DEVICEID.SES.COM: 1


[10/05 11:58:16.286 main]: Received SSDP packet from 192.168.1.200:42007 -> handle 4
[10/05 11:58:16.286 main]: M-SEARCH * HTTP/1.1
HOST: 239.255.255.250:1900
MAN: "ssdp:discover"
MX: 2
ST: urn:ses-com:device:SatIPServer:1
USER-AGENT: unix/1.0 UPnP/1.1 TVHeadend/4.2.1-29~g21c97e1


[10/05 11:58:16.286 main]: ssdp_reply fd: 3 -> 192.168.1.200:42007, bootid: 5 deviceid: 1 http: 192.168.1.250:8080
[10/05 11:58:16.286 main]: HTTP/1.1 200 OK
CACHE-CONTROL: max-age=1800
DATE: Wed, May 10 14:28:16 2017 GMT
EXT:
LOCATION: http://192.168.1.250:8080/desc.xml
SERVER: Linux/1.0 UPnP/1.1 minisatip/0.7.4
ST: urn:ses-com:device:SatIPServer:1
USN: uuid:11223344-9999-0000-b7ae-a0cec808359f::urn:ses-com:device:SatIPServer:1
BOOTID.UPNP.ORG: 5
CONFIGID.UPNP.ORG: 0
DEVICEID.SES.COM: 1


[10/05 11:58:16.286 main]: Received SSDP packet from 192.168.1.200:42007 -> handle 3
[10/05 11:58:16.286 main]: M-SEARCH * HTTP/1.1
HOST: 239.255.255.250:1900
MAN: "ssdp:discover"
MX: 2
ST: urn:ses-com:device:SatIPServer:1
USER-AGENT: unix/1.0 UPnP/1.1 TVHeadend/4.2.1-29~g21c97e1


[10/05 11:58:16.286 main]: ssdp_reply fd: 3 -> 192.168.1.200:42007, bootid: 5 deviceid: 1 http: 192.168.1.250:8080
[10/05 11:58:16.286 main]: HTTP/1.1 200 OK
CACHE-CONTROL: max-age=1800
DATE: Wed, May 10 14:28:16 2017 GMT
EXT:
LOCATION: http://192.168.1.250:8080/desc.xml
SERVER: Linux/1.0 UPnP/1.1 minisatip/0.7.4
ST: urn:ses-com:device:SatIPServer:1
USN: uuid:11223344-9999-0000-b7ae-a0cec808359f::urn:ses-com:device:SatIPServer:1
BOOTID.UPNP.ORG: 5
CONFIGID.UPNP.ORG: 0
DEVICEID.SES.COM: 1


[10/05 11:58:16.287 main]: Received SSDP packet from 192.168.1.200:42007 -> handle 4
[10/05 11:58:16.287 main]: M-SEARCH * HTTP/1.1
HOST: 239.255.255.250:1900
MAN: "ssdp:discover"
MX: 2
ST: urn:ses-com:device:SatIPServer:1
USER-AGENT: unix/1.0 UPnP/1.1 TVHeadend/4.2.1-29~g21c97e1


[10/05 11:58:16.287 main]: ssdp_reply fd: 3 -> 192.168.1.200:42007, bootid: 5 deviceid: 1 http: 192.168.1.250:8080
[10/05 11:58:16.287 main]: HTTP/1.1 200 OK
CACHE-CONTROL: max-age=1800
DATE: Wed, May 10 14:28:16 2017 GMT
EXT:
LOCATION: http://192.168.1.250:8080/desc.xml
SERVER: Linux/1.0 UPnP/1.1 minisatip/0.7.4
ST: urn:ses-com:device:SatIPServer:1
USN: uuid:11223344-9999-0000-b7ae-a0cec808359f::urn:ses-com:device:SatIPServer:1
BOOTID.UPNP.ORG: 5
CONFIGID.UPNP.ORG: 0
DEVICEID.SES.COM: 1


[10/05 11:58:16.287 main]: Received SSDP packet from 192.168.1.200:42007 -> handle 3
[10/05 11:58:16.287 main]: M-SEARCH * HTTP/1.1
HOST: 239.255.255.250:1900
MAN: "ssdp:discover"
MX: 2
ST: urn:ses-com:device:SatIPServer:1
USER-AGENT: unix/1.0 UPnP/1.1 TVHeadend/4.2.1-29~g21c97e1


[10/05 11:58:16.288 main]: ssdp_reply fd: 3 -> 192.168.1.200:42007, bootid: 5 deviceid: 1 http: 192.168.1.250:8080
[10/05 11:58:16.288 main]: HTTP/1.1 200 OK
CACHE-CONTROL: max-age=1800
DATE: Wed, May 10 14:28:16 2017 GMT
EXT:
LOCATION: http://192.168.1.250:8080/desc.xml
SERVER: Linux/1.0 UPnP/1.1 minisatip/0.7.4
ST: urn:ses-com:device:SatIPServer:1
USN: uuid:11223344-9999-0000-b7ae-a0cec808359f::urn:ses-com:device:SatIPServer:1
BOOTID.UPNP.ORG: 5
CONFIGID.UPNP.ORG: 0
DEVICEID.SES.COM: 1


[10/05 11:58:16.288 main]: Received SSDP packet from 192.168.1.200:42007 -> handle 4
[10/05 11:58:16.288 main]: M-SEARCH * HTTP/1.1
HOST: 239.255.255.250:1900
MAN: "ssdp:discover"
MX: 2
ST: urn:ses-com:device:SatIPServer:1
USER-AGENT: unix/1.0 UPnP/1.1 TVHeadend/4.2.1-29~g21c97e1


[10/05 11:58:16.289 main]: ssdp_reply fd: 3 -> 192.168.1.200:42007, bootid: 5 deviceid: 1 http: 192.168.1.250:8080
[10/05 11:58:16.289 main]: HTTP/1.1 200 OK
CACHE-CONTROL: max-age=1800
DATE: Wed, May 10 14:28:16 2017 GMT
EXT:
LOCATION: http://192.168.1.250:8080/desc.xml
SERVER: Linux/1.0 UPnP/1.1 minisatip/0.7.4
ST: urn:ses-com:device:SatIPServer:1
USN: uuid:11223344-9999-0000-b7ae-a0cec808359f::urn:ses-com:device:SatIPServer:1
BOOTID.UPNP.ORG: 5
CONFIGID.UPNP.ORG: 0
DEVICEID.SES.COM: 1


[10/05 11:58:16.471 main]: Mutex init 0x20ed748
[10/05 11:58:16.471 main]: sockets_add: handle 10 (type 1) returning socket index 7 [192.168.1.200:43880] read: 0x407de4
[10/05 11:58:16.471 main]: read HTTP from 10 sid: -1: 
[10/05 11:58:16.471 main]: GET /desc.xml HTTP/1.1
Host: 192.168.1.250:8080
User-Agent: TVHeadend/4.2.1-29~g21c97e1
Connection: close


[10/05 11:58:16.471 main]: reply -> 10 (192.168.1.200:43880) CL:1214 [sock_id 7]:
[10/05 11:58:16.471 main]: HTTP/1.0 200 OK
Date: Wed, May 10 14:28:16 2017 GMT
Cache-Control: no-cache
Content-type: text/xml
X-SATIP-RTSP-Port: 554
Connection: close
Server: minisatip/0.7.4
Content-Length: 1214

<?xml version="1.0"?><root xmlns="urn:schemas-upnp-org:device-1-0" configId="0"><specVersion><major>1</major><minor>1</minor></specVersion><device><deviceType>urn:ses-com:device:SatIPServer:1</deviceType><friendlyName>minisatip</friendlyName><manufacturer>cata</manufacturer><manufacturerURL>http://github.com/catalinii/minisatip</manufacturerURL><modelDescription>minisatip for Linux</modelDescription><modelName>minisatip</modelName><modelNumber>1.1</modelNumber><modelURL></modelURL><serialNumber>1</serialNumber><UDN>uuid:11223344-9999-0000-b7ae-a0cec808359f</UDN><iconList><icon><mimetype>image/png</mimetype><width>48</width><height>48</height><depth>24</depth><url>/sm.png</url></icon><icon><mimetype>image/png</mimetype><width>120</width><height>120</height><depth>24</depth><url>/lr.png</url></icon><icon><mimetype>image/jpeg</mimetype><width>48</width><height>48</height><depth>24</depth><url>/sm.jpg</url></icon><icon><mimetype>image/jpeg</mimetype><width>120</width><height>120</height><depth>24</depth><url>/lr.jpg</url></icon></iconList><presentationURL>http://192.168.1.250:8080/</presentationURL>
<satip:X_SATIPCAP xmlns:satip="urn:ses-com:satip">ATSCT-1,ATSCC-1</satip:X_SATIPCAP></device></root>
[10/05 11:58:16.473 main]: select_and_execute[7]: Close on socket 10 (sid:-1) from 192.168.1.200:43880 - type http errno 0
[10/05 11:58:16.473 main]: minisatip.c:1242 get_sid returns NULL for s_id = -1
[10/05 11:58:16.473 main]: Requested stream close -1 timeout -1 type -1
[10/05 11:58:16.473 main]: closing stream -1
[10/05 11:58:16.473 main]: sockets_del: 7 -> handle 10, sid -1, overflow 0, allocated 0, used 0
[10/05 11:58:16.473 main]: sockets_del: closing socket 10
[10/05 11:58:16.473 main]: sockets_del: 7 Last open socket is at index 7 current_handle 10
[10/05 11:58:16.473 main]: Destroying mutex 0x20ed748
[10/05 11:58:16.474 main]: Delete socket 7 done: sid -1
[10/05 11:58:16.938 main]: Received SSDP packet from 192.168.1.200:38776 -> handle 3
[10/05 11:58:16.938 main]: M-SEARCH * HTTP/1.1
Host: 239.255.255.250:1900
Man: "ssdp:discover"
ST: ssdp:all
MX: 5


[10/05 11:58:16.939 main]: ssdp_reply fd: 3 -> 192.168.1.200:38776, bootid: 5 deviceid: 1 http: 192.168.1.250:8080
[10/05 11:58:16.939 main]: HTTP/1.1 200 OK
CACHE-CONTROL: max-age=1800
DATE: Wed, May 10 14:28:16 2017 GMT
EXT:
LOCATION: http://192.168.1.250:8080/desc.xml
SERVER: Linux/1.0 UPnP/1.1 minisatip/0.7.4
ST: urn:ses-com:device:SatIPServer:1
USN: uuid:11223344-9999-0000-b7ae-a0cec808359f::urn:ses-com:device:SatIPServer:1
BOOTID.UPNP.ORG: 5
CONFIGID.UPNP.ORG: 0
DEVICEID.SES.COM: 1


[10/05 11:58:16.939 main]: Received SSDP packet from 192.168.1.200:38776 -> handle 4
[10/05 11:58:16.939 main]: M-SEARCH * HTTP/1.1
Host: 239.255.255.250:1900
Man: "ssdp:discover"
ST: ssdp:all
MX: 5


[10/05 11:58:16.939 main]: ssdp_reply fd: 3 -> 192.168.1.200:38776, bootid: 5 deviceid: 1 http: 192.168.1.250:8080
[10/05 11:58:16.939 main]: HTTP/1.1 200 OK
CACHE-CONTROL: max-age=1800
DATE: Wed, May 10 14:28:16 2017 GMT
EXT:
LOCATION: http://192.168.1.250:8080/desc.xml
SERVER: Linux/1.0 UPnP/1.1 minisatip/0.7.4
ST: urn:ses-com:device:SatIPServer:1
USN: uuid:11223344-9999-0000-b7ae-a0cec808359f::urn:ses-com:device:SatIPServer:1
BOOTID.UPNP.ORG: 5
CONFIGID.UPNP.ORG: 0
DEVICEID.SES.COM: 1


[10/05 11:58:25.973 main]: Received SSDP packet from 192.168.1.200:11316 -> handle 3
[10/05 11:58:25.974 main]: M-SEARCH * HTTP/1.1
MX: 5
ST: upnp:rootdevice
MAN: "ssdp:discover"
User-Agent: UPnP/1.0 DLNADOC/1.50 Platinum/1.0.5.13
Connection: close
Host: 239.255.255.250:1900


[10/05 11:58:25.974 main]: ssdp_reply fd: 3 -> 192.168.1.200:11316, bootid: 5 deviceid: 1 http: 192.168.1.250:8080
[10/05 11:58:25.974 main]: HTTP/1.1 200 OK
CACHE-CONTROL: max-age=1800
DATE: Wed, May 10 14:28:25 2017 GMT
EXT:
LOCATION: http://192.168.1.250:8080/desc.xml
SERVER: Linux/1.0 UPnP/1.1 minisatip/0.7.4
ST: urn:ses-com:device:SatIPServer:1
USN: uuid:11223344-9999-0000-b7ae-a0cec808359f::urn:ses-com:device:SatIPServer:1
BOOTID.UPNP.ORG: 5
CONFIGID.UPNP.ORG: 0
DEVICEID.SES.COM: 1


[10/05 11:58:25.974 main]: Received SSDP packet from 192.168.1.200:11316 -> handle 4
[10/05 11:58:25.974 main]: M-SEARCH * HTTP/1.1
MX: 5
ST: upnp:rootdevice
MAN: "ssdp:discover"
User-Agent: UPnP/1.0 DLNADOC/1.50 Platinum/1.0.5.13
Connection: close
Host: 239.255.255.250:1900


[10/05 11:58:25.974 main]: ssdp_reply fd: 3 -> 192.168.1.200:11316, bootid: 5 deviceid: 1 http: 192.168.1.250:8080
[10/05 11:58:25.975 main]: HTTP/1.1 200 OK
CACHE-CONTROL: max-age=1800
DATE: Wed, May 10 14:28:25 2017 GMT
EXT:
LOCATION: http://192.168.1.250:8080/desc.xml
SERVER: Linux/1.0 UPnP/1.1 minisatip/0.7.4
ST: urn:ses-com:device:SatIPServer:1
USN: uuid:11223344-9999-0000-b7ae-a0cec808359f::urn:ses-com:device:SatIPServer:1
BOOTID.UPNP.ORG: 5
CONFIGID.UPNP.ORG: 0
DEVICEID.SES.COM: 1


[10/05 11:58:25.975 main]: Received SSDP packet from 192.168.1.200:11316 -> handle 3
[10/05 11:58:25.975 main]: M-SEARCH * HTTP/1.1
MX: 5
ST: upnp:rootdevice
MAN: "ssdp:discover"
User-Agent: UPnP/1.0 DLNADOC/1.50 Platinum/1.0.5.13
Connection: close
Host: 239.255.255.250:1900


[10/05 11:58:25.976 main]: ssdp_reply fd: 3 -> 192.168.1.200:11316, bootid: 5 deviceid: 1 http: 192.168.1.250:8080
[10/05 11:58:25.976 main]: HTTP/1.1 200 OK
CACHE-CONTROL: max-age=1800
DATE: Wed, May 10 14:28:25 2017 GMT
EXT:
LOCATION: http://192.168.1.250:8080/desc.xml
SERVER: Linux/1.0 UPnP/1.1 minisatip/0.7.4
ST: urn:ses-com:device:SatIPServer:1
USN: uuid:11223344-9999-0000-b7ae-a0cec808359f::urn:ses-com:device:SatIPServer:1
BOOTID.UPNP.ORG: 5
CONFIGID.UPNP.ORG: 0
DEVICEID.SES.COM: 1


[10/05 11:58:25.976 main]: Received SSDP packet from 192.168.1.200:11316 -> handle 4
[10/05 11:58:25.976 main]: M-SEARCH * HTTP/1.1
MX: 5
ST: upnp:rootdevice
MAN: "ssdp:discover"
User-Agent: UPnP/1.0 DLNADOC/1.50 Platinum/1.0.5.13
Connection: close
Host: 239.255.255.250:1900


[10/05 11:58:25.976 main]: ssdp_reply fd: 3 -> 192.168.1.200:11316, bootid: 5 deviceid: 1 http: 192.168.1.250:8080
[10/05 11:58:25.976 main]: HTTP/1.1 200 OK
CACHE-CONTROL: max-age=1800
DATE: Wed, May 10 14:28:25 2017 GMT
EXT:
LOCATION: http://192.168.1.250:8080/desc.xml
SERVER: Linux/1.0 UPnP/1.1 minisatip/0.7.4
ST: urn:ses-com:device:SatIPServer:1
USN: uuid:11223344-9999-0000-b7ae-a0cec808359f::urn:ses-com:device:SatIPServer:1
BOOTID.UPNP.ORG: 5
CONFIGID.UPNP.ORG: 0
DEVICEID.SES.COM: 1


[10/05 11:58:26.938 main]: Received SSDP packet from 192.168.1.200:38776 -> handle 3
[10/05 11:58:26.938 main]: M-SEARCH * HTTP/1.1
Host: 239.255.255.250:1900
Man: "ssdp:discover"
ST: ssdp:all
MX: 5


[10/05 11:58:26.939 main]: ssdp_reply fd: 3 -> 192.168.1.200:38776, bootid: 5 deviceid: 1 http: 192.168.1.250:8080
[10/05 11:58:26.939 main]: HTTP/1.1 200 OK
CACHE-CONTROL: max-age=1800
DATE: Wed, May 10 14:28:26 2017 GMT
EXT:
LOCATION: http://192.168.1.250:8080/desc.xml
SERVER: Linux/1.0 UPnP/1.1 minisatip/0.7.4
ST: urn:ses-com:device:SatIPServer:1
USN: uuid:11223344-9999-0000-b7ae-a0cec808359f::urn:ses-com:device:SatIPServer:1
BOOTID.UPNP.ORG: 5
CONFIGID.UPNP.ORG: 0
DEVICEID.SES.COM: 1


[10/05 11:58:26.939 main]: Received SSDP packet from 192.168.1.200:38776 -> handle 4
[10/05 11:58:26.939 main]: M-SEARCH * HTTP/1.1
Host: 239.255.255.250:1900
Man: "ssdp:discover"
ST: ssdp:all
MX: 5


[10/05 11:58:26.939 main]: ssdp_reply fd: 3 -> 192.168.1.200:38776, bootid: 5 deviceid: 1 http: 192.168.1.250:8080
[10/05 11:58:26.939 main]: HTTP/1.1 200 OK
CACHE-CONTROL: max-age=1800
DATE: Wed, May 10 14:28:26 2017 GMT
EXT:
LOCATION: http://192.168.1.250:8080/desc.xml
SERVER: Linux/1.0 UPnP/1.1 minisatip/0.7.4
ST: urn:ses-com:device:SatIPServer:1
USN: uuid:11223344-9999-0000-b7ae-a0cec808359f::urn:ses-com:device:SatIPServer:1
BOOTID.UPNP.ORG: 5
CONFIGID.UPNP.ORG: 0
DEVICEID.SES.COM: 1


[10/05 11:58:36.938 main]: Received SSDP packet from 192.168.1.200:38776 -> handle 3
[10/05 11:58:36.938 main]: M-SEARCH * HTTP/1.1
Host: 239.255.255.250:1900
Man: "ssdp:discover"
ST: ssdp:all
MX: 5


[10/05 11:58:36.939 main]: ssdp_reply fd: 3 -> 192.168.1.200:38776, bootid: 5 deviceid: 1 http: 192.168.1.250:8080
[10/05 11:58:36.939 main]: HTTP/1.1 200 OK
CACHE-CONTROL: max-age=1800
DATE: Wed, May 10 14:28:36 2017 GMT
EXT:
LOCATION: http://192.168.1.250:8080/desc.xml
SERVER: Linux/1.0 UPnP/1.1 minisatip/0.7.4
ST: urn:ses-com:device:SatIPServer:1
USN: uuid:11223344-9999-0000-b7ae-a0cec808359f::urn:ses-com:device:SatIPServer:1
BOOTID.UPNP.ORG: 5
CONFIGID.UPNP.ORG: 0
DEVICEID.SES.COM: 1


[10/05 11:58:36.939 main]: Received SSDP packet from 192.168.1.200:38776 -> handle 4
[10/05 11:58:36.939 main]: M-SEARCH * HTTP/1.1
Host: 239.255.255.250:1900
Man: "ssdp:discover"
ST: ssdp:all
MX: 5


[10/05 11:58:36.939 main]: ssdp_reply fd: 3 -> 192.168.1.200:38776, bootid: 5 deviceid: 1 http: 192.168.1.250:8080
[10/05 11:58:36.939 main]: HTTP/1.1 200 OK
CACHE-CONTROL: max-age=1800
DATE: Wed, May 10 14:28:36 2017 GMT
EXT:
LOCATION: http://192.168.1.250:8080/desc.xml
SERVER: Linux/1.0 UPnP/1.1 minisatip/0.7.4
ST: urn:ses-com:device:SatIPServer:1
USN: uuid:11223344-9999-0000-b7ae-a0cec808359f::urn:ses-com:device:SatIPServer:1
BOOTID.UPNP.ORG: 5
CONFIGID.UPNP.ORG: 0
DEVICEID.SES.COM: 1

cata
Site Admin
Posts: 768
Joined: Tue May 12, 2015 1:01 am

Re: ATSC Tuner -> tvheadend

Post by cata »

Hi,

I have created a pull request to detect your adapter but probably it will not work as tvh might not have support for this.

If it does not work and willing to test, please feel free to open an issue on tvh side and I can help if there is an issue on minisatip side.

Thank you
fognl
Posts: 8
Joined: Tue May 09, 2017 6:40 pm

Re: ATSC Tuner -> tvheadend

Post by fognl »

Thank you for your efforts cata, at least it's being partially detected now. I'll file an issue on the TVH side and reference this forum post.

Cheers!

Edit: When you say you made a pull request, does that mean you made a change to the source tree?

Also, just checked the tvh logfile, and the only error I see that could be related is:
2017-05-11 13:20:24.155 [ ERROR]:satip: 192.168.1.250: bad tuner count [ATSCT-1]
To anyone arriving here from a Google search, I have raised the issue with tvheadned here: http://tvheadend.org/issues/4367
fognl
Posts: 8
Joined: Tue May 09, 2017 6:40 pm

Re: ATSC Tuner -> tvheadend

Post by fognl »

As it turns out, I wasn't running the latest build of tvheadend. After upgrading to 4.3.9, the second adapter now shows up, great.

However, I'm not able to locate a signal while scanning. I've enabled the adapter and linked it to my network that I created using my pre-defined mux for the area (which works fine when directly connecting the tuner to tvheadend), but it doesn't get a signal. Not sure if there's a proper way to troubleshoot this. Here is minisatip log with -ll after hitting the force scan in tvh:

Code: Select all

fog@adria:~/Downloads/minisatip$ sudo ./minisatip -f -ll
[11/05 14:55:20.937 main]: minisatip version 0.7.4, compiled with s2api version: 050A
[11/05 14:55:20.937 main]: Built without dvbcsa
[11/05 14:55:20.937 main]: Built without CI
[11/05 14:55:20.937 main]: Built without dvbapi
[11/05 14:55:20.937 main]: Built without AES (OpenSSL)
[11/05 14:55:20.938 main]: Built without tables processing
[11/05 14:55:20.938 main]: Built with satip client
[11/05 14:55:20.938 main]: Built with linux dvb client
[11/05 14:55:20.938 main]: Built with backtrace
[11/05 14:55:20.938 main]: Built without netceiver
[11/05 14:55:20.939 main]: New UDP socket 3 bound to 0.0.0.0:1900
[11/05 14:55:20.939 main]: setting multicast for 239.255.255.250
[11/05 14:55:20.939 main]: New UDP socket 4 bound to 239.255.255.250:1900
[11/05 14:55:20.939 main]: Mutex init 0x636500
[11/05 14:55:20.940 main]: Mutex init 0xedcc28
[11/05 14:55:20.940 main]: sockets_add: handle 3 (type 0) returning socket index 0 [0.0.0.0:0] read: 0x407e2d
[11/05 14:55:20.941 main]: Mutex init 0xedcd68
[11/05 14:55:20.941 main]: sockets_add: handle 4 (type 0) returning socket index 1 [0.0.0.0:0] read: 0x407e2d
[11/05 14:55:20.941 main]: Mutex init 0xedcea8
[11/05 14:55:20.941 main]: sockets_add: handle 5 (type 2) returning socket index 2 [0.0.0.0:0] read: 0x407cda
[11/05 14:55:20.941 main]: Mutex init 0xedcfe8
[11/05 14:55:20.941 main]: sockets_add: handle 6 (type 2) returning socket index 3 [0.0.0.0:0] read: 0x407cda
[11/05 14:55:20.941 main]: Mutex init 0xedd128
[11/05 14:55:20.941 main]: sockets_add: handle -2 (type 0) returning socket index 4 [0.0.0.0:0] read: 0x407e2d
[11/05 14:55:20.942 main]: set_socket_thread: thread 7cabd700 for sockets 4
[11/05 14:55:20.942 main]: Mutex init 0xedd398
[11/05 14:55:20.942 main]: sockets_add: handle -2 (type 0) returning socket index 5 [0.0.0.0:0] read: 0x407e2d
[11/05 14:55:20.942 main]: set_socket_thread: thread 7cabd700 for sockets 5
[11/05 14:55:20.942 main]: starting init_all_hw 0
[11/05 14:55:20.942 main]: Mutex init 0x636e80
[11/05 14:55:20.942 signal]: Starting select_and_execute on thread ID 7cabd700, thread_name signal
[11/05 14:55:20.944 main]: find_dvb_adapter: adding 0 0 to the list of devices
[11/05 14:55:20.962 main]: Mutex init 0xede2e8
[11/05 14:55:20.962 main]: trying to open [0] adapter 0 and frontend 0
[11/05 14:55:20.962 main]: opened DVB adapter 0 fe:7 dvr:8
[11/05 14:55:20.963 main]: DVR buffer set to 5775360 bytes
[11/05 14:55:20.963 main]: deleting pids on adapter 0, sid -1, pids=NULL
[11/05 14:55:20.979 main]: Detected adapter 0 handle 7 DVB Card Name: Auvitek AU8522 QAM/8VSB Frontend
[11/05 14:55:20.980 main]: Detected delivery system for adapter 0: atsc [11]
[11/05 14:55:20.980 main]: Detected delivery system for adapter 0: dvbcb [2]
[11/05 14:55:20.980 main]: Mutex init 0xedd4d8
[11/05 14:55:20.980 main]: sockets_add: handle 8 (type 5) returning socket index 6 [0.0.0.0:0] read: 0x407de4
[11/05 14:55:20.982 main]: set_socket_thread: thread 77fff700 for sockets 6
[11/05 14:55:20.982 main]: pthread_setschedparam failed with error 22
[11/05 14:55:20.982 main]: done opening adapter 0 delivery systems: atsc dvbcb undefined undefined
[11/05 14:55:20.983 main]: FE 1 mapped to Adapter -638970240, sys atsc
[11/05 14:55:20.983 main]: FE 2 mapped to Adapter -638971312, sys dvbcb
[11/05 14:55:20.984 main]: done init_hw 1
[11/05 14:55:20.985 main]: Initializing with 1 devices
[11/05 14:55:20.985 main]: Starting select_and_execute on thread ID 7d4b48c0, thread_name main
[11/05 14:55:20.986 main]: ssdp_discovery: bootid: 6 deviceid: 1 http: 192.168.1.250:8080
[11/05 14:55:20.986 AD0]: Starting select_and_execute on thread ID 77fff700, thread_name AD0
[11/05 14:55:25.615 main]: Mutex init 0xedd748
[11/05 14:55:25.615 main]: sockets_add: handle 10 (type 1) returning socket index 7 [192.168.1.200:51566] read: 0x407de4
[11/05 14:55:25.615 main]: minisatip.c:828 get_sid returns NULL for s_id = -1
[11/05 14:55:25.616 main]: read RTSP (from handle 10 sock_id 7, len: 0, sid -1):
[11/05 14:55:25.616 main]: SETUP rtsp://192.168.1.250/?fe=1&freq=515&mtype=8vsb RTSP/1.0
Transport: RTP/AVP;unicast;client_port=56030-56031
CSeq: 1


[11/05 14:55:25.616 main]: detect_dvb_parameters (S)-> fe=1&freq=515&mtype=8vsb
[11/05 14:55:25.616 main]: detect_dvb_parameters (E) -> src=0, fe=1, freq=515000, fec=9, sr=0, pol=0, ro=3, msys=0, mtype=7, plts=2, bw=8000000, inv=2, pids=NULL - apids=NULL - dpids=NULL x_pmt=NULL
[11/05 14:55:25.616 main]: Setup stream -1 parameters, sock_id 7, handle 10
[11/05 14:55:25.616 main]: stream.c:184 get_sid returns NULL for s_id = -1
[11/05 14:55:25.616 main]: Mutex init 0x636c60
[11/05 14:55:25.616 main]: Mutex init 0xeecdf8
[11/05 14:55:25.617 main]: set_sock_lock: sock_id 7 locks also mutex 0xeecdf8
[11/05 14:55:25.617 main]: Mutex init 0xeed778
[11/05 14:55:25.617 main]: sockets_add: handle -2 (type 0) returning socket index 8 [0.0.0.0:0] read: 0x407e2d
[11/05 14:55:25.617 main]: set_sock_lock: sock_id 8 locks also mutex 0xeecdf8
[11/05 14:55:25.617 main]: Setup stream done: sid: 0 for sock 7 handle 10
[11/05 14:55:25.617 main]: copy_dvb_param start -> src=0, fe=0, freq=0, fec=9, sr=0, pol=0, ro=3, msys=0, mtype=-1, plts=2, bw=8000000, inv=2, pids=NULL, apids=NULL, dpids=NULL x_pmt=NULL
[11/05 14:55:25.617 main]: copy_dvb_parameters -> src=1, fe=1, freq=515000, fec=9 sr=0, pol=0, ro=3, msys=0, mtype=7, plts=2, bw=8000000, inv=2, pids=NULL, apids=NULL, dpids=NULL x_pmt=NULL
[11/05 14:55:25.618 main]: decode_transport ->type 2, ttl 0 new socket to: 192.168.1.200:56030
[11/05 14:55:25.618 main]: New UDP socket 11 bound to 0.0.0.0:5500
[11/05 14:55:25.618 main]: New UDP socket 11 connected to 192.168.1.200:56030
[11/05 14:55:25.618 main]: Mutex init 0xeed8b8
[11/05 14:55:25.618 main]: sockets_add: handle 11 (type 0) returning socket index 9 [0.0.0.0:0] read: 0x407e2d
[11/05 14:55:25.618 main]: output socket buffer size for socket 11 is 1048576 bytes
[11/05 14:55:25.619 main]: New UDP socket 12 bound to 0.0.0.0:5501
[11/05 14:55:25.619 main]: New UDP socket 12 connected to 192.168.1.200:56031
[11/05 14:55:25.619 main]: Mutex init 0xeed9f8
[11/05 14:55:25.619 main]: sockets_add: handle 12 (type 6) returning socket index 10 [0.0.0.0:0] read: 0x407e2d
[11/05 14:55:25.619 main]: reply -> 10 (192.168.1.200:51566) CL:0 [sock_id 7]:
[11/05 14:55:25.620 main]: RTSP/1.0 200 OK
Date: Thu, May 11 17:25:25 2017 GMT
Cseq: 1
Transport: RTP/AVP;unicast;destination=192.168.1.200;source=192.168.1.250;client_port=56030-56031;server_port=5500-5501
Session: 1804289383;timeout=30
com.ses.streamID: 1
Server: minisatip/0.7.4


[11/05 14:55:25.621 main]: read RTSP (from handle 10 sock_id 7, len: 0, sid 0):
[11/05 14:55:25.622 main]: PLAY rtsp://192.168.1.250/stream=1?addpids=18,8187 RTSP/1.0
Session: 1804289383
CSeq: 2


[11/05 14:55:25.622 main]: detect_dvb_parameters (S)-> addpids=18,8187
[11/05 14:55:25.622 main]: detect_dvb_parameters (E) -> src=-1, fe=-1, freq=-1, fec=-1, sr=-1, pol=-1, ro=-1, msys=-1, mtype=-1, plts=-1, bw=-1, inv=-1, pids=NULL - apids=18,8187 - dpids=NULL x_pmt=NULL
[11/05 14:55:25.622 main]: Setup stream 0 parameters, sock_id 7, handle 10
[11/05 14:55:25.623 main]: copy_dvb_param start -> src=1, fe=1, freq=515000, fec=9, sr=0, pol=0, ro=3, msys=0, mtype=7, plts=2, bw=8000000, inv=2, pids=NULL, apids=NULL, dpids=NULL x_pmt=NULL
[11/05 14:55:25.623 main]: copy_dvb_parameters -> src=1, fe=1, freq=515000, fec=9 sr=0, pol=0, ro=3, msys=0, mtype=7, plts=2, bw=8000000, inv=2, pids=NULL, apids=18,8187, dpids=NULL x_pmt=NULL
[11/05 14:55:25.623 main]: Play for stream 0, type 2, rsock 11, adapter -1, sock_id 7, rsock_id 9, handle 10
[11/05 14:55:25.623 main]: stream.c:255: get_adapter returns NULL for adapter_id -1
[11/05 14:55:25.624 main]: adapter.c:989: get_adapter returns NULL for adapter_id -1
[11/05 14:55:25.624 main]: adapter.c:1868: get_adapter returns NULL for adapter_id -1
[11/05 14:55:25.624 main]: stream.c:260: get_adapter returns NULL for adapter_id -1
[11/05 14:55:25.624 main]: get free adapter 1 - a[0] => e:1 m:-1 sid_cnt:0 f:0 pol=0 sys: atsc dvbcb
[11/05 14:55:25.624 main]: delsys_match: requesting delsys is 0 for adapter handle 7
Message repeated 1 times
[11/05 14:55:25.624 main]: delsys_match: adapter is NULL, delsys 0
Message repeated 30 times
[11/05 14:55:25.626 main]: no adapter found for f:515000 pol:0 msys:0
[11/05 14:55:25.626 main]: Dumping adapters:
[11/05 14:55:25.626 main]: 0|f: 0 sid_cnt:0 master_sid:-1 del_sys: atsc dvbcb undefined
[11/05 14:55:25.627 main]: Dumping streams:
[11/05 14:55:25.627 main]: 0|  a:-1 rsock:11 type:2 play:0 remote:192.168.1.200:56030
[11/05 14:55:25.627 main]: Got adapter -1 on socket 7
[11/05 14:55:25.627 main]: reply -> 10 (192.168.1.200:51566) CL:0 [sock_id 7]:
[11/05 14:55:25.627 main]: RTSP/1.0 404 Not Found
Date: Thu, May 11 17:25:25 2017 GMT
Session: 1804289383
Cseq: 2
Public: OPTIONS, DESCRIBE, SETUP, PLAY, TEARDOWN
Server: minisatip/0.7.4


[11/05 14:55:25.718 main]: read RTSP (from handle 10 sock_id 7, len: 0, sid 0):
[11/05 14:55:25.719 main]: TEARDOWN rtsp://192.168.1.250/stream=1 RTSP/1.0
Session: 1804289383
CSeq: 3


[11/05 14:55:25.719 main]: closing stream 0
[11/05 14:55:25.719 main]: stream.c:304 get_sid returns NULL for s_id = 0
[11/05 14:55:25.719 main]: close_stream_for_socket: start close_stream_for_socket for id 0 (nil)
[11/05 14:55:25.720 main]: sockets_del: 9 -> handle 11, sid 0, overflow 0, allocated 0, used 0
[11/05 14:55:25.720 main]: sockets_del: 9 Last open socket is at index 10 current_handle 11
[11/05 14:55:25.720 main]: sockets_del: 10 -> handle 12, sid 0, overflow 0, allocated 0, used 0
[11/05 14:55:25.721 main]: sockets_del: 10 Last open socket is at index 10 current_handle 12
[11/05 14:55:25.721 main]: sockets_del: 8 -> handle -2, sid 0, overflow 0, allocated 0, used 0
[11/05 14:55:25.721 main]: sockets_del: 8 Last open socket is at index 8 current_handle -2
[11/05 14:55:25.721 main]: closed stream 0
[11/05 14:55:25.721 main]: minisatip.c:1616 get_sid returns NULL for s_id = -1
[11/05 14:55:25.722 main]: reply -> 10 (192.168.1.200:51566) CL:0 [sock_id 7]:
[11/05 14:55:25.722 main]: RTSP/1.0 200 OK
Date: Thu, May 11 17:25:25 2017 GMT
Cseq: 3
Session: 1804289383
Server: minisatip/0.7.4


[11/05 14:55:25.722 main]: socketworks.c:437 Unlock disabled mutex 0xeecdf8
[11/05 14:55:25.723 main]: sockets_unlock: Changing socket 7 lock 0xeecdf8 to NULL error -1 Unknown error -1
[11/05 14:55:25.723 main]: mutex_leak: clean_mutexes unlocking mutex 0xeecdf8 from stream.c:319
[11/05 14:55:25.723 main]: utils.c:1262 Unlock disabled mutex 0xeecdf8
[11/05 14:55:25.723 main]: select_and_execute[7]: Close on socket 10 (sid:-1) from 192.168.1.200:51566 - type rtsp errno 0
[11/05 14:55:25.724 main]: minisatip.c:1242 get_sid returns NULL for s_id = -1
[11/05 14:55:25.724 main]: Requested stream close -1 timeout -1 type -1
[11/05 14:55:25.724 main]: closing stream -1
[11/05 14:55:25.724 main]: sockets_del: 7 -> handle 10, sid -1, overflow 0, allocated 0, used 0
[11/05 14:55:25.724 main]: sockets_del: 7 Last open socket is at index 7 current_handle 10
[11/05 14:55:25.725 main]: Delete socket 7 done: sid -1
cata
Site Admin
Posts: 768
Joined: Tue May 12, 2015 1:01 am

Re: ATSC Tuner -> tvheadend

Post by cata »

The issues is that tbheadend foes not send the system to minisatip, which is required to tune.

The system is not also specified by the standard but minisatip should agree on a common name: eg atsct or atscs.

When that is done it will work.

Minisatip currently supports dvbcb and atsc, but this could (is ) confusing
Post Reply