dcmqrscp of dcmtk-3.6.0 doesnot work as storescp, but dcmtk-3.5.4's is ok.

All other questions regarding DCMTK

Moderator: Moderator Team

Message
Author
Xiao
Posts: 36
Joined: Wed, 2011-05-25, 07:53

dcmqrscp of dcmtk-3.6.0 doesnot work as storescp, but dcmtk-3.5.4's is ok.

#1 Post by Xiao »

the following is test process.

$ dcmqrscp -d -v 5104
I: Association Received (localhost:STORESCU -> COMMON) Wed May 25 15:16:05 2011
I:
I: Association Acknowledged (Max Send PDV: 16372)
I: (but no valid presentation contexts)
I: Association Aborted
I: Cleaned up after child (18342) Wed May 25 15:16:06 2011
I:

$ storescu -d -v -aec COMMON 127.0.0.1 5104 712
I: checking input files ...
I: Requesting Association
F: No Acceptable Presentation Contexts

$ dcmdump 712

# Dicom-File-Format

# Dicom-Meta-Information-Header
# Used TransferSyntax: Little Endian Explicit
(0002,0000) UL 174 # 4, 1 FileMetaInformationGroupLength
(0002,0001) OB 00\01 # 2, 1 FileMetaInformationVersion
(0002,0002) UI =PositronEmissionTomographyImageStorage # 28, 1 MediaStorageSOPClassUID
(0002,0003) UI [1.2.840.113619.2.131.9999.1129262328.558103] # 44, 1 MediaStorageSOPInstanceUID
(0002,0010) UI =LittleEndianExplicit # 20, 1 TransferSyntaxUID
(0002,0012) UI [1.2.840.113619.6.131] # 20, 1 ImplementationClassUID
(0002,0016) AE [BAY84CT] # 8, 1 SourceApplicationEntityTitle
...
Last edited by Xiao on Wed, 2011-05-25, 09:08, edited 2 times in total.

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

#2 Post by J. Riesmeier »

It seems that both communication partners could not agree upon a common presentation context. You should enable the debug mode in order to find the reason ... i.e. omit the "-v" because it switches the log level from debug to info.

Xiao
Posts: 36
Joined: Wed, 2011-05-25, 07:53

#3 Post by Xiao »

The output is too long with -d, if you really need, I can send it to you.

I donot know why dcmqrscp can not accept any abstract syntax, I tried CT, MRI and PET, but none of them is ok.

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

#4 Post by J. Riesmeier »

Use storescu with option --required (-R) and the list of proposed presentation contexts should be much shorter.

Xiao
Posts: 36
Joined: Wed, 2011-05-25, 07:53

#5 Post by Xiao »

thank you for your promply reply. belowing is the output

$ storescu -d -R -aec COMMON 127.0.0.1 5104 712
D: $dcmtk: storescu v3.6.0 2011-01-06 $
D:
I: checking input files ...
D: DcmItem::checkTransferSyntax() TransferSyntax="Little Endian Explicit"
D: Request Parameters:
D: ====================== BEGIN A-ASSOCIATE-RQ =====================
D: Our Implementation Class UID: 1.2.276.0.7230010.3.0.3.6.0
D: Our Implementation Version Name: OFFIS_DCMTK_360
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: STORESCU
D: Called Application Name: COMMON
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: =PositronEmissionTomographyImageStorage
D: Proposed SCP/SCU Role: Default
D: Proposed Transfer Syntax(es):
D: =LittleEndianExplicit
D: Context ID: 3 (Proposed)
D: Abstract Syntax: =PositronEmissionTomographyImageStorage
D: Proposed SCP/SCU Role: Default
D: Proposed Transfer Syntax(es):
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: Constructing Associate RQ PDU
D: PDU Type: Associate Accept, PDU Length: 213 + 6 bytes PDU header
D: 02 00 00 00 00 d5 00 01 00 00 43 4f 4d 4d 4f 4e
D: 20 20 20 20 20 20 20 20 20 20 53 54 4f 52 45 53
D: 43 55 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 01 00 40 00 00 11 31
D: 2e 32 2e 38 34 30 2e 31 30 30 30 38 2e 31 2e 32
D: 21 00 00 19 03 00 01 00 40 00 00 11 31 2e 32 2e
D: 38 34 30 2e 31 30 30 30 38 2e 31 2e 32 50 00 00
D: 3a 51 00 00 04 00 00 40 00 52 00 00 1b 31 2e 32
D: 2e 32 37 36 2e 30 2e 37 32 33 30 30 31 30 2e 33
D: 2e 30 2e 33 2e 36 2e 30 55 00 00 0f 4f 46 46 49
D: 53 5f 44 43 4d 54 4b 5f 33 36 30
D: Parsing an A-ASSOCIATE PDU
D: Transport connection: TCP/IP, unencrypted.
D: Association Parameters Negotiated:
D: ====================== BEGIN A-ASSOCIATE-AC =====================
D: Our Implementation Class UID: 1.2.276.0.7230010.3.0.3.6.0
D: Our Implementation Version Name: OFFIS_DCMTK_360
D: Their Implementation Class UID: 1.2.276.0.7230010.3.0.3.6.0
D: Their Implementation Version Name: OFFIS_DCMTK_360
D: Application Context Name: 1.2.840.10008.3.1.1.1
D: Calling Application Name: STORESCU
D: Called Application Name: COMMON
D: Responding Application Name: COMMON
D: Our Max PDU Receive Size: 16384
D: Their Max PDU Receive Size: 16384
D: Presentation Contexts:
D: Context ID: 1 (User Rejection)
D: Abstract Syntax: =PositronEmissionTomographyImageStorage
D: Proposed SCP/SCU Role: Default
D: Accepted SCP/SCU Role: Default
D: Context ID: 3 (User Rejection)
D: Abstract Syntax: =PositronEmissionTomographyImageStorage
D: Proposed SCP/SCU Role: Default
D: Accepted SCP/SCU Role: Default
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 ======================
F: No Acceptable Presentation Contexts

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

#6 Post by J. Riesmeier »

Have you checked that the storage area COMMON is writable (check access rights for both the directory and in the configuration file of dcmqrscp).

Xiao
Posts: 36
Joined: Wed, 2011-05-25, 07:53

#7 Post by Xiao »

The same configuration file dcmscp.cfg works fine for version 3.5.4. So I assume the permission is not the reason, under version 3.6.0 I got error message: 'F:No Acceptable Presentation Contexts', any idea why ?

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

#8 Post by J. Riesmeier »

As you can read in the log output, the proposed presentation contexts are rejected by the SCP with the reason "User Rejection". One reason for this would be that the storage area is not writable. For other reasons check the source code for "ASC_P_USERREJECTION" and/or "refuseAnyStorageContexts" ...

Xiao
Posts: 36
Joined: Wed, 2011-05-25, 07:53

#9 Post by Xiao »

I wondered if dcmqrscp had been tested before release 3.6.0 version using storescu. It works fine for version 3.5.4.

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

#10 Post by J. Riesmeier »

Yes, it has been tested and it still works fine here -- I just tested it again on our Linux development machine.

Xiao
Posts: 36
Joined: Wed, 2011-05-25, 07:53

#11 Post by Xiao »

Sorry, I download dcmtk-3.6.0.tar.gz and do the following, it always occurs this issue whatever on fedora or ubuntu, but dcmtk-3.5.4.tar.gz works fine, do you know why? thanks!

$ gunzip dcmtk-3.6.0.tar.gz
$ tar xvf cmtk-3.6.0.tar
$ cd dcmtk-3.6.0
$ ./configure --prefix=$HOME/dicom
$ make install
$ export PATH=$PATH:$HOME/dicom/bin:.
$ mkdir $HOME/dicom/db
$ mkdir COMMON ACME_STORE UNITED_STORE
$ dcmqridx $HOME/dicom/db/COMMON
$ dcmqrscp -d -v 5104
I: Association Received (localhost:STORESCU -> COMMON) Wed May 25 15:16:05 2011
I:
I: Association Acknowledged (Max Send PDV: 16372)
I: (but no valid presentation contexts)
I: Association Aborted
I: Cleaned up after child (18342) Wed May 25 15:16:06 2011
I:

$ storescu -d -v -aec COMMON 127.0.0.1 5104 712
I: checking input files ...
I: Requesting Association
F: No Acceptable Presentation Contexts

$ dcmdump 712

# Dicom-File-Format

# Dicom-Meta-Information-Header
# Used TransferSyntax: Little Endian Explicit
(0002,0000) UL 174 # 4, 1 FileMetaInformationGroupLength
(0002,0001) OB 00\01 # 2, 1 FileMetaInformationVersion
(0002,0002) UI =PositronEmissionTomographyImageStorage # 28, 1 MediaStorageSOPClassUID
(0002,0003) UI [1.2.840.113619.2.131.9999.1129262328.558103] # 44, 1 MediaStorageSOPInstanceUID
(0002,0010) UI =LittleEndianExplicit # 20, 1 TransferSyntaxUID
(0002,0012) UI [1.2.840.113619.6.131] # 20, 1 ImplementationClassUID
(0002,0016) AE [BAY84CT] # 8, 1 SourceApplicationEntityTitle
...

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

#12 Post by J. Riesmeier »

What is the content of the configuration file "dcmqrscp.cfg" you are using? Have you checked the settings as I wrote before?
Does the query phase work (e.g. using findscu)?

Xiao
Posts: 36
Joined: Wed, 2011-05-25, 07:53

#13 Post by Xiao »

The same dcmqrscp.cfg has been used in both dcmqrscp of dcmtk-3.6.0 and that of dcmtk-3.5.4. In another word, except dcmqrscp all others environments are the same.
I wonder this issue is which abstract syntaxes of dcmqrscp can be accepted, where I can check it in source code?
thanks!

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

#14 Post by Michael Onken »

Hi,

What is storescu reporting (-v -d to see the presentation contexts)?

Michael

Xiao
Posts: 36
Joined: Wed, 2011-05-25, 07:53

#15 Post by Xiao »

The output is too long, now I have saved the output as a file, can I send it via email?

Post Reply

Who is online

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