DICOM @ OFFIS

Discussion Forum for OFFIS DICOM Tools - For registration, send email with desired user name to the OFFIS DICOM team
It is currently Tue, 2018-08-14, 09:53

All times are UTC + 1 hour




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: Fri, 2018-02-23, 11:47 
Offline

Joined: Fri, 2018-02-23, 07:55
Posts: 5
Location: Bengaluru, India
Hello there,
I am new to dcmtk. I was following the dcmqrset.txt (http://support.dcmtk.org/docs/file_dcmqrset.html) file in the dcmqrdb module of the main dcmtk documentation. I was stuck at step 10, which starts like
Quote:
You can try sending a DICOM image to dcmqrscp from one of the remote machines which may access dcmqrscp's storage areas.
e.g.
storescu -v --aetitle ACME1 --call ACME_STORE dbhost 5678 ctimage.dcm

So I stepped down the difficulty a little bit and instead tried the same but from my local system i.e., using localhost. The procedure is elaborated in the 'dcmtk wiki Howto' page titled 'PACS Debugging with DCMTK' http://support.dcmtk.org/redmine/projects/dcmtk/wiki/Howto_PACSDebuggingWithDCMTK. In a nutshell, the essentials were:
Server side command:
Code:
path/to/dcmqrscp -v --config path/to/dcmqrscp.cfg

Client side command:
Code:
path/to/echoscu -aec "DCM_STORE" -aet "DCM_server" localhost 11115

My dcmqrscp.cfg file:
Code:
#-----------------------------------------------------------------------
#
# Example configuration file for the dcmqrscp and dcmqrti applications.
#
#-----------------------------------------------------------------------

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

HostTable BEGIN
#
dcm_server         =       (DCM_server, localhost, 5678)
#
HostTable END

VendorTable BEGIN
VendorTable END

AETable BEGIN
#
DCM_STORE   /home/sumedh/Downloads/dcmtk-3.6.3-install/usr/local/db/DCM_STORE   RW (9, 1024mb)   dcm_server
#
AETable END

Since I ran the commands with verbose option, I was able to see that the network connection worked.

Coming back to the step 10 of dcmrset.txt file, I made following changes to the above server-client setup but with different systems on the same wifi network. FYI, I tested dicom connectivity successfully following the 'testing.txt' file (http://support.dcmtk.org/docs/file_testing.html) in the dcmnet module, so I am pretty confident that the two systems on the same wifi network are indeed connected. The changes:
- dcmqrscp.cfg file: dcm_server = (DCM_server, localhost, 5678) -> dcm_server = (DCM_server, sumedh, 5678)
I presumed that hostname is the terminal output of command line tool 'whoami', which for my server system is sumedh.
- client side command:
Code:
path/to/echoscu -aec "DCM_STORE" -aet "DCM_server" sumedh 11115

I get a fatal error F: 0006:0320 Attempt to connect to unknown host: sumedh, which kind of makes sense because how is the client system supposed to know server system's hostname i.e., sumedh. I feel like somehow I need to pass the IP information of server from the client-side to make the echoscu work. Does it have to do with generating UID root? I read DCMTK FAQ #25 and FAQ #41, but couldn't relate further.

Thanks in advance :) .


Top
 Profile  
 
PostPosted: Fri, 2018-02-23, 12:27 
Offline
DCMTK Developer

Joined: Tue, 2011-05-03, 14:38
Posts: 1956
Location: Oldenburg, Germany
Your assumption is incorrect: "whoami" returns the user and not the host name (actually, "prints the effective userid" as the man page says.) The command "hostname" should do what you want.


Top
 Profile  
 
PostPosted: Sat, 2018-02-24, 10:22 
Offline

Joined: Fri, 2018-02-23, 07:55
Posts: 5
Location: Bengaluru, India
Hi J. Riesmeier,
Well, that doesn't change the output. My hostname is 'sumedhsys' (print reply of command line tool 'hostname', which actually maps to the loopback address 127.0.1.1), still the client-side fatal error is F: 0006:0320 Attempt to connect to unknown host: sumedhsys. Commands were
Code:
server side> path/to/dcmqrscp -v -c path/to/dcmqrscp.cfg
client side> path/to/echoscu -aec "DCM_STORE" -aet "DCM_server" sumedhsys 11115
, whereas my dcmqrscp.cfg file is
Code:
#-----------------------------------------------------------------------
#
# Example configuration file for the dcmqrscp and dcmqrti applications.
#
#-----------------------------------------------------------------------

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

HostTable BEGIN
#
dcm_server         =       (DCM_server, sumedhsys, 5678)
#
HostTable END

VendorTable BEGIN
VendorTable END

AETable BEGIN
#
DCM_STORE   /home/sumedh/Downloads/dcmtk-3.6.3-install/usr/local/db/DCM_STORE   RW (9, 1024mb)   dcm_server
#
AETable END

Drawing analogies from other server-client models namely ssh or even the dcmtk storescp-echoscu model i.e., something like
Code:
server side> storescp -v 5678
client side> echoscu -v 192.168.2.11 5678
, I somehow feel that client system needs to know the IP address of the server.


Top
 Profile  
 
PostPosted: Sat, 2018-02-24, 17:48 
Offline
DCMTK Developer

Joined: Tue, 2011-05-03, 14:38
Posts: 1956
Location: Oldenburg, Germany
Of course, if the hostname "sumedhsys" does not work (because of some misconfiguration?) you could also use the IP address of the system where the SCP listens for incoming network connections. However, you should probably also start with using "ANY" instead of "dcm_server" in the "AETable" section of your dcmqrscp.cfg file in order to avoid problems with access rights.


Top
 Profile  
 
PostPosted: Mon, 2018-02-26, 16:56 
Offline

Joined: Fri, 2018-02-23, 07:55
Posts: 5
Location: Bengaluru, India
Thanks J. Riesmeier.
Your suggestion of using 'ANY' instead of 'dcm_server' in the "AETable" section of my dcmqrscp.cfg file solved the problem. But don't 'RW' options warrant read/write rights of the storage area 'DCM_STORE' to the 'dcm_server'?
Commands:
Code:
server side> path/to/dcmqrscp -v -c dcmqrscp.cfg
client side> path/to/storescu -v --aetitle DCM_server --call DCM_STORE 192.168.2.8 5757 path/to/dcm_file
whereas the dcmqrscp.cfg file:
Code:
#
# Global Configuration Parameters
#
NetworkTCPPort  = 5757
MaxPDUSize      = 16384
MaxAssociations = 16

HostTable BEGIN
#
dcm_server = (DCM_server, gaurav-Inspiron-5520, 5678)
#
HostTable END

VendorTable BEGIN
VendorTable END

AETable BEGIN
#
DCM_STORE   /home/gaurav/Downloads/dcmtk-3.6.3-install/usr/local/db/DCM_STORE   RW (9, 1024mb)   ANY
#
AETable END
But you can still see I had to use the internal IP address of the server in place of hostname i.e., gaurav-Inspiron-5520.


Top
 Profile  
 
PostPosted: Mon, 2018-02-26, 19:04 
Offline
DCMTK Developer

Joined: Tue, 2011-05-03, 14:38
Posts: 1956
Location: Oldenburg, Germany
Quote:
But don't 'RW' options warrant read/write rights of the storage area 'DCM_STORE' to the 'dcm_server'?

It allows a system with the hostname "gaurav-Inspiron-5520" and the (calling) AE title "DCM_server" to access the storage area "DCM_STORE" (selected by the called AE title).


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group