Frontends cannot be opened in RW mode

Support forum for minisatip
marian34
Posts: 24
Joined: Sat Oct 22, 2016 9:34 am

Re: Frontends cannot be opened in RW mode

Post by marian34 »

Hi cata,

compile error:

Code: Select all

marian@marian-lubuntu:~/minisatip-master$ make
bin/sh4-streamboard-linux-gnu-gcc -ggdb -fPIC   -DDISABLE_DVBCA -DDISABLE_NETCVCLIENT -o minisatip minisatip.o socketworks.o stream.o adapter.o utils.o aes.o csa.o dvbapi.o tables.o satipc.o dvb.o -lpthread -lrt  -l:libcrypto.a -l:libdvbcsa.a -l:libdvbcsa.a
libdvbcsa.a: could not read symbols: File format not recognized
collect2: ld returned 1 exit status
Makefile:94: recipe for target 'minisatip' failed
make: *** [minisatip] Error 1
as compiled libdvbcsa?

Ok, libdvbcsa it is necessary to compile with gcc SH4. Works:

Code: Select all

root@spark7162:~# minisatip --dmx-source 0:0 -f -u0:3-2040 -q0:15-54-80-15-80-0 
-y 1025 -e0 -o192.168.1.16:4025
[24/10 23:20:07.234 main]: Setting frontend 0 for adapter 0
[24/10 23:20:07.235 main]: Setting unicable adapter 0 slot 3 freq 2040
[24/10 23:20:07.235 main]: Setting diseqc timing for adapter 0 before cmd 15 after cmd 54 after repeated cmd 80 after switch 15 after burst 80 after tone 0
[24/10 23:20:07.236 main]: minisatip version 0.5.61, compiled with s2api version: 0501
[24/10 23:20:07.236 main]: Built with dvbcsa
[24/10 23:20:07.236 main]: Built without CI
[24/10 23:20:07.237 main]: Built with dvbapi
[24/10 23:20:07.237 main]: Built with AES (OpenSSL)
[24/10 23:20:07.237 main]: Built with tables processing
[24/10 23:20:07.237 main]: Built with satip client
[24/10 23:20:07.237 main]: Built with linux dvb client
[24/10 23:20:07.238 main]: Built with backtrace
[24/10 23:20:07.238 main]: Built without netceiver
[24/10 23:20:07.256 main]: Initializing with 1 devices
but I still have the dark-syslog:

Code: Select all

Oct 24 23:40:44 spark7162 user.warn kernel: *snr = 49419
Oct 24 23:40:45 spark7162 user.warn kernel: *strength = 45517
Oct 24 23:40:45 spark7162 user.warn kernel: *snr = 50069
Oct 24 23:40:46 spark7162 daemon.notice minisatip[1216]: Message repeated 8 times
Oct 24 23:40:46 spark7162 daemon.notice minisatip[1216]: Message repeated 1 times
Oct 24 23:40:46 spark7162 user.warn kernel: start dmx 8756338c, sh 10000, pid 17, t 0, pt 20
Oct 24 23:40:46 spark7162 user.warn kernel: SlotHandle = 20006
Oct 24 23:40:46 spark7162 user.warn kernel: *strength = 45517
Oct 24 23:40:46 spark7162 user.warn kernel: *snr = 49419
Oct 24 23:40:47 spark7162 user.warn kernel: *strength = 45517
Oct 24 23:40:47 spark7162 user.warn kernel: *snr = 49419
Oct 24 23:40:48 spark7162 user.warn kernel: *strength = 46167
Oct 24 23:40:48 spark7162 user.warn kernel: *snr = 49419
Oct 24 23:40:49 spark7162 user.warn kernel: *strength = 45517
Oct 24 23:40:49 spark7162 user.warn kernel: *snr = 49419
Oct 24 23:40:50 spark7162 user.warn kernel: *strength = 45517
Oct 24 23:40:50 spark7162 user.warn kernel: *snr = 50069
Oct 24 23:40:51 spark7162 user.warn kernel: *strength = 45517
Oct 24 23:40:51 spark7162 user.warn kernel: *snr = 49419
Oct 24 23:40:52 spark7162 daemon.notice minisatip[1216]: Message repeated 28 times
Oct 24 23:40:52 spark7162 daemon.notice minisatip[1216]: dvbapi: received DVBAPI_CA_SET_DESCR, key 0 parity 1, index 0, CW: 89 36 68 27 95 68 1D 1A 
Oct 24 23:40:52 spark7162 daemon.notice minisatip[1216]: Message repeated 1 times
Oct 24 23:40:52 spark7162 daemon.notice minisatip[1216]: dvbapi: received DVBAPI_CA_SET_DESCR, key 0 parity 1, index 0, CW: 89 36 68 27 95 68 1D 1A 
Oct 24 23:40:52 spark7162 user.warn kernel: *strength = 45517
Oct 24 23:40:52 spark7162 user.warn kernel: *snr = 50069
Oct 24 23:40:53 spark7162 user.warn kernel: *strength = 45517
Oct 24 23:40:53 spark7162 user.warn kernel: *snr = 49419
Oct 24 23:40:55 spark7162 user.warn kernel: *strength = 45517
Oct 24 23:40:55 spark7162 user.warn kernel: *snr = 49419
Oct 24 23:40:56 spark7162 user.warn kernel: *strength = 45517
Oct 24 23:40:56 spark7162 user.warn kernel: *snr = 49419
Oct 24 23:40:57 spark7162 user.warn kernel: *strength = 45517
Oct 24 23:40:57 spark7162 user.warn kernel: *snr = 49419
Oct 24 23:40:58 spark7162 user.warn kernel: *strength = 45517
Oct 24 23:40:58 spark7162 user.warn kernel: *snr = 49419
Oct 24 23:40:59 spark7162 user.warn kernel: *strength = 45517
Oct 24 23:40:59 spark7162 user.warn kernel: *snr = 49419
Oct 24 23:41:00 spark7162 user.warn kernel: *strength = 45517
Oct 24 23:41:00 spark7162 user.warn kernel: *snr = 49419
Oct 24 23:41:01 spark7162 user.warn kernel: *strength = 45517
Oct 24 23:41:01 spark7162 user.warn kernel: *snr = 49419
Oct 24 23:41:02 spark7162 user.warn kernel: *strength = 45517
Oct 24 23:41:02 spark7162 user.warn kernel: *snr = 49419
Oct 24 23:41:02 spark7162 daemon.notice minisatip[1216]: Message repeated 31 times
Oct 24 23:41:02 spark7162 daemon.notice minisatip[1216]: dvbapi: received DVBAPI_CA_SET_DESCR, key 0 parity 0, index 0, CW: 76 58 21 EF F7 3A D1 02 
Oct 24 23:41:02 spark7162 daemon.notice minisatip[1216]: Message repeated 1 times
Oct 24 23:41:02 spark7162 daemon.notice minisatip[1216]: dvbapi: received DVBAPI_CA_SET_DESCR, key 0 parity 0, index 0, CW: 76 58 21 EF F7 3A D1 02 
Oct 24 23:41:03 spark7162 user.warn kernel: *strength = 46167
Oct 24 23:41:03 spark7162 user.warn kernel: *snr = 50069
-lll

Code: Select all

[24/10 23:42:37.931 AD0]: get_active_key: searching key for pid 1015, starting key 0 parity -1 ok 1 1
[24/10 23:42:37.931 AD0]: get_active_key: returning key 0 for pid 1015, d/c errs 0/742, adapter pid errs 0
[24/10 23:42:37.931 AD0]: get_active_key: searching key for pid 1025, starting key 0 parity -1 ok 1 1
[24/10 23:42:37.932 AD0]: get_active_key: returning key 0 for pid 1025, d/c errs 0/0, adapter pid errs 0
[24/10 23:42:38.073 signal]: BW 39KB/s, Total BW: 0 MB, ns/read 334, r: 15, tt: 5 ms, n: 0 (s: 0 ms, s_cnt 0)
[24/10 23:42:39.124 signal]: BW 10KB/s, Total BW: 0 MB, ns/read 132, r: 13, tt: 1 ms, n: 0 (s: 0 ms, s_cnt 0)
[24/10 23:42:40.173 signal]: BW 7KB/s, Total BW: 0 MB, ns/read 138, r: 12, tt: 1 ms, n: 0 (s: 0 ms, s_cnt 0)
[24/10 23:42:42.273 signal]: BW 10KB/s, Total BW: 0 MB, ns/read 136, r: 13, tt: 1 ms, n: 0 (s: 0 ms, s_cnt 0)
[24/10 23:42:42.571 AD0]: dvbapi: sending ECM key 0 for pid 0479 (1145), ecm_parity = 0, new parity 1, demux = 0, filter = 1, len = 128 [81 70 7D 81]
[24/10 23:42:42.572 main]: dvbapi read from socket 11 the following data (65 bytes), pos = 0, op 403C6F2B, key 0
[24/10 23:42:42.572 main]: dvbapi requested set filter for pid 0479 (1145), key 0, demux 0, filter 1 
[24/10 23:42:42.741 main]: dvbapi read from socket 11 the following data (82 bytes), pos = 0, op 40106F86, key 0
[24/10 23:42:42.741 main]: dvbapi: received DVBAPI_CA_SET_DESCR, key 0 parity 0, index 0, CW: 23 75 9B 33 9A FF 49 E2 
[24/10 23:42:42.741 main]: dvbapi read from socket 11 the following data (82 bytes), pos = 21, op FFFF0003, key 0
[24/10 23:42:42.741 main]: dvbapi: ECM_INFO: key 0, SID = 13F1, CAID = 0D96 (cryptoworks), PID = 1145 (0479), ProvID = 000004, ECM time = 169 ms, reader = cccam_vdr, from = 192.168.1.11, protocol = cccam, hops = 2
[24/10 23:42:42.751 AD0]: get_active_key: searching key for pid 1015, starting key 0 parity -1 ok 1 1
[24/10 23:42:42.751 AD0]: get_active_key: returning key 0 for pid 1015, d/c errs 0/882, adapter pid errs 0
[24/10 23:42:42.751 AD0]: get_active_key: searching key for pid 1025, starting key 0 parity -1 ok 1 1
[24/10 23:42:42.752 AD0]: get_active_key: returning key 0 for pid 1025, d/c errs 0/0, adapter pid errs 0
[24/10 23:42:43.321 signal]: BW 20KB/s, Total BW: 0 MB, ns/read 299, r: 12, tt: 3 ms, n: 0 (s: 0 ms, s_cnt 0)
[24/10 23:42:44.369 signal]: BW 2KB/s, Total BW: 0 MB, ns/read 98, r: 12, tt: 1 ms, n: 0 (s: 0 ms, s_cnt 0)
[24/10 23:42:45.417 signal]: BW 14KB/s, Total BW: 0 MB, ns/read 180, r: 12, tt: 2 ms, n: 0 (s: 0 ms, s_cnt 0)
[24/10 23:42:46.465 signal]: BW 12KB/s, Total BW: 0 MB, ns/read 180, r: 12, tt: 2 ms, n: 0 (s: 0 ms, s_cnt 0)
[24/10 23:42:47.513 signal]: BW 26KB/s, Total BW: 0 MB, ns/read 243, r: 12, tt: 2 ms, n: 0 (s: 0 ms, s_cnt 0)
[24/10 23:42:49.609 signal]: BW 8KB/s, Total BW: 0 MB, ns/read 145, r: 12, tt: 1 ms, n: 0 (s: 0 ms, s_cnt 0)
[24/10 23:42:50.660 signal]: BW 6KB/s, Total BW: 0 MB, ns/read 125, r: 12, tt: 1 ms, n: 0 (s: 0 ms, s_cnt 0)
[24/10 23:42:51.709 signal]: BW 6KB/s, Total BW: 0 MB, ns/read 130, r: 12, tt: 1 ms, n: 0 (s: 0 ms, s_cnt 0)
[24/10 23:42:52.551 AD0]: dvbapi: sending ECM key 0 for pid 0479 (1145), ecm_parity = 1, new parity 0, demux = 0, filter = 1, len = 128 [80 70 7D 81]
[24/10 23:42:52.552 main]: dvbapi read from socket 11 the following data (130 bytes), pos = 0, op 403C6F2B, key 0
[24/10 23:42:52.552 main]: dvbapi requested set filter for pid 0479 (1145), key 0, demux 0, filter 1 
[24/10 23:42:52.552 main]: dvbapi read from socket 11 the following data (130 bytes), pos = 65, op 403C6F2B, key 0
[24/10 23:42:52.552 main]: dvbapi requested set filter for pid 0001 (1), key 0, demux 0, filter 3 
[24/10 23:42:52.632 AD0]: dvbapi: sending ECM key 0 for pid 0001 (1), ecm_parity = 255, new parity 1, demux = 0, filter = 3, len = 55 [01 B0 34 FF]
[24/10 23:42:52.633 AD0]: get_active_key: searching key for pid 1015, starting key 0 parity -1 ok 1 1
[24/10 23:42:52.633 AD0]: get_active_key: returning key 0 for pid 1015, d/c errs 0/1504, adapter pid errs 0
[24/10 23:42:52.633 AD0]: get_active_key: searching key for pid 1025, starting key 0 parity -1 ok 1 1
[24/10 23:42:52.633 AD0]: get_active_key: returning key 0 for pid 1025, d/c errs 0/0, adapter pid errs 0
[24/10 23:42:52.634 main]: dvbapi read from socket 11 the following data (9 bytes), pos = 0, op 00006F2A, key 0
[24/10 23:42:52.634 main]: dvbapi: received DMX_STOP for key 0, adapter 0, demux 0, filter 3, pid 1 (1)
[24/10 23:42:52.652 main]: dvbapi read from socket 11 the following data (21 bytes), pos = 0, op 40106F86, key 0
[24/10 23:42:52.652 main]: dvbapi: received DVBAPI_CA_SET_DESCR, key 0 parity 1, index 0, CW: F6 29 24 43 40 60 3E DE 
[24/10 23:42:52.653 main]: dvbapi read from socket 11 the following data (61 bytes), pos = 0, op FFFF0003, key 0
[24/10 23:42:52.653 main]: dvbapi: ECM_INFO: key 0, SID = 13F1, CAID = 0D96 (cryptoworks), PID = 1145 (0479), ProvID = 000004, ECM time = 100 ms, reader = cccam_vdr, from = 192.168.1.11, protocol = cccam, hops = 2
cata
Site Admin
Posts: 768
Joined: Tue May 12, 2015 1:01 am

Re: Frontends cannot be opened in RW mode

Post by cata »

Hi,

The birate seems low. Do the normal channels work?

Can u try encrypted and not encrypted from the same tp?

Btw, do you have sdk/compiler for spark? I am looking to make an alien shd 8900 work with minisatip.
Thanks
marian34
Posts: 24
Joined: Sat Oct 22, 2016 9:34 am

Re: Frontends cannot be opened in RW mode

Post by marian34 »

FTA(not encrypted) channels work.
Minisatip run in enigma(OpenPLi).
I used SH4 toolchains for oscam(simplebuild).Maybe the problem is just as.
cata
Site Admin
Posts: 768
Joined: Tue May 12, 2015 1:01 am

Re: Frontends cannot be opened in RW mode

Post by cata »

Thanks for the tip. I Managed to compile the binary and it runs on spark.

Now I need to figure out the api.
marian34
Posts: 24
Joined: Sat Oct 22, 2016 9:34 am

Re: Frontends cannot be opened in RW mode

Post by marian34 »

Hi cata,

you run minisatip in Spark? Detected adapters? How did you achieve?
cata
Site Admin
Posts: 768
Joined: Tue May 12, 2015 1:01 am

Re: Frontends cannot be opened in RW mode

Post by cata »

I didn't .. I want to, but need the API.

Going to enigma is an easy fix. From running minisatip on spark more ppl will benefit
marian34
Posts: 24
Joined: Sat Oct 22, 2016 9:34 am

Re: Frontends cannot be opened in RW mode

Post by marian34 »

Yes, spark is ok.
But the problem is getting to the adapters.

Code: Select all

[root@stlinux]#ls /dev/dvb/adapter0/
ca0     ca1     ca2     ca3     demux0  demux1  demux2  demux3  swap0 
Where is the frontend?
As you already wrote, there is launched ywapp.exe. But even after kill are not adapters available.
cata
Site Admin
Posts: 768
Joined: Tue May 12, 2015 1:01 am

Re: Frontends cannot be opened in RW mode

Post by cata »

Yes ..well ywapp does not use a frontend....just swap0 demux0 and ca devices.
cata
Site Admin
Posts: 768
Joined: Tue May 12, 2015 1:01 am

Re: Frontends cannot be opened in RW mode

Post by cata »

I did not find much about stapi (spark) how to tune more specifically, send email to amiko but no luck.

So at this point I am planning to switch also to enigma, as I am not able to test images, which one did you find more stable ?

Can you do an uname -a on your image ?
I found something stable online openatv 4.1 ... but did not look more.

Thanks
marian34
Posts: 24
Joined: Sat Oct 22, 2016 9:34 am

Re: Frontends cannot be opened in RW mode

Post by marian34 »

Code: Select all

marian@marian-lubuntu:~$ telnet 192.168.1.12
Trying 192.168.1.12...
Connected to 192.168.1.12.
Escape character is '^]'.

OpenPLi 4 spark7162


spark7162 login: root
Password: 
root@spark7162:~# uname -a
Linux spark7162 2.6.32.61_stm24_0217 #1 PREEMPT Tue Jan 5 16:20:21 CET 2016 sh4 GNU/Linux
Post Reply