打印是怎么实现的?
有以下这此过程:
Association Request
1. 创建Print Job:用 N-CREATE 创建一次打印操作
2. 创建Film Session :用 N-CREATE 创建一个打印会话
3. 创建Film Box :用 N-CREATE 创建,这个创建的就是一张胶片!
4. 设置Image Box :用N-SET设置要打印到胶片上的图片!
...根据需要设置打印的图片数
N-ACTION :开始打印
N-DELETE :删除Film Box
N-DELETE :删除Film Session
N-DELETE :删除Print Job
Release Association。
这是偶的理解,如有错误还请各位多多指正!
---------------------------------------------------------------
客户需要Dicom打印预览,jayition大虾做过打印预览吗?
感觉做打印预览比较复杂,特别是Dicom打印的一些效果与打印机有关,比如Annotation的位置,LUT处理等。
还有,在VC++环境下,作打印预览有没有可以利用的框架或者类,还是从头开始做?
Do/ View结构下就有打印预浏览的,结合起来做,并不是什么难事情呀。预览只是看框架、布局和效果,比如你说的位置什么的,复杂是复杂,但是不会很复杂。
----------------------------------------------------------
我的还不能打出来哦,命令都发不出去!
你们对DCMTK应该很熟悉吧?DCMTK中提供的dcmprscu命令怎么用啊?
我用dcmpsprt -v -c dcmpstat.cfg --printer AGFA ct.dcm
dcmprscu -v -c dcmpstat.cfg --printer AGFA来进行打印时。第一个命令执行正常生成了hard copy图像和sp对象,,但是第二个命令怎么也不能正常执行??!!
楼主?怎么回事啊??我已经北这个打印的功能折腾坏了!
------------------------------------------------------------
你用DCMPSPRT 会生成一个HARD COPY图像和一个SP对像没错,这样子就说明前一条命令执行没有问题了!但是你后一条命令应该这样写:dcmprscu -v -c dcmpstat.cfg --printer AGFA database/SP_43841cc7fcfde432.dcm
而上面这条命令中的database/SP_43841cc7fcfde432.dcm就是前一条命令中生成的SP对像,这样才能进行打印!
我用的命令你可以看一下!
dcmpsprt -c dcmpstat.cfg --printer MYPRINTER image.dcm
dcmprscu -c dcmpstat.cfg --copies 1 --medium-type PAPER database/SP_43841cc7fcfde432.dcm
你一定没有认真看过DCMTK的帮助吧!呵呵呵!
我在柯达的相机上试过了!一切OK!
追加说明一下:database/SP_43841cc7fcfde432.dcm是你生成的SP文件存放的相对路径,如果你的SP文件是存在当前目录下没有database/子目录的话直接写SP_XXXXXXXX.dcm(你的SP文件)就可以了!
-------------------------------------------------------------------------
今天有空,按照你们和DCMTK官方论坛上的说法又试了一下,好像能打了,下面是ADVT打印信息,是不是还有问题啊?注意,里面还有failed字样!
-->> ADVT (received): - A-ASSOCIATE-RQ
Protocol Version: 1
Called AE Title: "IHEFULL "
Calling AE Title: "DCMPSTATE "
Application Context Name: 1.2.840.10008.3.1.1.1 "DICOM Application Context Name"
Proposed Presentation Context Items
ID: 1 Abstract Syntax Name: 1.2.840.10008.5.1.1.9 "Basic Grayscale Print Management Meta SOP Class"
Transfer Syntaxes:
1.2.840.10008.1.2.1 "Explicit VR Little Endian"
1.2.840.10008.1.2.2 "Explicit VR Big Endian"
1.2.840.10008.1.2 "Implicit VR Little Endian"
ID: 3 Abstract Syntax Name: 1.2.840.10008.5.1.1.23
Transfer Syntaxes:
1.2.840.10008.1.2.1 "Explicit VR Little Endian"
1.2.840.10008.1.2.2 "Explicit VR Big Endian"
1.2.840.10008.1.2 "Implicit VR Little Endian"
Maximum Length Received: 16384
Implementation Class UID: 1.2.276.0.7230010.3.0.3.5.4
INF - Optional Implementation Version Name
Implementation Version Name: OFFIS_DCMTK_354
WARNING: Calling AE Title not correct
Expected: "IHEFULL" Received: "DCMPSTATE"
<<-- ADVT (sent): - A-ASSOCIATE-AC
Protocol Version: 1
Called AE Title: "IHEFULL "
Calling AE Title: "IHEFULL "
Application Context Name: 1.2.840.10008.3.1.1.1 "DICOM Application Context Name"
Accepted Presentation Context Items
ID: 1 Result: 0 (acceptance) Abstract Syntax Name: 1.2.840.10008.5.1.1.9 "Basic Grayscale Print Management Meta SOP Class"
Transfer Syntax:
1.2.840.10008.1.2 "Implicit VR Little Endian"
ID: 3 Result: 3 (abstract-syntax-not-supported (provider rejection)) Abstract Syntax Name: 1.2.840.10008.5.1.1.23
Transfer Syntax:
Maximum Length Received: 16384
Implementation Class UID: 1.3.51.0.0.1999.2.6
INF - Optional Implementation Version Name
Implementation Version Name: ADVTDLL2.6
INF P-DATA-TF PDU: Maximum Length Received for PC-ID 1 is 108 (0x0000006C)
-->> ADVT (received): - N-GET-RQ
#(0x00000000, UL, 0x0000005A) # 0x4 - Group Length OK
(0x00000003, UI, "1.2.840.10008.5.1.1.16") # 0x16 - Requested SOP Class UID OK
(0x00000100, US, 0x0110) # 0x2 - Command Field OK
(0x00000110, US, 0x0001) # 0x2 - Message ID OK
(0x00000800, US, 0x0101) # 0x2 - Data Set Type OK
(0x00001001, UI, "1.2.840.10008.5.1.1.17") # 0x16 - Requested SOP Instance UID OK
INF Exporting Command P-DATA-TF PDU with PC-ID 1
<<-- ADVT (sent): - N-GET-RSP
#(0x00000000, UL, 0x00000064) # 0x4 - Group Length
(0x00000002, UI, "1.2.840.10008.5.1.1.16") # 0x16 - Affected SOP Class UID
(0x00000100, US, 0x8110) # 0x2 - Command Field
(0x00000120, US, 0x0001) # 0x2 - Message ID Being Responded To
(0x00000800, US, 0x0000) # 0x2 - Data Set Type
(0x00000900, US, 0x0000) # 0x2 - Status
(0x00001000, UI, "1.2.840.10008.5.1.1.17") # 0x16 - Affected SOP Instance UID
INF Exporting Dataset P-DATA-TF PDU with PC-ID 1
<<-- ADVT (sent): - Printer
(0x00080070, LO, "AGFA") # 0x4 - Manufacturer
(0x00081090, LO, "ADVT") # 0x4 - Manufacturer's Model Name
(0x00181000, LO, "123456") # 0x6 - Device Serial Number
(0x00181020, LO, "ADVTDLL2.6") # 0xA - Software Version(s)
(0x00181200, DA, "19990915") # 0x8 - Date of Last Calibration
(0x00181201, TM, "121500") # 0x6 - Time of Last Calibration
(0x21100010, CS, "NORMAL") # 0x6 - Printer Status
(0x21100030, LO, "Emulator") # 0x8 - Printer Name
INF P-DATA-TF PDU: Maximum Length Received for PC-ID 1 is 78 (0x0000004E)
-->> ADVT (received): - N-CREATE-RQ
#(0x00000000, UL, 0x0000003C) # 0x4 - Group Length OK
(0x00000002, UI, "1.2.840.10008.5.1.1.1") # 0x16 - Affected SOP Class UID OK
(0x00000100, US, 0x0140) # 0x2 - Command Field OK
(0x00000110, US, 0x0002) # 0x2 - Message ID OK
(0x00000800, US, 0x0101) # 0x2 - Data Set Type OK
INF Exporting Command P-DATA-TF PDU with PC-ID 1
<<-- ADVT (sent): - N-CREATE-RSP
#(0x00000000, UL, 0x0000006A) # 0x4 - Group Length
(0x00000002, UI, "1.2.840.10008.5.1.1.1") # 0x16 - Affected SOP Class UID
(0x00000100, US, 0x8140) # 0x2 - Command Field
(0x00000120, US, 0x0002) # 0x2 - Message ID Being Responded To
(0x00000800, US, 0x0101) # 0x2 - Data Set Type
(0x00000900, US, 0x0000) # 0x2 - Status
(0x00001000, UI, "1.3.51.0.0.1999.2.6.320.0.4") # 0x1C - Affected SOP Instance UID
INF P-DATA-TF PDU: Maximum Length Received for PC-ID 1 is 78 (0x0000004E)
-->> ADVT (received): - N-CREATE-RQ
#(0x00000000, UL, 0x0000003C) # 0x4 - Group Length OK
(0x00000002, UI, "1.2.840.10008.5.1.1.2") # 0x16 - Affected SOP Class UID OK
(0x00000100, US, 0x0140) # 0x2 - Command Field OK
(0x00000110, US, 0x0003) # 0x2 - Message ID OK
(0x00000800, US, 0x0001) # 0x2 - Data Set Type OK
INF P-DATA-TF PDU: Maximum Length Received for PC-ID 1 is 108 (0x0000006C)
-->> ADVT (received): - Basic Film Box
SOP Class Name: Basic Film Box SOP Class
SOP Class UID: 1.2.840.10008.5.1.1.2
IOD Name: Basic Film Box
MODULE: M: Basic Film Box Presentation Module
(0x20100010, ST, "STANDARD\1,1") # 0xC - Image Display Format OK
MODULE: M: Basic Film Box Relationship Module
SQ Items (1): (2010,0500) - Referenced Film Session Sequence
# 0x4A - Item 1:
> (0x00081150, UI, "1.2.840.10008.5.1.1.1") # 0x16 - Referenced SOP Class UID OK
> (0x00081155, UI, "1.3.51.0.0.1999.2.6.320.0.4") # 0x1C - Referenced SOP Instance UID OK
INF Exporting Command P-DATA-TF PDU with PC-ID 1
<<-- ADVT (sent): - N-CREATE-RSP
#(0x00000000, UL, 0x0000006A) # 0x4 - Group Length
(0x00000002, UI, "1.2.840.10008.5.1.1.2") # 0x16 - Affected SOP Class UID
(0x00000100, US, 0x8140) # 0x2 - Command Field
(0x00000120, US, 0x0003) # 0x2 - Message ID Being Responded To
(0x00000800, US, 0x0000) # 0x2 - Data Set Type
(0x00000900, US, 0x0000) # 0x2 - Status
(0x00001000, UI, "1.3.51.0.0.1999.2.6.320.0.5") # 0x1C - Affected SOP Instance UID
INF Exporting Dataset P-DATA-TF PDU with PC-ID 1
<<-- ADVT (sent): - Basic Film Box
(0x20100510, SQ,
# 0x52 - Item 1:
> (0x00081150, UI, "1.2.840.10008.5.1.1.4") # 0x16 - Referenced SOP Class UID
> (0x00081155, UI, "1.3.51.0.0.1999.2.6.288.1.1") # 0x1C - Referenced SOP Instance UID
) # 0x52 - Referenced Image Box Sequence
INF P-DATA-TF PDU: Maximum Length Received for PC-ID 1 is 114 (0x00000072)
-->> ADVT (received): - N-SET-RQ
#(0x00000000, UL, 0x00000060) # 0x4 - Group Length OK
(0x00000003, UI, "1.2.840.10008.5.1.1.4") # 0x16 - Requested SOP Class UID OK
(0x00000100, US, 0x0120) # 0x2 - Command Field OK
(0x00000110, US, 0x0004) # 0x2 - Message ID OK
(0x00000800, US, 0x0001) # 0x2 - Data Set Type OK
(0x00001001, UI, "1.3.51.0.0.1999.2.6.288.1.1") # 0x1C - Requested SOP Instance UID OK
INF P-DATA-TF PDU: Maximum Length Received for PC-ID 1 is 16378 (0x00003FFA)
-->> ADVT (received): - Basic Grayscale Image Box
SOP Class Name: Basic Grayscale Image Box SOP Class
SOP Class UID: 1.2.840.10008.5.1.1.4
IOD Name: Basic Grayscale Image Box
MODULE: M: Image Box Presentation Module
(0x20200010, US, 0x0001) # 0x2 - Image Position OK
SQ Items (1): (2020,0110) - Basic Grayscale Image Sequence
# 0x20006A - Item 1:
> (0x00280002, US, 0x0001) # 0x2 - Samples per Pixel OK
> (0x00280004, CS, "MONOCHROME2") # 0xC - Photometric Interpretation OK
> (0x00280010, US, 0x0400) # 0x2 - Rows OK
> (0x00280011, US, 0x0400) # 0x2 - Columns OK
> (0x00280100, US, 0x0010) # 0x2 - Bits Allocated OK
> (0x00280101, US, 0x000C) # 0x2 - Bits Stored OK
> (0x00280102, US, 0x000B) # 0x2 - High Bit OK
> (0x00280103, US, 0x0000) # 0x2 - Pixel Representation OK
> (0x7FE00010, OW, "C:\Program Files\AGFA\DICOM Validation Tool\scripts\print\scpemulator\W16L0007.pix") # 0x200000 - Pixel Data OK
MODULE: M: Image Box Relationship Module
INF Exporting Command P-DATA-TF PDU with PC-ID 1
<<-- ADVT (sent): - N-SET-RSP
#(0x00000000, UL, 0x0000006A) # 0x4 - Group Length
(0x00000002, UI, "1.2.840.10008.5.1.1.4") # 0x16 - Affected SOP Class UID
(0x00000100, US, 0x8120) # 0x2 - Command Field
(0x00000120, US, 0x0004) # 0x2 - Message ID Being Responded To
(0x00000800, US, 0x0101) # 0x2 - Data Set Type
(0x00000900, US, 0x0000) # 0x2 - Status
(0x00001000, UI, "1.3.51.0.0.1999.2.6.288.1.1") # 0x1C - Affected SOP Instance UID
INF P-DATA-TF PDU: Maximum Length Received for PC-ID 1 is 124 (0x0000007C)
-->> ADVT (received): - N-ACTION-RQ
#(0x00000000, UL, 0x0000006A) # 0x4 - Group Length OK
(0x00000003, UI, "1.2.840.10008.5.1.1.2") # 0x16 - Requested SOP Class UID OK
(0x00000100, US, 0x0130) # 0x2 - Command Field OK
(0x00000110, US, 0x0005) # 0x2 - Message ID OK
(0x00000800, US, 0x0101) # 0x2 - Data Set Type OK
(0x00001001, UI, "1.3.51.0.0.1999.2.6.320.0.5") # 0x1C - Requested SOP Instance UID OK
(0x00001008, US, 0x0001) # 0x2 - Action Type ID OK
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
B E G I N H A R D C O P Y P A R A M E T E R S N A P S H O T
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
BASIC FILM SESSION:
SOP Class UID: 1.2.840.10008.5.1.1.1
SOP Instance UID: 1.3.51.0.0.1999.2.6.320.0.4
BASIC FILM BOX: 1
SOP Class UID: 1.2.840.10008.5.1.1.2
SOP Instance UID: 1.3.51.0.0.1999.2.6.320.0.5
(0x20100010, ST, "STANDARD\1,1") # 0xC - Image Display Format
(0x20100500, SQ,
# 0x4A - Item 1:
> (0x00081150, UI, "1.2.840.10008.5.1.1.1") # 0x16 - Referenced SOP Class UID
> (0x00081155, UI, "1.3.51.0.0.1999.2.6.320.0.4") # 0x1C - Referenced SOP Instance UID
) # 0x4A - Referenced Film Session Sequence
(0x20100510, SQ,
# 0x0 - Item 1:
> (0x00081150, UI, "1.2.840.10008.5.1.1.4") # 0x16 - Referenced SOP Class UID
> (0x00081155, UI, "1.3.51.0.0.1999.2.6.288.1.1") # 0x1C - Referenced SOP Instance UID
) # 0x0 - Referenced Image Box Sequence
BASIC GRAYSCALE IMAGE BOX: 1
SOP Class UID: 1.2.840.10008.5.1.1.4
SOP Instance UID: 1.3.51.0.0.1999.2.6.288.1.1
(0x20200010, US, 0x0001) # 0x2 - Image Position
(0x20200110, SQ,
# 0x20006A - Item 1:
> (0x00280002, US, 0x0001) # 0x2 - Samples per Pixel
> (0x00280004, CS, "MONOCHROME2") # 0xC - Photometric Interpretation
> (0x00280010, US, 0x0400) # 0x2 - Rows
> (0x00280011, US, 0x0400) # 0x2 - Columns
> (0x00280100, US, 0x0010) # 0x2 - Bits Allocated
> (0x00280101, US, 0x000C) # 0x2 - Bits Stored
> (0x00280102, US, 0x000B) # 0x2 - High Bit
> (0x00280103, US, 0x0000) # 0x2 - Pixel Representation
> (0x7FE00010, OW, "C:\Program Files\AGFA\DICOM Validation Tool\scripts\print\scpemulator\W16L0007.pix") # 0x200000 - Pixel Data
) # 0x20006A - Basic Grayscale Image Sequence
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
E N D H A R D C O P Y P A R A M E T E R S N A P S H O T
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
INF Exporting Command P-DATA-TF PDU with PC-ID 1
<<-- ADVT (sent): - N-ACTION-RSP
#(0x00000000, UL, 0x00000074) # 0x4 - Group Length
(0x00000002, UI, "1.2.840.10008.5.1.1.2") # 0x16 - Affected SOP Class UID
(0x00000100, US, 0x8130) # 0x2 - Command Field
(0x00000120, US, 0x0005) # 0x2 - Message ID Being Responded To
(0x00000800, US, 0x0101) # 0x2 - Data Set Type
(0x00000900, US, 0x0000) # 0x2 - Status
(0x00001000, UI, "1.3.51.0.0.1999.2.6.320.0.5") # 0x1C - Affected SOP Instance UID
(0x00001008, US, 0x0001) # 0x2 - Action Type ID
INF P-DATA-TF PDU: Maximum Length Received for PC-ID 1 is 114 (0x00000072)
-->> ADVT (received): - N-DELETE-RQ
#(0x00000000, UL, 0x00000060) # 0x4 - Group Length OK
(0x00000003, UI, "1.2.840.10008.5.1.1.2") # 0x16 - Requested SOP Class UID OK
(0x00000100, US, 0x0150) # 0x2 - Command Field OK
(0x00000110, US, 0x0006) # 0x2 - Message ID OK
(0x00000800, US, 0x0101) # 0x2 - Data Set Type OK
(0x00001001, UI, "1.3.51.0.0.1999.2.6.320.0.5") # 0x1C - Requested SOP Instance UID OK
INF Exporting Command P-DATA-TF PDU with PC-ID 1
<<-- ADVT (sent): - N-DELETE-RSP
#(0x00000000, UL, 0x0000006A) # 0x4 - Group Length
(0x00000002, UI, "1.2.840.10008.5.1.1.2") # 0x16 - Affected SOP Class UID
(0x00000100, US, 0x8150) # 0x2 - Command Field
(0x00000120, US, 0x0006) # 0x2 - Message ID Being Responded To
(0x00000800, US, 0x0101) # 0x2 - Data Set Type
(0x00000900, US, 0x0000) # 0x2 - Status
(0x00001000, UI, "1.3.51.0.0.1999.2.6.320.0.5") # 0x1C - Affected SOP Instance UID
INF P-DATA-TF PDU: Maximum Length Received for PC-ID 1 is 114 (0x00000072)
-->> ADVT (received): - N-DELETE-RQ
#(0x00000000, UL, 0x00000060) # 0x4 - Group Length OK
(0x00000003, UI, "1.2.840.10008.5.1.1.1") # 0x16 - Requested SOP Class UID OK
(0x00000100, US, 0x0150) # 0x2 - Command Field OK
(0x00000110, US, 0x0007) # 0x2 - Message ID OK
(0x00000800, US, 0x0101) # 0x2 - Data Set Type OK
(0x00001001, UI, "1.3.51.0.0.1999.2.6.320.0.4") # 0x1C - Requested SOP Instance UID OK
INF Exporting Command P-DATA-TF PDU with PC-ID 1
<<-- ADVT (sent): - N-DELETE-RSP
#(0x00000000, UL, 0x0000006A) # 0x4 - Group Length
(0x00000002, UI, "1.2.840.10008.5.1.1.1") # 0x16 - Affected SOP Class UID
(0x00000100, US, 0x8150) # 0x2 - Command Field
(0x00000120, US, 0x0007) # 0x2 - Message ID Being Responded To
(0x00000800, US, 0x0101) # 0x2 - Data Set Type
(0x00000900, US, 0x0000) # 0x2 - Status
(0x00001000, UI, "1.3.51.0.0.1999.2.6.320.0.4") # 0x1C - Affected SOP Instance UID
-->> ADVT (received): - A-RELEASE-RQ
<<-- ADVT (sent): - A-RELEASE-RP
INF Dis-connected from Remote Host
INF Listening on Local Port: 104 for connection to CalledAETitle: "IHEFULL" from CallingAETitle: "IHEFULL"
--------------------------------------------------------------------------------------
请问一下各位,没有打印机,可以通过dcmprscp设置一个虚拟的吗?可以的话怎么修改dcmpstat.cfg呢?
再请问一下哪里有ADVT可以下载,有免费的吗?
------------------------------------------------------------------------------------
各位老大,帮我看下使用dcmprscu与DVT连接测试的问题,或者给我一个成功的例子也行
我在测试时出现下面的错误:
我想通过DVT来测试dcmprscu命令,DVT放在别一台机子上(192.168.0.28) 我的操作如下
dcmpsprt -c dcmpstat.cfg --printer IHEFULL test.dcm //成功生成了SP_46fc51197dfe63bf.dcm
dcmprscu -c dcmpstat.cfg database/SP_46fc51197dfe63bf.dcm
spooler: connection setup with printer failed.
0006:031b Failed to establish association
0006:0317 Peer aborted Association (or never connected)
0006:031c TCP Initialization Error: No error
error: spooling of file 'database/SP_46fc51197dfe63bf.dcm' failed.
并且DVT那端没有反应,应该是没有连接到
对dcmpstat.cfg进行的配置修改如下:其中#号是原来例子中的设置,我的修改跟在后面
[NETWORK]
Sender = dcmpssnd
Receiver = dcmpsrcv
#aetitle = DCMPSTATE
aetitle = CALLING_AE
[IHEFULL]
#Aetitle = IHEFULL
Aetitle = CALLED_AE
Description = IHE Full Print SCP
#Hostname = localhost
Hostname = 192.168.0.28
#Port = 10005
Port = 104
#Type = LOCALPRINTER//这里不知要怎么修改,就我理解type = LOCALPRINTER 与 Hostname = localhost是一组搭配
########下面用的例子中的默认值
BorderDensity = 150\20\BLACK\WHITE
DisableNewVRs = false
DisplayFormat=1,1\1,2\2,2\2,3\3,3\3,4\3,5\4,4\4,5
EmptyImageDensity = 20\BLACK\WHITE
FilmDestination = MAGAZINE\PROCESSOR\BIN_1\BIN_2
FilmSizeID = 8INX10IN\10INX12IN\10INX14IN\11INX14IN\14INX14IN\14INX17IN\24CMX24CM\24CMX30CM
ImplicitOnly = false
MagnificationType = REPLICATE\BILINEAR\CUBIC\NONE
MaxDensity = 320
MaxPDU = 32768
MediumType = PAPER\CLEAR FILM\BLUE FILM
MinDensity = 20
OmitSOPClassUIDFromCreateResponse = false
PresentationLUTMatchRequired = false
PresentationLUTinFilmSession = false
ResolutionID = STANDARD\HIGH
SmoothingType = NONE
Supports12Bit = true
SupportsDecimateCrop = true
SupportsImageSize = true
SupportsPresentationLUT = true
SupportsTrim = true
还有[PRINT]字段需要修改吗?我都是用的例子中的值
[PRINT]
Spooler = dcmprscu
Server = dcmprscp
Directory = spool
DetailedLog = true
BinaryLog = false
Sleep = 5
MinPrintResolution = 1024\1024
MaxPrintResolution = 8192\8192
DefaultIllumination = 2000
DeletePrintJobs = true
AlwaysDeleteTerminateJobs = true
DVT中的设置是打开了DVT自带的例子DVT\example\example.pdvt,执行了PrintSCP.ses
其中 DVT Role Settings
AE Title = CALLED_AE
Impl. Class UID = 100.118.116.2005.2.1
Impl.Version Name = dvt2.1
Listen port = 104
Socket time-out = 90
Maximum PDU length to receive = 16384
System Under Test Settings
AE Title = CALLING_AE
Listen port = 104
Remote TCP/IP address = localhost
Maximum PDU length to receive = 16384
将DVT放在同一台电脑上进行测试时,修改dcmpstat.cfg恢复#号的设置,除了AE Title保持原样
dcmpsprt -c dcmpstat.cfg --printer IHEFULL test.dcm //成功生成了SP_46fc51197dfe63bf.dcm
dcmprscu -c dcmpstat.cfg database/SP_46fc58166dd77384.dcm
spooler: connection setup with printer failed.
0006:031b Failed to establish association
0006:0317 Peer aborted Association (or never connected)
0006:031c TCP Initialization Error: No error
error: spooling of file 'database/SP_46fc58166dd77384.dcm' failed.
此时DVT出现下面的错误信息
Warning: Expected DICOM Dataset - none received from Product
Error: DULP - Received unexpected association RELEASE-RQ - connection is closed.
Error: Failed to import DICOM command
Error: Failed to receive N-CREATE-RQ Basic Film Box - as expected in DICOMScript.
查看详细信息提示为:
N-GET-RQ
(0x00000100,US,0x0110) # Command Field
(0000,0100) US 1 + 2 Command Field 0x0110=272
N-GET-RSP
(0x00000100,US,0x8110) # Command Field
N-CREATE-RQ
(0x00000100,US,0x0140) # Command Field
(0000,0100) US 1 + 2 Command Field 0x0140=320
从字面分析,你的Association RQ内容不对
-----------------------------------------------------------------------
很奇怪,我在dcmpsprt配置的是IHEFULL打印机
dcmpsprt -c dcmpstat.cfg --printer IHEFULL image.dcm
但在dcmprscp端使用的是[IHERESTRICTED]字段的内容.
而且我通过dcmprscu可以跟dcmprscp进行连接,且在dcmprscp端也能生成HG_***和SP_***文件.但是将dcmprscp换成DVT进行测试就出错
错误信息是:
Error: DULP - Received unexpected association RELEASE-RQ - connection is closed.
Error: Failed to import DICOM command
Error: Failed to receive N-CREATE-RQ Basic Film Box - as expected in DICOMScript.