|
| 1 | +======= |
| 2 | +echoscp |
| 3 | +======= |
| 4 | + |
| 5 | +.. code-block:: text |
| 6 | +
|
| 7 | + $ python -m pynetdicom echoscp [options] port |
| 8 | +
|
| 9 | +Description |
| 10 | +=========== |
| 11 | +The ``echoscp`` application implements a Service Class Provider (SCP) for the |
| 12 | +:dcm:`Verification<part04/chapter_A.html>` service class. It listens for |
| 13 | +incoming association requests on the specified *port*, and once an association |
| 14 | +is established, responds to incoming C-ECHO requests. The application can be |
| 15 | +used to verify basic DICOM connectivity. |
| 16 | + |
| 17 | +The source code for the application can be found :gh:`here |
| 18 | +<pynetdicom/tree/main/pynetdicom/apps/echoscp>` |
| 19 | + |
| 20 | +Usage |
| 21 | +===== |
| 22 | + |
| 23 | +The following example shows what happens when it's started and receives |
| 24 | +a C-ECHO request from a peer: |
| 25 | + |
| 26 | +.. code-block:: text |
| 27 | +
|
| 28 | + $ python -m pynetdicom echoscp 11112 |
| 29 | +
|
| 30 | +
|
| 31 | +More information is available when running with the ``-v`` option: |
| 32 | + |
| 33 | +.. code-block:: text |
| 34 | +
|
| 35 | + $ python -m pynetdicom echoscp 11112 -v |
| 36 | + I: Accepting Association |
| 37 | + I: Received Echo Request (MsgID 1) |
| 38 | + I: Association Released |
| 39 | +
|
| 40 | +When a peer AE attempts to send non C-ECHO message: |
| 41 | + |
| 42 | +.. code-block:: text |
| 43 | +
|
| 44 | + $ python -m pynetdicom echoscp 11112 -v |
| 45 | + I: Accepting Association |
| 46 | + I: Association Aborted |
| 47 | +
|
| 48 | +Much more information is available when running with the ``-d`` option: |
| 49 | + |
| 50 | +.. code-block:: text |
| 51 | +
|
| 52 | + $ python -m pynetdicom echoscp 11112 -d |
| 53 | + D: echoscp.py v0.7.0 |
| 54 | + D: |
| 55 | + D: Request Parameters: |
| 56 | + D: ======================= INCOMING A-ASSOCIATE-RQ PDU ======================== |
| 57 | + D: Their Implementation Class UID: 1.2.276.0.7230010.3.0.3.6.2 |
| 58 | + ... |
| 59 | + I: Received Echo Request (MsgID 1) |
| 60 | + D: ========================== INCOMING DIMSE MESSAGE ========================== |
| 61 | + D: Message Type : C-ECHO RQ |
| 62 | + D: Presentation Context ID : 1 |
| 63 | + D: Message ID : 1 |
| 64 | + D: Data Set : None |
| 65 | + D: ============================ END DIMSE MESSAGE ============================= |
| 66 | + I: Association Released |
| 67 | +
|
| 68 | +
|
| 69 | +Options |
| 70 | +======= |
| 71 | +General Options |
| 72 | +--------------- |
| 73 | +``-q --quiet`` |
| 74 | + quiet mode, prints no warnings or errors |
| 75 | +``-v --verbose`` |
| 76 | + verbose mode, prints processing details |
| 77 | +``-d --debug`` |
| 78 | + debug mode, prints debugging information |
| 79 | +``-ll --log-level [l]evel (str)`` |
| 80 | + One of [``'critical'``, ``'error'``, ``'warning'``, ``'info'``, |
| 81 | + ``'debug'``], prints logging messages with corresponding level |
| 82 | + or lower |
| 83 | + |
| 84 | +Network Options |
| 85 | +--------------- |
| 86 | +``-aet --ae-title [a]etitle (str)`` |
| 87 | + set the local AE title (default: ``ECHOSCP``) |
| 88 | +``-ta --acse-timeout [s]econds (float)`` |
| 89 | + timeout for ACSE messages (default: ``30``) |
| 90 | +``-td --dimse-timeout [s]econds (float)`` |
| 91 | + timeout for DIMSE messages (default: ``30``) |
| 92 | +``-tn --network-timeout [s]econds (float)`` |
| 93 | + timeout for the network (default: ``30``) |
| 94 | +``-pdu --max-pdu [n]umber of bytes (int)`` |
| 95 | + set maximum receive PDU bytes to n bytes (default: ``16382``) |
| 96 | + |
| 97 | +Preferred Transfer Syntaxes |
| 98 | +--------------------------- |
| 99 | +``-x= --prefer-uncompr`` |
| 100 | + prefer explicit VR local byte order |
| 101 | +``-xe --prefer-little`` |
| 102 | + prefer explicit VR little endian transfer syntax |
| 103 | +``-xb --prefer-big`` |
| 104 | + prefer explicit VR big endian transfer syntax |
| 105 | +``-xi --implicit`` |
| 106 | + accept implicit VR little endian transfer syntax only |
| 107 | + |
| 108 | +DICOM Conformance |
| 109 | +================= |
| 110 | +The ``echoscp`` application supports the Verification service as an SCP. The |
| 111 | +following SOP classes are supported: |
| 112 | + |
| 113 | +Verification Service |
| 114 | +-------------------- |
| 115 | + |
| 116 | +SOP Classes |
| 117 | +........... |
| 118 | + |
| 119 | ++------------------+------------------------+ |
| 120 | +| UID | SOP Class | |
| 121 | ++==================+========================+ |
| 122 | +|1.2.840.10008.1.1 | Verification SOP Class | |
| 123 | ++------------------+------------------------+ |
| 124 | + |
| 125 | +Transfer Syntaxes |
| 126 | +................. |
| 127 | + |
| 128 | ++------------------------+----------------------------------------------------+ |
| 129 | +| UID | Transfer Syntax | |
| 130 | ++========================+====================================================+ |
| 131 | +| 1.2.840.10008.1.2 | Implicit VR Little Endian | |
| 132 | ++------------------------+----------------------------------------------------+ |
| 133 | +| 1.2.840.10008.1.2.1 | Explicit VR Little Endian | |
| 134 | ++------------------------+----------------------------------------------------+ |
| 135 | +| 1.2.840.10008.1.2.1.99 | Deflated Explicit VR Little Endian | |
| 136 | ++------------------------+----------------------------------------------------+ |
| 137 | +| 1.2.840.10008.1.2.2 | Explicit VR Big Endian | |
| 138 | ++------------------------+----------------------------------------------------+ |
| 139 | +| 1.2.840.10008.1.2.4.50 | JPEG Baseline (Process 1) | |
| 140 | ++------------------------+----------------------------------------------------+ |
| 141 | +| 1.2.840.10008.1.2.4.51 | JPEG Extended (Process 2 and 4) | |
| 142 | ++------------------------+----------------------------------------------------+ |
| 143 | +| 1.2.840.10008.1.2.4.57 | JPEG Lossless, Non-Hierarchical (Process 14) | |
| 144 | ++------------------------+----------------------------------------------------+ |
| 145 | +| 1.2.840.10008.1.2.4.70 | JPEG Lossless, Non-Hierarchical, First-Order | |
| 146 | +| | Prediction (Process 14 [Selection Value 1]) | |
| 147 | ++------------------------+----------------------------------------------------+ |
| 148 | +| 1.2.840.10008.1.2.4.80 | JPEG-LS Lossless Image Compression | |
| 149 | ++------------------------+----------------------------------------------------+ |
| 150 | +| 1.2.840.10008.1.2.4.81 | JPEG-LS Lossy (Near-Lossless) Image Compression | |
| 151 | ++------------------------+----------------------------------------------------+ |
| 152 | +| 1.2.840.10008.1.2.4.90 | JPEG 2000 Image Compression (Lossless Only) | |
| 153 | ++------------------------+----------------------------------------------------+ |
| 154 | +| 1.2.840.10008.1.2.4.91 | JPEG 2000 Image Compression | |
| 155 | ++------------------------+----------------------------------------------------+ |
| 156 | +| 1.2.840.10008.1.2.4.92 | JPEG 2000 Part 2 Multi-component Image Compression | |
| 157 | +| | (Lossless Only) | |
| 158 | ++------------------------+----------------------------------------------------+ |
| 159 | +| 1.2.840.10008.1.2.4.93 | JPEG 2000 Part 2 Multi-component Image Compression | |
| 160 | ++------------------------+----------------------------------------------------+ |
| 161 | +| 1.2.840.10008.1.2.5 | RLE Lossless | |
| 162 | ++------------------------+----------------------------------------------------+ |
0 commit comments