echoscp
Runs a DICOM server that answers C-ECHO (the Verification service) and nothing else, until it is stopped.
When to use it
Use echoscp to check the other direction of a link: that a modality, a
PACS or a firewall can reach this machine, with the AE title you give it.
It stores nothing and answers no query, so it is safe to leave running
while you configure a remote node.
To receive images, use storescp; for a server that also answers queries and retrieves, use qrscp. Both answer C-ECHO too.
The closest tools are dcmtk's storescp (which answers echoes) and
pynetdicom's python -m pynetdicom echoscp.
Examples
Listen for echoes
go-dicom echoscp -port 11112Starting DICOM Echo SCP
AE Title: ECHOSCP
Port: 11112
Listening for verification requests... (Ctrl+C to stop)Ctrl+C stops it (Shutting down...). From another machine:
go-dicom echoscu -aec ECHOSCP myhost:11112Requesting Association with myhost:11112 (AE: ECHOSCP)
Association accepted
Sending C-ECHO...
C-ECHO response: Success (0x0000)
Releasing AssociationAnswer to another AE title
go-dicom echoscp -port 11112 -aet MYNODEThe server answers only to its own title (ECHOSCP unless -aet sets
another). An association called with any other title is rejected with
reason 7, called AE title not recognized.
TLS only
go-dicom echoscp -port 2762 -tls -tls-cert node.crt -tls-key node.keyWith -tls every association must come over TLS; -tls-cert and
-tls-key are then required. -tls-ca makes clients present a certificate
issued by one of its CAs (mutual TLS).
See each association
go-dicom echoscp -port 11112 -events -The console shows only the startup lines. -events writes every PDU, the
association's events and every DIMSE message as JSON lines, to a file or to
standard output for -; see Events.
Notes
- The server listens on every interface of the machine, on
-port(default 11112). It has no caller list; storescp, qrscp and wlmscp take-allow. - It runs until interrupted (Ctrl+C or SIGTERM).
See also
Options
echoscu
Opens an association with a DICOM peer, sends a C-ECHO (the Verification service), and reports whether the peer answered: a DICOM "ping".
storescu
Sends DICOM files to a peer with C-STORE, all on one association, and reports each file's result. It can send images in another transfer syntax when the peer accepts it.