Using 2 CI

Support forum for minisatip
Predaor
Posts: 6
Joined: Fri Dec 28, 2018 4:02 pm

Using 2 CI

Post by Predaor » Fri Dec 28, 2018 4:10 pm

Hi
First, thank you for all this work

Actually i use
device name: Digital Devices Octopus CI S2 Pro Advanced
2 tuner + 2 CI

when i start minisatip only one cam i detected and initialized (CA0)
is there any solution to make 2nd cam initialized (CA1) too.

Regards

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

Re: Using 2 CI

Post by cata » Fri Dec 28, 2018 4:28 pm

Hi,

Both of them should work. Can u upload logs?

Predaor
Posts: 6
Joined: Fri Dec 28, 2018 4:02 pm

Re: Using 2 CI

Post by Predaor » Sat Dec 29, 2018 2:36 pm

Hi all
this is log

root@ddci:~/minisatip/minisatip-master# ./minisatip -f -l -v ca
[29/12 15:33:14.353 main]: module -v not recognised
[29/12 15:33:14.354 main]: minisatip version 0.7.16, compiled with s2api version: 050A
[29/12 15:33:14.354 main]: Built with dvbcsa
[29/12 15:33:14.354 main]: Built with CI
[29/12 15:33:14.354 main]: Built with dvbapi
[29/12 15:33:14.354 main]: Built with AES (OpenSSL)
[29/12 15:33:14.354 main]: Built with tables processing
[29/12 15:33:14.354 main]: Built with pmt processing
[29/12 15:33:14.354 main]: Built with satip client
[29/12 15:33:14.354 main]: Built with linux dvb client
[29/12 15:33:14.354 main]: Built with backtrace
[29/12 15:33:14.354 main]: Built without netceiver
[29/12 15:33:14.355 main]: New UDP socket 3 bound to 0.0.0.0:1900
[29/12 15:33:14.355 main]: setting multicast for 239.255.255.250
[29/12 15:33:14.355 main]: New UDP socket 4 bound to 239.255.255.250:1900 (mcast:239.255.255.250)
[29/12 15:33:14.355 main]: Mutex init 0x66a400
[29/12 15:33:14.355 main]: Mutex init 0x1c1d0f8
[29/12 15:33:14.355 main]: sockets_add: handle 3 (type 0) returning socket sock 0 [0.0.0.0:0] read: 0x40b768
[29/12 15:33:14.355 main]: Mutex init 0x1c1eb18
[29/12 15:33:14.355 main]: sockets_add: handle 4 (type 0) returning socket sock 1 [0.0.0.0:0] read: 0x40b768
[29/12 15:33:14.355 main]: Mutex init 0x1c1ec78
[29/12 15:33:14.355 main]: sockets_add: handle 5 (type 2) returning socket sock 2 [0.0.0.0:0] read: 0x40b547
[29/12 15:33:14.355 main]: Mutex init 0x1c1edd8
[29/12 15:33:14.355 main]: sockets_add: handle 6 (type 2) returning socket sock 3 [0.0.0.0:0] read: 0x40b547
[29/12 15:33:14.355 main]: Mutex init 0x1c1ef38
[29/12 15:33:14.355 main]: sockets_add: handle -2 (type 0) returning socket sock 4 [0.0.0.0:0] read: 0x40b768
[29/12 15:33:14.355 main]: set_socket_thread: thread 27698700 for sockets 4
[29/12 15:33:14.355 main]: Mutex init 0x1c1f1c8
[29/12 15:33:14.355 signal]: Starting select_and_execute on thread ID 27698700, thread_name signal
[29/12 15:33:14.356 main]: sockets_add: handle -2 (type 0) returning socket sock 5 [0.0.0.0:0] read: 0x40b768
[29/12 15:33:14.356 main]: set_socket_thread: thread 27698700 for sockets 5
[29/12 15:33:14.356 main]: Mutex init 0x66cb60
[29/12 15:33:14.356 main]: Mutex init 0x66cbc0
[29/12 15:33:14.359 main]: Mutex init 0x677900
[29/12 15:33:14.359 main]: Mutex init 0x1c36848
[29/12 15:33:14.359 main]: sockets_add: handle -2 (type 0) returning socket sock 6 [0.0.0.0:0] read: 0x40b768
[29/12 15:33:14.359 main]: Mutex init 0x66b8c0
[29/12 15:33:14.359 main]: starting init_all_hw 0
[29/12 15:33:14.359 main]: Mutex init 0x66a8c0
[29/12 15:33:14.364 main]: Mutex init 0x1c36b48
[29/12 15:33:14.364 main]: trying to open [0] adapter 0 and frontend 0
[29/12 15:33:14.364 main]: opened DVB adapter 0 fe:7 dvr:8
[29/12 15:33:14.364 main]: DVR buffer set to 5775360 bytes
[29/12 15:33:14.364 main]: deleting pids on adapter 0, sid -1, pids=NULL
[29/12 15:33:14.365 main]: Detected adapter 0 handle 7 DVB Card Name: STV0910
[29/12 15:33:14.365 main]: Detected delivery system for adapter 0: dvbs [5]
[29/12 15:33:14.365 main]: Detected delivery system for adapter 0: dvbs2 [6]
[29/12 15:33:14.365 main]: Detected delivery system for adapter 0: dss [4]
[29/12 15:33:14.365 main]: Mutex init 0x1c50eb8
[29/12 15:33:14.365 main]: sockets_add: handle 8 (type 5) returning socket sock 7 [0.0.0.0:0] read: 0x40b6bf
[29/12 15:33:14.365 main]: set_socket_thread: thread 26e97700 for sockets 7
[29/12 15:33:14.365 AD0]: Starting select_and_execute on thread ID 26e97700, thread_name AD0
[29/12 15:33:15.696 main]: initializing CA, fd 9 type 2 flags 0x3, after 1331 ms
[29/12 15:33:15.696 main]: slotid: 0
[29/12 15:33:15.696 main]: tcid: 1
[29/12 15:33:15.696 main]: done opening adapter 0 delivery systems: dvbs undefined undefined undefined
[29/12 15:33:15.696 main]: FE 1 mapped to Adapter 0, sys dvbs2
[29/12 15:33:15.697 main]: Mutex init 0x1c38818
[29/12 15:33:15.697 main]: trying to open [1] adapter 0 and frontend 1
[29/12 15:33:15.697 CA0]: stackthread_func: start
[29/12 15:33:15.697 main]: opened DVB adapter 1 fe:10 dvr:11
[29/12 15:33:15.698 main]: DVR buffer set to 5775360 bytes
[29/12 15:33:15.698 main]: deleting pids on adapter 1, sid -1, pids=NULL
[29/12 15:33:15.698 main]: Detected adapter 1 handle 10 DVB Card Name: STV0910
[29/12 15:33:15.698 main]: Detected delivery system for adapter 1: dvbs [5]
[29/12 15:33:15.698 main]: Detected delivery system for adapter 1: dvbs2 [6]
[29/12 15:33:15.698 main]: Detected delivery system for adapter 1: dss [4]
[29/12 15:33:15.698 main]: Mutex init 0x1c6cff8
[29/12 15:33:15.698 main]: sockets_add: handle 11 (type 5) returning socket sock 8 [0.0.0.0:0] read: 0x40b6bf
[29/12 15:33:15.698 main]: set_socket_thread: thread 25e95700 for sockets 8
[29/12 15:33:15.698 AD1]: Starting select_and_execute on thread ID 25e95700, thread_name AD1
[29/12 15:33:15.698 main]: No CA device detected on adapter 1
[29/12 15:33:15.699 main]: done opening adapter 1 delivery systems: dvbs undefined undefined undefined
[29/12 15:33:15.699 main]: FE 1 mapped to Adapter 0, sys dvbs2
[29/12 15:33:15.699 main]: FE 2 mapped to Adapter 1, sys dvbs2
[29/12 15:33:15.699 main]: Mutex init 0x1c3a4e8
[29/12 15:33:15.699 main]: trying to open [2] adapter 1 and frontend 0
[29/12 15:33:15.699 main]: opened DVB adapter 2 fe:12 dvr:13
[29/12 15:33:15.700 main]: DVR buffer set to 5775360 bytes
[29/12 15:33:15.700 main]: deleting pids on adapter 2, sid -1, pids=NULL
[29/12 15:33:15.700 main]: Detected adapter 2 handle 12 DVB Card Name: STV0910
[29/12 15:33:15.700 main]: Detected delivery system for adapter 2: dvbs [5]
[29/12 15:33:15.700 main]: Detected delivery system for adapter 2: dvbs2 [6]
[29/12 15:33:15.700 main]: Detected delivery system for adapter 2: dss [4]
[29/12 15:33:15.700 main]: Mutex init 0x1c7eca8
[29/12 15:33:15.700 main]: sockets_add: handle 13 (type 5) returning socket sock 9 [0.0.0.0:0] read: 0x40b6bf
[29/12 15:33:15.700 main]: set_socket_thread: thread 25694700 for sockets 9
[29/12 15:33:15.700 AD2]: Starting select_and_execute on thread ID 25694700, thread_name AD2
[29/12 15:33:15.778 CA0]: ca_session_callback: reason 6 slot_id 0 session_number 1 resource_id 0
[29/12 15:33:15.778 CA0]: 00:Host originated transport connection 0 resource 0x00000001 connected
[29/12 15:33:16.978 CA0]: ===================> ca_lookup_callback: slot_id 0 requested_resource_id 10041
[29/12 15:33:16.978 CA0]: ca_session_callback: reason 0 slot_id 0 session_number 1 resource_id 10041
[29/12 15:33:16.978 CA0]: 00:CAM connecting to resource 00010041, session_number 1
[29/12 15:33:16.979 CA0]: ca_session_callback: reason 1 slot_id 0 session_number 1 resource_id 10041
[29/12 15:33:16.979 CA0]: 00:CAM successfully connected to resource 00010041, session_number 1
[29/12 15:33:16.979 CA0]: --------------------S_SCALLBACK_REASON_CAMCONNECTED---------EN50221_APP_RM_RESOURCEID-------------------------
[29/12 15:33:17.278 CA0]: 00:ca_rm_reply_callback resource_count 0
[29/12 15:33:17.478 CA0]: 00:ca_rm_enq_callback resource_count 19 resource_ids 65602
[29/12 15:33:17.978 CA0]: ===================> ca_lookup_callback: slot_id 0 requested_resource_id 20041
[29/12 15:33:17.978 CA0]: ca_session_callback: reason 0 slot_id 0 session_number 2 resource_id 20041
[29/12 15:33:17.978 CA0]: 00:CAM connecting to resource 00020041, session_number 2
[29/12 15:33:17.978 CA0]: ca_session_callback: reason 1 slot_id 0 session_number 2 resource_id 20041
[29/12 15:33:17.979 CA0]: 00:CAM successfully connected to resource 00020041, session_number 2


CA1 is not initilizing

thanks

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

Re: Using 2 CI

Post by cata » Sat Dec 29, 2018 7:36 pm

You need to enable DDCI=1 in src/Makefile . Most likely the CAM is set to indeoendent mode .

Also run:

find /dev/dvb

and provide the output

Predaor
Posts: 6
Joined: Fri Dec 28, 2018 4:02 pm

Re: Using 2 CI

Post by Predaor » Sat Dec 29, 2018 9:04 pm

hi
thank you for your reply

DDCI=1 already enabled before running make

root@ddci:~# find /dev/dvb
/dev/dvb
/dev/dvb/adapter0
/dev/dvb/adapter0/ci1
/dev/dvb/adapter0/ca1
/dev/dvb/adapter0/ci0
/dev/dvb/adapter0/ca0
/dev/dvb/adapter0/frontend1
/dev/dvb/adapter0/net1
/dev/dvb/adapter0/dvr1
/dev/dvb/adapter0/demux1
/dev/dvb/adapter0/frontend0
/dev/dvb/adapter0/net0
/dev/dvb/adapter0/dvr0
/dev/dvb/adapter0/demux0
root@ddci:~

thanks

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

Re: Using 2 CI

Post by cata » Sat Dec 29, 2018 9:14 pm

On the devices I have tested the ci0 and ca0 were under a different adapter (eg adapter2 ). I think u can set the driver to have them under a different adapter but not sure how.

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

Re: Using 2 CI

Post by cata » Sat Dec 29, 2018 9:15 pm

In this case I can see how the sevice detection logic might get confused.

Predaor
Posts: 6
Joined: Fri Dec 28, 2018 4:02 pm

Re: Using 2 CI

Post by Predaor » Sat Dec 29, 2018 9:45 pm

hi
when i add
options ddbridge adapter_alloc=3
to /etc/modorobe.d/ddbridge.conf
i got only /dev/dvb/adapter0
if i delete this line i got 4 adapter
adapter0 to adapter3

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

Re: Using 2 CI

Post by cata » Sat Dec 29, 2018 9:49 pm

How does it work with 4 adapters?

Predaor
Posts: 6
Joined: Fri Dec 28, 2018 4:02 pm

Re: Using 2 CI

Post by Predaor » Sat Dec 29, 2018 9:59 pm

with 4 adapter no ca detected on both adapter 0 and 1

Post Reply