Skip to content
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

Connect BK5000 ultrasound through built plus application #1020

Open
LisanneVenix opened this issue Dec 1, 2022 · 4 comments
Open

Connect BK5000 ultrasound through built plus application #1020

LisanneVenix opened this issue Dec 1, 2022 · 4 comments

Comments

@LisanneVenix
Copy link

My final purpose is to modify the vtkPlusBKProFocusOemVideoSource.cxx and build a new plus application. Without changing anything, I am testing the plus building process.

Problem: BK ultrasound device cannot connect through built plus.

used Software Versions:

  • Microsoft Visual Studio 2015
  • CMake 3.25.0
  • Git 2.38.1-64bit
  • qt windows x86 msvc2015-5.6.3
  • Grabbielib-1.1.0
  • DalsaSapera 8.60

I followed the steps from the manual

  • cloned PlusBuild repository
  • switched to branch: plus 2.8 stable version
  • specified x64 as generator
  • did not specify git executable location --> do not get an error message
  • Specified qt5 directory
  • Enabled Plus_Use_NDI, PLUS_USE_BKPROFOCUS_VIDEO, PLUS_USE_BKPROFOCUS_CAMERALINK, PLUS_TEST_BKPROFOCUS
  • Specified grabbielib directory (after getting error)

Now i get the following error:

Could not find a package configuration file provided by DALSASAPERA with any of the following names: DALSASAPERAconfig.cmake, dalsasapera-config.cmake.

There is indeed no such file on my pc.

When I disable PLUS_USE_BKPROFOCUS_CAMERALINK, the error is resolved and I am able to build through VS2015. However, when I try to connect my bk device it gives an error:
ERROR|004.19500| server stopped unexpectedly. Return code 1|

When looking at the log file, using TRACE, it says:

112922_163724.598|ERROR|000.004000| VTK log: ERROR: In C:\D\PlusB-bin_R\Deps\vtk\Common\System\vtkSocket.cxx, line 145|vtkClientSocket (00000201F9C211C0): Socket error in call to socket. De toepassing heeft WSAStartup niet aangeroepen, of WSAStartup is mislukt.||.||| in C:\D\PlusB-bin_R\PlusLib\src\PlusCommon\vtkPlusLogger.cxx(75)
112922_163724.598|ERROR|000.004000| Last error: 6| in C:\D\PlusB-bin_R\PlusLib\src\PlusCommon\vtkPlusLogger.cxx(79)
112922_163724.598|ERROR|000.004000| VTK log: ERROR: In C:\D\PlusB-bin_R\Deps\vtk\Common\System\vtkClientSocket.cxx, line 44|vtkClientSocket (00000201F9C211C0): Failed to create socket.||| in C:\D\PlusB-bin_R\PlusLib\src\PlusCommon\vtkPlusLogger.cxx(75)
112922_163724.598|ERROR|000.004000| Last error: 6| in C:\D\PlusB-bin_R\PlusLib\src\PlusCommon\vtkPlusLogger.cxx(79)
112922_163724.598|ERROR|000.004000| Could not connect to BKProFocusOem: scanner address = 169.254.253.41, OEM port = 7915| in C:\D\PlusB-bin_R\PlusLib\src\PlusDataCollection\BkProFocus\vtkPlusBkProFocusOemVideoSource.cxx(178)

Connecting NDI aurora device with Plus does work.

Does anyone know how we can resolve this error?

@LisanneVenix
Copy link
Author

@olevs It looks like you have resolved the issue before in #75. However I cannot understand how you resolved it. Do you know how I can get it running? Or maybe @lassoan or @adamrankin? Thank you very much.

@olevs
Copy link
Contributor

olevs commented Dec 9, 2022

Hi,
I never got this to work on Windows, and didn't have time or resources to look more into it. We just had it running on Linux. My issue on Windows was also with VTK socket, so I guess it's related to your problems. However, the code should work for Linux and Mac. In the pull request you referred to @lassoan said he got sockets working on Windows, but I don't know if it actually got tested with the ultrasound machine.

@LisanneVenix
Copy link
Author

Hey @olevs,
Thank you for your answer! Did you only run the build on Linux, or did you also run the PLUS-BK connection in Linux. We might have Linux or maybe macbook available for building, but in the end we want to use the PlusServerLauncher at the OR, so then we need to be able to use it in Windows..
Best, Lisanne

@olevs
Copy link
Contributor

olevs commented Dec 9, 2022

Hi @LisanneVenix,
We ran the PLUS-BK connection on Linux (Ubuntu) in the OR, as that is our preferred platform.
This is the PLUS build setup we used with CustusX earlier: www.custusx.org/uploads/user_doc/nightly/org_custusx_core_openigtlink_plus_install.html
It says to use Plus 2.6, but that was only for that specific setup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants