[dcm4che Toolkit] SCP fails to retrieve

232 views
Skip to first unread message

Rafael Borba Costa dos Santos

unread,
Jul 10, 2023, 7:24:57 AM7/10/23
to dcm4che
Hi everyone,

I'm new to this. All I need is to set up a simple SCP server and being able to send files and retrieve them using commands like `storescu` and `getscu`.

Here's what I'm trying to do with the toolkit:

1) Started the SCP server:

storescp -b 6000 --directory /scp

2) Sucessfully sent a random study:

storescu -c LO...@127.0.0.1:6000 /temp/liver_3t_fattylivermeta

3) Tried to retrieve it:

getscu -c LO...@127.0.0.1:6000 -m StudyInstanceUID=

But instead of downloading those files, it raises the following error:

getscu: No Presentation Context for Abstract Syntax: 1.2.840.10008.5.1.4.1.2.2.3 - Study Root Query/Retrieve Information Model - GET negotiated
org.dcm4che3.net.NoPresentationContextException: No Presentation Context for Abstract Syntax: 1.2.840.10008.5.1.4.1.2.2.3 - Study Root Query/Retrieve Information Model - GET negotiated


I appreciate any insights.

Rafael

Gunter Zeilinger

unread,
Jul 10, 2023, 7:54:50 AM7/10/23
to dcm4che
storescp only provides Storage Services (as SCP), but no retrieve service.

Start

dcmqrscp -b 6000 --dicomdir /scp/DICOMDIR

instead.

Rafael Borba Costa dos Santos

unread,
Jul 11, 2023, 9:56:11 AM7/11/23
to dcm...@googlegroups.com
Thank you!
I tried your approach. `storescu` against the dcmqrsp server worked just as fine. I can see the files in the dicom directory.

However, when I try to retrieve them with:

getscu -c LO...@127.0.0.1:6000 -m StudyInstanceUID=1.2.392.200045.8842.5.999999.20160513.2.265

The server raises:

14:12:55.173 DEBUG - LOCAL<-GETSCU(10) >> 1:C-GET-RQ Dataset receiving...
14:12:55.174 INFO  - LOCAL<-GETSCU(10): i/o exception: org.dcm4che3.io.DicomStreamException: 0xFFFEE000 tag value too large, must be less than 2Gib in State: Sta6 - Association established and ready for data transfer
14:12:55.174 INFO  - LOCAL<-GETSCU(10): close Socket[addr=/177.105.79.7,port=32198,localport=6004]
14:12:55.176 DEBUG - LOCAL<-GETSCU(10): enter state: Sta1 - Idle


I don't get it. That study has only 60Mb.

Also, by connecting to that server from Weasis, It does find the study I sent:

image.png

But fails to import:

image.png

In this case, the server raises:

14:16:11.162 WARN  - LOCAL<-LOCAL(12): Unable to perform sub-operation on association to LOCAL
org.dcm4che3.net.NoPresentationContextException: No Presentation Context for Abstract Syntax: 1.2.840.10008.5.1.4.1.1.4 - MR Image Storage negotiated
        at org.dcm4che3.net.Association.pcFor(Association.java:907)
        at org.dcm4che3.net.Association.cstore(Association.java:935)
        at org.dcm4che3.net.service.BasicRetrieveTask.cstore(BasicRetrieveTask.java:259)
        at org.dcm4che3.net.service.BasicRetrieveTask.run(BasicRetrieveTask.java:185)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
        at java.base/java.lang.Thread.run(Thread.java:829)
14:16:11.162 INFO  - LOCAL<-LOCAL(12) << 1:C-GET-RSP[pcid=1, completed=0, failed=140, warning=0, status=a702H
  cuid=1.2.840.10008.5.1.4.1.2.2.3 - Study Root Query/Retrieve Information Model - GET
  tsuid=1.2.840.10008.1.2 - Implicit VR Little Endian]
14:16:11.162 DEBUG - LOCAL<-LOCAL(12) << 1:C-GET-RSP Command:
(0000,0002) UI [1.2.840.10008.5.1.4.1.2.2.3] AffectedSOPClassUID
(0000,0100) US [32784] CommandField
(0000,0120) US [1] MessageIDBeingRespondedTo
(0000,0800) US [0] CommandDataSetType
(0000,0900) US [42754] Status
(0000,1021) US [0] NumberOfCompletedSuboperations
(0000,1022) US [140] NumberOfFailedSuboperations
(0000,1023) US [0] NumberOfWarningSuboperations
14:16:11.162 DEBUG - LOCAL<-LOCAL(12) << 1:C-GET-RSP Dataset:
(0008,0058) UI [1.2.392.200045.8842.5.999999.20160513.2.325\1.2.392.200045.884


I really appreciate your help.


--
You received this message because you are subscribed to a topic in the Google Groups "dcm4che" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/dcm4che/zxeQaGSgboI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to dcm4che+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dcm4che/822dee28-4883-4f4a-ad67-57c126e74533n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages