TCP initialization error

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
virendram
Posts: 8
Joined: Mon, 2017-05-29, 15:48

TCP initialization error

#1 Post by virendram »

Hi,

I have been working on configuring a PACS server in my lab to query and retrieve the data directly from the MRI scanner (SKYRA 3T)
The local PACS server is running Centos 7 3.10.0-514.16.1.el7.x86_64

I installed DCMTK from the website, compiled, and ran a make check to verify that everything is working fine.

Then based on the “Debugging PACS” page, I modified my dcmqrscp.cfg as:

# Global Configuration Parameters
#
NetworkTCPPort = 11112
MaxPDUSize = 16384
MaxAssociations = 16

HostTable BEGIN
localpacs = (NEUROIMAGING, xx.xx.xx.xx, 4054) # (This is my PACS server)
skyrascanner = (AN_MEDCOMNT, yy.yy.yy.yy, 104) # (This is Scanner’s information)
HostTable END

VendorTable BEGIN
"LOCAL PACS" = localpacs
"SKYRA SCANNER" = skyrascanner
VendorTable END

AETable BEGIN
PACS_STORE /home/dicom/LOCAL_STORE RW (200, 10024mb) localpacs
SCANNER_STORE /home/ dicom/SCAN_STORE RW (200, 10024mb) skyrascanner
AETable END

Then, I did echoscu as: ./echoscu -d localhost 11112 -aet NEUROIMAGING -aec SCANNER_STORE

And the command returned an error:

D: $dcmtk: echoscu v3.6.1 DEV $
D:
D: DcmDataDictionary: Loading file: /home/ dicom/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.1
D: Our Implementation Version Name: OFFIS_DCMTK_361
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: NEUROIMAGING
D: Called Application Name: SCANNER_STORE
D: Responding Application Name: resp. AP Title
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
F: Association Request Failed: 0006:031b Failed to establish association
F: 0006:0317 Peer aborted Association (or never connected)
F: 0006:031c TCP Initialization Error: Connection refused

The scanner is already configured with AETitle: NEUROIMAGING; IP: xx.xx.xx.xx; PORT: 4054 and according to Siemens they can ping my local PACS.

I tried to run dcmqrscp –config dcmqrscp.cfg but the cursor kept blinking and it returned nothing.

I will greatly appreciate any suggestions that you may have to resolve this.

a) Did I miss any step that may be stopping this?
b) This is the information from nmap

nmap -p 4054,11112 localhost

Starting Nmap 6.40 ( http://nmap.org ) at 2017-05-24 16:46 PDT
Nmap scan report for localhost (127.0.0.1)
Host is up (0.000071s latency).
Other addresses for localhost (not scanned): 127.0.0.1
PORT STATE SERVICE
4054/tcp closed unknown
11112/tcp closed unknown

Nmap done: 1 IP address (1 host up) scanned in 0.05 seconds

Is this OK?

I really apologize for this long email but would greatly appreciate your suggestions. Also, can you please give me access to the forum so that I may use that platform as well.

Thank you

Regards

Virendra

Michael Onken
DCMTK Developer
Posts: 2048
Joined: Fri, 2004-11-05, 13:47
Location: Oldenburg, Germany
Contact:

Re: TCP initialization error

#2 Post by Michael Onken »

Hi,

without looking into the configuration in detail:

The client does not get any connection at all. Make sure you are not behind a firewall, or disable your firewall for a moment to be sure its not an issue.
dcmqrscp does not print anything on startup, so it's fine. Try "-d" as an extra option, it will print a few lines (at least in current version).

nmap also shows that there is no related port open on your machine.

So my guess is Firewall. Or maybe even antivirus.

Best,
Michael

virendram
Posts: 8
Joined: Mon, 2017-05-29, 15:48

Re: TCP initialization error

#3 Post by virendram »

Thank you, Micahel for your reply.

I started dcmqrscp & in one terminal and typed ./echoscu -d 10.148.72.72 11112 -aec NEUROIMAGING -aet SCAN_STORE in another terminal. I get the error "Called AE Title not recognized" I am, however, able to ping from the scanner. I will greatly appreciate your insight to resolve this. I apologize if this is a very simple question but I have been trying to do this for several days now.


Thank you.

Regards

Virendra

Here is the log of the command ./echoscu -d 10.148.72.72 11112 -aec NEUROIMAGING -aet SCAN_STORE :
D: $dcmtk: echoscu v3.6.1 DEV $
D:
D: DcmDataDictionary: Loading file: /home/virendra/Desktop/dicom/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.1
D: Our Implementation Version Name: OFFIS_DCMTK_361
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: SCAN_STORE
D: Called Application Name: NEUROIMAGING
D: Responding Application Name: resp. AP Title
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
F: Association Rejected:
F: Result: Rejected Permanent, Source: Service User
F: Reason: Called AE Title Not Recognized


And here is the dcmqrscp.cfg file:
#-----------------------------------------------------------------------
#
# Example configuration file for the dcmqrscp and dcmqrti applications.
#
#-----------------------------------------------------------------------

#
# Global Configuration Parameters
#
NetworkTCPPort = 11112
MaxPDUSize = 16384
MaxAssociations = 16
#
# UserName = <not used>
# GroupName = <not used>

HostTable BEGIN
#
# The HostTable defines symbolic names for collections of network
# DICOM Application Entities. A symbolic name can represent a single
# application entity or it can represent a group of application entities.
# Each DICOM application entity is defined by a triple consisting of
# Application Entity Title, host name and TCP/IP port number.
#
# Entry Format: SymbolicName = ( AETitle, HostName, Portnumber ), ... |
# SymbolicName = SymbolicName, ...
#
# NOTE: in the current implementation you cannot substitute an IP address
# for a hostname.
#

localpacs = (NEUROIMAGING, 10.148.72.72, 4054)
skyrascanner = (AN_MEDCOMNT204, 10.148.93.17, 104)

HostTable END

VendorTable BEGIN
#
# The VendorTable is used by the dcmqrdb and dcmqrti applications.
# You can give a vendor name (r.h.s. entry below) to the dcmqrti
# program and it will talk to all hosts and AEs of the vendor.
# The dcmqrdb program can use the vendor table to restrict move destination
# to hosts belonging to a vendor.
# Also, the dcmqrti and dcmqrdb programs use the name defined on the left hand side
# as the vendor name to display above images.
#
# The format:
# VendorName = SymbolicName
# The symbolic name should be defined in the HostTable.
#
"LOCAL PACS" = localpacs
"SKYRA SCANNER" = skyrascanner
VendorTable END

AETable BEGIN
#
# Each row of the AETable defines an Application Entities (AE) Title known
# to the dcmqrdb application. Each AE Title represents a separate
# image database located in the specified file system directory (storage area).
# Each AE Title has read/write, quota and peer access restrictions.
#
# Entry Format: AETitle StorageArea Access Quota Peers
# AccessFormat: R | RW | W
# Quota Format: ( maxStudies, maxBytesPerStudy )
# Peers Format: ( Hostname, AETitle, Portnumber ), ... |
# Entry in HostTable |
# ANY
#

#COMMON /home/virendra/Desktop/dicom/COMMON R (200, 10024mb) ANY
LOCAL_STORE /home/virendra/Desktop/dicom/LOCAL_STORE RW (200, 10024mb) localpacs
SCAN_STORE /home/virendra/Desktop/dicom/SCAN_STORE RW (200, 10024mb) skyrascanner

AETable END

Michael Onken
DCMTK Developer
Posts: 2048
Joined: Fri, 2004-11-05, 13:47
Location: Oldenburg, Germany
Contact:

Re: TCP initialization error

#4 Post by Michael Onken »

Could you try swappping -aec and -aet options, i.e. -aet NEUROIMAGING -aec SCAN_STORE ?

Best,
Michael

virendram
Posts: 8
Joined: Mon, 2017-05-29, 15:48

Re: TCP initialization error

#5 Post by virendram »

Unfortunately, I get the same error.

Thank you for your help.

Regards
Virendra

virendram
Posts: 8
Joined: Mon, 2017-05-29, 15:48

Re: TCP initialization error

#6 Post by virendram »

Is there some another command that needs to run in the background for echo to work?

I really appreciate your inputs.
thanks
Regards
Virendra

J. Riesmeier
DCMTK Developer
Posts: 2501
Joined: Tue, 2011-05-03, 14:38
Location: Oldenburg, Germany
Contact:

Re: TCP initialization error

#7 Post by J. Riesmeier »

According to your configuration, "NEUROIMAGING" belongs to "localpacs" which is not allowed to access "SCAN_STORE"

virendram
Posts: 8
Joined: Mon, 2017-05-29, 15:48

Re: TCP initialization error

#8 Post by virendram »

Thank you for the quick reply. How do I allow access then?

Thanks

Regards
Virendra

Michael Onken
DCMTK Developer
Posts: 2048
Joined: Fri, 2004-11-05, 13:47
Location: Oldenburg, Germany
Contact:

Re: TCP initialization error

#9 Post by Michael Onken »

Allow it to the storage area defined below, i.e. instead of

Code: Select all

  SCAN_STORE /home/virendra/Desktop/dicom/SCAN_STORE RW (200, 10024mb) skyrascanner
write

Code: Select all

  SCAN_STORE /home/virendra/Desktop/dicom/SCAN_STORE RW (200, 10024mb) ANY
or, I guess (never tried) that you can give more than one, i.e.

Code: Select all

  SCAN_STORE /home/virendra/Desktop/dicom/SCAN_STORE RW (200, 10024mb) skyrascanner,localpacs
Best,
Michael

virendram
Posts: 8
Joined: Mon, 2017-05-29, 15:48

Re: TCP initialization error

#10 Post by virendram »

Thank you, for your replies. I have been able to successfully ping the scanner..below, i have attached the output of echoscu

However, when I try to use movescu to query and retrieve for a subject , there is nothing being moved..I am sure there is something trivial that I am missing here

Please see the console output below.

Any help will be greatly appreciated.

Thanks

Regards

Virendra

----
./movescu -v -P -k 0008,0052="IMAGE" -k 0010,0020="00075491395" 10.148.72.72 11112 -aet NEUROIMAGING -aec SCAN_STORE
I: Requesting Association
I: Association Accepted (Max Send PDV: 16372)
I: Sending Move Request (MsgID 1)
I: Request Identifiers:
I:
I: # Dicom-Data-Set
I: # Used TransferSyntax: Little Endian Explicit
I: (0008,0052) CS [IMAGE] # 6, 1 QueryRetrieveLevel
I: (0010,0020) LO [00075491395] # 12, 1 PatientID
I:
I: Received Final Move Response (Success)
I: Releasing Association


----
./findscu -v -P -k 0008,0052="IMAGE" -k 0010,0020="00075491395" 10.148.72.72 11112 -aet NEUROIMAGING -aec SCAN_STORE

I: Requesting Association
I: Association Accepted (Max Send PDV: 16372)
I: Sending Find Request (MsgID 1)
I: Request Identifiers:
I:
I: # Dicom-Data-Set
I: # Used TransferSyntax: Little Endian Explicit
I: (0008,0052) CS [IMAGE] # 6, 1 QueryRetrieveLevel
I: (0010,0020) LO [00075491395] # 12, 1 PatientID
I:
I: Received Final Find Response (Success)
I: Releasing Association



---
./echoscu -d 10.148.72.72 11112 -aet NEUROIMAGING -aec SCAN_STORE

D: $dcmtk: echoscu v3.6.1 DEV $
D:
D: DcmDataDictionary: Loading file: /home/virendra/Desktop/dicom/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.1
D: Our Implementation Version Name: OFFIS_DCMTK_361
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: NEUROIMAGING
D: Called Application Name: SCAN_STORE
D: Responding Application Name: resp. AP Title
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: 184 + 6 bytes PDU header
D: 02 00 00 00 00 b8 00 01 00 00 53 43 41 4e 5f 53
D: 54 4f 52 45 20 20 20 20 20 20 4e 45 55 52 4f 49
D: 4d 41 47 49 4e 47 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 3a 51 00 00 04 00 00 40 00 52 00 00 1b
D: 31 2e 32 2e 32 37 36 2e 30 2e 37 32 33 30 30 31
D: 30 2e 33 2e 30 2e 33 2e 36 2e 31 55 00 00 0f 4f
D: 46 46 49 53 5f 44 43 4d 54 4b 5f 33 36 31
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.1
D: Our Implementation Version Name: OFFIS_DCMTK_361
D: Their Implementation Class UID: 1.2.276.0.7230010.3.0.3.6.1
D: Their Implementation Version Name: OFFIS_DCMTK_361
D: Application Context Name: 1.2.840.10008.3.1.1.1
D: Calling Application Name: NEUROIMAGING
D: Called Application Name: SCAN_STORE
D: Responding Application Name: SCAN_STORE
D: Our Max PDU Receive Size: 16384
D: Their Max PDU Receive Size: 16384
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: 16372)
I: Sending Echo Request (MsgID 1)
D: DcmDataset::read() TransferSyntax="Little Endian Implicit"
I: Received Echo Response (Success)

Here is the dcmqrscp.cfg file:

#
# Global Configuration Parameters
#
NetworkTCPPort = 11112
MaxPDUSize = 16384
MaxAssociations = 16

HostTable BEGIN
#
# The HostTable defines symbolic names for collections of network
# DICOM Application Entities. A symbolic name can represent a single
# application entity or it can represent a group of application entities.
# Each DICOM application entity is defined by a triple consisting of
# Application Entity Title, host name and TCP/IP port number.
#
# Entry Format: SymbolicName = ( AETitle, HostName, Portnumber ), ... |
# SymbolicName = SymbolicName, ...
#
# NOTE: in the current implementation you cannot substitute an IP address
# for a hostname.
#

localpacs = (NEUROIMAGING, 10.148.72.72, 4054)
#skyrascanner = (AN_MEDCOMNT204, 10.148.93.17, 104)
agfa1 = (PACSSTOREC1, 10.65.226.98, 104)
agfa2 = (PACSSTOREC2, 10.88.226.98, 104)
agfa = agfa1, agfa2

HostTable END

VendorTable BEGIN
#
# The VendorTable is used by the dcmqrdb and dcmqrti applications.
# You can give a vendor name (r.h.s. entry below) to the dcmqrti
# program and it will talk to all hosts and AEs of the vendor.
# The dcmqrdb program can use the vendor table to restrict move destination
# to hosts belonging to a vendor.
# Also, the dcmqrti and dcmqrdb programs use the name defined on the left hand side
# as the vendor name to display above images.
#
# The format:
# VendorName = SymbolicName
# The symbolic name should be defined in the HostTable.
#
"LOCAL PACS" = localpacs
#"SKYRA SCANNER" = skyrascanner
"MCAGFA" = agfa
VendorTable END

AETable BEGIN
#
# Each row of the AETable defines an Application Entities (AE) Title known
# to the dcmqrdb application. Each AE Title represents a separate
# image database located in the specified file system directory (storage area).
# Each AE Title has read/write, quota and peer access restrictions.
#
# Entry Format: AETitle StorageArea Access Quota Peers
# AccessFormat: R | RW | W
# Quota Format: ( maxStudies, maxBytesPerStudy )
# Peers Format: ( Hostname, AETitle, Portnumber ), ... |
# Entry in HostTable |
# ANY
#

#COMMON /home/virendra/Desktop/dicom/COMMON R (200, 1024mb) ANY
LOCAL_STORE /home/virendra/Desktop/dicom/LOCAL_STORE RW (200, 1024mb) ANY
SCAN_STORE /home/virendra/Desktop/dicom/SCAN_STORE RW (200, 1024mb) ANY

AETable END
Last edited by virendram on Tue, 2017-06-06, 17:01, edited 1 time in total.

Michael Onken
DCMTK Developer
Posts: 2048
Joined: Fri, 2004-11-05, 13:47
Location: Oldenburg, Germany
Contact:

Re: TCP initialization error

#11 Post by Michael Onken »

Why not add the same AE titles for findscu that you already used for echoscu, i.e. add to findscu options

Code: Select all

-aet NEUROIMAGING -aec SCAN_STORE
Best,
Michael

virendram
Posts: 8
Joined: Mon, 2017-05-29, 15:48

Re: TCP initialization error

#12 Post by virendram »

Thanks for the reply, Michael. I edited the question and added the -aet and -aec .

Please see the console output below.

Any help will be greatly appreciated.

Thanks

Regards

Virendra

----
./movescu -v -P -k 0008,0052="IMAGE" -k 0010,0020="00075491395" 10.148.72.72 11112 -aet NEUROIMAGING -aec SCAN_STORE

I: Requesting Association
I: Association Accepted (Max Send PDV: 16372)
I: Sending Move Request (MsgID 1)
I: Request Identifiers:
I:
I: # Dicom-Data-Set
I: # Used TransferSyntax: Little Endian Explicit
I: (0008,0052) CS [IMAGE] # 6, 1 QueryRetrieveLevel
I: (0010,0020) LO [00075491395] # 12, 1 PatientID
I:
I: Received Final Move Response (Success)
I: Releasing Association


----
./findscu -v -P -k 0008,0052="IMAGE" -k 0010,0020="00075491395" 10.148.72.72 11112 -aet NEUROIMAGING -aec SCAN_STORE

I: Requesting Association
I: Association Accepted (Max Send PDV: 16372)
I: Sending Find Request (MsgID 1)
I: Request Identifiers:
I:
I: # Dicom-Data-Set
I: # Used TransferSyntax: Little Endian Explicit
I: (0008,0052) CS [IMAGE] # 6, 1 QueryRetrieveLevel
I: (0010,0020) LO [00075491395] # 12, 1 PatientID
I:
I: Received Final Find Response (Success)
I: Releasing Association



---
./echoscu -d 10.148.72.72 11112 -aet NEUROIMAGING -aec SCAN_STORE

D: $dcmtk: echoscu v3.6.1 DEV $
D:
D: DcmDataDictionary: Loading file: /home/virendra/Desktop/dicom/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.1
D: Our Implementation Version Name: OFFIS_DCMTK_361
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: NEUROIMAGING
D: Called Application Name: SCAN_STORE
D: Responding Application Name: resp. AP Title
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: 184 + 6 bytes PDU header
D: 02 00 00 00 00 b8 00 01 00 00 53 43 41 4e 5f 53
D: 54 4f 52 45 20 20 20 20 20 20 4e 45 55 52 4f 49
D: 4d 41 47 49 4e 47 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 3a 51 00 00 04 00 00 40 00 52 00 00 1b
D: 31 2e 32 2e 32 37 36 2e 30 2e 37 32 33 30 30 31
D: 30 2e 33 2e 30 2e 33 2e 36 2e 31 55 00 00 0f 4f
D: 46 46 49 53 5f 44 43 4d 54 4b 5f 33 36 31
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.1
D: Our Implementation Version Name: OFFIS_DCMTK_361
D: Their Implementation Class UID: 1.2.276.0.7230010.3.0.3.6.1
D: Their Implementation Version Name: OFFIS_DCMTK_361
D: Application Context Name: 1.2.840.10008.3.1.1.1
D: Calling Application Name: NEUROIMAGING
D: Called Application Name: SCAN_STORE
D: Responding Application Name: SCAN_STORE
D: Our Max PDU Receive Size: 16384
D: Their Max PDU Receive Size: 16384
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: 16372)
I: Sending Echo Request (MsgID 1)
D: DcmDataset::read() TransferSyntax="Little Endian Implicit"
I: Received Echo Response (Success)

Here is the dcmqrscp.cfg file:

#
# Global Configuration Parameters
#
NetworkTCPPort = 11112
MaxPDUSize = 16384
MaxAssociations = 16

HostTable BEGIN
#
# The HostTable defines symbolic names for collections of network
# DICOM Application Entities. A symbolic name can represent a single
# application entity or it can represent a group of application entities.
# Each DICOM application entity is defined by a triple consisting of
# Application Entity Title, host name and TCP/IP port number.
#
# Entry Format: SymbolicName = ( AETitle, HostName, Portnumber ), ... |
# SymbolicName = SymbolicName, ...
#
# NOTE: in the current implementation you cannot substitute an IP address
# for a hostname.
#

localpacs = (NEUROIMAGING, 10.148.72.72, 4054)
#skyrascanner = (AN_MEDCOMNT204, 10.148.93.17, 104)
agfa1 = (PACSSTOREC1, 10.65.226.98, 104)
agfa2 = (PACSSTOREC2, 10.88.226.98, 104)
agfa = agfa1, agfa2

HostTable END

VendorTable BEGIN
#
# The VendorTable is used by the dcmqrdb and dcmqrti applications.
# You can give a vendor name (r.h.s. entry below) to the dcmqrti
# program and it will talk to all hosts and AEs of the vendor.
# The dcmqrdb program can use the vendor table to restrict move destination
# to hosts belonging to a vendor.
# Also, the dcmqrti and dcmqrdb programs use the name defined on the left hand side
# as the vendor name to display above images.
#
# The format:
# VendorName = SymbolicName
# The symbolic name should be defined in the HostTable.
#
"LOCAL PACS" = localpacs
#"SKYRA SCANNER" = skyrascanner
"MCAGFA" = agfa
VendorTable END

AETable BEGIN
#
# Each row of the AETable defines an Application Entities (AE) Title known
# to the dcmqrdb application. Each AE Title represents a separate
# image database located in the specified file system directory (storage area).
# Each AE Title has read/write, quota and peer access restrictions.
#
# Entry Format: AETitle StorageArea Access Quota Peers
# AccessFormat: R | RW | W
# Quota Format: ( maxStudies, maxBytesPerStudy )
# Peers Format: ( Hostname, AETitle, Portnumber ), ... |
# Entry in HostTable |
# ANY
#

#COMMON /home/virendra/Desktop/dicom/COMMON R (200, 1024mb) ANY
LOCAL_STORE /home/virendra/Desktop/dicom/LOCAL_STORE RW (200, 1024mb) ANY
SCAN_STORE /home/virendra/Desktop/dicom/SCAN_STORE RW (200, 1024mb) ANY

AETable END

Michael Onken
DCMTK Developer
Posts: 2048
Joined: Fri, 2004-11-05, 13:47
Location: Oldenburg, Germany
Contact:

Re: TCP initialization error

#13 Post by Michael Onken »

Please read about the query identifier (the query keys you send) in part of the standard.
See also this tutorial here which has some info on that.
For now, use -k 0008,0052="PATIENT" instead for first success.

Best,
Michael

virendram
Posts: 8
Joined: Mon, 2017-05-29, 15:48

Re: TCP initialization error

#14 Post by virendram »

Thank you for your patience with my trivial questions.

I went to http://support.dcmtk.org/redmine/projec ... gWithDCMTK and executed the following findscu but unlike the example, it didnt return any matching query (like line 15-34 in the tutorial). Could you please advise on what am I missing?

./findscu -v -S -aet NEUROIMAGING -aec SCAN_STORE 10.148.72.72 11112 -k QueryRetrieveLevel=STUDY -k StudyDate -k StudyDescription -k StudyInstanceUID
I: Requesting Association
I: Association Accepted (Max Send PDV: 16372)
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: (0020,000d) UI (no value available) # 0, 0 StudyInstanceUID
I:
I: Received Final Find Response (Success)
I: Releasing Association

Thanks

Regards

Virendra

Michael Onken
DCMTK Developer
Posts: 2048
Joined: Fri, 2004-11-05, 13:47
Location: Oldenburg, Germany
Contact:

Re: TCP initialization error

#15 Post by Michael Onken »

Maybe no images in the database :evil: ?

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 1 guest