-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Complete sample based on DicomHero6 #5
Comments
It would be useful to see the code that fails to connect to the PACS, then I could try to replicate the issue and fix it. |
@binarno I'm trying to use the code from DicomHero documentation.
I receive this stacktrace:
I would like to open a connection to a PACS Server and then do a query to retrieve some data but I started to understand if code from documentation works and I found that error. |
The error indicates that the TCP connection has been refused: this happens before the ACSE & DIMSE negotiation. |
Yes I already tried and the connection is listening on that port (I checked the PACS server informations). |
Is the PACS running on the same android device or emulator where the code is running? If not then consider than 127.0.0.1 is a local address and the android app will access its own local network interface, not the PACS' one (even if the PACS is running on the host machine running the emulator). Try to use the public IP address, if running the APP in the emulator use a bridged network interface. |
I have a PACS server on a laptop and I'm trying to run your app (using also the snippet above) to connect to it. |
@binarno Sorry to bother you, I tried but maybe I am following a wrong guide. Can you explain me in details how can I do the bridged network in the emulator? Thank you |
According to this page https://developer.android.com/studio/run/emulator-networking, connecting the Android emulator to 10.0.2.2 should connect to 127.0.0.1 on the host machine. |
Ok now the connection seems to work. I read the documentation but I am not able to find a complete sample of how to execute a simple query to retrieve data (for example a list of patients that starts with a letter). This code seems to work fine now:
|
Is possible to have a complete working sample based on DicomHero6?
I refactored this old code found here (if interested I could also open a PR for it) but when I try to use a connection to a PACS server I reveice a crash.
Thanks
The text was updated successfully, but these errors were encountered: