проблемы Phoenix

suren1977

Новичок
такая ситуация:

настроил newcs 1.67 на freebsd 7.02 с phoenix-ридером.
newcs слушает на udp и tcp, но отвечает 'destination port unreachable' на запрос опенбокса (который связан с сервером через cambridge). запрос приходит на udp, поэтому думаю что протокол camd3, вроде бы cambridge только на нем и работает? помогите разобраться, почему newcs не отвечает опену.

newcs.xml:

Код:
<?xml version="1.0"?>
<newCSconfig>
<!--    <globals>
        <listening-ip>192.168.1.10</listening-ip>
    </globals>
    -->
    <readers name="Standard Phoenix on PC">
        <device>
            <name>Arman's Phoenix on Com1</name>
            <type>phoenix</type>
            <mhz>368</mhz>
            <node>/dev/ttyd0</node>
            <parity>odd</parity>
            <reset>normal</reset>
            <export>Yes</export>
            <enabled>Yes</enabled>
            <blocksa>No</blocksa>
            <blockua>No</blockua>
            <blockga>No</blockga>
            <blockC0>Yes</blockC0>
            <carddetect>no</carddetect>
            <newcamd_port>15050</newcamd_port>
            <autosid>Yes</autosid>
            <pincode>0000</pincode>
            <priority>round</priority>
        </device>
    </readers>
    <radegastserver>
            <enabled>No</enabled>
            <port>10001</port>
            <allow>
                <hostname>localhost</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>
            <password>NewCSpwd</password>
            <mode>simple</mode>
            <level>internal</level>
            <type>all</type>
            <output>console,tcp</output>
            <tcp_port>1001</tcp_port>
            <tcp_options>normal,init</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>test</name>
                <password>test</password>
                <au>on</au>
                <readers>
                    <allow>Arman's Phoenix on Com1</allow>
                </readers>
                <sidoverride>off</sidoverride>
                <spider>No</spider>
                                <cardlevel>1</cardlevel>
            </user>
    </newcamdserver>
        <chameleon2>
                <server>
                        <port>1234</port>
                        <enabled>no</enabled>
                        <realm>myShares</realm>
                </server>
                <peer>
                        <hostname>remote</hostname>
                        <port>1234</port>
                        <name>myname</name>
                        <password>mypassword</password>
                        <realm>myShares</realm>
                </peer>
                <user>
                        <name>myname</name>
                        <password>mypassword</password>
                        <realm>myShares</realm>
                </user>
        </chameleon2>
</newCSconfig>

Код:
TCP log options: level 1 type 255
[ 01:45:22 ] [ Box detect ] Can't open cpuinfo, assuming you use PC!
[ 01:45:22 ] [ Config ] Option <blockc0> for device 0 (Arman's Phoenix on Com1) not present, defaulting to NO
[ 01:45:22 ] [ Config ] Option <crypto-special> for device 0 (Arman's Phoenix on Com1) not present, defaulting to NO
[ 01:45:22 ] [ Config ] Option <PTShandshake> for device 0 (Arman's Phoenix on Com1) not present, defaulting to NO
[ 01:45:22 ] [ Config ] Option <Seca-PPV> for device 0 (Arman's Phoenix on Com1) not present, defaulting to NO
[ 01:45:22 ] [ Config ] Pincode for device 0 (Arman's Phoenix on Com1): 0000
[ 01:45:22 ] [ Config ] Option <sid> for device 0 (Arman's Phoenix on Com1) not present, no static sids added to filter
[ 01:45:22 ] [ Config ] Option <protectedsid> for device 0 (Arman's Phoenix on Com1) not present, no PIN Code will be sent
[ 01:45:22 ] [ Config ] /dev/ttyd0 ECM priority: round
ioctl(SIOCGIFHWADDR): No such file or directory
[ 01:45:22 ] [ Chameleon2 ] Adding name myname on destination remote (Realm: myShares) on port 1234 - 0x80d7cf8 [ op ptr  0x80d8d20 ]
[ 01:45:22 ] [ Newcamd ] Server name : newcs
[ 01:45:22 ] [ Newcamd ] Des key     : 0102030405060708091011121314
[ 01:45:22 ] [ Config ] Option <hostname> or <port> not present for User: test, DISABLING reverse login
[ 01:45:22 ] [ Newcamd ] User 2: test, Pass: test, Host none, Port: 0, Au: On, Spider allowed: No, Sidoverride: No, level: 1
[ 01:45:22 ] [ httpd ] httpd-user: newcs, password: newcs, accesslevel: admin
[ 01:45:22 ] [ EMM Cache ] Initialising dynamic Cache
[ 01:45:22 ] [ ECM Cache ] Initialising dynamic Cache
[ NewCS ] Process ID is: 963
[ 01:45:22 ] Calibrating delay loops
[ 01:45:22 ] usleep(5) takes: 0 s 10 us
[ 01:45:22 ] usleep(10) takes: 0 s 16 us
[ 01:45:22 ] usleep(100) takes: 0 s 104 us
[ 01:45:22 ] usleep(500) takes: 0 s 504 us
[ 01:45:22 ] Allocation memory for 200 regular users
[ 01:45:22 ] [ Loader ] Starting Telnet on port 1001
[ 01:45:22 ] [ SockSrv ] Server thread started
[ 01:45:22 ] [ Loader ] Started HTTP-server on port: 8080
[ 01:45:22 ] [ Loader ] Reader type 2 on node /dev/ttyd0
[ 01:45:22 ] [ CardMan ] Reseting reader parameters
[ 01:45:22 ] [ Phoenix ] Opening device /dev/ttyd0
[ 01:45:22 ] [ Phoenix ] Setting Parity to: ODD
[ 01:45:22 ] [ Phoenix ] Setting 2 Stop bits on node /dev/ttyd0
[ 01:45:22 ] [ Phoenix ] Setting Baud to standard 9600
[ 01:45:23 ] [ Phoenix ] Normal RESET on node /dev/ttyd0
[ 01:45:25 ] [ Serial ] Read on fd 9 (len=12 timeout=5300ms)
[ 01:45:25 ] Phoenix_read: 
0000: 03 11 e7 ff ff bc 1d fd ff e9 f6 ff              ............

[ 01:45:25 ] [ CardMan ] Atr header is 3F 77 [INVERSE]
[ 01:45:25 ] [ ATR ] Data: 
0000: 3f 77 18 00 00 c2 47 40 00 68 90 00 00 00 00 00  [email protected]......
0010: 00                                               .

[ 01:45:25 ] [ ATR ] T=0  1etu=8.41us  Guardtime:12etu  WWT:115200etu
[ 01:45:25 ] [ ATR ] Historical bytes: [C2] G @ [00] h [90] [00] 
[ 01:45:25 ] [ Loader ] Init Viaccess card
[ 01:45:25 ] Card reader locked for reader Arman's Phoenix on Com1 [/dev/ttyd0]
[ 01:45:25 ] [ Phoenix ] Setting Parity to: ODD
[ 01:45:25 ] [ Phoenix ] Setting 2 Stop bits on node /dev/ttyd0
[ 01:45:25 ] [ Phoenix ] Setting Baud to standard 9600
[ 01:45:25 ] [ Viaccess ] Sending to Card: CAA4000000
[ 01:45:25 ] Phoenix_write: 
0000: ca a4 00 00 00                                   .....

[ 01:45:25 ] [ Serial ] Write on fd 9 (len=5)
[ 01:45:25 ] [ Serial ] Read on fd 9 (len=5 timeout=1469ms)
[ 01:45:26 ] [ Serial ] Read timeout (0 of 5)
[ 01:45:26 ] [ Phoenix ] Failed to read echo (res=0, size=5)
[ 01:45:26 ] Card reader unlocked for reader Arman's Phoenix on Com1 [/dev/ttyd0]
[ 01:45:26 ] [ Loader ] Card 0500 on port /dev/ttyd0 failed
[ 01:45:26 ] [ Loader ] Starting Newcamd Server on port 15050
[ 01:45:26 ] [ Card queue /dev/ttyd0 ] Starting...
[ 01:45:26 ] [ NewCS ] Ready to GO! :)
[ 01:45:26 ] [ Newcamd ] Newcamd thread Server started on port 15050
 

rassel

Пользователь
Мне кажется , что NEWCS не работает поэтому протоколу, переходи на MPCS
 
Сверху