question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hey!, I’m using pynetdicom3 with Orthanc. Starting from the SCP verification, in the beginning everything goes fine orthan ECHOES and succeed. But as I continue working on other things after sometime the same program fails to echo back. When I echo from orthanc it fails on that port. But if I use some other port it is back to normal.

    from pynetdicom3 import AE, VerificationPresentationContexts

    ae = AE(ae_title=b'leo', port=11111)
    ae.supported_contexts = VerificationPresentationContexts
    ae.start()

any suggestions?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
scaramallioncommented, Oct 25, 2018

Typically how many C-ECHO requests and/or how long before it stops working on that port?

Is your SCU port 1111 or 11111? If its 11111 you probably shouldn’t use the same port for both SCU and SCP.

I’ve just run 1000 associate -> C-ECHO request -> release runs against the echoscp in apps listening on port 11113 and haven’t had any issues. Could you run the following and tell me if it succeeds or not?

#!/usr/bin/env python

import logging

from pynetdicom3 import AE
from pynetdicom3.sop_class import VerificationSOPClass

LOGGER = logging.getLogger('pynetdicom3')
#LOGGER.setLevel(logging.DEBUG)
LOGGER.setLevel(logging.ERROR)

ae = AE(ae_title=b'mysc', port=11112)
ae.add_requested_context(VerificationSOPClass)

for ii in range(1000):
    assoc = ae.associate('127.0.0.1', 11113)
    if assoc.is_established:
        status = assoc.send_c_echo()
        if 'Status' in status:
            print('C-ECHO status: 0x{0:04x}'.format(status.Status))
        assoc.release()
0reactions
scaramallioncommented, Nov 26, 2018

Did you end up figuring out what was causing the issue?

Read more comments on GitHub >

github_iconTop Results From Across the Web

America's Ports Problem Is Decades in the Making
As detailed in numerous reports, American ports and rail terminals are struggling to cope with unprecedented surges of imports from Asia, a ...
Read more >
portmagazine Publisher Publications - Issuu
Publications · Port Issue 29 · Port Issue 28 · Port Issue 27 · TenTen Issue 5 - Rolex Cover · Port Issue...
Read more >
What the Shipping Crisis Looks Like at a U.S. Port
An enduring traffic jam at the Port of Savannah reveals why the chaos in global shipping is likely to persist.
Read more >
These ports are causing the most congestion in supply chain
A container at rest means inventory issues. The heat map tracks all of the critical pieces within the supply chain: factory capacity, vessel ......
Read more >
What can the government do to unclog California ports?
Global supply chain problems have led to a backup at Southern California ports. State lawmakers talked with experts about potential ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found