no acceptable presentation contexts

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
f_lopic
Posts: 4
Joined: Tue, 2006-01-10, 12:58
Contact:

no acceptable presentation contexts

#1 Post by f_lopic »

good evening,
I am developing an application because I must find again a list of images in the archives remoto(pc1), to supply such list to pc2 and therefore such list to select file to send with storescu-storescp from the pc1 pc2.


I am using storescp and movescu in the pc2 and storescu in the pc1.


Activating storescp and movescu, he comes given to me like message "Not
acceptable Presentation Contexts", which can be the problem?


the text for storescp is: storescp.exe - v - d - or C:\DIR \ 104
while that one for movescu is: movescu.exe - v - d pc2 104 send.dcm


I am blocked with movescu because with the text
"movescu.exe - v -d pc2 104 send.dcm"

I do not succeed to interrogate the pc1


Please share your ideas on this problem

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

Re: no acceptable presentation contexts

#2 Post by Michael Onken »

Hi f_lopic,
f_lopic wrote: Activating storescp and movescu, he comes given to me like message "Not
acceptable Presentation Contexts", which can be the problem?
This means, that both applications were not able to find a common presentation context (abstract syntax + transfer syntax) for the transmission of the file. When using the "-v" option of both tools (as you did), you should see what's happening.

The movescu will print out a list of presentation contexts, he proposes to the scp. In the log messages of storescp you should see the same list too (as it arrives at the scp). Additionally, storescp prints out, which of these presentation contexts he accepts towards movescu.
Your error should indicate, that both applications did not find a common presentation context, so the file cannot be transmitted, but look into your log messages to find out more. You might try the exisiting "prefer" and "propose" options to establish a connection. Perhaps the send.dcm file you are sending uses a SOP class, both applications can't handle.

Regards,
Michael

f_lopic
Posts: 4
Joined: Tue, 2006-01-10, 12:58
Contact:

#3 Post by f_lopic »

Dear mr Onken,
I have followed its indications changing the values of "prefer" and "propose" is of storescp that of movescu without having no result, I obtain always Not the Acceptable Presentation Contexts, I I have unloaded the new version of library dcmtk 3.5.4 and have also created the archives of images using the module dcmqrdb but I have not obtained no result, what I can make in order to resolve my problem?I could make an example or indicate the values specifically to change?

please help me :oops: francesco

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

#4 Post by Michael Onken »

Hi,

what SOP class and transfer syntax are your files using on disk? Use dcmdump to find out;)

Regards,
Michael

f_lopic
Posts: 4
Joined: Tue, 2006-01-10, 12:58
Contact:

#5 Post by f_lopic »

HI,
therefore the information that you have demanded to me are following,

(0002,0010) UI =LittleEndianImplicit # 18, 1 TransferSyntaxUID

(0008,0016) UI =MRImageStorage # 26, 1 SOPClassUID

THANKS FRANCESCO

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

#6 Post by Michael Onken »

Okay, these shouldn't be the problem.

If you are using the "-v" option on both sides of the connection (storescp and movescu) you should be able to see, what presentation contexts are proposed and which are accepted. From this list you should be able to draw conclusions about the problem.

If you want to, mail me a message (NO-onken-SPAM@offis.de) with the logs of both calls (with -v) and if I've got some time, I'll take a look. But I can't promise you :?

First, please examine the logs and try to fix the problem by yourself.

Regards
Michael

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

#7 Post by Michael Onken »

Hi Francesco,

i just recognized (late..., I've never really used movescu before, sorry), that you're using the wrong program (movescu) for your purposes. As I see, you just want to transmit some images over the network. movescu is implementing C-MOVE, which (as said an 4.2 of part 4 of the standard) does the following:
The C-MOVE operation allows an application entity to instruct another application entity to transfer stored SOP Instances to another application entity using the C-STORE operation.
So movescu is asking a second host to send images to a third host (or send it to the movescu host itself). On the host _you_ call, storescp is running, which can only accept images (it implements an STORE SCP) but cannot send some. You could use a movescu on both sides, but that's not the thing you want to do, if I understand you correctly.

You simply should use the tool storescu instead of movescu, e.g.

Code: Select all

storescu -aec STORESCP 127.0.0.1 104 send.dcm
Hope this helps and I am right with my explanations :wink:

Good luck,
Michael 8)

Post Reply

Who is online

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