900HD - usb to rs232 external phoenix

arken

Registered
Messages
293
Hi
I am trying to setup an external phoenix card reader via usb to rs232 converter with pl2303 chipset. The card that I use is Irdeto2.
The image is SIFteam DGS based. Everything is installed and setup properly, but newcs 1.65 cant recognize my card.

Here what I do:
Code:
mknod /dev/ttyUSB0 c 188 0
chmod 666 /dev/ttyUSB0
insmod /modules/usbserial.ko
insmod /modules/pl2303.ko

lsmod shows that modules are loaded OK:
Code:
-sh-3.00# lsmod
Module                  Size  Used by    Tainted: P
whiteheat 46564 0 - Live 0xc026e000
safe_serial 7308 0 - Live 0xc01f8000
pl2303 19396 0 - Live 0xc01c2000
ir_usb 9740 0 - Live 0xc01f1000
usbserial 27496 29 whiteheat,visor,ti_usb_3410_5052,safe_serial,pl2303,omninet,n

External usb-rs232 detected OK:
Code:
-sh-3.00# dmesg | grep ttyUSB
usb 2-1: pl2303 converter now attached to ttyUSB0

My newcs.xml readers config: (I tried inverse reset, changing parity - no luck)
Code:
<newCSconfig>
	<globals>
		<listening-ip>127.0.0.1</listening-ip>
	</globals>
	<readers name="Card Readers">
		<device>
			<name>Phoenix Interface</name>
			<type>phoenix</type>
			<mhz>357</mhz>
			<node>/dev/ttyUSB0</node>
			<parity>odd</parity>
			<reset>normal</reset>
			<export>yes</export>
			<enabled>yes</enabled>
			<blocksa>No</blocksa>
			<blockua>No</blockua>
			<blockga>No</blockga>
			<!-- <boxkey>0000000000</boxkey> -->
			<PTShandshake>no</PTShandshake> 
			<crypto-special>no</crypto-special>
			<carddetect>yes</carddetect>
			<newcamd_port>10110</newcamd_port>
			<priority>round</priority> 
			<sid>
			<allow>
					<!-- valid value for id are: 
			  		4 numbers, if the service id is 3 numbers, add a 0 infront of it.	-->
			<id></id>
			</allow>
			<deny>
					<!-- valid value for id are: 
				  		4 numbers, if the service id is 3 numbers, add a 0 infront of it.	-->
			<id></id>	
			</deny>
			</sid>
		</device>
	</readers>

And newcs start log:
Code:
-sh-3.00# ./newcs-1.65
This is NewCS 1.65 - the New CardServer by the Butter-team..
Compiled on Jan 19 2009 at 17:58:37
Reading Config file from /var/tuxbox/config/newcs.xml
NewCS is trying to bind to IP: 127.0.0.1
TCP-log password is disabled!
TCP-log set to simple mode
level: verbose
type: init
output: all
logger config: level 2 type 3 output 255
Console log options: level 2 type 3
log file:
logger: cant open file , file log disabled
udp log: host 192.168.1.10 port 1000
UDP log options: level 2 type 3
TCP log options: level 2 type 3
[ 00:13:34 ] [ Box detect ] Box type 1 (General Boxtype - PC compatible)
[ 00:13:34 ] [ Config ] Option <blockc0> for device 0 (Phoenix Interface) not present, defaulting to NO
[ 00:13:34 ] [ Config ] Option <Seca-PPV> for device 0 (Phoenix Interface) not present, defaulting to NO
[ 00:13:34 ] [ Config ] /dev/ttyUSB0 ECM priority: round
[ 00:13:34 ] [ Config ] Option <spider> not present for User: dummy, defaulting to NO
[ 00:13:34 ] [ Config ] Option <spider> not present for User: dummy, defaulting to NO
[ 00:13:34 ] [ EMM Cache ] Initialising dynamic Cache
[ 00:13:34 ] [ ECM Cache ] Initialising dynamic Cache
[ NewCS ] Process ID is: 621
[ 00:13:34 ] Calibrating delay loops
[ 00:13:34 ] usleep(5) takes: 0 s 17 us
[ 00:13:34 ] usleep(10) takes: 0 s 23 us
[ 00:13:34 ] usleep(100) takes: 0 s 113 us
[ 00:13:34 ] usleep(500) takes: 0 s 511 us
[ 00:13:34 ] Allocation memory for 200 regular users
[ 00:13:34 ] [ Loader ] Starting Telnet on port 3001
[ 00:13:34 ] [ Loader ] Reader type 2 on node /dev/ttyUSB0
[ 00:13:34 ] [ Phoenix ] Opening device /dev/ttyUSB0
[ 00:13:34 ] [ Phoenix ] Setting Parity to: ODD
[ 00:13:34 ] [ Phoenix ] Setting 2 Stop bits on node /dev/ttyUSB0
[ 00:13:34 ] [ Phoenix ] Setting Baud to standard 9600
[ 00:13:35 ] [ Phoenix ] Normal RESET on node /dev/ttyUSB0
[ 00:13:36 ] [ Loader ] Unknown card
[ 00:13:36 ] [ Loader ] Trying Irdeto (T=14)
[ 00:13:36 ] [ Loader ] Reader type 2 on node /dev/ttyUSB0
[ 00:13:37 ] [ Phoenix ] Opening device /dev/ttyUSB0
[ 00:13:37 ] [ Phoenix ] Setting Parity to: ODD
[ 00:13:37 ] [ Phoenix ] Setting 2 Stop bits on node /dev/ttyUSB0
[ 00:13:37 ] [ Phoenix ] Setting Baud to custom 5713
[ 00:13:37 ] [ Phoenix ] Normal RESET on node /dev/ttyUSB0
[ 00:13:39 ] [ Loader ] Unknown card
[ 00:13:39 ] [ NewCS ] Ready to GO! :)

Where I am going wrong?

 
Last edited:

arken

Registered
Messages
293
Thanks, k2k2000. No doubt - you are one of the most competent & helpful persons in this community.
No, 6mhz trick does not work - same output.
May be the problem is in the converter - Aten UC-232A. Someone using this device?
 
Last edited:

k2k2000

Registered
Messages
727
arken
i try to help as I can :),
your card is detected ,but unknown.
maybe you need to add <irdeto-camkey> & <irdeto-camkey-data> ,to your xml config.
try with old newcs version,
you can also test with camd3.
 

arken

Registered
Messages
293
Camd3 did not recognize the card too. Tried numerous <irdeto-camkey>, <irdeto-camkey-data>, <ipk> combination - no luck.
Tried 3 different phoenix interfaces, and 2 usb-rs232 converters - no luck.
Did someone EVER has external phoenix working with ipbox900?
 

k2k2000

Registered
Messages
727
arken
try another card ,just to test your setup;
d ont power the phoenix from usb hub;

go to newcs web interface to check reader status.
http : //BOX-IP:8080
Code:
	<httpd>
		<server> <!-- Port to accept connections on -->
			<port>8080</port>
			<enabled>yes</enabled>
		</server>
		<user>
			<name>newcs</name>
			<password>newcs</password>
			<accesslevel>admin</accesslevel>
		</user>
	</httpd>
:)try your luck with nlb image.
 

arken

Registered
Messages
293
@xxxAxxx off topic, but, yes I sold it (almost gave it away), now helping of the new owner. He is a linux enthusiast, have a lots of time... I told him that he will experience a lot of joy, to be on developer edge.
BTW. My dreambox is on the way...
 
Last edited:

xxxAxxx

Super VIP
Messages
1,172
xxxAxxx
he need to setup the reader, before he can sell it..:)


BTW congratulations of ur new statu....@k2k2000

@arken

i like your signature you made a nice picture on ipbox ...same times even me i like to kick it :)

@arken

dosent mather what image you use to make card read on newcs...cos your card is runing extarnal not internal so no mather......importand newcs runing and can see the tty0 ....

you must have a problem on your xml..i beleive.....

now your card is IR2 yes?????
what provider ???
what is the card version ?????
 

xxxAxxx

Super VIP
Messages
1,172
arken
try another card ,just to test your setup;
d ont power the phoenix from usb hub;

go to newcs web interface to check reader status.
http : //BOX-IP:8080
Code:
	<httpd>
		<server> <!-- Port to accept connections on -->
			<port>8080</port>
			<enabled>yes</enabled>
		</server>
		<user>
			<name>newcs</name>
			<password>newcs</password>
			<accesslevel>admin</accesslevel>
		</user>
	</httpd>
:)try your luck with nlb image.

no need to add this xml...to telnet to newcs better and you will have more option on debug and other statu or serial number of the card and more and more
 

arken

Registered
Messages
293
The same card and phoenix are working fine on Linux PC, under newcs. So it must be either the serial converter, or the pl2303/usbserial drivers causing the problem.
Yesterday I even checked the usb to serial cable (shorted pin 2 and 3 for loopback test) and it is OK, but may be there is some incompatibility.
I connect directly to newcs telnet console to check the reader status and reset it.
Today I will buy usb-rs232 converter with ftdi chipset, and test.
 

arken

Registered
Messages
293
Today I have received my third USB-RS232 converter. Tried again - with DGS and E2 - no luck. So I give up. I don't think that I will ever use ipbox again - with any firmware.
 

k2k2000

Registered
Messages
727
@arken
any progress ?
can you verify that you have PL-2303 converter ,and not the incompatible PL2303HX ?

on pc linux machine,
Code:
lsusb -v -d 067b:2303

if
bMaxPacketSize0 = 8 OK PL-2303
if
bMaxPacketSize0 = 64 NO PL-2303HX
 

arken

Registered
Messages
293
You did it again k2k2000. :thum:
I checked 3 different adapters this way:

Bus 002 Device 003: ID 0557:2008 ATEN International Co., Ltd UC-232A Serial Port [pl2303] - Aten UC-232
Bus 002 Device 004: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port - BAFO BF-810
Bus 002 Device 005: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port - cheap chinese peace


All of them output bMaxPacketSize0 = 64. So they have newest chipset.
Please advice, when I can buy the right kind, all these adapters where advertised as pl2303. Which vendor supply usb-rs232 adapters with the oldest chipset?
Thank you
 

k2k2000

Registered
Messages
727
@arken
no need to buy new one, i think we need to req a patched pl2303.ko
The following patch modifies the driver for the Prolific PL-2303 USB-serial adapter to add support for the highly similar but incompatible PL-2303X adapter. The PL-2303X has the same vendor ID and product ID as the older PL-2303, which means that it will be incorrectly detected as a PL-2303 by the driver currently in the Linux kernel. Attempting to use a PL-2303X as a PL-2303 simply results in an inability to transfer data through the serial port. In other words, nothing happens. This patch autodetects whether a PL-2303 or a PL-2303X is used and changes the initialisation sequence accordingly.
http://anonymz.com/?http://koti.mbnet.fi/lonnberg/pl2303x.html
 

arken

Registered
Messages
293
I dont have the source of pl2303 driver for SH4/Cuberevo platform, but even i had it, I am not sure that this patch will work on it. I can just hope that cuberevo dev's will compile the patched driver for their kernel, and release it like pl2303x.ko or something...

BTW. I found on internet that Sabrent SBT-USC1K, is using the old pl2303 chipset, can someone confirm using it with cuberevo?
 
Last edited:
Top