PDA

View Full Version : N3 in phoenix pe pc cu linux



sosozah
26-12-09, 18:32
Salut, incerc sa fac sa mearga un card N3 in interfata phoenix pe un PC cu linux si nu reusesc.
Am instalat un Debian, am pus CCCam 2.1.3 si functioneaza.
Am copiat si newcs 1.67 (newcs.i686 e fisierul, sper ca asta trebuie) si in log am mesajul:
[ 20:18:30 ] [ Box detect ] Box type 1
[ 20:18:30 ] [ Config ] /dev/ttyS0 ECM priority: round
[ 20:18:30 ] [ Newcamd ] Server name : newcs
[ 20:18:30 ] [ Newcamd ] Des key : 0102030405060708091011121314
[ 20:18:30 ] [ Newcamd ] User 2: user_local, Pass: pass_local, Host 127.0.0.1, Port: 0, Au: On, Spider allowed: No, Sidoverride: No, level: 0
[ 20:18:30 ] [ EMM Cache ] Initialising Cache with 20 entries
[ 20:18:30 ] [ ECM Cache ] Initialising dynamic Cache
[ 20:18:30 ] [ Loader ] Reader type 5 on node /dev/ttyS0
[ 20:18:30 ] [ Sci ] Opening device /dev/ttyS0
[ 20:18:30 ] [ Sci ] No card present in reader
[ 20:18:30 ] [ Loader ] Reset failed ...
[ 20:18:30 ] [ Loader ] Starting Newcamd Server on port 34000
[ 20:18:30 ] [ Loader ] Starting Radegast Server on port 18000
[ 20:18:45 ] [ SockSrv ] Socket 7 hung up
Bk si rsa le-am scos in 2008 sau 2009 la inceput, nu mai tin minte daca inainte sau dupa schimbarea cardului. Banuiesc ca oricum bk e acelasi, numai rsa difera la n3. Cum trebuie sa arate in acest caz?
Cardul e albastru pe o parte si rosu cu alb pe cealalta. Ce revizie e?
Sper sa reusesc ceva pina la anul, ca imi bat capul si cu asta si cu un ipbox 900, cu niciuna nu o scot la capat.

goldsat
26-12-09, 21:09
ia uite aici
[ 20:18:30 ] [ Sci ] No card present in reader

nu e cardu bagat

amorak
26-12-09, 23:10
daca ai cardul introdus poate l-ai bagat cu sim-ul in jos, baga-l invers cu sim-ul (contactele) in sus :)

zmeura
27-12-09, 01:36
Bk si RSA sunt aceleasi.

sosozah
27-12-09, 08:54
Cum e prima data cind ma joc cu o interfata phoenix, se pare ca am configurat gresit newcs.xml-ul. Am facut copy/paste dintr-un config si am pus:
<type>sci</type>
Pe urma citind pe net am gasit ca pentru phoenix se pune:
<type>phoenix</type>
Acum log-ul arata asa:
[ 10:34:00 ] [ Box detect ] Box type 1
[ 10:34:00 ] [ Config ] /dev/ttyS0 ECM priority: round
[ 10:34:00 ] [ Newcamd ] Server name : newcs
[ 10:34:00 ] [ Newcamd ] Des key : 0102030405060708091011121314
[ 10:34:00 ] [ Newcamd ] User 2: user_local, Pass: pass_local, Host 127.0.0.1, Port: 0, Au: On, Spider allowed: No, Sidoverride: No, level: 0
[ 10:34:00 ] [ EMM Cache ] Initialising Cache with 20 entries
[ 10:34:00 ] [ ECM Cache ] Initialising dynamic Cache
[ 10:34:00 ] [ Loader ] Reader type 2 on node /dev/ttyS0
[ 10:34:00 ] [ Phoenix ] Opening device /dev/ttyS0
[ 10:34:00 ] [ Phoenix ] Setting Parity to: ODD
[ 10:34:00 ] [ Phoenix ] Setting 1 Stop bit on node /dev/ttyS0
[ 10:34:00 ] [ Phoenix ] Setting Baud to standard 9600
[ 10:34:01 ] [ Phoenix ] Normal RESET on node /dev/ttyS0
dar tot nu comunica cu CCcam.

zmeura
27-12-09, 13:16
Nu mai este nimic in continuare?Pune newcs.xml fara bk si rsa.

sosozah
27-12-09, 19:05
<?xml version="1.0"?>
<newCSconfig>
<readers name="Phoenix">
<device>
<name>Phoenix Interface</name>
<type>phoenix</type>
<mhz>357</mhz>
<node>/dev/ttyS0</node>
<export>Yes</export>
<enabled>Yes</enabled>
<blocksa>No</blocksa>
<blockua>No</blockua>
<blockga>No</blockga>
<boxkey>bk</boxkey>
<rsa>rsa</rsa>
<crypto-special>No</crypto-special>
<PTShandshake>Yes</PTShandshake>
<carddetect>Yes</carddetect>
<newcamd_port>34000</newcamd_port>
<autosid>No</autosid>
<Seca-PPV>No</Seca-PPV>
<sid>
<allow>
<id></id>
</allow>
<deny>
<id></id>
</deny>
</sid>
<priority>round</priority>
</device>
</readers>
<radegastserver>
<!-- valid value for enable are:
0,1 - Enable or Disable radegast server. -->
<enabled>Yes</enabled>

<!-- valid value for port are:
0,65535 - Which port to listen for incomming connections. -->
<port>18000</port>

<!-- valid value for allow are:
ALL - Not active yet. -->
<allow>
<hostname>127.0.0.1</hostname>
<hostname>all</hostname>
</allow>
</radegastserver>

<cache>
<emm>20</emm>
<ecm>-1</ecm>
</cache>
<httpd>
<server>
<port>8080</port>
<enabled>yes</enabled>
</server>
<user>
<name>newcs</name>
<password>newcs</password>
<accesslevel>admin</accesslevel>
</user>
</httpd>
<debug>
<level>normal</level>
<type>all</type>
<output>file</output>
<logfile>/tmp/newcs.txt</logfile>
<console_options>normal</console_options>
<file_options>file</file_options>
<udp_host>192.168.1.65</udp_host>
<udp_port>1000</udp_port>
<udp_options>normal</udp_options>
<tcp_port>3001</tcp_port>
<tcp_options>normal</tcp_options>
</debug>
<newcamdserver>
<enabled>yes</enabled>
<deskey>01 02 03 04 05 06 07 08 09 10 11 12 13 14</deskey>
<name>newcs</name>
<userfile>/tmp/newcamdserver.txt</userfile>
<user>
<name>user_local</name>
<password>pass_local</password>
<hostname>127.0.0.1</hostname>
<port></port>
<au>on</au>
<spider>no</spider>
<allow>Phoenix</allow>
</user>
</newcamdserver>
</newCSconfig>
Asta e newcs.xml pe care l-am folosit.

zmeura
28-12-09, 02:11
Incearca asa:


<?xml version="1.0"?>
<newCSconfig>
<readers name="Standard Phoenix on PC">
<device>
<name>Phoenix</name>
<type>phoenix</type>
<mhz>368</mhz>
<node>/dev/ttyS0</node>
<parity>odd</parity>
<reset>normal</reset>
<export>Yes</export>
<enabled>Yes</enabled>
<blocksa>No</blocksa>
<blockua>No</blockua>
<blockga>No</blockga>
<boxkey>bk</boxkey>
<rsa>rsa</rsa>
<carddetect>Yes</carddetect>
<newcamd_port>34000</newcamd_port>
<autosid>Yes</autosid>
<priority>round</priority>
</device>
</readers>
<radegastserver>
<enabled>Yes</enabled>
<port>18000</port>
<allow>
<hostname>127.0.0.1</hostname>
<hostname>all</hostname>
</allow>
</radegastserver>
<cache>
<emm>20</emm>
<ecm>-1</ecm>
</cache>
<httpd>
<server>
<port>8080</port>
<enabled>yes</enabled>
</server>
<user>
<name>newcs</name>
<password>newcs</password>
<accesslevel>admin</accesslevel>
</user>
</httpd>
<debug>
<level>normal</level>
<type>all</type>
<output>file</output>
<logfile>/tmp/newcs.txt</logfile>
<console_options>normal</console_options>
<file_options>file</file_options>
<udp_host>192.168.1.65</udp_host>
<udp_port>1000</udp_port>
<udp_options>normal</udp_options>
<tcp_port>3001</tcp_port>
<tcp_options>normal</tcp_options>
</debug>
<newcamdserver>
<enabled>Yes</enabled>
<name>newcs</name>
<deskey>01 02 03 04 05 06 07 08 09 10 11 12 13 14</deskey>
<user>
<name>user_local</name>
<password>pass_local</password>
<au>on</au>
<sidoverride>off</sidoverride>
<hostname>127.0.0.1</hostname>
<port>34000</port>
</user>
</newcamdserver>
</newCSconfig>


Oricum sunt multe alte chestii de acolo care ridica semne de intrebare.Normal daca nu folosesti radegastserver ar trebui sa elimini ce e legat de el de acolo,adica:


<radegastserver>
<enabled>Yes</enabled>
<port>18000</port>
<allow>
<hostname>127.0.0.1</hostname>
<hostname>all</hostname>
</allow>
</radegastserver>


Nu inteleg de ce e pus prima data

<hostname>127.0.0.1</hostname> ca apoi sa apara

<hostname>all</hostname>

La partea de debug din nou nu stiu daca intradevar controlezi ce e acolo.Oricum ar trebui sa mearga si asa,doar sa fii atent la lini N care o compui dupa ce e aici:


<newcamdserver>
<enabled>Yes</enabled>
<name>newcs</name>
<deskey>01 02 03 04 05 06 07 08 09 10 11 12 13 14</deskey>
<user>
<name>user_local</name>
<password>pass_local</password>
<au>on</au>
<sidoverride>off</sidoverride>
<hostname>127.0.0.1</hostname>
<port>34000</port>
</user>
</newcamdserver>
sau dupa ce e in radegastserver,depinde cum te legi mai departe.

sosozah
28-12-09, 08:50
Am incercat cu config-ul postat de tine si asta a fost raspunsul:

[ 10:32:30 ] [ Box detect ] Box type 1
[ 10:32:30 ] [ Config ] Option <crypto-special> for device 0 (Phoenix) not present, defaulting to NO
[ 10:32:30 ] [ Config ] Option <PTShandshake> for device 0 (Phoenix) not present, defaulting to NO
[ 10:32:30 ] [ Config ] Option <Seca-PPV> for device 0 (Phoenix) not present, defaulting to NO
[ 10:32:30 ] [ Config ] /dev/ttyS0 ECM priority: round
[ 10:32:30 ] [ Newcamd ] Server name : newcs
[ 10:32:30 ] [ Newcamd ] Des key : 0102030405060708091011121314
[ 10:32:30 ] [ Config ] Option <spider> not present for User: user_local, defaulting to NO
[ 10:32:30 ] [ Newcamd ] User 2: user_local, Pass: pass_local, Host 127.0.0.1, Port: 34000, Au: On, Spider allowed: No, Sidoverride: No, level: 0
[ 10:32:30 ] [ EMM Cache ] Initialising Cache with 20 entries
[ 10:32:30 ] [ ECM Cache ] Initialising dynamic Cache
[ 10:32:30 ] [ Loader ] Reader type 2 on node /dev/ttyS0
[ 10:32:30 ] [ Phoenix ] Opening device /dev/ttyS0
[ 10:32:30 ] [ Phoenix ] Setting Parity to: ODD
[ 10:32:30 ] [ Phoenix ] Setting 1 Stop bit on node /dev/ttyS0
[ 10:32:30 ] [ Phoenix ] Setting Baud to custom 9909
[ 10:32:30 ] [ Phoenix ] Normal RESET on node /dev/ttyS0
[ 10:32:32 ] [ ATR ] T=8 1etu=0.27us Guardtime:12etu WWT:-9600etu
[ 10:32:32 ] [ ATR ] Historical bytes: [80] x [FF] [00] C [00] B G @ I H 8 [00] : [00]
[ 10:32:32 ] [ ATR ] WARNING! You are overclocking your card: 1.000Mhz (Max -1.000Mhz)
[ 10:32:32 ] [ Loader ] Init Nagra card
[ 10:32:32 ] [ Phoenix ] Setting Parity to: ODD
[ 10:32:32 ] [ Phoenix ] Setting 1 Stop bit on node /dev/ttyS0
[ 10:32:32 ] [ Phoenix ] Setting Baud to custom 3686400
[ 10:32:32 ] [ Phoenix ] Echo mismatch
[ 10:32:32 ] [ Phoenix ] Echo mismatch
[ 10:32:32 ] [ Loader ] Card 1800 on port /dev/ttyS0 failed
[ 10:32:32 ] [ Loader ] Starting Newcamd Server on port 34000
[ 10:32:32 ] [ Loader ] Starting Radegast Server on port 18000
[ 10:32:32 ] [ NewCS ] Ready to GO! :)
[ 10:32:32 ] [ Loader ] Reinit card with caid 1800
[ 10:32:32 ] [ Phoenix ] Normal RESET on node /dev/ttyS0
[ 10:32:33 ] [ Phoenix ] Setting Parity to: ODD
[ 10:32:33 ] [ Phoenix ] Setting 1 Stop bit on node /dev/ttyS0
[ 10:32:33 ] [ Phoenix ] Setting Baud to custom 3686400
[ 10:32:33 ] [ Phoenix ] Echo mismatch
[ 10:32:33 ] [ Phoenix ] Echo mismatch
[ 10:32:33 ] [ Loader ] Reinit card with caid 1800
[ 10:32:33 ] [ Phoenix ] Normal RESET on node /dev/ttyS0
[ 10:32:34 ] [ Phoenix ] Setting Parity to: ODD
[ 10:32:34 ] [ Phoenix ] Setting 1 Stop bit on node /dev/ttyS0
[ 10:32:34 ] [ Phoenix ] Setting Baud to custom 3686400
[ 10:32:34 ] [ Phoenix ] Echo mismatch
[ 10:32:34 ] [ Loader ] Reinit card with caid 1800
[ 10:32:34 ] [ Phoenix ] Normal RESET on node /dev/ttyS0
[ 10:32:35 ] [ Phoenix ] Setting Parity to: ODD
[ 10:32:35 ] [ Phoenix ] Setting 1 Stop bit on node /dev/ttyS0
[ 10:32:35 ] [ Phoenix ] Setting Baud to custom 3686400
[ 10:32:35 ] [ Phoenix ] Echo mismatch
[ 10:32:35 ] [ Loader ] Reinit card with caid 1800
[ 10:32:35 ] [ Phoenix ] Normal RESET on node /dev/ttyS0
[ 10:32:36 ] [ Phoenix ] Setting Parity to: ODD
[ 10:32:36 ] [ Phoenix ] Setting 1 Stop bit on node /dev/ttyS0
[ 10:32:36 ] [ Phoenix ] Setting Baud to custom 3686400
[ 10:32:36 ] [ Phoenix ] Echo mismatch
[ 10:32:36 ] [ Loader ] Reinit card with caid 1800
[ 10:32:36 ] [ Phoenix ] Normal RESET on node /dev/ttyS0
[ 10:32:37 ] [ Phoenix ] Setting Parity to: ODD
[ 10:32:37 ] [ Phoenix ] Setting 1 Stop bit on node /dev/ttyS0
[ 10:32:37 ] [ Phoenix ] Setting Baud to custom 3686400
[ 10:32:37 ] [ Phoenix ] Echo mismatch
Daca pun 3,57Mhz cum aveam inainte in cfg am in log:

[ 10:43:54 ] [ Box detect ] Box type 1
[ 10:43:54 ] [ Config ] Option <crypto-special> for device 0 (Phoenix) not present, defaulting to NO
[ 10:43:54 ] [ Config ] Option <PTShandshake> for device 0 (Phoenix) not present, defaulting to NO
[ 10:43:54 ] [ Config ] Option <Seca-PPV> for device 0 (Phoenix) not present, defaulting to NO
[ 10:43:54 ] [ Config ] /dev/ttyS0 ECM priority: round
[ 10:43:54 ] [ Newcamd ] Server name : newcs
[ 10:43:54 ] [ Newcamd ] Des key : 0102030405060708091011121314
[ 10:43:54 ] [ Config ] Option <spider> not present for User: user_local, defaulting to NO
[ 10:43:54 ] [ Newcamd ] User 2: user_local, Pass: pass_local, Host 127.0.0.1, Port: 34000, Au: On, Spider allowed: No, Sidoverride: No, level: 0
[ 10:43:54 ] [ EMM Cache ] Initialising Cache with 20 entries
[ 10:43:54 ] [ ECM Cache ] Initialising dynamic Cache
[ 10:43:54 ] [ Loader ] Reader type 2 on node /dev/ttyS0
[ 10:43:54 ] [ Phoenix ] Opening device /dev/ttyS0
[ 10:43:54 ] [ Phoenix ] Setting Parity to: ODD
[ 10:43:54 ] [ Phoenix ] Setting 1 Stop bit on node /dev/ttyS0
[ 10:43:54 ] [ Phoenix ] Setting Baud to standard 9600
[ 10:43:54 ] [ Phoenix ] Normal RESET on node /dev/ttyS0
[ 10:43:55 ] [ ATR ] T=1 1etu=8.96us Guardtime:11etu CWT:139etu BWT:15371etu WWT:153600etu
[ 10:43:55 ] [ ATR ] Historical bytes: D N A S P 1 4 2 R e v G 0 2
[ 10:43:55 ] [ Loader ] Init Nagra card
[ 10:43:55 ] [ Phoenix ] Setting Parity to: ODD
[ 10:43:55 ] [ Phoenix ] Setting 1 Stop bit on node /dev/ttyS0
[ 10:43:55 ] [ Phoenix ] Setting Baud to custom 111600
[ 10:44:00 ] [ Keyman ] Adding key 2049xxxx type 0 on Provider 000000 for caid 1800 ID=0
[ 10:44:02 ] [ Keyman ] Adding key 2049xxxx type 1 on Provider 00204E for caid 1800 ID=0
[ 10:44:02 ] [ Keyman ] Adding key 2049xxxx type 1 on Provider 00214E for caid 1800 ID=0
Pe radegast nu vine nimic la CCCam. O sa incerc diseara sa vad pe newcamd.

sosozah
30-12-09, 00:25
Mai departe nu vrea sa mearga nicicum. Am incercat si la 6 Mhz, se comporta la fel ca la 3.57, dupa cele 3 rinduri Keyman nu mai face nimic.
Am inceput sa am dubii in privinta beka si resea. Cu jkeys si def pentru n3, trebuie sa pun la IRD model HNS 1160 sau pe neagra3? Ca obtin coduri diferite.

zmeura
30-12-09, 01:26
Cum apare in ultima fereastra e bine,a initilizat cardul si e in regula.Nu vad sa se fi logat ca user cineva si sa nu fie mai departe problema,la linia N.

sosozah
30-12-09, 17:35
Nu ar trebui sa mai apara citeva rinduri de genul:
[ 23:48:08 ] [ Nagra ] using rsa key from config.
[ 23:48:09 ] [ Loader ] Card 1801 on port /dev/sci0 ready
[ 23:48:09 ] [ Loader ] Starting Newcamd Server on port 20000
[ 23:48:09 ] [ Loader ] Starting Radegast Server on port 16000
[ 23:48:09 ] [ NewCS ] Ready to GO!
[ 23:48:09 ] [ Newcamd ] Newcamd thread Server started on port 20000
newcamd: main loop
?
Asa am gasit pe net si tot asteptam sa primesc si eu mesajele astea. Am facut de proba un server newcs pe windows si reactioneaza la fel ca cel pe linux.

sosozah
30-12-09, 19:26
Am gasit greseala: nu stiu de unde am luat newcs ca, desi cautam v 1.67, era o versiune mai veche si probabil nu stia sa se descurce cu N3.
Acum functioneaza:
21:15:11 ] [ Nagra ] using rsa key from config.
[ 21:15:11 ] [ Loader ] Card 1801 on port /dev/ttyS0 ready
[ 21:15:11 ] [ Loader ] Starting Newcamd Server on port 34000
[ 21:15:11 ] [ Newcamd ] Newcamd thread Server started on port 34000
[ 21:15:11 ] [ Newcamd:34000 ] Connection from 127.0.0.1
[ 21:15:11 ] [ Newcamd:34000 ] Can't decrypt client msg, rejecting!
[ 21:15:11 ] [ Newcamd:34000 ] User user_local logout
[ 21:15:11 ] [ Loader ] Starting Radegast Server on port 18000
[ 21:15:11 ] [ NewCS ] Ready to GO! :)
[ 21:16:37 ] [ SockSrv ] New connection from 127.0.0.1 on socket 9
[ 21:18:43 ] [ Nagra ] using rsa key from config.
[ 21:20:43 ] [ Nagra ] using rsa key from config.
[ 21:22:49 ] [ Nagra ] using rsa key from config.

airboy
28-01-10, 09:50
Imi explica si mie, cineva mai patit, de ce face asa? :


Pe boxa i386, cu newcs.xml initializeaza frumos cardul, dupa care, la final zice asa:

[ 21:15:11 ] [ Phoenix ] Setting 2 Stop bits on node /dev/ttyUSB0
...
[ 21:15:11 ] [ Loader ] Card 1801 on port /dev/ttyUSB0 ready

Pana aici OK, daca pun cititorul cu card cu tot pe Openwrt (Router Topex), cu acelasi adaptor USB la serial:

[ 10:32:32 ] [ Loader ] Init Nagra card
[ 10:32:32 ] [ Phoenix ] Setting Parity to: ODD
[ 10:32:32 ] [ Phoenix ] Setting 1 Stop bit on node /dev/usb/tts/0
[ 10:32:32 ] [ Phoenix ] Setting Baud to standard 115200
[ 10:32:32 ] [ Loader ] Card 1800 on port /dev/ttyS0 failed
si o ia de la capat cu initializarea, informatiile legate de card ( ATR ) le afiseaza (Nagra 2, RevAC6...), dar nu-l initializeaza.
E vorba de acelasi newcs.xml, bineinteles, modificat configurl pentru portul serial.
Idei?

airboy
29-01-10, 09:36
Un log curat si complet, mai sus pusesem din amintiri: Rog pareri!



[ 16:01:08 ] [ Loader ] Reader type 2 on node /dev/usb/tts/0
[ 16:01:08 ] [ Phoenix ] Opening device /dev/usb/tts/0
[ 16:01:08 ] [ Phoenix ] Setting Parity to: ODD
[ 16:01:08 ] [ Phoenix ] Setting 2 Stop bits on node /dev/usb/tts/0
[ 16:01:08 ] [ Phoenix ] Setting Baud to standard 9600
[ 16:01:09 ] [ Phoenix ] Normal RESET on node /dev/usb/tts/0
[ 16:01:11 ] [ ATR ] T=1 1etu=8.68us Guardtime:11etu CWT:139etu BWT:15371etu WWT:153600etu
[ 16:01:11 ] [ ATR ] Historical bytes: D N A S P 1 1 0 R e v A C 6
[ 16:01:11 ] [ Loader ] Init Nagra card
[ 16:01:11 ] [ Phoenix ] Setting Parity to: ODD
[ 16:01:11 ] [ Phoenix ] Setting 2 Stop bits on node /dev/usb/tts/0
[ 16:01:11 ] [ Phoenix ] Setting Baud to standard 115200
[ 16:01:11 ] [ Loader ] Card 1800 on port /dev/usb/tts/0 failed
[ 16:01:11 ] [ Loader ] Starting Newcamd Server on port 9997
[ 16:01:11 ] [ Newcamd ] Newcamd thread Server started on port 9997