clariusdev / cast

APIs for Researchers and Marketplace Apps
https://www.clarius.com
BSD 3-Clause "New" or "Revised" License
37 stars 15 forks source link

Failed to connect on windows using pycaster and pysidecaster but android app says "additional scanner connection made" #137

Open prash-p opened 11 months ago

prash-p commented 11 months ago

I am using the latest release of castAPI (10.4.0) and windows 10 with python 3.10

I tried both a private wireless network and the scanner wifi. Firewall was disabled

When I enter the IP and port (5828) and click "Connect" I get an error "Failed to connect to [IP]". However on my android clarius app there is a brief pop up that says "Additional scanner connection made"

image

julien-l commented 11 months ago

Ensure the port number is correct, it might not be 5828. Once connected to the scanner with the "Cast" license, check the port number at the top of the scanning screen or from Menu > Status > Scanner Information. You can also force the 5828 port from the settings: connect to the scanner then go to settings > Scanner > Clarius Cast and select "Research (5828)", you might need to disconnect/reconnect to apply the change.

prash-p commented 11 months ago

I've confirmed the port is correct and is forced by selecting "Research (5828)", still no luck.

When I freeze the image through the Clarius app I can see the cast window says "Image Stopped" and then "Image Running" when the image is unfrozen. However, I'm not able to control anything through the cast window and I don't see an image.

julien-l commented 11 months ago

Can you confirm the version matches the Clarius App and scanner's firmware? A new version (11.0.0) was released last week, maybe you app was updated automatically resulting in version mismatch with the Cast SDK. Cast SDK 11 was released today here on GH.

prash-p commented 11 months ago

Okay, that might have been the issue. My app says that it is version 10.3.0-486, so I tried cast version 10.3.0 and now I can use pysidecaster. How do I update the app to version 11?

Unrelated - is it possible to control the frequency independently of the depth and imaging mode (e.g. abdomen, vasculature, etc) using the api?

julien-l commented 11 months ago

I am glad it works now. Update the app from the app stores, then from the updated app, attempt to connect to the scanner, it will trigger the firmware update.

is it possible to control the frequency independently of the depth and imaging mode (e.g. abdomen, vasculature, etc) using the api?

Edited:

Not possible. Now possible since version 11.0.0.

clariusk commented 11 months ago

you can now change some low level parameters through the cast interface, documentation here: https://github.com/clariusdev/raw#low-level-parameters