找回密码
 欢迎注册
搜索
热搜: 活动 交友 discuz
查看: 2297|回复: 2

关于ADVT-PrintSCP的疑问?

[复制链接]
发表于 2004-2-5 10:29:21 | 显示全部楼层 |阅读模式
Executing DICOMScript: 2.ds
##
## SCP Print DICOMScript: 2.ds
##
## Pre-conditions:
##      - no association
##
## Test Scenario:
##      - expect association for Print Service Class
##              - big endian explicit VR
##              - little endian explicit VR
##              - little endian implicit VR
##      - accept association - Result/Reason = 0 - acceptance
##              - big endian explicit VR
##      - expect N-GET-RQ Printer
##      - return N-GET-RSP - STATUS = 0000 - SUCCESS
##      - expect N-CREATE-RQ Basic Film Session
##      - return N-CREATE-RSP - STATUS = 0000 - SUCCESS
##      - expect N-CREATE-RQ Basic Film Box
##      - return N-CREATE-RSP - STATUS = 0000 - SUCCESS
##      - expect N-SET-RQ Basic Image Box
##      - return N-SET-RSP - STATUS = 0000 - SUCCESS
##      - expect N-SET-RQ Basic Image Box
##      - return N-SET-RSP - STATUS = 0000 - SUCCESS
##      - expect N-ACTION-RQ Basic Film Box
##      - return N-ACTION-RSP - STATUS = 0000 - SUCCESS
##      - expect N-DELETE-RQ Basic Film Session
##      - return N-DELETE-RSP - STATUS = 0000 - SUCCESS
##      - expect release association request
##      - return release association response
##
## Expected Result:
##      - SCP signals successful print
##
## Post-conditions:
##      - no association - film being printed
##

INF TCP/IP - Listening for connection using port number 104 ...


这里为什么要有两个
##      - expect N-SET-RQ Basic Image Box
##      - return N-SET-RSP - STATUS = 0000 - SUCCESS
##      - expect N-SET-RQ Basic Image Box
##      - return N-SET-RSP - STATUS = 0000 - SUCCESS

这两个地的内容相同吗?
 楼主| 发表于 2004-2-5 10:33:16 | 显示全部楼层

关于ADVT-PrintSCP的疑问?

Results file: - D:\Program Files\Viwer\ADVT\scripts\print\scp\001_2_ds_res.txt

Test / Product Details: -

Session: 1 - Print SCP
Manufacturer: Manufacturer
Model Name: Product Name
Software Versions: Version 1.0
Application Entity Name: DICOM
Application Entity Version: 3.0
Role: Acceptor
DVT Version: 1.3.030
DVT Implementation Version Name: dvt1.3
Tested By: DVT
Date: 20020909


Definition File Root: D:\Program Files\Viwer\ADVT\definitions
Definition Files: -
CharacterSets.def
ImageDisplayFormat.def
BasicGrayscalePrintManagementMeta.def
PrintJob.def


Executing DICOMScript: 2.ds
##
## SCP Print DICOMScript: 2.ds
##
## Pre-conditions:
## - no association
##
## Test Scenario:
## - expect association for Print Service Class
## - big endian explicit VR
## - little endian explicit VR
## - little endian implicit VR
## - accept association - Result/Reason = 0 - acceptance
## - big endian explicit VR
## - expect N-GET-RQ Printer
## - return N-GET-RSP - STATUS = 0000 - SUCCESS
## - expect N-CREATE-RQ Basic Film Session
## - return N-CREATE-RSP - STATUS = 0000 - SUCCESS
## - expect N-CREATE-RQ Basic Film Box
## - return N-CREATE-RSP - STATUS = 0000 - SUCCESS
## - expect N-SET-RQ Basic Image Box
## - return N-SET-RSP - STATUS = 0000 - SUCCESS
## - expect N-SET-RQ Basic Image Box
## - return N-SET-RSP - STATUS = 0000 - SUCCESS
## - expect N-ACTION-RQ Basic Film Box
## - return N-ACTION-RSP - STATUS = 0000 - SUCCESS
## - expect N-DELETE-RQ Basic Film Session
## - return N-DELETE-RSP - STATUS = 0000 - SUCCESS
## - expect release association request
## - return release association response
##
## Expected Result:
## - SCP signals successful print
##
## Post-conditions:
## - no association - film being printed
##

INF TCP/IP - Listening for connection using port number 104 ...


---> RECEIVE ASSOCIATE-RQ (10:00:05)
(type 0x1, length 249)
Protocol Version: 1
Called AE Title: 'MyTest'
Calling AE Title: 'MyTest'
Application Context SubItem (type 0x10, length 0x15=21)
UID: '1.2.840.10008.3.1.1.1' - DICOM Application Context Name
Presentation Context Request SubItem (type 0x20, length 0x60=96)
Presentation Context ID: 1
Abstract Syntax SubItem (type 0x30, length 0x15=21)
UID: '1.2.840.10008.5.1.1.9' - Basic Grayscale Print Management Meta SOP Class
Transfer Syntax SubItem (type 0x40, length 0x11=17)
UID: '1.2.840.10008.1.2' - Implicit VR Little Endian
Transfer Syntax SubItem (type 0x40, length 0x13=19)
UID: '1.2.840.10008.1.2.1' - Explicit VR Little Endian
Transfer Syntax SubItem (type 0x40, length 0x13=19)
UID: '1.2.840.10008.1.2.2' - Explicit VR Big Endian
User Information SubItem (type 0x50, length 0x34=52)
Maximum Length SubItem (type 0x51, length 0x4=4)
Maximum PDU Length: 0x4000=16384
Implementation Class UID SubItem (type 0x52, length 0x14=20)
UID: '100.118.116.2003.1.3'
Implementation Version Name SubItem (type 0x55, length 0x10=16)
Name: 'MG3000_VERSION_3'
---------------------------------------------------------------------------------------------------------------------------------
| VALIDATION RESULTS for Associate Request
---------------------------------------------------------------------------------------------------------------------------------
PASSED: 0 error(s), 0 warning(s)
---------------------------------------------------------------------------------------------------------------------------------

<--- SEND ASSOCIATE-AC (10:00:05)
(type 0x2, length 0xA0=160)
Protocol Version: 1
Called AE Title: 'MyTest '
Calling AE Title: 'MyTest '
Application Context SubItem (type 0x10, length 0x15=21)
UID: '1.2.840.10008.3.1.1.1' - DICOM Application Context Name
Presentation Context Accept SubItem (type 0x21, length 0x1B=27)
Presentation Context ID: 1
Abstract Syntax SubItem (type 0x30, length 0x15=21)
UID: '1.2.840.10008.5.1.1.9' - Basic Grayscale Print Management Meta SOP Class
Result/Reason: 0 - (acceptance)
Transfer Syntax SubItem (type 0x40, length 0x13=19)
UID: '1.2.840.10008.1.2.2' - Explicit VR Big Endian
User Information SubItem (type 0x50, length 0x20=32)
Maximum Length SubItem (type 0x51, length 0x4=4)
Maximum PDU Length: 0x4000=16384
Implementation Class UID SubItem (type 0x52, length 0x14=20)
UID: '100.118.116.2003.1.3'

---> RECEIVE N-GET-RQ (10:00:05)

INF Maximum length of Command DATA-TF PDU received (with pcId 1) is 0x98=152
(0x00000000, UL, 0x00000086) # Group 0000 Length
(0x00000003, UI, "1.2.840.10008.5.1.1.16") # Requested SOP Class UID
(0x00000100, US, 0x0110) # Command Field
(0x00000110, US, 0x0000) # Message ID
(0x00000800, US, 0x0101) # Data Set Type
(0x00001001, UI, "1.2.840.10008.5.1.1.17") # Requested SOP Instance UID
(0x00001005, AT,0x00080070,0x00081090,0x00181000,0x00181020,0x00181200,0x00181201,0x21100010,0x21100020,0x21100030) # Attribute Identifier List

VALIDATE N-GET-RQ
---------------------------------------------------------------------------------------------------------------------------------
| VALIDATION RESULTS for COMMAND N-GET-RQ
---------------------------------------------------------------------------------------------------------------------------------

---------------------------------------------------------------------------------------------------------------------------------
PASSED: 0 error(s), 0 warning(s)
---------------------------------------------------------------------------------------------------------------------------------

<--- SEND N-GET-RSP Printer (10:00:05)
(0x00000000, UL, 0x00000064) # Group 0000 Length
(0x00000002, UI, "1.2.840.10008.5.1.1.16") # Affected SOP Class UID
(0x00000100, US, 0x8110) # Command Field
(0x00000120, US, 0x0000) # Message ID Being Responded To
(0x00000800, US, 0x0000) # Data Set Type
(0x00000900, US, 0x0000) # Status
(0x00001000, UI, "1.2.840.10008.5.1.1.17") # Affected SOP Instance UID

(0x00080070, LO, "DVT") # Manufacturer
(0x00081090, LO, "DVT") # Manufacturer's Model Name
(0x00181000, LO, "123456") # Device Serial Number
(0x00181020, LO, "Version 2.0") # Software Version(s)
(0x00181200, DA, "20040205") # Date of Last Calibration
(0x00181201, TM, "100005") # Time of Last Calibration
(0x21100010, CS, "NORMAL") # Printer Status
(0x21100030, LO, "dvt") # Printer Name

---> RECEIVE N-CREATE-RQ Basic Film Session (10:00:05)

INF Maximum length of Command DATA-TF PDU received (with pcId 1) is 0x4E=78
INF Maximum length of Dataset DATA-TF PDU received (with pcId 1) is 0x44=68
(0x00000000, UL, 0x0000003C) # Group 0000 Length
(0x00000002, UI, "1.2.840.10008.5.1.1.1\00") # Affected SOP Class UID
(0x00000100, US, 0x0140) # Command Field
(0x00000110, US, 0x0001) # Message ID
(0x00000800, US, 0x0000) # Data Set Type

(0x20000010, IS, "1 ") # Number of Copies
(0x20000020, CS, "MED ") # Print Priority
(0x20000030, CS, "APER ") # Medium Type
(0x20000040, CS, "ROCESSOR ") # Film Destination
(0x20000050, LO, "") # Film Session Label

VALIDATE N-CREATE-RQ Basic Film Session
---------------------------------------------------------------------------------------------------------------------------------
| VALIDATION RESULTS for COMMAND N-CREATE-RQ
---------------------------------------------------------------------------------------------------------------------------------

---------------------------------------------------------------------------------------------------------------------------------
PASSED: 0 error(s), 0 warning(s)
---------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------
| VALIDATION RESULTS for DATASET Basic Film Session
---------------------------------------------------------------------------------------------------------------------------------

---------------------------------------------------------------------------------------------------------------------------------
PASSED: 0 error(s), 0 warning(s)
---------------------------------------------------------------------------------------------------------------------------------

<--- SEND N-CREATE-RSP (10:00:05)
(0x00000000, UL, 0x0000004E) # Group 0000 Length
(0x00000002, UI, "1.2.840.10008.5.1.1.1\00") # Affected SOP Class UID
(0x00000100, US, 0x8140) # Command Field
(0x00000120, US, 0x0001) # Message ID Being Responded To
(0x00000800, US, 0x0101) # Data Set Type
(0x00000900, US, 0x0000) # Status
(0x00001000, UI, "") # Affected SOP Instance UID

---> RECEIVE N-CREATE-RQ Basic Film Box (10:00:05)

INF Maximum length of Command DATA-TF PDU received (with pcId 1) is 0x4E=78
INF Maximum length of Dataset DATA-TF PDU received (with pcId 1) is 0x94=148
(0x00000000, UL, 0x0000003C) # Group 0000 Length
(0x00000002, UI, "1.2.840.10008.5.1.1.2\00") # Affected SOP Class UID
(0x00000100, US, 0x0140) # Command Field
(0x00000110, US, 0x0002) # Message ID
(0x00000800, US, 0x0000) # Data Set Type

(0x20100010, ST, "STANDARD\1,1") # Image Display Format
(0x20100040, CS, "ORTRAIT") # Film Orientation
(0x20100050, CS, "A4") # Film Size ID
(0x20100060, CS, "BILINEAR") # Magnification Type
(0x20100500, SQ,
>(0x00081150, UI, "1.2.840.10008.5.1.1.1\00") # Referenced SOP Class UID
>(0x00081155, UI, "1.2.840.10008.5.1.1.2\00") # Referenced SOP Instance UID
) # Referenced Film Session Sequence

VALIDATE N-CREATE-RQ Basic Film Box
---------------------------------------------------------------------------------------------------------------------------------
| VALIDATION RESULTS for COMMAND N-CREATE-RQ
---------------------------------------------------------------------------------------------------------------------------------

---------------------------------------------------------------------------------------------------------------------------------
PASSED: 0 error(s), 0 warning(s)
---------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------
| VALIDATION RESULTS for DATASET Basic Film Box
---------------------------------------------------------------------------------------------------------------------------------

---------------------------------------------------------------------------------------------------------------------------------
PASSED: 0 error(s), 0 warning(s)
---------------------------------------------------------------------------------------------------------------------------------

<--- SEND N-CREATE-RSP Basic Film Box (10:00:05)
(0x00000000, UL, 0x0000004E) # Group 0000 Length
(0x00000002, UI, "1.2.840.10008.5.1.1.2") # Affected SOP Class UID
(0x00000100, US, 0x8140) # Command Field
(0x00000120, US, 0x0002) # Message ID Being Responded To
(0x00000800, US, 0x0000) # Data Set Type
(0x00000900, US, 0x0000) # Status
(0x00001000, UI, "") # Affected SOP Instance UID

(0x20100510, SQ,
>(0x00081150, UI, "1.2.840.10008.5.1.1.4") # Referenced SOP Class UID
>(0x00081155, UI, "1.2.3.4.5.6.1.11") # Referenced SOP Instance UID
,
>(0x00081150, UI, "1.2.840.10008.5.1.1.4") # Referenced SOP Class UID
>(0x00081155, UI, "1.2.3.4.5.6.1.12") # Referenced SOP Instance UID
) # Referenced Image Box Sequence

---> RECEIVE N-SET-RQ Basic Grayscale Image Box (10:00:05)

INF Maximum length of Command DATA-TF PDU received (with pcId 1) is 0x66=102
INF Maximum length of Dataset DATA-TF PDU received (with pcId 1) is 0x3FFA=16378
(0x00000000, UL, 0x00000054) # Group 0000 Length
(0x00000003, UI, "1.2.840.10008.5.1.1.4\00") # Requested SOP Class UID
(0x00000100, US, 0x0120) # Command Field
(0x00000110, US, 0x0003) # Message ID
(0x00000800, US, 0x0000) # Data Set Type
(0x00001001, UI, "1.2.3.4.5.6.1.12") # Requested SOP Instance UID

(0x20200010, US, 0x0001) # Image Position
(0x20200020, CS, "NORMAL") # Polarity
(0x20200110, SQ,
>(0x00280002, US, 0x0001) # Samples per Pixel
>(0x00280004, CS, "MONOCHROME2 ") # Photometric Interpretation
>(0x00280010, US, 0x03E8) # Rows
>(0x00280011, US, 0x03E8) # Columns
>(0x00280034, IS, "1", "1 ") # Pixel Aspect Ratio
>(0x00280100, US, 0x0008) # Bits Allocated
>(0x00280101, US, 0x0008) # Bits Stored
>(0x00280102, US, 0x0007) # High Bit
>(0x00280103, US, 0x0000) # Pixel Representation
>(0x7FE00010, OW, "D:\Program Files\Viwer\ADVT\scripts\print\scp\W08B0030.pix") # Pixel Data
) # Preformatted Grayscale Image Sequence

VALIDATE N-SET-RQ Basic Grayscale Image Box
---------------------------------------------------------------------------------------------------------------------------------
| VALIDATION RESULTS for COMMAND N-SET-RQ
---------------------------------------------------------------------------------------------------------------------------------

---------------------------------------------------------------------------------------------------------------------------------
PASSED: 0 error(s), 0 warning(s)
---------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------
| VALIDATION RESULTS for DATASET Basic Grayscale Image Box
---------------------------------------------------------------------------------------------------------------------------------

---------------------------------------------------------------------------------------------------------------------------------
PASSED: 0 error(s), 0 warning(s)
---------------------------------------------------------------------------------------------------------------------------------

<--- SEND N-SET-RSP (10:00:05)
(0x00000000, UL, 0x0000005E) # Group 0000 Length
(0x00000002, UI, "1.2.840.10008.5.1.1.4\00") # Affected SOP Class UID
(0x00000100, US, 0x8120) # Command Field
(0x00000120, US, 0x0003) # Message ID Being Responded To
(0x00000800, US, 0x0101) # Data Set Type
(0x00000900, US, 0x0000) # Status
(0x00001000, UI, "1.2.3.4.5.6.1.12") # Affected SOP Instance UID

---> RECEIVE N-SET-RQ Basic Grayscale Image Box (10:00:05)

INF Maximum length of Command DATA-TF PDU received (with pcId 1) is 0x60=96
ERR Command mis-match - expected N-SET-RQ in DICOMScript but actually received N-ACTION-RQ

FAILED: Parser error in script 2.ds : 1 error(s), 0 warning(s)


INF Association open 0.25 seconds





ERR Command mis-match - expected N-SET-RQ in DICOMScript but actually received N-ACTION-RQ

我需要再发一个N-SET-RQ吗?
发表于 2004-4-15 16:39:33 | 显示全部楼层

关于ADVT-PrintSCP的疑问?

我的理解是:这是写道脚本里面的,不能动态适应scu的要求
因此,你必须发送2各image box
这个脚本也不支持多个film box
您需要登录后才可以回帖 登录 | 欢迎注册

本版积分规则

快速回复 返回顶部 返回列表