I follow the instructions posted here (https://support.dcmtk.org/redmine/proje ... gWithDCMTK) to retrieve images using movescu. Here is what I did:
1) Create folder ~/DICOM/ and ~/DICOM/RXTX/ with enough permisions
2) Copy dcmqrscp.cfg into DICOM folder
3) Edit like this:
Code: Select all
# Global Configuration Parameters
#
NetworkTCPPort = 2000
MaxPDUSize = 64234
MaxAssociations = 16
HostTable BEGIN
gepacs = (GEPACS, 10.25.22.5, 4100)
GEPACS = gepacs
iacovid = (IACOVID, 10.1.6.133, 2000)
IACOVID = iacovid
HostTable END
VendorTable BEGIN
"GE-PACS RXTX" = GEPACS
VendorTable END
AETable BEGIN
IACOVID /home/jgibert/DICOM/RXTX RW (20000, 1024mb) ANY
AETable END
Code: Select all
D: $dcmtk: echoscu v3.6.5+ DEV $
D:
D: DcmDataDictionary: Loading file: /usr/local/share/dcmtk/dicom.dic
D: Request Parameters:
D: ====================== BEGIN A-ASSOCIATE-RQ =====================
D: Our Implementation Class UID: 1.2.276.0.7230010.3.0.3.6.5
D: Our Implementation Version Name: OFFIS_DCMTK_365
D: Their Implementation Class UID:
D: Their Implementation Version Name:
D: Application Context Name: 1.2.840.10008.3.1.1.1
D: Calling Application Name: IACOVID
D: Called Application Name: GEPACS
D: Responding Application Name: GEPACS
D: Our Max PDU Receive Size: 16384
D: Their Max PDU Receive Size: 0
D: Presentation Contexts:
D: Context ID: 1 (Proposed)
D: Abstract Syntax: =VerificationSOPClass
D: Proposed SCP/SCU Role: Default
D: Proposed Transfer Syntax(es):
D: =LittleEndianImplicit
D: Requested Extended Negotiation: none
D: Accepted Extended Negotiation: none
D: Requested User Identity Negotiation: none
D: User Identity Negotiation Response: none
D: ======================= END A-ASSOCIATE-RQ ======================
I: Requesting Association
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: 175 + 6 bytes PDU header
D: 02 00 00 00 00 af 00 01 00 00 47 45 50 41 43 53
D: 20 20 20 20 20 20 20 20 20 20 49 41 43 4f 56 49
D: 44 20 20 20 20 20 20 20 20 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 19 01 00 00 00 40 00 00 11 31
D: 2e 32 2e 38 34 30 2e 31 30 30 30 38 2e 31 2e 32
D: 50 00 00 31 51 00 00 04 00 00 fa ea 52 00 00 13
D: 31 2e 32 2e 38 34 30 2e 31 31 33 36 31 39 2e 36
D: 2e 39 34 55 00 00 0e 43 45 4e 54 52 49 43 49 54
D: 59 5f 34 2e 30
D: Parsing an A-ASSOCIATE PDU
D: Association Parameters Negotiated:
D: ====================== BEGIN A-ASSOCIATE-AC =====================
D: Our Implementation Class UID: 1.2.276.0.7230010.3.0.3.6.5
D: Our Implementation Version Name: OFFIS_DCMTK_365
D: Their Implementation Class UID: 1.2.840.113619.6.94
D: Their Implementation Version Name: CENTRICITY_4.0
D: Application Context Name: 1.2.840.10008.3.1.1.1
D: Calling Application Name: IACOVID
D: Called Application Name: GEPACS
D: Responding Application Name: GEPACS
D: Our Max PDU Receive Size: 16384
D: Their Max PDU Receive Size: 64234
D: Presentation Contexts:
D: Context ID: 1 (Accepted)
D: Abstract Syntax: =VerificationSOPClass
D: Proposed SCP/SCU Role: Default
D: Accepted SCP/SCU Role: Default
D: Accepted Transfer Syntax: =LittleEndianImplicit
D: Requested Extended Negotiation: none
D: Accepted Extended Negotiation: none
D: Requested User Identity Negotiation: none
D: User Identity Negotiation Response: none
D: ======================= END A-ASSOCIATE-AC ======================
I: Association Accepted (Max Send PDV: 64222)
I: Sending Echo Request (MsgID 1)
D: DcmDataset::read() TransferSyntax="Little Endian Implicit"
I: Received Echo Response (Success)
I: Releasing Association
Code: Select all
I: Requesting Association
I: Association Accepted (Max Send PDV: 64222)
I: Sending Find Request (MsgID 1)
I: Request Identifiers:
I:
I: # Dicom-Data-Set
I: # Used TransferSyntax: Little Endian Explicit
I: (0008,0020) DA (no value available) # 0, 0 StudyDate
I: (0008,0052) CS [STUDY] # 6, 1 QueryRetrieveLevel
I: (0008,1030) LO (no value available) # 0, 0 StudyDescription
I: (0010,0020) LO [967661] # 6, 1 PatientID
I: (0020,000d) UI (no value available) # 0, 0 StudyInstanceUID
I:
I: ---------------------------
I: Find Response: 1 (Pending)
I:
I: # Dicom-Data-Set
I: # Used TransferSyntax: Little Endian Explicit
I: (0008,0020) DA [20111222] # 8, 1 StudyDate
I: (0008,0052) CS [STUDY ] # 6, 1 QueryRetrieveLevel
I: (0008,0054) AE [GEPACS] # 6, 1 RetrieveAETitle
I: (0008,0056) CS [NEARLINE] # 8, 1 InstanceAvailability
I: (0008,1030) LO [EXTREMIDAD INFERIOR ] # 20, 1 StudyDescription
I: (0010,0020) LO [967661] # 6, 1 PatientID
I: (0020,000d) UI [1.2.250.1.59.911.113.200023311688] # 34, 1 StudyInstanceUID
I:
I: ---------------------------
I: Find Response: 2 (Pending)
I:
I: # Dicom-Data-Set
I: # Used TransferSyntax: Little Endian Explicit
I: (0008,0020) DA [20111128] # 8, 1 StudyDate
I: (0008,0052) CS [STUDY ] # 6, 1 QueryRetrieveLevel
I: (0008,0054) AE [GEPACS] # 6, 1 RetrieveAETitle
I: (0008,0056) CS [ONLINE] # 6, 1 InstanceAvailability
I: (0008,1030) LO [EXTREMIDAD INFERIOR ] # 20, 1 StudyDescription
I: (0010,0020) LO [967661] # 6, 1 PatientID
I: (0020,000d) UI [1.2.250.1.59.911.113.200023024171] # 34, 1 StudyInstanceUID
I:
I: ---------------------------
I: Find Response: 3 (Pending)
I:
I: # Dicom-Data-Set
I: # Used TransferSyntax: Little Endian Explicit
I: (0008,0020) DA [20100211] # 8, 1 StudyDate
I: (0008,0052) CS [STUDY ] # 6, 1 QueryRetrieveLevel
I: (0008,0054) AE [GEPACS] # 6, 1 RetrieveAETitle
I: (0008,0056) CS [NEARLINE] # 8, 1 InstanceAvailability
I: (0008,1030) LO [EXTREMIDAD INFERIOR ] # 20, 1 StudyDescription
I: (0010,0020) LO [967661] # 6, 1 PatientID
I: (0020,000d) UI [1.2.250.1.59.911.113.200013908688] # 34, 1 StudyInstanceUID
I:
I: ---------------------------
I: Find Response: 4 (Pending)
I:
I: # Dicom-Data-Set
I: # Used TransferSyntax: Little Endian Explicit
I: (0008,0020) DA [20120405] # 8, 1 StudyDate
I: (0008,0052) CS [STUDY ] # 6, 1 QueryRetrieveLevel
I: (0008,0054) AE [GEPACS] # 6, 1 RetrieveAETitle
I: (0008,0056) CS [NEARLINE] # 8, 1 InstanceAvailability
I: (0008,1030) LO [EXTREMIDAD INFERIOR ] # 20, 1 StudyDescription
I: (0010,0020) LO [967661] # 6, 1 PatientID
I: (0020,000d) UI [1.2.250.1.59.911.113.200024698355] # 34, 1 StudyInstanceUID
I: [...]
I: Received Final Find Response (Success)
I: Releasing Association
Code: Select all
D: DcmDataDictionary: Loading file: /usr/local/share/dcmtk/dicom.dic
D: $dcmtk: movescu v3.6.5+ DEV $
D:
D: Request Parameters:
D: ====================== BEGIN A-ASSOCIATE-RQ =====================
D: Our Implementation Class UID: 1.2.276.0.7230010.3.0.3.6.5
D: Our Implementation Version Name: OFFIS_DCMTK_365
D: Their Implementation Class UID:
D: Their Implementation Version Name:
D: Application Context Name: 1.2.840.10008.3.1.1.1
D: Calling Application Name: IACOVID
D: Called Application Name: GEPACS
D: Responding Application Name: GEPACS
D: Our Max PDU Receive Size: 16384
D: Their Max PDU Receive Size: 0
D: Presentation Contexts:
D: Context ID: 1 (Proposed)
D: Abstract Syntax: =FINDStudyRootQueryRetrieveInformationModel
D: Proposed SCP/SCU Role: Default
D: Proposed Transfer Syntax(es):
D: =LittleEndianExplicit
D: =BigEndianExplicit
D: =LittleEndianImplicit
D: Context ID: 3 (Proposed)
D: Abstract Syntax: =MOVEStudyRootQueryRetrieveInformationModel
D: Proposed SCP/SCU Role: Default
D: Proposed Transfer Syntax(es):
D: =LittleEndianExplicit
D: =BigEndianExplicit
D: =LittleEndianImplicit
D: Requested Extended Negotiation: none
D: Accepted Extended Negotiation: none
D: Requested User Identity Negotiation: none
D: User Identity Negotiation Response: none
D: ======================= END A-ASSOCIATE-RQ ======================
I: Requesting Association
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: 208 + 6 bytes PDU header
D: 02 00 00 00 00 d0 00 01 00 00 47 45 50 41 43 53
D: 20 20 20 20 20 20 20 20 20 20 49 41 43 4f 56 49
D: 44 20 20 20 20 20 20 20 20 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 50 00 00 31 51 00 00 04 00 00 fa ea 52 00 00
D: 13 31 2e 32 2e 38 34 30 2e 31 31 33 36 31 39 2e
D: 36 2e 39 34 55 00 00 0e 43 45 4e 54 52 49 43 49
D: 54 59 5f 34 2e 30
D: Parsing an A-ASSOCIATE PDU
D: Association Parameters Negotiated:
D: ====================== BEGIN A-ASSOCIATE-AC =====================
D: Our Implementation Class UID: 1.2.276.0.7230010.3.0.3.6.5
D: Our Implementation Version Name: OFFIS_DCMTK_365
D: Their Implementation Class UID: 1.2.840.113619.6.94
D: Their Implementation Version Name: CENTRICITY_4.0
D: Application Context Name: 1.2.840.10008.3.1.1.1
D: Calling Application Name: IACOVID
D: Called Application Name: GEPACS
D: Responding Application Name: GEPACS
D: Our Max PDU Receive Size: 16384
D: Their Max PDU Receive Size: 64234
D: Presentation Contexts:
D: Context ID: 1 (Accepted)
D: Abstract Syntax: =FINDStudyRootQueryRetrieveInformationModel
D: Proposed SCP/SCU Role: Default
D: Accepted SCP/SCU Role: Default
D: Accepted Transfer Syntax: =LittleEndianExplicit
D: Context ID: 3 (Accepted)
D: Abstract Syntax: =MOVEStudyRootQueryRetrieveInformationModel
D: Proposed SCP/SCU Role: Default
D: Accepted SCP/SCU Role: Default
D: Accepted Transfer Syntax: =LittleEndianExplicit
D: Requested Extended Negotiation: none
D: Accepted Extended Negotiation: none
D: Requested User Identity Negotiation: none
D: User Identity Negotiation Response: none
D: ======================= END A-ASSOCIATE-AC ======================
I: Association Accepted (Max Send PDV: 64222)
I: Sending Move Request
D: ===================== OUTGOING DIMSE MESSAGE ====================
D: Message Type : C-MOVE RQ
D: Presentation Context ID : 3
D: Message ID : 1
D: Affected SOP Class UID : MOVEStudyRootQueryRetrieveInformationModel
D: Data Set : present
D: Priority : medium
D: Move Destination : IACOVID
D: ======================= END DIMSE MESSAGE =======================
I: Request Identifiers:
I:
I: # Dicom-Data-Set
I: # Used TransferSyntax: Little Endian Explicit
I: (0008,0020) DA [20200326] # 8, 1 StudyDate
I: (0008,0052) CS [STUDY] # 6, 1 QueryRetrieveLevel
I: (0010,0020) LO [967661] # 6, 1 PatientID
I: (0020,000d) UI [1.2.250.1.59.911.113.200023024171] # 34, 1 StudyInstanceUID
I:
D: DcmDataset::read() TransferSyntax="Little Endian Implicit"
D: DcmDataset::read() TransferSyntax="Little Endian Explicit"
W: Move response with error status (Failed: UnableToProcess)
I: Received Final Move Response
D: ===================== INCOMING DIMSE MESSAGE ====================
D: Message Type : C-MOVE RSP
D: Message ID Being Responded To : 1
D: Affected SOP Class UID : MOVEStudyRootQueryRetrieveInformationModel
D: Remaining Suboperations : none
D: Completed Suboperations : none
D: Failed Suboperations : none
D: Warning Suboperations : none
D: Data Set : present
D: DIMSE Status : 0xc001: Error: Failed - Unable to process
D: ======================= END DIMSE MESSAGE =======================
D: Response Identifiers:
D:
D: # Dicom-Data-Set
D: # Used TransferSyntax: Little Endian Explicit
D: (0008,0058) UI [1.3.51.0.7.1651989075.62080.19676.46083.22662.3660.60014\1.3.51.0.7.1844208051.6800.18706.46514.65102.53576.38789\1.3.51.0.7.12926702002.7255.17773.40444.22473.25804.5940] # 170, 3 FailedSOPInstanceUIDList
D:
D: Status Detail:
D:
D: # Dicom-Data-Set
D: # Used TransferSyntax: Little Endian Implicit
[b]D: (0000,0902) LO [DESTINATION_HOST_NOT_REACHABLE] # 30, 1 ErrorComment[/b]
D:
I: Releasing Association
Thanks!