TCPSrv cannot print Toshiba Asteion

Questions regarding the DCMPRINT library, a DCMTK add-on that implements a DICOM Print Management SCP and SCU

Moderator: Moderator Team

Post Reply
Message
Author
martinrame
Posts: 329
Joined: Mon, 2009-02-23, 19:57

TCPSrv cannot print Toshiba Asteion

#1 Post by martinrame » Fri, 2018-10-12, 16:25

Hi, I'm trying to generate Postscript files using TCPSRV (DcmPrint) from Dicom Print files sent from a Toshiba Asteion CT scanner.

The debug output I'm getting from tcpsrv is this:

Code: Select all

D: setting network send timeout to 60 seconds
D: setting network receive timeout to 60 seconds
D: PDU Type: Associate Request, PDU Length: 316 + 6 bytes PDU header
D:   01  00  00  00  01  3c  00  01  00  00  43  44  2d  50  52  49
D:   4e  54  53  45  52  56  45  52  20  20  54  4d  5f  43  54  5f
D:   43  4d  57  5f  56  33  2e  30  30  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  20  00  00  33  01  00  00  00  30  00  00  16  31
D:   2e  32  2e  38  34  30  2e  31  30  30  30  38  2e  35  2e  31
D:   2e  31  2e  31  38  40  00  00  11  31  2e  32  2e  38  34  30
D:   2e  31  30  30  30  38  2e  31  2e  32  20  00  00  2e  03  00
D:   00  00  30  00  00  11  31  2e  32  2e  38  34  30  2e  31  30
D:   30  30  38  2e  31  2e  31  40  00  00  11  31  2e  32  2e  38
D:   34  30  2e  31  30  30  30  38  2e  31  2e  32  20  00  00  32
D:   05  00  00  00  30  00  00  15  31  2e  32  2e  38  34  30  2e
D:   31  30  30  30  38  2e  35  2e  31  2e  31  2e  39  40  00  00
D:   11  31  2e  32  2e  38  34  30  2e  31  30  30  30  38  2e  31
D:   2e  32  50  00  00  3c  51  00  00  04  00  00  70  00  52  00
D:   00  1d  31  2e  32  2e  33  39  32  2e  32  30  30  30  33  36
D:   2e  39  31  31  36  2e  32  2e  36  2e  31  2e  31  30  30  55
D:   00  00  0f  54  4d  5f  43  54  5f  43  4d  57  5f  56  33  2e
D:   30  30
D: Parsing an A-ASSOCIATE PDU
I: [ASSOCIATION NEGOTIATION BEGIN]
I:     Calling AE Title    : TM_CT_CMW_V3.00
I:     Called AE Title     : CD-PRINTSERVER
I:     Responding AE Title : CD-PRINTSERVER
I:     Application Context : StandardApplicationContext
D:     Presentation Context 1 : BasicColorPrintManagementMetaSOPClass
D:       Transfer Syntax        : LittleEndianImplicit
D:     Accepted, Transfer Syntax: LittleEndianImplicit
D:     Presentation Context 3 : VerificationSOPClass
D:       Transfer Syntax        : LittleEndianImplicit
D:     Accepted, Transfer Syntax: LittleEndianImplicit
D:     Presentation Context 5 : BasicGrayscalePrintManagementMetaSOPClass
D:       Transfer Syntax        : LittleEndianImplicit
D:     Accepted, Transfer Syntax: LittleEndianImplicit
D:
D: Constructing Associate AC PDU
D:   ASSOCIATION ACKNOWLEDGED
D: [ASSOCIATION NEGOTIATION END]
D:
D: [SENDING MESSAGE]
D: [BEGIN MESSAGE DUMP]
D: Message type           : N-EVENT-REPORT request
D: Message ID             : 2
D: Affected SOP class UID : PrinterSOPClass
D: Affected SOP instc UID : 1.2.840.10008.5.1.1.17
D: DICOM data stream      : not present
D: Event Type ID          : 1
D: [END MESSAGE DUMP]
D:
D: DcmDataset::read() TransferSyntax="Little Endian Implicit"
D:
D: [RECEIVING MESSAGE]
D: [BEGIN MESSAGE DUMP]
D: Message type           : N-CREATE request
D: Message ID             : 13
D: Affected SOP class UID : BasicFilmSessionSOPClass
D: Affected SOP instc UID : not present
D: DICOM data stream      : present
D: [END MESSAGE DUMP]
D:
D: DcmDataset::read() TransferSyntax="Little Endian Implicit"
D: [DATASET DUMP BEGIN]
D: # Dicom-Data-Set
D: # Used TransferSyntax: Little Endian Implicit
D: (2000,0010) IS [1]                                      #   2, 1 NumberOfCopies
D: (2000,0020) CS [MED]                                    #   4, 1 PrintPriority
D: (2000,0030) CS (no value available)                     #   0, 0 MediumType
D: (2000,0040) CS (no value available)                     #   0, 0 FilmDestination
D: (2000,0060) IS (no value available)                     #   0, 0 MemoryAllocation
D: [DATASET DUMP ENDED]
D:
D: [SENDING MESSAGE WITH DATASET]
D: [BEGIN MESSAGE DUMP]
D: Message type           : N-CREATE response
D: Message ID responded   : 13
D: Affected SOP class UID : BasicFilmSessionSOPClass
D: Affected SOP instc UID : 1.2.276.0.7230010.3.1.4.0.21347.1539357245.190691
D: DICOM data stream      : present
D: Status                 : 0x0000
D: [END MESSAGE DUMP]
D:
D: [DATASET DUMP BEGIN]
D: # Dicom-Data-Set
D: # Used TransferSyntax: Little Endian Explicit
D: (2000,0010) IS [1]                                      #   2, 1 NumberOfCopies
D: (2000,0020) CS [MED]                                    #   4, 1 PrintPriority
D: (2000,0030) CS (no value available)                     #   0, 0 MediumType
D: (2000,0040) CS [MAGAZINE]                               #   8, 1 FilmDestination
D: (2000,0050) LO [Remote DICOM Printserver Session #1]    #  36, 1 FilmSessionLabel
D: (2100,0160) SH (no value available)                     #   0, 0 OwnerID
D: [DATASET DUMP ENDED]
D: DcmDataset::read() TransferSyntax="Little Endian Implicit"
D:
D: [RECEIVING MESSAGE]
D: [BEGIN MESSAGE DUMP]
D: Message type           : N-EVENT-REPORT response
D: Message ID responded   : 2
D: Affected SOP class UID : PrinterSOPClass
D: Affected SOP instc UID : 1.2.840.10008.5.1.1.17
D: DICOM data stream      : not present
D: Status                 : 0x0000
D: Event Type ID          : not present
D: [END MESSAGE DUMP]
D:
D: DcmDataset::read() TransferSyntax="Little Endian Implicit"
D:
D: [RECEIVING MESSAGE]
D: [BEGIN MESSAGE DUMP]
D: Message type           : N-CREATE request
D: Message ID             : 14
D: Affected SOP class UID : BasicFilmBoxSOPClass
D: Affected SOP instc UID : not present
D: DICOM data stream      : present
D: [END MESSAGE DUMP]
D:
D: DcmDataset::read() TransferSyntax="Little Endian Implicit"
D: [DATASET DUMP BEGIN]
D: # Dicom-Data-Set
D: # Used TransferSyntax: Little Endian Implicit
D: (2010,0010) ST [STANDARD\1,1]                           #  12, 1 ImageDisplayFormat
D: (2010,0040) CS [PORTRAIT]                               #   8, 1 FilmOrientation
D: (2010,0050) CS [14INX17IN]                              #  10, 1 FilmSizeID
D: (2010,0060) CS [CUBIC]                                  #   6, 1 MagnificationType
D: (2010,0080) CS (no value available)                     #   0, 0 SmoothingType
D: (2010,0100) CS [BLACK]                                  #   6, 1 BorderDensity
D: (2010,0110) CS [BLACK]                                  #   6, 1 EmptyImageDensity
D: (2010,0120) US 0                                        #   2, 1 MinDensity
D: (2010,0130) US 300                                      #   2, 1 MaxDensity
D: (2010,0140) CS [YES]                                    #   4, 1 Trim
D: (2010,0150) ST [MCM]                                    #   4, 1 ConfigurationInformation
D: (2010,0500) SQ (Sequence with explicit length #=1)      #  96, 1 ReferencedFilmSessionSequence
D:   (fffe,e000) na (Item with explicit length #=2)          #  88, 1 Item
D:     (0008,1150) UI =BasicFilmSessionSOPClass                #  22, 1 ReferencedSOPClassUID
D:     (0008,1155) UI [1.2.276.0.7230010.3.1.4.0.21347.1539357245.190691] #  50, 1 ReferencedSOPInstanceUID
D:   (fffe,e00d) na (ItemDelimitationItem for re-encoding)   #   0, 0 ItemDelimitationItem
D: (fffe,e0dd) na (SequenceDelimitationItem for re-encod.) #   0, 0 SequenceDelimitationItem
D: [DATASET DUMP ENDED]
D:
D: [SENDING MESSAGE WITH DATASET]
D: [BEGIN MESSAGE DUMP]
D: Message type           : N-CREATE response
D: Message ID responded   : 14
D: Affected SOP class UID : BasicFilmBoxSOPClass
D: Affected SOP instc UID : 1.2.276.0.7230010.3.1.4.0.21347.1539357245.190693
D: DICOM data stream      : present
D: Status                 : 0x0000
D: [END MESSAGE DUMP]
D:
D: [DATASET DUMP BEGIN]
D: # Dicom-Data-Set
D: # Used TransferSyntax: Little Endian Explicit
D: (2010,0010) ST [STANDARD\1,1]                           #  12, 1 ImageDisplayFormat
D: (2010,0040) CS [PORTRAIT]                               #   8, 1 FilmOrientation
D: (2010,0050) CS [14INX17IN]                              #  10, 1 FilmSizeID
D: (2010,0060) CS [CUBIC]                                  #   6, 1 MagnificationType
D: (2010,0100) CS [BLACK]                                  #   6, 1 BorderDensity
D: (2010,0110) CS [BLACK]                                  #   6, 1 EmptyImageDensity
D: (2010,0120) US 19                                       #   2, 1 MinDensity
D: (2010,0130) US 300                                      #   2, 1 MaxDensity
D: (2010,0140) CS [YES]                                    #   4, 1 Trim
D: (2010,0150) ST (no value available)                     #   0, 0 ConfigurationInformation
D: (2010,0500) SQ (Sequence with explicit length #=1)      #   0, 1 ReferencedFilmSessionSequence
D:   (fffe,e000) na (Item with explicit length #=2)          #   0, 1 Item
D:     (0008,1150) UI =BasicFilmSessionSOPClass                #  22, 1 ReferencedSOPClassUID
D:     (0008,1155) UI [1.2.276.0.7230010.3.1.4.0.21347.1539357245.190691] #  50, 1 ReferencedSOPInstanceUID
D:   (fffe,e00d) na (ItemDelimitationItem for re-encoding)   #   0, 0 ItemDelimitationItem
D: (fffe,e0dd) na (SequenceDelimitationItem for re-encod.) #   0, 0 SequenceDelimitationItem
D: (2010,0510) SQ (Sequence with explicit length #=1)      #   0, 1 ReferencedImageBoxSequence
D:   (fffe,e000) na (Item with explicit length #=2)          #   0, 1 Item
D:     (0008,1150) UI =BasicColorImageBoxSOPClass              #  24, 1 ReferencedSOPClassUID
D:     (0008,1155) UI [1.2.276.0.7230010.3.1.4.0.21347.1539357250.190695] #  50, 1 ReferencedSOPInstanceUID
D:   (fffe,e00d) na (ItemDelimitationItem for re-encoding)   #   0, 0 ItemDelimitationItem
D: (fffe,e0dd) na (SequenceDelimitationItem for re-encod.) #   0, 0 SequenceDelimitationItem
D: [DATASET DUMP ENDED]
D: DcmDataset::read() TransferSyntax="Little Endian Implicit"
D:
D: [RECEIVING MESSAGE]
D: [BEGIN MESSAGE DUMP]
D: Message type           : N-SET request
D: Message ID             : 15
D: Requestd SOP class UID : BasicGrayscaleImageBoxSOPClass
D: Requestd SOP instc UID : 1.2.276.0.7230010.3.1.4.0.21347.1539357250.190695
D: DICOM data stream      : present
D: [END MESSAGE DUMP]
D:
D: DcmDataset::read() TransferSyntax="Little Endian Implicit"
D: DcmItem::checkAndUpdateVR() setting undefined VR of PixelData (7fe0,0010) to 'OW'
D: [DATASET DUMP BEGIN]
D: # Dicom-Data-Set
D: # Used TransferSyntax: Little Endian Implicit
D: (2010,0060) CS [CUBIC]                                  #   6, 1 MagnificationType
D: (2010,0080) CS (no value available)                     #   0, 0 SmoothingType
D: (2020,0010) US 1                                        #   2, 1 ImageBoxPosition
D: (2020,0020) CS [NORMAL]                                 #   6, 1 Polarity
D: (2020,0110) SQ (Sequence with explicit length #=1)      # 4923510, 1 BasicGrayscaleImageSequence
D:   (fffe,e000) na (Item with explicit length #=10)         # 4923502, 1 Item
D:     (0028,0002) US 1                                        #   2, 1 SamplesPerPixel
D:     (0028,0004) CS [MONOCHROME2]                            #  12, 1 PhotometricInterpretation
D:     (0028,0010) US 2404                                     #   2, 1 Rows
D:     (0028,0011) US 2048                                     #   2, 1 Columns
D:     (0028,0034) IS [1\1]                                    #   4, 2 PixelAspectRatio
D:     (0028,0100) US 8                                        #   2, 1 BitsAllocated
D:     (0028,0101) US 8                                        #   2, 1 BitsStored
D:     (0028,0102) US 7                                        #   2, 1 HighBit
D:     (0028,0103) US 0                                        #   2, 1 PixelRepresentation
D:     (7fe0,0010) OW 0000\0000\0000\0000\0000\0000\0000\0000\0000\0000\0000\0000\0000... # 4923392, 1 PixelData
D:   (fffe,e00d) na (ItemDelimitationItem for re-encoding)   #   0, 0 ItemDelimitationItem
D: (fffe,e0dd) na (SequenceDelimitationItem for re-encod.) #   0, 0 SequenceDelimitationItem
D: [DATASET DUMP ENDED]
D:
D: [SENDING MESSAGE]
D: [BEGIN MESSAGE DUMP]
D: Message type           : N-SET response
D: Message ID responded   : 15
D: Affected SOP class UID : BasicGrayscaleImageBoxSOPClass
D: Affected SOP instc UID : 1.2.276.0.7230010.3.1.4.0.21347.1539357250.190695
D: DICOM data stream      : not present
D: Status                 : 0x0112
D: [END MESSAGE DUMP]
D:
D: Detecting that association is gone.
D: 0006:0317 Peer aborted Association (or never connected)
As you can see, there's no error aparently from the server side, bet the client displays a message just saying "E_DCM_BASICIMG"...

Any hint?.

martinrame
Posts: 329
Joined: Mon, 2009-02-23, 19:57

Re: TCPSrv cannot print Toshiba Asteion

#2 Post by martinrame » Tue, 2018-11-13, 03:12

Sorry, I wrote that there isn't an error message from the server side, but clearly is an 0x0112 error in the N-SET Response to the BasicGrayscaleImageBoxSOPClass request.

What can be causing this error?.

martinrame
Posts: 329
Joined: Mon, 2009-02-23, 19:57

Re: TCPSrv cannot print Toshiba Asteion

#3 Post by martinrame » Tue, 2018-11-13, 13:22

When setting IgnoreMagnificationType=NO the error is this:

Code: Select all

2018-11-13 09:21:02.998 DEBUG - dcmprint - Assertion Failure
2018-11-13 09:21:02.998 DEBUG - dcmprint - routine   : n_create
2018-11-13 09:21:02.998 DEBUG - dcmprint - condition : magnification type invalid
2018-11-13 09:21:02.998 DEBUG - dcmprint - position  : file '/home/leonardo/desarrollo/dcmprint_srv/libsrc/psvbfb.cc' line 911
2018-11-13 09:21:02.998 DEBUG - dcmprint - action    : none
2018-11-13 09:21:02.998 DEBUG - dcmprint - Assertion Failure
The Magnification Type sent by the SCU is CUBIC, is there a way to override that from server side, to BILINEAR, for example?.

martinrame
Posts: 329
Joined: Mon, 2009-02-23, 19:57

[SOLVED] Re: TCPSrv cannot print Toshiba Asteion

#4 Post by martinrame » Wed, 2018-11-14, 11:32

Finally it worked!. The fix was configuring the CT to NOT TRIM images and use BILINEAR magnification.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest