NewCS + mgcamd = connection failed

Sandr

Registered
Messages
6
Help me Please!!!!
I cant connect mgcamd 1.35 with newcs 1.6.13
NewCS ok - Init, detect and read my Card
But mgcamd cant find Newcs
i try to change:
  • newcamd_port
  • ip 127.0.01 to localhost
  • reinstall all plugins
always i get same error from mgcamd
[newcamd] Connecting to 127.0.0.1:12000...
[newcamd] Connection to 127.0.0.1:12000 failed (1ms)

Configs
Code:
<newCSconfig>
	<readers name="Card Readers">
		<device>
			<name>upper</name>
			<type>azbox</type>
			<node>/dev/scard</node>
			<export>yes</export>
			<enabled>yes</enabled>
			<blocksa>no</blocksa>
			<blockua>no</blockua>
			<blockga>No</blockga>
			<newcamd_port>20000</newcamd_port>
			<autosid>no</autosid>
			<carddetect>yes</carddetect>
			<priority>hard</priority>
			<PTShandshake>no</PTShandshake>
			<mhz>500</mhz>
			<boxkey>[COLOR="Red"]ID of my card[/COLOR]</boxkey> 
		</device>
	</readers>
	<newcamdserver>
		<enabled>yes</enabled>
		<name>local</name>
		<deskey>01 02 03 04 05 06 07 08 09 10 11 12 13 14</deskey>
		<user>
			<name>dummy</name>
			<password>dummy</password>
			<hostname>127.0.0.1</hostname>
			<port>12000</port>
		</user>
	</newcamd_server>
</newCSconfig>

newcamd.list
Code:
CWS = 127.0.0.1 12000 dummy dummy 01 02 03 04 05 06 07 08 09 10 11 12 13 14 lan local
Logs
mgcamd
Code:
./mgcamd 
tuxbox mgcamd v1.35 by mixvt (compiled Jan 20 2010 21:34:06)
[mg] Net:9:7:2:5s Show ecm:1, emm:1 Up:1 Au:0 Dir:0 Osd:no:80:0 Cache:6 Log:3:172.16.1.1:8028 Reread:4
[mg] Ecm cache time: 15
Box type: azbox
Conax.Key error 2: No such file or directory
Keys readed
AutoRoll.Key error 2: No such file or directory
Conax.Key error 2: No such file or directory
[config] newcamd route = dummy:127.0.0.1:12000 server local
newcamd keep alive: 0, incoming port: 20000
Me: host  id 0000 port 0 max send 10 max dist 10
Resend time: normal 3000 5000, *** 700 1500
Ports to monitor: 
[OPENXCAS_API:Tue Nov  8 16:26:50.951] openxcas_open:285 ## mgcamd
[OPENXCAS_API:Tue Nov  8 16:26:50.960] load_xcas_control:98 ## loaded controller ID = 0x19760507
osdep_msq_server_open : key_request 0x54C4D100 key_response 0x54C4D101
key(54c4d100), msgflg(448)
key(54c4d101), msgflg(448)
osdep_msq_client_connect : key_request 0x54C4D100 key_response 0x54C4D101
[mgcam] emm thread started
[newcamd] Connecting to 127.0.0.1:12000...
[newcamd] Connection to 127.0.0.1:12000 failed (1ms)

In AZBOX PREMIUM HD PLUS (0.9.5309) mgcamd 1.35; newcs 1.6.13
tuners: 2x DVB-C
sata: Seagate 500 GB
 

Sandr

Registered
Messages
6
For test i install on my Linux PC
  • USB pscs reader (Cardman 3021)
  • NewCS 1.67
configure NewCS on PC and change IP in newcamd.list on AZBOX

mgcamd connect to NewCS on PC without any errors
And i can watch all subscribed SD channels on AZBOX

After that i try configure NewCS + mgcamd on AZBOX again

Still Connection failed
 

Sandr

Registered
Messages
6
log NewCS In AZBOX
Code:
[ 13:42:39 ] [ Box detect ] Box type 9
[ 13:42:39 ] [ Config ] /dev/scard ECM priority: hard
[ 13:42:39 ] [ Config ] No SIDFILTER is configured, disabling SidOverride for device 0 (upper)!
[ 13:42:39 ] [ Newcamd ] Server name : local
[ 13:42:39 ] [ Newcamd ] Des key     : 0102030405060708091011121314
[ 13:42:39 ] [ Newcamd ] User 2: dummy, Pass: dummy, Host 127.0.0.1, Port: 12000, Au: Off, Spider allowed: No, Sidoverride: No, reader control: No, level: 0
[ 13:42:39 ] [ EMM Cache ] Initialising Cache with 10 entries
[ 13:42:39 ] [ ECM Cache ] Initialising dynamic Cache
[ 13:42:39 ] Calibrating delay loops
[ 13:42:39 ] usleep(5) takes: 0 s 13 us
[ 13:42:39 ] usleep(10) takes: 0 s 17 us
[ 13:42:39 ] usleep(100) takes: 0 s 107 us
[ 13:42:39 ] usleep(500) takes: 0 s 506 us
[ 13:42:39 ] [ Loader ] Reader type 11 on node /dev/scard
[ 13:42:39 ] [ azbox ] Opening device /dev/scard
[ 13:42:41 ] ATR: 3F FF 14 25 03 10 80 33 B0 10 69 FF 4A 50 70 00 
[ 13:42:41 ] ATR: 00 43 52 01 00 00 
[ 13:42:41 ] [ ATR ] T=0  1etu=46.50us  Guardtime:15etu  WWT:76800etu
[ 13:42:41 ] [ ATR ] Fi 1 (372) Di 4 (8)
[ 13:42:41 ] [ ATR ] Historical bytes: 3 [B0] [10] i [FF] J P p [00] [00] C R [01] [00] [00] 
[ 13:42:41 ] [ ATR ] freq 1000000.000 sciFreq  5000000.000
[ 13:42:41 ] [ Loader ] Init *** card
[ 13:42:41 ] [ *** ] BOXID: XXXXXXXX
[ 13:42:41 ] [ *** ] CAID: 091D
[ 13:42:41 ] [ Keyman ] Adding key 6BA38 type 0 on Provider 000000 for caid 091D ID=0
[ 13:42:41 ] [ Keyman ] Adding key 6BA00 type 1 on Provider 000000 for caid 091D ID=0
 

nivanescu

Registered
Messages
27
Mate, you cannot connect because the port in newcs cfg file is 20000 and mgcamd is trying to connect to port 12000. So modify newcs.xml and put <newcamd_port>12000</newcamd_port>. Connection port is not the option "port" from the user part, that means something else (in fact you can delete option "port" and option "hostname" from user configuration).
Let only username and password.
 

Sandr

Registered
Messages
6
I find something...
if i remove Card from Reader slot
NewCS start with error - "Could not get device /dev/scard"
But mgcamd have connect to NewCS
Code:
[ Newcamd ] new connection from 127.0.0.1 on socket 7
[ 14:30:23 ] [ Newcamd:20000 ] Connection from 127.0.0.1
[ 14:30:24 ] [ azbox ] Could not get device /dev/scard
[ 14:30:24 ] [ Newcamd:20000 ] User dummy logged in, client: Mgcamd
[ 14:30:24 ] [ Newcamd:20000 ] Sending Card Information to dummy:
[newcamd] Login to 127.0.0.1:20000 as dummy accepted (9ms)
[newcamd] Card data from 127.0.0.1:20000 (24ms):
Userid 2 caid 0 providers 1
Idents: 000000

If i insert card to slot, NewCS found card
But mgcamd lost connection
Code:
[ 14:33:48 ] [ Loader ] Init *** card
[ 14:33:48 ] [ *** ] BOXID: ********
[ 14:33:48 ] [ *** ] CAID: 091D
[ 14:33:48 ] [ Keyman ] Adding key 6BA38 type 0 on Provider 000000 for caid 091D ID=0
[ 14:33:48 ] [ Keyman ] Adding key 6BA00 type 1 on Provider 000000 for caid 091D ID=0
[newcamd] Connecting to 127.0.0.1:20000...
[newcamd] Connection to 127.0.0.1:20000 failed (8ms)
 

nivanescu

Registered
Messages
27
It does not lose connection, mgcamd remains connected, that last message is because you probably did not delete options <hostname>127.0.0.1</hostname> and <port>12000</port> from your newcs.xml file. You must let only name and password for users. Also you must put autosid to yes or else you will not get anything from newcs. Connection has nothing to do with card inserted or not.
 

qswi3120

Registered
Messages
2
I already delete host and port parameters from Newcastle config

Hello Sandr

I am trying to load newcs1.6.13+mgcamd1.35 on azbox version 0.9.5309
Not functioning at all, please let me know if you managed to make it work. Where can I see the logs btw?

I'd try the server newcs on original FW 0.9.5309 against client mgsamd/Ccam... on E2 kernel 3.4.4

thanks
 
Top