Receive multiple dicom studies

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
AndrasM
Posts: 9
Joined: Wed, 2014-09-03, 09:23

Receive multiple dicom studies

#1 Post by AndrasM »

Dear All,

I would like to receive multiple dicom studies from different modalities in the same time.
I have tested receiving multiple studies with storescp and dcmrecv.
These were the commands:

Code: Select all

storescp -d -v --sort-on-study-uid blue --accept-all --aetitle TEST --output-directory /storage 104
dcmrecv -xf /etc/dcmtk/storescp.cfg default -d -v --aetitle TEST --output-directory /storage2 104
Both working like a charm if only one modality sends study, however I get association error when another modality tries to send study in the same time.
Is there any solution to have multiple studies received in the same time from different modalities?
Version: storescp v3.6.7 2022-04-22 on Debian 12

Thank you in advance.
Peter

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

Re: Receive multiple dicom studies

#2 Post by J. Riesmeier »

By default, storescp runs in single process mode:

Code: Select all

multi-process options:
  --single-process       single process mode (default)
  --fork                 fork child process for each association
Using the --fork option, you can change this. dcmrecv does not support handling multiple associations at a time since the underlying DcmSCP class did not support multi-threading (or multiple processes) when the tool was developed.

Since you are apparently on a Unix-style system, you could also consider using storescp with the super server "inetd" (see --inetd option).

AndrasM
Posts: 9
Joined: Wed, 2014-09-03, 09:23

Re: Receive multiple dicom studies

#3 Post by AndrasM »

Thank you so much, it is working like a charm.
I missed this option, sorry for disturbing.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest