pacs系统Debugging with DCMTK_樊镪闱的博客-程序员ITS304

技术标签: dcmkt  dcm  

1.系统组成:     CT 设备 连接  pacs服务器实现数据下载功能。

2.pacs系统配置和搭建参考网站:https://support.dcmtk.org/redmine/projects/dcmtk/wiki/Howto_PACSDebuggingWithDCMTK

3.配置完成之后测了下本地与服务器连接是否正常:

[email protected]:~/Project$ echoscu -d 220.0.5.55 1111 -aec ACME_STORE -aet jjkj
D: $dcmtk: echoscu v3.6.4 2018-11-29 $
D:
D: DcmDataDictionary: Loading file: /usr/local/share/dcmtk/dicom.dic
D: Request Parameters:
D: ====================== BEGIN A-ASSOCIATE-RQ =====================
D: Our Implementation Class UID:      1.2.276.0.7230010.3.0.3.6.4
D: Our Implementation Version Name:   OFFIS_DCMTK_364
D: Their Implementation Class UID:    
D: Their Implementation Version Name:
D: Application Context Name:    1.2.840.10008.3.1.1.1
D: Calling Application Name:    jjkj
D: Called Application Name:     ACME_STORE
D: Responding Application Name: ACME_STORE
D: Our Max PDU Receive Size:    16384
D: Their Max PDU Receive Size:  0
D: Presentation Contexts:
D:   Context ID:        1 (Proposed)
D:     Abstract Syntax: =VerificationSOPClass
D:     Proposed SCP/SCU Role: Default
D:     Proposed Transfer Syntax(es):
D:       =LittleEndianImplicit
D: Requested Extended Negotiation: none
D: Accepted Extended Negotiation:  none
D: Requested User Identity Negotiation: none
D: User Identity Negotiation Response:  none
D: ======================= END A-ASSOCIATE-RQ ======================
I: Requesting Association
D: setting network send timeout to 60 seconds
D: setting network receive timeout to 60 seconds
D: Constructing Associate RQ PDU
F: Association Rejected:
F: Result: Rejected Permanent, Source: Service User
F: Reason: Called AE Title Not Recognized

[email protected]:~/Project$
[email protected]:~/Project$
[email protected]Fixed-up-to-11:~/Project$
[email protected]:~/Project$ echoscu -d 127.0.0.1 1111 -aec ACME_STORE -aet jjkj
D: $dcmtk: echoscu v3.6.4 2018-11-29 $
D:
D: DcmDataDictionary: Loading file: /usr/local/share/dcmtk/dicom.dic
D: Request Parameters:
D: ====================== BEGIN A-ASSOCIATE-RQ =====================
D: Our Implementation Class UID:      1.2.276.0.7230010.3.0.3.6.4
D: Our Implementation Version Name:   OFFIS_DCMTK_364
D: Their Implementation Class UID:    
D: Their Implementation Version Name:
D: Application Context Name:    1.2.840.10008.3.1.1.1
D: Calling Application Name:    jjkj
D: Called Application Name:     ACME_STORE
D: Responding Application Name: ACME_STORE
D: Our Max PDU Receive Size:    16384
D: Their Max PDU Receive Size:  0
D: Presentation Contexts:
D:   Context ID:        1 (Proposed)
D:     Abstract Syntax: =VerificationSOPClass
D:     Proposed SCP/SCU Role: Default
D:     Proposed Transfer Syntax(es):
D:       =LittleEndianImplicit
D: Requested Extended Negotiation: none
D: Accepted Extended Negotiation:  none
D: Requested User Identity Negotiation: none
D: User Identity Negotiation Response:  none
D: ======================= END A-ASSOCIATE-RQ ======================
I: Requesting Association
D: setting network send timeout to 60 seconds
D: setting network receive timeout to 60 seconds
D: Constructing Associate RQ PDU
D: PDU Type: Associate Accept, PDU Length: 184 + 6 bytes PDU header
D:   02  00  00  00  00  b8  00  01  00  00  41  43  4d  45  5f  53
D:   54  4f  52  45  20  20  20  20  20  20  6a  6a  6b  6a  20  20
D:   20  20  20  20  20  20  20  20  20  20  00  00  00  00  00  00
D:   00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00
D:   00  00  00  00  00  00  00  00  00  00  10  00  00  15  31  2e
D:   32  2e  38  34  30  2e  31  30  30  30  38  2e  33  2e  31  2e
D:   31  2e  31  21  00  00  19  01  00  00  00  40  00  00  11  31
D:   2e  32  2e  38  34  30  2e  31  30  30  30  38  2e  31  2e  32
D:   50  00  00  3a  51  00  00  04  00  00  40  00  52  00  00  1b
D:   31  2e  32  2e  32  37  36  2e  30  2e  37  32  33  30  30  31
D:   30  2e  33  2e  30  2e  33  2e  36  2e  34  55  00  00  0f  4f
D:   46  46  49  53  5f  44  43  4d  54  4b  5f  33  36  34
D: Parsing an A-ASSOCIATE PDU
D: Association Parameters Negotiated:
D: ====================== BEGIN A-ASSOCIATE-AC =====================
D: Our Implementation Class UID:      1.2.276.0.7230010.3.0.3.6.4
D: Our Implementation Version Name:   OFFIS_DCMTK_364
D: Their Implementation Class UID:    1.2.276.0.7230010.3.0.3.6.4
D: Their Implementation Version Name: OFFIS_DCMTK_364
D: Application Context Name:    1.2.840.10008.3.1.1.1
D: Calling Application Name:    jjkj
D: Called Application Name:     ACME_STORE
D: Responding Application Name: ACME_STORE
D: Our Max PDU Receive Size:    16384
D: Their Max PDU Receive Size:  16384
D: Presentation Contexts:
D:   Context ID:        1 (Accepted)
D:     Abstract Syntax: =VerificationSOPClass
D:     Proposed SCP/SCU Role: Default
D:     Accepted SCP/SCU Role: Default
D:     Accepted Transfer Syntax: =LittleEndianImplicit
D: Requested Extended Negotiation: none
D: Accepted Extended Negotiation:  none
D: Requested User Identity Negotiation: none
D: User Identity Negotiation Response:  none
D: ======================= END A-ASSOCIATE-AC ======================
I: Association Accepted (Max Send PDV: 16372)
I: Sending Echo Request (MsgID 1)
D: DcmDataset::read() TransferSyntax="Little Endian Implicit"
I: Received Echo Response (Success)
I: Releasing Association
[email protected]:~/Project$

3.回环口可以连接,但是以太网分配的IP地址链接失败

[email protected]:~/Project$ ifconfig
eno1      Link encap:以太网  硬件地址 4c:cc:6a:6b:1c:fa  
          inet 地址:220.0.5.55  广播:220.0.7.255  掩码:255.255.252.0
          inet6 地址: fe80::2b4f:78fd:bec0:3c0e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  跃点数:1
          接收数据包:981613 错误:0 丢弃:39637 过载:0 帧数:0
          发送数据包:17343 错误:0 丢弃:0 过载:0 载波:0
          碰撞:0 发送队列长度:1000
          接收字节:164037630 (164.0 MB)  发送字节:1505460 (1.5 MB)
          中断:20 Memory:fb300000-fb320000

lo        Link encap:本地环回  
          inet 地址:127.0.0.1  掩码:255.0.0.0
          inet6 地址: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  跃点数:1
          接收数据包:830050 错误:0 丢弃:0 过载:0 帧数:0
          发送数据包:830050 错误:0 丢弃:0 过载:0 载波:0
          碰撞:0 发送队列长度:1000
          接收字节:4338991742 (4.3 GB)  发送字节:4338991742 (4.3 GB)

4.查看pacs系统的配置文件:

acme1           = (jjkj, localhost, 1111)
acme2           = (jjkj, 220.0.5.55, 1111)
acmeCTcompany   = acme1, acme2
united1         = (UHICT, 220.0.4.15, 3333)
united2        = (jjkj, localhost, 1111)
united3         = (jjkj, localaddress, 1111)
unitedMRcompany = united1, united2 , united3

5.后来发现不支持ip地址的形式,配置给要用到的的IP地址配置了域名,将配置文件改成:

acme1           = (jjkj, localhost, 1111)
acme2           = (jjkj, localaddress, 1111)
#acme3           = (jjkj, localhost, 1111)
acmeCTcompany   = acme1, acme2
united1         = (UHICT, ctaddress, 3333)
united2         = (UNITED2, unitedhost2, 2222)
united3         = (jjkj, localhost, 1111)
united4         = (jjkj, localaddress, 1111)
unitedMRcompany = united1, united2 , united3, united4

6.本地测试就通过了:

[email protected]:~/Project$ echoscu -d 127.0.0.1 1111 -aec ACME_STORE -aet jjkj
D: $dcmtk: echoscu v3.6.4 2018-11-29 $
D:
D: DcmDataDictionary: Loading file: /usr/local/share/dcmtk/dicom.dic
D: Request Parameters:
D: ====================== BEGIN A-ASSOCIATE-RQ =====================
D: Our Implementation Class UID:      1.2.276.0.7230010.3.0.3.6.4
D: Our Implementation Version Name:   OFFIS_DCMTK_364
D: Their Implementation Class UID:    
D: Their Implementation Version Name:
D: Application Context Name:    1.2.840.10008.3.1.1.1
D: Calling Application Name:    jjkj
D: Called Application Name:     ACME_STORE
D: Responding Application Name: ACME_STORE
D: Our Max PDU Receive Size:    16384
D: Their Max PDU Receive Size:  0
D: Presentation Contexts:
D:   Context ID:        1 (Proposed)
D:     Abstract Syntax: =VerificationSOPClass
D:     Proposed SCP/SCU Role: Default
D:     Proposed Transfer Syntax(es):
D:       =LittleEndianImplicit
D: Requested Extended Negotiation: none
D: Accepted Extended Negotiation:  none
D: Requested User Identity Negotiation: none
D: User Identity Negotiation Response:  none
D: ======================= END A-ASSOCIATE-RQ ======================
I: Requesting Association
D: setting network send timeout to 60 seconds
D: setting network receive timeout to 60 seconds
D: Constructing Associate RQ PDU
D: PDU Type: Associate Accept, PDU Length: 184 + 6 bytes PDU header
D:   02  00  00  00  00  b8  00  01  00  00  41  43  4d  45  5f  53
D:   54  4f  52  45  20  20  20  20  20  20  6a  6a  6b  6a  20  20
D:   20  20  20  20  20  20  20  20  20  20  00  00  00  00  00  00
D:   00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00
D:   00  00  00  00  00  00  00  00  00  00  10  00  00  15  31  2e
D:   32  2e  38  34  30  2e  31  30  30  30  38  2e  33  2e  31  2e
D:   31  2e  31  21  00  00  19  01  00  00  00  40  00  00  11  31
D:   2e  32  2e  38  34  30  2e  31  30  30  30  38  2e  31  2e  32
D:   50  00  00  3a  51  00  00  04  00  00  40  00  52  00  00  1b
D:   31  2e  32  2e  32  37  36  2e  30  2e  37  32  33  30  30  31
D:   30  2e  33  2e  30  2e  33  2e  36  2e  34  55  00  00  0f  4f
D:   46  46  49  53  5f  44  43  4d  54  4b  5f  33  36  34
D: Parsing an A-ASSOCIATE PDU
D: Association Parameters Negotiated:
D: ====================== BEGIN A-ASSOCIATE-AC =====================
D: Our Implementation Class UID:      1.2.276.0.7230010.3.0.3.6.4
D: Our Implementation Version Name:   OFFIS_DCMTK_364
D: Their Implementation Class UID:    1.2.276.0.7230010.3.0.3.6.4
D: Their Implementation Version Name: OFFIS_DCMTK_364
D: Application Context Name:    1.2.840.10008.3.1.1.1
D: Calling Application Name:    jjkj
D: Called Application Name:     ACME_STORE
D: Responding Application Name: ACME_STORE
D: Our Max PDU Receive Size:    16384
D: Their Max PDU Receive Size:  16384
D: Presentation Contexts:
D:   Context ID:        1 (Accepted)
D:     Abstract Syntax: =VerificationSOPClass
D:     Proposed SCP/SCU Role: Default
D:     Accepted SCP/SCU Role: Default
D:     Accepted Transfer Syntax: =LittleEndianImplicit
D: Requested Extended Negotiation: none
D: Accepted Extended Negotiation:  none
D: Requested User Identity Negotiation: none
D: User Identity Negotiation Response:  none
D: ======================= END A-ASSOCIATE-AC ======================
I: Association Accepted (Max Send PDV: 16372)
I: Sending Echo Request (MsgID 1)
D: DcmDataset::read() TransferSyntax="Little Endian Implicit"
I: Received Echo Response (Success)
I: Releasing Association
[email protected]:~/Project$
[email protected]:~/Project$
[email protected]:~/Project$
[email protected]:~/Project$
[email protected]:~/Project$ echoscu -d localaddress 1111 -aec ACME_STORE -aet jjkj
D: $dcmtk: echoscu v3.6.4 2018-11-29 $
D:
D: DcmDataDictionary: Loading file: /usr/local/share/dcmtk/dicom.dic
D: Request Parameters:
D: ====================== BEGIN A-ASSOCIATE-RQ =====================
D: Our Implementation Class UID:      1.2.276.0.7230010.3.0.3.6.4
D: Our Implementation Version Name:   OFFIS_DCMTK_364
D: Their Implementation Class UID:    
D: Their Implementation Version Name:
D: Application Context Name:    1.2.840.10008.3.1.1.1
D: Calling Application Name:    jjkj
D: Called Application Name:     ACME_STORE
D: Responding Application Name: ACME_STORE
D: Our Max PDU Receive Size:    16384
D: Their Max PDU Receive Size:  0
D: Presentation Contexts:
D:   Context ID:        1 (Proposed)
D:     Abstract Syntax: =VerificationSOPClass
D:     Proposed SCP/SCU Role: Default
D:     Proposed Transfer Syntax(es):
D:       =LittleEndianImplicit
D: Requested Extended Negotiation: none
D: Accepted Extended Negotiation:  none
D: Requested User Identity Negotiation: none
D: User Identity Negotiation Response:  none
D: ======================= END A-ASSOCIATE-RQ ======================
I: Requesting Association
D: setting network send timeout to 60 seconds
D: setting network receive timeout to 60 seconds
D: Constructing Associate RQ PDU
D: PDU Type: Associate Accept, PDU Length: 184 + 6 bytes PDU header
D:   02  00  00  00  00  b8  00  01  00  00  41  43  4d  45  5f  53
D:   54  4f  52  45  20  20  20  20  20  20  6a  6a  6b  6a  20  20
D:   20  20  20  20  20  20  20  20  20  20  00  00  00  00  00  00
D:   00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00
D:   00  00  00  00  00  00  00  00  00  00  10  00  00  15  31  2e
D:   32  2e  38  34  30  2e  31  30  30  30  38  2e  33  2e  31  2e
D:   31  2e  31  21  00  00  19  01  00  00  00  40  00  00  11  31
D:   2e  32  2e  38  34  30  2e  31  30  30  30  38  2e  31  2e  32
D:   50  00  00  3a  51  00  00  04  00  00  40  00  52  00  00  1b
D:   31  2e  32  2e  32  37  36  2e  30  2e  37  32  33  30  30  31
D:   30  2e  33  2e  30  2e  33  2e  36  2e  34  55  00  00  0f  4f
D:   46  46  49  53  5f  44  43  4d  54  4b  5f  33  36  34
D: Parsing an A-ASSOCIATE PDU
D: Association Parameters Negotiated:
D: ====================== BEGIN A-ASSOCIATE-AC =====================
D: Our Implementation Class UID:      1.2.276.0.7230010.3.0.3.6.4
D: Our Implementation Version Name:   OFFIS_DCMTK_364
D: Their Implementation Class UID:    1.2.276.0.7230010.3.0.3.6.4
D: Their Implementation Version Name: OFFIS_DCMTK_364
D: Application Context Name:    1.2.840.10008.3.1.1.1
D: Calling Application Name:    jjkj
D: Called Application Name:     ACME_STORE
D: Responding Application Name: ACME_STORE
D: Our Max PDU Receive Size:    16384
D: Their Max PDU Receive Size:  16384
D: Presentation Contexts:
D:   Context ID:        1 (Accepted)
D:     Abstract Syntax: =VerificationSOPClass
D:     Proposed SCP/SCU Role: Default
D:     Accepted SCP/SCU Role: Default
D:     Accepted Transfer Syntax: =LittleEndianImplicit
D: Requested Extended Negotiation: none
D: Accepted Extended Negotiation:  none
D: Requested User Identity Negotiation: none
D: User Identity Negotiation Response:  none
D: ======================= END A-ASSOCIATE-AC ======================
I: Association Accepted (Max Send PDV: 16372)
I: Sending Echo Request (MsgID 1)
D: DcmDataset::read() TransferSyntax="Little Endian Implicit"
I: Received Echo Response (Success)
I: Releasing Association
[email protected]:~/Project$
[email protected]:~/Project$
[email protected]7A54-Invalid-entry-length-16-Fixed-up-to-11:~/Project$
[email protected]:~/Project$

 

 

 

 

 

 

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/weixin_42317175/article/details/91880813

智能推荐

UnrealEngine_ironldk的博客-程序员ITS304

源码编译UnrealEngine背景准备工作背景其实从来没有记笔记的习惯,总觉得理解了就行了,奈何年纪大了,有些东西不记一下确实容易忘,复用的时候还要再花同样长的时间重新学习,效率太低了,为了提高生产力还是记一下。准备工作创建Epic Games账号关联Github账号安装Visual Studio Community 2019installer中勾选Git,不需要再单独安装Git了,Visual Studio的Git是一样的,而且Program Files里和VS安装目录里都会有git.e

jboss7启动jbpm5.4出现的相关问题_zyl_0915的博客-程序员ITS304

首先用jboss7启动jbpm5.4 lib下的这几个war包时,全都falied。查看server.log时发现报如下错误:1、ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015052: Did not receive a response to the deployment...

python中 父类调用子类中的方法函数_胖虎是只mao的博客-程序员ITS304_python父类调用子类的方法

python 在父类中如何去调用子类里面得函数方法呢?如下: 用 getattrclass father(): def call_children(self): child_method = getattr(self, 'out')# 获取子类的out()方法 child_method() # 执行子类的out()方法class children(father): def out(self): print "hehe"child =

做网站碰到勒索病毒,服务器安全防护做好了吗?_bmsidc的博客-程序员ITS304

前几天有客户反应服务器被攻击了,文件全部打不开了,限几天内支付比特币。那不用看肯定是中勒索病毒了,技术人员忙活半天也无法破解,最后只能数据不要了重新建站。勒索病毒作为最近几年流行起来的新型电脑病毒,主要以邮件、程序木马、网页挂马的形式进行传播。该病毒性质恶劣、危害极大,一旦感染将给用户带来无法估量的损失。勒索病毒利用各种加密算法对文件进行加密,被感染者一般无法解密,必须拿到解密的私钥才有可能破解。服务器一旦感染勒索病毒,除了病毒开发者本人,其他人几乎不可能解密。服务器感染了勒索病毒确实是无解的,因此针

透明视频的实现方法_zi__kang的博客-程序员ITS304

偶然看到有透明视频的应用,很新奇,自己研究了一翻。其实现核心是依靠canvas实时处理视频的每一帧,注意视频是左右视频(左边正常右边黑白)废话不多说直接上核心代码  video.addEventListener("play", function() { draw(this, canvas, cont2D, cw, ch); }, fa...

随便推点

读书郎电脑刷机Linux,读书郎平板电脑怎么刷机_只想摸鱼的社畜的博客-程序员ITS304

ib88_sHaShou__https://weibo.com/f2021_05_07/p/2313474632627066830887/wenda_homehttps://weibo.com/52021_05_07/p/2313474633292740886880/wenda_homehttps://weibo.com/p/2313474632965211619411/wenda_homehtt...

win10共享桌面到linux,deepin官方论坛-深度科技官网旗下网站_邹子乔的博客-程序员ITS304

Linux桌面环境与Win10之间共享文件夹的互相访问(基于Samba,以Deepin为例)一、解决理念一直喜欢Deepin系统,也好用,但办公室的办公PC因为涉及到要随时用OA的web系统收发文(有UKEY),要盖电子印章(有Ukey),无法使用Deepin,故此办公PC 是Win10系统,另有一台笔记本安装Deepin,之前传文件一直用“飞鸽传书”解决,为解决文件的互相共享,百度了许多文章,终...

论文阅读 Hypervisor- vs. Container-based Virtualization_蝴蝶Maple的博客-程序员ITS304

Hypervisor- vs. Container-based VirtualizationABSTRACT1 INTRODUCTION2 DISTINCTION: HYPERVISOR VS. CONTAINER-BASED VIRTUALIZATION3 USE CASES AND GOALS OF BOTH VIRTUALIZATION TECHNOLOGIES3.1 Hypervisor-...

初识FastAdmin中的弹出窗口的功能_守护大白菜的博客-程序员ITS304

一张图解析FastAdmin中的弹出窗口的功能功能描述弹出窗口是FastAdmin中最常用的功能之一,FastAdmin中默认生成的CRUD中的编辑、添加和删除的弹窗都是基于Layer弹层组件实现的,FastAdmin在此基础上进行了扩展和二次开发,除了Layer原有的功能外,还有部分FastAdmin特有的功能。首先我们先来看看最常用的编辑和添加弹窗。在CRUD后的列表中默认的添加和编辑按钮会自动绑定事件,如果需要手动弹窗,我们可以使用Fast.api.open(url, tit..

关于Sqoop同步数据的问题【已解决】_福贵儿的博客-程序员ITS304

1.问题描述 最近某个表没有增量的数据,出现了问题, 于是调出日志,定位问题,结果是临时表中增量条件多了个and(大意多填了), 后来在拼接sql的时候,多一个and,导致增量sql没有执行成功,报了如下异常:java.sql.SQLSyntaxErrorException: ORA-00936: missing expression最致命的是 这里没有邮件通知到,之前考虑到这部分是手动配置,插入临时表的,配完之后,跑一下没问题就行。就没有考虑容错。...

Ble - SMP 协议详解_菜鸡学长的博客-程序员ITS304_ble smp

SMP overview0x0006 LE SMP(secure manager protocol)主要是使用在LE 配对过程中, key的产生及分发, 故名思意安全管理。解决蓝牙通信过程中的安全问题。在固定信道0x0006中,传输数据。SMP 命令格式如果支持LE security connect , L2CAP MTU = 65否则 L2CAP MTU = 23所有的交互从...

推荐文章

热门文章

相关标签