tcpprt printing to Carestream DryView 5950

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: 335
Joined: Mon, 2009-02-23, 19:57

tcpprt printing to Carestream DryView 5950

#1 Post by martinrame » Wed, 2022-01-05, 20:54

Hi, I'm trying to print to a Carestream DryView 5950 using tcpprt.

From the client side everything looks correct (see the next output), but the printer, in its display shows an error that looks like an incorrect film size.

First B 20 and then B 25 and a three sheets of paper icon indicating the printer does not have the requested film size or film type.

Image
Image

Code: Select all

I: DICOM PostScript print manager
I: ==============================
I:
D: [ASSOCIATION REQUEST BEGIN]
D:     Calling AE Title    : IMPRINTONDEMAND
D:     Called AE Title     : DV5950M
D:     Calling Pres Address: server-im
D:     Called Pres Address : 192.168.132.101:5040
D:     Application Context : StandardApplicationContext
D:     Presentation Context 001 : BasicGrayscalePrintManagementMetaSOPClass
D:       Transfer Syntax        : LittleEndianExplicit
D:       Transfer Syntax        : BigEndianExplicit
D:       Transfer Syntax        : LittleEndianImplicit
D:     Presentation Context 003 : BasicAnnotationBoxSOPClass
D:       Transfer Syntax        : LittleEndianExplicit
D:       Transfer Syntax        : BigEndianExplicit
D:       Transfer Syntax        : LittleEndianImplicit
D:     Presentation Context 005 : PresentationLUTSOPClass
D:       Transfer Syntax        : LittleEndianExplicit
D:       Transfer Syntax        : BigEndianExplicit
D:       Transfer Syntax        : LittleEndianImplicit
D:     Presentation Context 007 : PrintJobSOPClass
D:       Transfer Syntax        : LittleEndianExplicit
D:       Transfer Syntax        : BigEndianExplicit
D:       Transfer Syntax        : LittleEndianImplicit
D: [ASSOCIATION REQUEST END]
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: 265 + 6 bytes PDU header
D:   02  00  00  00  01  09  00  01  00  00  44  56  35  39  35  30
D:   4d  20  20  20  20  20  20  20  20  20  49  4d  50  52  49  4e
D:   54  4f  4e  44  45  4d  41  4e  44  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  1b  01  00  00  00  40  00  00  13  31
D:   2e  32  2e  38  34  30  2e  31  30  30  30  38  2e  31  2e  32
D:   2e  31  21  00  00  1b  03  00  00  00  40  00  00  13  31  2e
D:   32  2e  38  34  30  2e  31  30  30  30  38  2e  31  2e  32  2e
D:   31  21  00  00  1b  05  00  00  00  40  00  00  13  31  2e  32
D:   2e  38  34  30  2e  31  30  30  30  38  2e  31  2e  32  2e  31
D:   21  00  00  1b  07  00  03  00  40  00  00  13  31  2e  32  2e
D:   38  34  30  2e  31  30  30  30  38  2e  31  2e  32  2e  31  50
D:   00  00  2c  51  00  00  04  00  02  00  00  52  00  00  14  31
D:   2e  32  2e  38  34  30  2e  31  31  33  35  36  34  2e  33  2e
D:   33  2e  33  55  00  00  08  35  39  35  30  76  31  2e  30
D: Parsing an A-ASSOCIATE PDU
I: DIMSE connection established.
D:
D: [SENDING MESSAGE]
D: [BEGIN MESSAGE DUMP]
D: Message type           : N-GET request
D: Message ID             : 3
D: Requestd SOP class UID : PrinterSOPClass
D: Requestd SOP instc UID : 1.2.840.10008.5.1.1.17
D: DICOM data stream      : not present
D: Attribute ID list      : (2110,0010) (2110,0020) (2110,0030) (0008,0070) (0008,1090) (0018,1000) (0018,1020) (0018,1200) (0018,1201)
D: [END MESSAGE DUMP]
D:
D: DcmDataset::read() TransferSyntax="Little Endian Implicit"
D:
D: [RECEIVING MESSAGE]
D: [BEGIN MESSAGE DUMP]
D: Message type           : N-GET response
D: Message ID responded   : 3
D: Affected SOP class UID : PrinterSOPClass
D: Affected SOP instc UID : 1.2.840.10008.5.1.1.17
D: DICOM data stream      : present
D: Status                 : 0x0000
D: [END MESSAGE DUMP]
D:
D: DcmDataset::read() TransferSyntax="Little Endian Explicit"
D: [DATASET DUMP BEGIN]
D: # Dicom-Data-Set
D: # Used TransferSyntax: Little Endian Explicit
D: (0008,0070) LO [Carestream Health]                      #  18, 1 Manufacturer
D: (0008,1090) LO [5950]                                   #   4, 1 ManufacturerModelName
D: (0018,1000) LO [59544170]                               #   8, 1 DeviceSerialNumber
D: (0018,1020) LO [59544170]                               #   8, 1 SoftwareVersions
D: (2110,0010) CS [NORMAL]                                 #   6, 1 PrinterStatus
D: (2110,0020) CS [NORMAL]                                 #   6, 1 PrinterStatusInfo
D: (2110,0030) LO [5950]                                   #   4, 1 PrinterName
D: [DATASET DUMP ENDED]
D:
D: [SENDING MESSAGE WITH DATASET]
D: [BEGIN MESSAGE DUMP]
D: Message type           : N-CREATE request
D: Message ID             : 5
D: Affected SOP class UID : BasicFilmSessionSOPClass
D: Affected SOP instc UID : 1.2.276.0.7230010.3.1.4.8323329.30588.1641411221.640481
D: DICOM data stream      : present
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: [DATASET DUMP ENDED]
D: DcmDataset::read() TransferSyntax="Little Endian Implicit"
D:
D: [RECEIVING MESSAGE]
D: [BEGIN MESSAGE DUMP]
D: Message type           : N-CREATE response
D: Message ID responded   : 5
D: Affected SOP class UID : BasicFilmSessionSOPClass
D: Affected SOP instc UID : 1.2.276.0.7230010.3.1.4.8323329.30588.1641411221.640481
D: DICOM data stream      : not present
D: Status                 : 0x0000
D: [END MESSAGE DUMP]
D:
I: starting execution...
Using mode '1' (Printserver Custom Layout, 1 image/page, collated)
Setting medium type to BLUEFILM
D:
D: [SENDING MESSAGE WITH DATASET]
D: [BEGIN MESSAGE DUMP]
D: Message type           : N-SET request
D: Message ID             : 7
D: Requestd SOP class UID : BasicFilmSessionSOPClass
D: Requestd SOP instc UID : 1.2.276.0.7230010.3.1.4.8323329.30588.1641411221.640481
D: DICOM data stream      : present
D: [END MESSAGE DUMP]
D:
D: [DATASET DUMP BEGIN]
D: # Dicom-Data-Set
D: # Used TransferSyntax: Little Endian Explicit
D: (2000,0030) CS [BLUEFILM]                               #   8, 1 MediumType
D: [DATASET DUMP ENDED]
D: DcmDataset::read() TransferSyntax="Little Endian Implicit"
D:
D: [RECEIVING MESSAGE]
D: [BEGIN MESSAGE DUMP]
D: Message type           : N-SET response
D: Message ID responded   : 7
D: Affected SOP class UID : BasicFilmSessionSOPClass
D: Affected SOP instc UID : 1.2.276.0.7230010.3.1.4.8323329.30588.1641411221.640481
D: DICOM data stream      : present
D: Status                 : 0x0000
D: [END MESSAGE DUMP]
D:
D: DcmDataset::read() TransferSyntax="Little Endian Explicit"
D: [DATASET DUMP BEGIN]
D: # Dicom-Data-Set
D: # Used TransferSyntax: Little Endian Explicit
D: (2000,0030) CS [BLUE FILM]                              #  10, 1 MediumType
D: [DATASET DUMP ENDED]
Setting page image display format to STANDARD\1,1
Setting page size to 8INX10IN
Creating presentation LUT shape IDENTITY
D:
D: [SENDING MESSAGE WITH DATASET]
D: [BEGIN MESSAGE DUMP]
D: Message type           : N-CREATE request
D: Message ID             : 9
D: Affected SOP class UID : PresentationLUTSOPClass
D: Affected SOP instc UID : 1.2.276.0.7230010.3.1.4.8323329.30588.1641411221.640482
D: DICOM data stream      : present
D: [END MESSAGE DUMP]
D:
D: [DATASET DUMP BEGIN]
D: # Dicom-Data-Set
D: # Used TransferSyntax: Little Endian Explicit
D: (2050,0020) CS [IDENTITY]                               #   8, 1 PresentationLUTShape
D: [DATASET DUMP ENDED]
D: DcmDataset::read() TransferSyntax="Little Endian Implicit"
D:
D: [RECEIVING MESSAGE]
D: [BEGIN MESSAGE DUMP]
D: Message type           : N-CREATE response
D: Message ID responded   : 9
D: Affected SOP class UID : PresentationLUTSOPClass
D: Affected SOP instc UID : 1.2.276.0.7230010.3.1.4.8323329.30588.1641411221.640482
D: DICOM data stream      : not present
D: Status                 : 0x0000
D: [END MESSAGE DUMP]
D:
Creating new page.
D:
D: [SENDING MESSAGE WITH DATASET]
D: [BEGIN MESSAGE DUMP]
D: Message type           : N-CREATE request
D: Message ID             : 11
D: Affected SOP class UID : BasicFilmBoxSOPClass
D: Affected SOP instc UID : 1.2.276.0.7230010.3.1.4.8323329.30588.1641411221.640483
D: DICOM data stream      : present
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,0050) CS [8INX10IN]                               #   8, 1 FilmSizeID
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.8323329.30588.1641411221.640481] #  56, 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-CREATE response
D: Message ID responded   : 11
D: Affected SOP class UID : BasicFilmBoxSOPClass
D: Affected SOP instc UID : 1.2.276.0.7230010.3.1.4.8323329.30588.1641411221.640483
D: DICOM data stream      : present
D: Status                 : 0x0000
D: [END MESSAGE DUMP]
D:
D: DcmDataset::read() TransferSyntax="Little Endian Explicit"
D: [DATASET DUMP BEGIN]
D: # Dicom-Data-Set
D: # Used TransferSyntax: Little Endian Explicit
D: (2010,0500) SQ (Sequence with explicit length #=1)      # 102, 1 ReferencedFilmSessionSequence
D:   (fffe,e000) na (Item with explicit length #=2)          #  94, 1 Item
D:     (0008,1150) UI =BasicFilmSessionSOPClass                #  22, 1 ReferencedSOPClassUID
D:     (0008,1155) UI [1.2.276.0.7230010.3.1.4.8323329.30588.1641411221.640481] #  56, 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)      # 100, 1 ReferencedImageBoxSequence
D:   (fffe,e000) na (Item with explicit length #=2)          #  92, 1 Item
D:     (0008,1150) UI =BasicGrayscaleImageBoxSOPClass          #  22, 1 ReferencedSOPClassUID
D:     (0008,1155) UI [1.2.840.113564.11.192.168.132.101.2022.1.5.16.55.8.107] #  54, 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]
Setting image trim to NO
D:
D: [SENDING MESSAGE WITH DATASET]
D: [BEGIN MESSAGE DUMP]
D: Message type           : N-SET request
D: Message ID             : 13
D: Requestd SOP class UID : BasicFilmBoxSOPClass
D: Requestd SOP instc UID : 1.2.276.0.7230010.3.1.4.8323329.30588.1641411221.640483
D: DICOM data stream      : present
D: [END MESSAGE DUMP]
D:
D: [DATASET DUMP BEGIN]
D: # Dicom-Data-Set
D: # Used TransferSyntax: Little Endian Explicit
D: (2010,0140) CS [NO]                                     #   2, 1 Trim
D: [DATASET DUMP ENDED]
D: DcmDataset::read() TransferSyntax="Little Endian Implicit"
D:
D: [RECEIVING MESSAGE]
D: [BEGIN MESSAGE DUMP]
D: Message type           : N-SET response
D: Message ID responded   : 13
D: Affected SOP class UID : BasicFilmBoxSOPClass
D: Affected SOP instc UID : 1.2.276.0.7230010.3.1.4.8323329.30588.1641411221.640483
D: DICOM data stream      : not present
D: Status                 : 0x0000
D: [END MESSAGE DUMP]
D:
D:
D: [SENDING MESSAGE WITH DATASET]
D: [BEGIN MESSAGE DUMP]
D: Message type           : N-SET request
D: Message ID             : 15
D: Requestd SOP class UID : BasicFilmBoxSOPClass
D: Requestd SOP instc UID : 1.2.276.0.7230010.3.1.4.8323329.30588.1641411221.640483
D: DICOM data stream      : present
D: [END MESSAGE DUMP]
D:
D: [DATASET DUMP BEGIN]
D: # Dicom-Data-Set
D: # Used TransferSyntax: Little Endian Explicit
D: (2050,0500) SQ (Sequence with explicit length #=1)      #   0, 1 ReferencedPresentationLUTSequence
D:   (fffe,e000) na (Item with explicit length #=2)          #   0, 1 Item
D:     (0008,1150) UI =PresentationLUTSOPClass                 #  22, 1 ReferencedSOPClassUID
D:     (0008,1155) UI [1.2.276.0.7230010.3.1.4.8323329.30588.1641411221.640482] #  56, 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 response
D: Message ID responded   : 15
D: Affected SOP class UID : BasicFilmBoxSOPClass
D: Affected SOP instc UID : 1.2.276.0.7230010.3.1.4.8323329.30588.1641411221.640483
D: DICOM data stream      : not present
D: Status                 : 0x0000
D: [END MESSAGE DUMP]
D:
Downloading image file /tmp/4944.dcm
D: DcmMetaInfo::checkAndReadPreamble() TransferSyntax="Little Endian Explicit"
D: DcmDataset::read() TransferSyntax="Little Endian Explicit"
D: transfer syntax of DICOM dataset: Little Endian Explicit (1.2.840.10008.1.2.1)
D: reading uncompressed pixel data completely into memory
D: convert input pixel data: case 1a (single copy)
D: determining global minimum and maximum pixel values for monochrome image
D: applying no VOI transformation (linear scaling)
D: using optimized routine with additional LUT (256 entries)
D:
D: [SENDING MESSAGE WITH DATASET]
D: [BEGIN MESSAGE DUMP]
D: Message type           : N-SET request
D: Message ID             : 17
D: Requestd SOP class UID : BasicGrayscaleImageBoxSOPClass
D: Requestd SOP instc UID : 1.2.840.113564.11.192.168.132.101.2022.1.5.16.55.8.107
D: DICOM data stream      : present
D: [END MESSAGE DUMP]
D:
D: [DATASET DUMP BEGIN]
D: # Dicom-Data-Set
D: # Used TransferSyntax: Little Endian Explicit
D: (2020,0010) US 1                                        #   2, 1 ImageBoxPosition
D: (2020,0110) SQ (Sequence with explicit length #=1)      #   0, 1 BasicGrayscaleImageSequence
D:   (fffe,e000) na (Item with explicit length #=9)          #   0, 1 Item
D:     (0028,0002) US 1                                        #   2, 1 SamplesPerPixel
D:     (0028,0004) CS [MONOCHROME2]                            #  12, 1 PhotometricInterpretation
D:     (0028,0010) US 3507                                     #   2, 1 Rows
D:     (0028,0011) US 2480                                     #   2, 1 Columns
D:     (0028,0100) US 16                                       #   2, 1 BitsAllocated
D:     (0028,0101) US 12                                       #   2, 1 BitsStored
D:     (0028,0102) US 11                                       #   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... # 17394720, 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: DcmDataset::read() TransferSyntax="Little Endian Implicit"
D:
D: [RECEIVING MESSAGE]
D: [BEGIN MESSAGE DUMP]
D: Message type           : N-SET response
D: Message ID responded   : 17
D: Affected SOP class UID : BasicGrayscaleImageBoxSOPClass
D: Affected SOP instc UID : 1.2.840.113564.11.192.168.132.101.2022.1.5.16.55.8.107
D: DICOM data stream      : present
D: Status                 : 0x0000
D: [END MESSAGE DUMP]
D:
D: DcmDataset::read() TransferSyntax="Little Endian Explicit"
D: [DATASET DUMP BEGIN]
D: # Dicom-Data-Set
D: # Used TransferSyntax: Little Endian Explicit
D: (0028,0034) IS [1\1]                                    #   4, 2 PixelAspectRatio
D: [DATASET DUMP ENDED]
Printing...
D:
D: [SENDING MESSAGE]
D: [BEGIN MESSAGE DUMP]
D: Message type           : N-ACTION request
D: Message ID             : 19
D: Requestd SOP class UID : BasicFilmBoxSOPClass
D: Requestd SOP instc UID : 1.2.276.0.7230010.3.1.4.8323329.30588.1641411221.640483
D: DICOM data stream      : not present
D: Action 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-ACTION response
D: Message ID responded   : 19
D: Affected SOP class UID : BasicFilmBoxSOPClass
D: Affected SOP instc UID : 1.2.276.0.7230010.3.1.4.8323329.30588.1641411221.640483
D: DICOM data stream      : not present
D: Status                 : 0x0000
D: Action Type ID         : 1
D: [END MESSAGE DUMP]
D:
D:
D: [SENDING MESSAGE]
D: [BEGIN MESSAGE DUMP]
D: Message type           : N-DELETE request
D: Message ID             : 21
D: Requestd SOP class UID : BasicFilmBoxSOPClass
D: Requestd SOP instc UID : 1.2.276.0.7230010.3.1.4.8323329.30588.1641411221.640483
D: DICOM data stream      : 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-DELETE response
D: Message ID responded   : 21
D: Affected SOP class UID : BasicFilmBoxSOPClass
D: Affected SOP instc UID : 1.2.276.0.7230010.3.1.4.8323329.30588.1641411221.640483
D: DICOM data stream      : not present
D: Status                 : 0x0000
D: [END MESSAGE DUMP]
D:
Done.
I: terminating...
As you can see the communication between tcpprt and the printer ends without errors. But it looks like I'm not correctly telling the printer which film size or type it should select for printing this file.

I must add, printing both RX and Mammo images works without issues when sending from the modality.

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

[SOLVED] Re: tcpprt printing to Carestream DryView 5950

#2 Post by martinrame » Thu, 2022-01-06, 15:58

Now it works. The printer had to be configured (via a Web Page that only runs on Internet Explorer 6), and adding a setting for the calling AETitle, where there the field engineer defines to which bin/film size pages sent by that client should be printed.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest