{"action":"created","issue":{"url":"https://api.github.com/repos/Barracuda09/SATPI/issues/28","labels_url":"https://api.github.com/repos/Barracuda09/SATPI/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/Barracuda09/SATPI/issues/28/comments","events_url":"https://api.github.com/repos/Barracuda09/SATPI/issues/28/events","html_url":"https://github.com/Barracuda09/SATPI/issues/28","id":60077274,"number":28,"title":"Add support for DVB API 5.4","user":{"login":"lars18th","id":9989964,"avatar_url":"https://avatars.githubusercontent.com/u/9989964?v=3","gravatar_id":"","url":"https://api.github.com/users/lars18th","html_url":"https://github.com/lars18th","followers_url":"https://api.github.com/users/lars18th/followers","following_url":"https://api.github.com/users/lars18th/following{/other_user}","gists_url":"https://api.github.com/users/lars18th/gists{/gist_id}","starred_url":"https://api.github.com/users/lars18th/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lars18th/subscriptions","organizations_url":"https://api.github.com/users/lars18th/orgs","repos_url":"https://api.github.com/users/lars18th/repos","events_url":"https://api.github.com/users/lars18th/events{/privacy}","received_events_url":"https://api.github.com/users/lars18th/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":31,"created_at":"2015-03-06T09:17:15Z","updated_at":"2015-03-11T18:03:28Z","closed_at":null,"body":"Hi,\r\n\r\nIn order to add support for DVB API 5.4 (several recent Linux drivers only support up to 5.4) you only need to manually check tuner type if the ioctl for FE_GET_INFO command fails. This is the only current requirement for API 5.5.\r\n\r\nSo, if you like some inspiration you can review my patch for minisatip (similar project) here: http://github.com/catalinii/minisatip/issues/98#issuecomment-76725502\r\n\r\nI'm sure you can adapt to your code in some minutes! :)\r\nRegards!"},"comment":{"url":"https://api.github.com/repos/Barracuda09/SATPI/issues/comments/78325973","html_url":"https://github.com/Barracuda09/SATPI/issues/28#issuecomment-78325973","issue_url":"https://api.github.com/repos/Barracuda09/SATPI/issues/28","id":78325973,"user":{"login":"lars18th","id":9989964,"avatar_url":"https://avatars.githubusercontent.com/u/9989964?v=3","gravatar_id":"","url":"https://api.github.com/users/lars18th","html_url":"https://github.com/lars18th","followers_url":"https://api.github.com/users/lars18th/followers","following_url":"https://api.github.com/users/lars18th/following{/other_user}","gists_url":"https://api.github.com/users/lars18th/gists{/gist_id}","starred_url":"https://api.github.com/users/lars18th/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lars18th/subscriptions","organizations_url":"https://api.github.com/users/lars18th/orgs","repos_url":"https://api.github.com/users/lars18th/repos","events_url":"https://api.github.com/users/lars18th/events{/privacy}","received_events_url":"https://api.github.com/users/lars18th/received_events","type":"User","site_admin":false},"created_at":"2015-03-11T18:03:28Z","updated_at":"2015-03-11T18:03:28Z","body":"Hi Marc,\r\n\r\nI really appreciate your efforts! However, no go with last commit using DVB-T. Here the FULL log:\r\n\r\n[        Satpi.cpp:243] --- starting SatPI version: -unknown ---\r\n[  InterfaceAttr.h:094] eth0: 192.168.1.10 [00:00:00:00:00:00]\r\n[      Streams.cpp:116] Not the preferred DVB API version, for correct function it should be 5.5 or higher\r\n[      Streams.cpp:118] Current DVB_API_VERSION: 5.4\r\n[      Streams.cpp:120] Detecting frontends in: /dev/dvb\r\n[      Streams.cpp:130] Frontends found: 2\r\n[     Frontend.cpp:145] Frontend Name: Afatech AF9013 DVB-T\r\n[     Frontend.cpp:161] Unable to enumerate the delivery systems, retrying via old API Call\r\n[     Frontend.cpp:221] Frontend Type: Terrestrial (DVB-T)\r\n[     Frontend.cpp:252] Frontend Freq: 174000000 Hz to 860000000 Hz\r\n[     Frontend.cpp:253] Frontend srat: 0 symbols/s to 0 symbols/s\r\n[     Frontend.cpp:145] Frontend Name: Afatech AF9013 DVB-T\r\n[     Frontend.cpp:161] Unable to enumerate the delivery systems, retrying via old API Call\r\n[     Frontend.cpp:221] Frontend Type: Terrestrial (DVB-T)\r\n[     Frontend.cpp:252] Frontend Freq: 174000000 Hz to 860000000 Hz\r\n[     Frontend.cpp:253] Frontend srat: 0 symbols/s to 0 symbols/s\r\n[   SsdpServer.cpp:107] Setting up SSDP server with BOOTID: 3\r\n[   HttpServer.cpp:074] Setting up HTTP server\r\n[   RtspServer.cpp:059] Setting up RTSP server\r\n[    TcpSocket.cpp:148] RTSP Connection from 192.168.1.20 Port 63031 (fd: 8)\r\n[   RtspServer.cpp:071] Data from client 192.168.1.20: OPTIONS rtsp://192.168.1.10:554/ RTSP/1.0\r\nCSeq: 1\r\n--- LINE END ---\r\n[      Streams.cpp:215] Found message outside session\r\n[ StreamClient.cpp:043] Connection can close: 1\r\n[   RtspServer.cpp:196] RTSP/1.0 200 OK\r\nCSeq: 1\r\nPublic: OPTIONS, DESCRIBE, SETUP, PLAY, TEARDOWN\r\n--- LINE END ---\r\n[   RtspServer.cpp:071] Data from client 192.168.1.20: SETUP rtsp://192.168.1.10:554/?freq=634&msys=dvbt&bw=8&pids=0 RTSP/1.0\r\nCSeq: 2\r\nTransport: RTP/AVP;unicast;client_port=52042-52043\r\n--- LINE END ---\r\n[      Streams.cpp:233] Found StreamID x - SessionID x - Creating new SessionID: 1702957685\r\n[       Stream.cpp:064] Stream: 0, StreamClient[0] with SessionID 1702957685 for dvbt\r\n[       Stream.cpp:197] Stream: 0, Parsing transport parameters...\r\n[ StreamClient.cpp:043] Connection can close: 0\r\n[     Frontend.cpp:423] Stream: 0, Opened FE fd: 9.\r\n[     Frontend.cpp:384] Stream: 0, Start tuning process...\r\n[     Frontend.cpp:434] Stream: 0, Waiting on lock.\r\n[     Frontend.cpp:448] Stream: 0, Not locked yet (FE status 0)...\r\n[     Frontend.cpp:448] Stream: 0, Not locked yet (FE status 0)...\r\n[     Frontend.cpp:448] Stream: 0, Not locked yet (FE status 0)...\r\n[     Frontend.cpp:448] Stream: 0, Not locked yet (FE status 0)...\r\n[     Frontend.cpp:448] Stream: 0, Not locked yet (FE status 0)...\r\n[     Frontend.cpp:448] Stream: 0, Not locked yet (FE status 0)...\r\n[     Frontend.cpp:448] Stream: 0, Not locked yet (FE status 0)...\r\n[     Frontend.cpp:448] Stream: 0, Not locked yet (FE status 0)...\r\n[     Frontend.cpp:466] Stream: 0, Opened DVR fd: 10.\r\n[     Frontend.cpp:473] Stream: 0, Updating PID filters...\r\n[     Frontend.cpp:490] Stream: 0, Set filter PID: 0000 - fd: 011\r\n[    RtpThread.cpp:092] Stream: 0, Start  RTP stream to 192.168.1.20:52042\r\n[   RtcpThread.cpp:073] Stream: 0, Start RTCP stream to 192.168.1.20:52043\r\n[   RtspServer.cpp:142] RTSP/1.0 200 OK\r\nCSeq: 2\r\nSession: 1702957685;timeout=60\r\nTransport: RTP/AVP;unicast;client_port=52042-52043\r\ncom.ses.streamID: 0\r\n--- LINE END ---\r\n[   RtspServer.cpp:071] Data from client 192.168.1.20: PLAY rtsp://192.168.1.10:554/stream=0?addpids=18 RTSP/1.0\r\nCSeq: 3\r\nSession: 1702957685\r\n--- LINE END ---\r\n[      Streams.cpp:225] Found StreamID x - SessionID: 1702957685\r\n[       Stream.cpp:067] Stream: 0, StreamClient[0] with SessionID 1702957685\r\n[       Stream.cpp:197] Stream: 0, Parsing transport parameters...\r\n[ StreamClient.cpp:043] Connection can close: 0\r\n[     Frontend.cpp:384] Stream: 0, Start tuning process...\r\n[     Frontend.cpp:434] Stream: 0, Waiting on lock.\r\n[     Frontend.cpp:448] Stream: 0, Not locked yet (FE status 0)...\r\n[     Frontend.cpp:448] Stream: 0, Not locked yet (FE status 0)...\r\n[     Frontend.cpp:448] Stream: 0, Not locked yet (FE status 0)...\r\n[     Frontend.cpp:448] Stream: 0, Not locked yet (FE status 0)...\r\n[     Frontend.cpp:448] Stream: 0, Not locked yet (FE status 0)...\r\n[     Frontend.cpp:448] Stream: 0, Not locked yet (FE status 0)...\r\n[     Frontend.cpp:448] Stream: 0, Not locked yet (FE status 0)...\r\n[     Frontend.cpp:448] Stream: 0, Not locked yet (FE status 0)...\r\n[     Frontend.cpp:473] Stream: 0, Updating PID filters...\r\n[     Frontend.cpp:490] Stream: 0, Set filter PID: 0018 - fd: 015\r\n[   RtspServer.cpp:168] RTSP/1.0 200 OK\r\nRTP-Info: url=rtsp://192.168.1.10/stream=0\r\nCSeq: 3\r\nSession: 1702957685\r\n--- LINE END ---\r\n[   RtspServer.cpp:071] Data from client 192.168.1.20: PLAY rtsp://192.168.1.10:554/stream=0?addpids=1001,1101,0,1000,1200 RTSP/1.0\r\nCSeq: 4\r\nSession: 1702957685\r\n--- LINE END ---\r\n[      Streams.cpp:225] Found StreamID x - SessionID: 1702957685\r\n[       Stream.cpp:067] Stream: 0, StreamClient[0] with SessionID 1702957685\r\n[       Stream.cpp:197] Stream: 0, Parsing transport parameters...\r\n[ StreamClient.cpp:043] Connection can close: 0\r\n[     Frontend.cpp:384] Stream: 0, Start tuning process...\r\n[     Frontend.cpp:434] Stream: 0, Waiting on lock.\r\n[     Frontend.cpp:448] Stream: 0, Not locked yet (FE status 0)...\r\n[     Frontend.cpp:448] Stream: 0, Not locked yet (FE status 0)...\r\n[     Frontend.cpp:448] Stream: 0, Not locked yet (FE status 0)...\r\n[     Frontend.cpp:448] Stream: 0, Not locked yet (FE status 0)...\r\n[     Frontend.cpp:448] Stream: 0, Not locked yet (FE status 0)...\r\n[     Frontend.cpp:448] Stream: 0, Not locked yet (FE status 0)...\r\n[     Frontend.cpp:448] Stream: 0, Not locked yet (FE status 0)...\r\n[     Frontend.cpp:448] Stream: 0, Not locked yet (FE status 0)...\r\n[     Frontend.cpp:473] Stream: 0, Updating PID filters...\r\n[     Frontend.cpp:490] Stream: 0, Set filter PID: 1000 - fd: 016\r\n[     Frontend.cpp:490] Stream: 0, Set filter PID: 1001 - fd: 017\r\n[     Frontend.cpp:490] Stream: 0, Set filter PID: 1101 - fd: 018\r\n[     Frontend.cpp:490] Stream: 0, Set filter PID: 1200 - fd: 019\r\n[   RtspServer.cpp:168] RTSP/1.0 200 OK\r\nRTP-Info: url=rtsp://192.168.1.10/stream=0\r\nCSeq: 4\r\nSession: 1702957685\r\n--- LINE END ---\r\n[   RtcpThread.cpp:159] ver=1.1;tuner=1,97,0,0,634.00,8,dvbt,auto,UNKNOWN MODTYPE,auto,auto,0,0,0;pids=0,18,1000,1001,1101,1200\r\n[   RtcpThread.cpp:159] ver=1.1;tuner=1,97,0,0,634.00,8,dvbt,auto,UNKNOWN MODTYPE,auto,auto,0,0,0;pids=0,18,1000,1001,1101,1200\r\n[   RtcpThread.cpp:159] ver=1.1;tuner=1,97,0,0,634.00,8,dvbt,auto,UNKNOWN MODTYPE,auto,auto,0,0,0;pids=0,18,1000,1001,1101,1200\r\n[   RtcpThread.cpp:159] ver=1.1;tuner=1,97,0,0,634.00,8,dvbt,auto,UNKNOWN MODTYPE,auto,auto,0,0,0;pids=0,18,1000,1001,1101,1200\r\n[   RtcpThread.cpp:159] ver=1.1;tuner=1,97,0,0,634.00,8,dvbt,auto,UNKNOWN MODTYPE,auto,auto,0,0,0;pids=0,18,1000,1001,1101,1200\r\n[   RtcpThread.cpp:159] ver=1.1;tuner=1,97,0,0,634.00,8,dvbt,auto,UNKNOWN MODTYPE,auto,auto,0,0,0;pids=0,18,1000,1001,1101,1200\r\n[   RtcpThread.cpp:159] ver=1.1;tuner=1,97,0,0,634.00,8,dvbt,auto,UNKNOWN MODTYPE,auto,auto,0,0,0;pids=0,18,1000,1001,1101,1200\r\n[   RtcpThread.cpp:159] ver=1.1;tuner=1,97,0,0,634.00,8,dvbt,auto,UNKNOWN MODTYPE,auto,auto,0,0,0;pids=0,18,1000,1001,1101,1200\r\n[   SsdpServer.cpp:158] Found SAT>IP Server 192.168.1.80: with DEVICEID 181\r\n[   RtcpThread.cpp:159] ver=1.1;tuner=1,97,0,0,634.00,8,dvbt,auto,UNKNOWN MODTYPE,auto,auto,0,0,0;pids=0,18,1000,1001,1101,1200\r\n[   SsdpServer.cpp:158] Found SAT>IP Server 192.168.1.80: with DEVICEID 181\r\n[   RtspServer.cpp:071] Data from client 192.168.1.20: PLAY rtsp://192.168.1.10:554/stream=0?delpids=1001,1101,0,1000,1200 RTSP/1.0\r\nCSeq: 5\r\nSession: 1702957685\r\n--- LINE END ---\r\n[      Streams.cpp:225] Found StreamID x - SessionID: 1702957685\r\n[       Stream.cpp:067] Stream: 0, StreamClient[0] with SessionID 1702957685\r\n[       Stream.cpp:197] Stream: 0, Parsing transport parameters...\r\n[ StreamClient.cpp:043] Connection can close: 0\r\n[     Frontend.cpp:384] Stream: 0, Start tuning process...\r\n[     Frontend.cpp:434] Stream: 0, Waiting on lock.\r\n[     Frontend.cpp:448] Stream: 0, Not locked yet (FE status 0)...\r\n[   RtcpThread.cpp:159] ver=1.1;tuner=1,97,0,0,634.00,8,dvbt,auto,UNKNOWN MODTYPE,auto,auto,0,0,0;pids=18\r\n[     Frontend.cpp:448] Stream: 0, Not locked yet (FE status 0)...\r\n[     Frontend.cpp:448] Stream: 0, Not locked yet (FE status 0)...\r\n[     Frontend.cpp:448] Stream: 0, Not locked yet (FE status 0)...\r\n[     Frontend.cpp:448] Stream: 0, Not locked yet (FE status 0)...\r\n[     Frontend.cpp:448] Stream: 0, Not locked yet (FE status 0)...\r\n[     Frontend.cpp:448] Stream: 0, Not locked yet (FE status 0)...\r\n[     Frontend.cpp:448] Stream: 0, Not locked yet (FE status 0)...\r\n[     Frontend.cpp:473] Stream: 0, Updating PID filters...\r\n[     Frontend.cpp:494] Stream: 0, Remove filter PID: 0000 - fd: 011 - Packet Count: 0\r\n[     Frontend.cpp:494] Stream: 0, Remove filter PID: 1000 - fd: 016 - Packet Count: 0\r\n[     Frontend.cpp:494] Stream: 0, Remove filter PID: 1001 - fd: 017 - Packet Count: 0\r\n[     Frontend.cpp:494] Stream: 0, Remove filter PID: 1101 - fd: 018 - Packet Count: 0\r\n[     Frontend.cpp:494] Stream: 0, Remove filter PID: 1200 - fd: 019 - Packet Count: 0\r\n[   RtspServer.cpp:168] RTSP/1.0 200 OK\r\nRTP-Info: url=rtsp://192.168.1.10/stream=0\r\nCSeq: 5\r\nSession: 1702957685\r\n--- LINE END ---\r\n[   RtspServer.cpp:071] Data from client 192.168.1.20: PLAY rtsp://192.168.1.10:554/stream=0?delpids=18 RTSP/1.0\r\nCSeq: 6\r\nSession: 1702957685\r\n--- LINE END ---\r\n[      Streams.cpp:225] Found StreamID x - SessionID: 1702957685\r\n[       Stream.cpp:067] Stream: 0, StreamClient[0] with SessionID 1702957685\r\n[       Stream.cpp:197] Stream: 0, Parsing transport parameters...\r\n[ StreamClient.cpp:043] Connection can close: 0\r\n[     Frontend.cpp:384] Stream: 0, Start tuning process...\r\n[     Frontend.cpp:434] Stream: 0, Waiting on lock.\r\n[     Frontend.cpp:448] Stream: 0, Not locked yet (FE status 0)...\r\n[     Frontend.cpp:448] Stream: 0, Not locked yet (FE status 0)...\r\n[     Frontend.cpp:448] Stream: 0, Not locked yet (FE status 0)...\r\n[     Frontend.cpp:448] Stream: 0, Not locked yet (FE status 0)...\r\n[     Frontend.cpp:448] Stream: 0, Not locked yet (FE status 0)...\r\n[     Frontend.cpp:448] Stream: 0, Not locked yet (FE status 0)...\r\n[     Frontend.cpp:448] Stream: 0, Not locked yet (FE status 0)...\r\n[     Frontend.cpp:448] Stream: 0, Not locked yet (FE status 0)...\r\n[     Frontend.cpp:473] Stream: 0, Updating PID filters...\r\n[     Frontend.cpp:494] Stream: 0, Remove filter PID: 0018 - fd: 015 - Packet Count: 0\r\n[   RtspServer.cpp:168] RTSP/1.0 200 OK\r\nRTP-Info: url=rtsp://192.168.1.10/stream=0\r\nCSeq: 6\r\nSession: 1702957685\r\n--- LINE END ---\r\n[   RtspServer.cpp:071] Data from client 192.168.1.20: TEARDOWN rtsp://192.168.1.10:554/stream=0 RTSP/1.0\r\nCSeq: 7\r\nSession: 1702957685\r\n--- LINE END ---\r\n[      Streams.cpp:225] Found StreamID x - SessionID: 1702957685\r\n[       Stream.cpp:067] Stream: 0, StreamClient[0] with SessionID 1702957685\r\n[ StreamClient.cpp:043] Connection can close: 1\r\n[       Stream.cpp:123] Stream: 0, Teardown StreamClient[0] with SessionID 1702957685\r\n[   RtcpThread.cpp:159] ver=1.1;tuner=1,97,0,0,634.00,8,dvbt,auto,UNKNOWN MODTYPE,auto,auto,0,0,0;pids=\r\n[   RtcpThread.cpp:159] ver=1.1;tuner=1,97,0,0,634.00,8,dvbt,auto,UNKNOWN MODTYPE,auto,auto,0,0,0;pids=\r\n[     ThreadBase.h:075] Thread did not stop within timeout?\r\n[    RtpThread.cpp:102] Stream: 0, Stop  RTP stream to 192.168.1.20:52042 (Streamed 0.000 MBytes)\r\n[     ThreadBase.h:075] Thread did not stop within timeout?\r\n[   RtcpThread.cpp:083] Stream: 0, Stop RTCP stream to 192.168.1.20:52043\r\n[   RtspServer.cpp:284] RTSP/1.0 200 OK\r\nCSeq: 7\r\nSession: 1702957685\r\n--- LINE END ---\r\n[    TcpSocket.cpp:085] RTSP Client 192.168.1.20: Connection closed with fd: 8\r\n[      Streams.cpp:205] Found SessionID 1702957685 by SocketClient\r\n[      Streams.cpp:225] Found StreamID x - SessionID: 1702957685\r\n[       Stream.cpp:067] Stream: 0, StreamClient[0] with SessionID 1702957685\r\n[       Stream.cpp:115] Stream: 0, Close StreamClient[0] with SessionID 1702957685\r\n\r\nI feel you solved the problem with \"msys=\" parameter, but the lines showing UNKNOWN MODTYPE perhaps indicate that you don't correct tune the DVB-T device !!\r\n\r\nWhat more I can do?"}}