problem between dcmprscu and dvt

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
yinhaoscu
Posts: 8
Joined: Tue, 2009-01-20, 06:56

problem between dcmprscu and dvt

#1 Post by yinhaoscu »

I want to validate the dcmprscu (dcmtk3.5.4) with dvt 2.1.6. However I encountered the following errors:
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.

/* detail information as below */

RECEIVE ASSOCIATE-RQ (16:46:07)

Received: A_ASSOCIATE_RQ Message
Protocol Version: 1
Called AE Title: CALLED_AE
Calling AE Title: CALLING_AE
Application Context: 1.2.840.10008.3.1.1.1
Presentation Context Item(s):
Presentation Context ID: ID: 1
> Abstract Syntax: 1.2.840.10008.5.1.1.9
> Transfer Syntax: 1.2.840.10008.1.2.1
> Transfer Syntax: 1.2.840.10008.1.2.2
> Transfer Syntax: 1.2.840.10008.1.2
Presentation Context ID: ID: 3
> Abstract Syntax: 1.2.840.10008.5.1.1.23
> Transfer Syntax: 1.2.840.10008.1.2.1
> Transfer Syntax: 1.2.840.10008.1.2.2
> Transfer Syntax: 1.2.840.10008.1.2
User Information:
> Maximum Length: 32768
> Implementation Class UID: 1.2.276.0.7230010.3.0.3.5.4
> Implementation Version Name: OFFIS_DCMTK_354


VALIDATE ASSOCIATE-RQ
Validate: A_ASSOCIATE_RQ Message
Protocol Version: 1
Called AE Title: CALLED_AE
Calling AE Title: CALLING_AE
Application Context: 1.2.840.10008.3.1.1.1
Presentation Context Item(s):
Presentation Context: ID: 1
> Abstract Syntax: 1.2.840.10008.5.1.1.9(Basic Grayscale Print Management Meta SOP Class)
> Transfer Syntax: 1.2.840.10008.1.2.1 (Explicit VR Little Endian)
> Transfer Syntax: 1.2.840.10008.1.2.2 (Explicit VR Big Endian)
> Transfer Syntax: 1.2.840.10008.1.2 (Implicit VR Little Endian)
Presentation Context: ID: 3
Warning: This Presentation Context has not been validated against a reference Presentation Context.
Link to Summary Result
> Abstract Syntax: 1.2.840.10008.5.1.1.23(Presentation LUT SOP Class)
> Transfer Syntax: 1.2.840.10008.1.2.1 (Explicit VR Little Endian)
> Transfer Syntax: 1.2.840.10008.1.2.2 (Explicit VR Big Endian)
> Transfer Syntax: 1.2.840.10008.1.2 (Implicit VR Little Endian)
User Information:
> Maximum Length: 32768
> Implementation Class UID: 1.2.276.0.7230010.3.0.3.5.4
> Implementation Version Name: OFFIS_DCMTK_354

SEND ASSOCIATE-AC (16:46:07)
Automatically Rejecting Abstract Syntax Name (SOP Class): "1.2.840.10008.5.1.1.23" with PC ID: 3

Send: A_ASSOCIATE_AC Message
Protocol Version: 1
Called AE Title: CALLED_AE
Calling AE Title: CALLING_AE
Application Context: 1.2.840.10008.3.1.1.1
Presentation Context Item(s):
Presentation Context ID: ID: 1
> Result: 0
> Abstract Syntax: 1.2.840.10008.5.1.1.9
> Transfer Syntax: 1.2.840.10008.1.2.2
Presentation Context ID: ID: 3
> Result: 3
> Abstract Syntax: 1.2.840.10008.5.1.1.23
> Transfer Syntax:
User Information:
> Maximum Length: 16384
> Implementation Class UID: 100.118.116.2005.2.1
> Implementation Version Name: dvt2.1


RECEIVE N-GET-RQ (16:46:07)
Maximum length of Command DATA-TF PDU received (with pcId 1) is 0x6C=108

Received:
N-GET-RQ
(0x00000000,UL,0x0000005A) # Group 0000 Length
(0x00000003,UI,"1.2.840.10008.5.1.1.16") # Requested SOP Class UID
(0x00000100,US,0x0110) # Command Field
(0x00000110,US,0x0001) # Message ID
(0x00000800,US,0x0101) # Data Set Type
(0x00001001,UI,"1.2.840.10008.5.1.1.17") # Requested SOP Instance UID


VALIDATE N-GET-RQ
N-GET-RQ

Module: N-GET-RQ (M)
Attribute VR Type Pr Len Attribute Name Value(s) and Comments
(0000,0000) UL 1 + 4 Group 0000 Length 0x0000005A=90
(0000,0003) UI 1 + 22 Requested SOP Class UID 1.2.840.10008.5.1.1.16
(0000,0100) US 1 + 2 Command Field 0x0110=272
(0000,0110) US 1 + 2 Message ID 0x0001=1
(0000,0800) US 1 + 2 Data Set Type 0x0101=257
(0000,1001) UI 1 + 22 Requested SOP Instance UID 1.2.840.10008.5.1.1.17

SEND N-GET-RSP Printer (16:46:07)
Automatic Type 2 Attribute population from Definition applied to: Printer

Send:
N-GET-RSP
(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,0x0001) # 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

Printer
(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,"20090305") # Date of Last Calibration
(0x00181201,TM,"164607") # Time of Last Calibration
(0x21100010,CS,"NORMAL") # Printer Status
(0x21100030,LO,"IHEFULL") # Printer Name


RECEIVE N-CREATE-RQ Basic Film Session (16:46:07)
Maximum length of Command DATA-TF PDU received (with pcId 1) is 0x4E=78
Warning: Expected DICOM Dataset - none received from Product

Received:
N-CREATE-RQ
(0x00000000,UL,0x0000003C) # Group 0000 Length
(0x00000002,UI,"1.2.840.10008.5.1.1.1") # Affected SOP Class UID
(0x00000100,US,0x0140) # Command Field
(0x00000110,US,0x0002) # Message ID
(0x00000800,US,0x0101) # Data Set Type


VALIDATE N-CREATE-RQ
N-CREATE-RQ

Module: N-CREATE-RQ (M)
Attribute VR Type Pr Len Attribute Name Value(s) and Comments
(0000,0000) UL 1 + 4 Group 0000 Length 0x0000003C=60
(0000,0002) UI 1 + 22 Affected SOP Class UID 1.2.840.10008.5.1.1.1
(0000,0100) US 1 + 2 Command Field 0x0140=320
(0000,0110) US 1 + 2 Message ID 0x0002=2
(0000,0800) US 1 + 2 Data Set Type 0x0101=257

SEND N-CREATE-RSP (16:46:07)

Send:
N-CREATE-RSP
(0x00000000,UL,0x0000004E) # Group 0000 Length
(0x00000002,UI,"1.2.840.10008.5.1.1.1") # Affected SOP Class UID
(0x00000100,US,0x8140) # Command Field
(0x00000120,US,0x0002) # 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 (16:46:07)
Error: DULP - Received unexpected association RELEASE-RQ - connection is closed.

Received: A-RELEASE-RQ Message

Error: Failed to import DICOM command
Error: Failed to receive N-CREATE-RQ Basic Film Box - as expected in DICOMScript.
Association open 0.03 seconds

RESULT: FAILED
Number of Validation Errors: 0 - Number of Validation Warnings: 1
Number of User Validation Errors: 0 - Number of User Validation Warnings: 0
Number of General Errors: 3 - Number of General Warnings: 1

Jörg Riesmeier
ICSMED DICOM Services
ICSMED DICOM Services
Posts: 2217
Joined: Fri, 2004-10-29, 21:38
Location: Oldenburg, Germany

#2 Post by Jörg Riesmeier »

What is the output of dcmprscu with options --verbose, --debug and --dump?

yinhaoscu
Posts: 8
Joined: Tue, 2009-01-20, 06:56

The output of dcmprscu is shown bellow

#3 Post by yinhaoscu »

Printer parameters for 'IHEFULL':
hostname : localhost
port : 104
description : IHE Full Print SCP
aetitle : CALLED_AE
max pdu : 32768
timeout : -1
options : none.
12-bit xfer : supported
present.lut : supported
annotation : not supported

Spooler parameters:
mode : printer mode
copies : 0
medium : printer default
destination : printer default
label : printer default
priority : printer default
owner ID : printer default

transport layer security parameters:
TLS : disabled

spooling file 'database\SP_499b8401feafd4e7.dcm'
Requesting Association
Association accepted (Max Send PDV: 16372)
===================== OUTGOING DIMSE MESSAGE ====================
Message Type : N-GET RQ
Message ID : 1
Requested SOP Class UID : PrinterSOPClass
Requested SOP Instance UID : 1.2.840.10008.5.1.1.17
Data Set : none
Attribute Identifier List : none
======================= END DIMSE MESSAGE =======================

===================== INCOMING DIMSE MESSAGE ====================
Message Type : N-GET RSP
Message ID Being Responded To : 1
Affected SOP Class UID : PrinterSOPClass
Affected SOP Instance UID : 1.2.840.10008.5.1.1.17
Data Set : present
DIMSE Status : 0x0000: Success

# Dicom-Data-Set
# Used TransferSyntax: BigEndianExplicit
(0008,0070) LO [DVT] # 4, 1 Manufacturer
(0008,1090) LO [DVT] # 4, 1 ManufacturersMo
delName
(0018,1000) LO [123456] # 6, 1 DeviceSerialNum
ber
(0018,1020) LO [Version 2.0] # 12, 1 SoftwareVersion
s
(0018,1200) DA [20090315] # 8, 1 DateOfLastCalib
ration
(0018,1201) TM [134838] # 6, 1 TimeOfLastCalib
ration
(2110,0010) CS [NORMAL] # 6, 1 PrinterStatus
(2110,0030) LO [IHEFULL] # 8, 1 PrinterName
======================= END DIMSE MESSAGE =======================

spooler: warning: printer does not support Presentation LUT SOP Class,
presentation LUT related print job settings will be ignored.
===================== OUTGOING DIMSE MESSAGE ====================
Message Type : N-CREATE RQ
Message ID : 2
Affected SOP Class UID : BasicFilmSessionSOPClass
Affected SOP Instance UID : none
Data Set : none

# Dicom-Data-Set
# Used TransferSyntax: UnknownTransferSyntax
======================= END DIMSE MESSAGE =======================

===================== INCOMING DIMSE MESSAGE ====================
Message Type : N-CREATE RSP
Message ID Being Responded To : 2
Affected SOP Class UID : BasicFilmSessionSOPClass
Affected SOP Instance UID :
Data Set : none
DIMSE Status : 0x0000: Success
======================= END DIMSE MESSAGE =======================

spooler: printer communication failed, unable to create basic film box.
spooler: release of connection to printer failed.
0006:0317 Peer aborted Association (or never connected)
error: spooling of file 'database\SP_499b8401feafd4e7.dcm' failed.

Marco Eichelberg
OFFIS DICOM Team
OFFIS DICOM Team
Posts: 1461
Joined: Tue, 2004-11-02, 17:22
Location: Oldenburg, Germany
Contact:

#4 Post by Marco Eichelberg »

In this case, there clearly is a problem with DVTk (who tests the tester?)
As part of the N-CREATE-RQ primitive, a dataset may or may not be sent. This specifically applies to the Basic Film Session SOP Class, where all attributes are optional for N-CREATE. By default, dcmprscu will not send any dataset with the N-CREATE-RQ, unless there is something to send actually. Obviously DVTk does not handle that case - it always expects a dataset and bails out at this point.
You can try to have this fixed in DVTk, or you can just "force" dcmprscu to send a dataset with the N-CREATE-RQ, for example by specifying the command line option

Code: Select all

dcmprscu --copies 1

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 1 guest