cast icon indicating copy to clipboard operation
cast copied to clipboard

pycast got disconnected and cannot reconnect.

Open p3p31v opened this issue 1 year ago • 1 comments

Description:

After around 1/2 minutes sending requests( for example, increasing depth or decreasing depth), the app got disconnected from the python program so cast.isConnected()==False. If you send a request then, the program will no longer respond but if you wait, the program will reconnect automatically. Sometimes the program will disconnect and will no longer reconnect.

Reproduction steps:

  1. Run the clarius app and the pycast.py
  2. You will see this text in the screen: press (q)->quit (a)->action (s)->stream (p)->param change:
  3. Press (a) and you will see this screen: (f)->freeze (i)->capture image (c)->capture cine, (d/D)->depth, (g/G)->gain:
  4. Press (d) or (D) to increase or decrease depth.
  5. Repeat the process until the clarius app no longer respond to requests.
  6. The timestamp printed in the screen would be frozen for some seconds. In that case cast.isConnected()==False. When it is not frozen anymore, the requests will work again and cast.isConnected()==True. If you send a request when the screen is frozen, the pycast.py will lose the communication with the app completely. If you try to use the disconnect option, it will fail.

Expected behavior:

When there is a disconnection and you send a request, the communication is not lost. There are no disconnections with cast.isConnected()==True that doesn't reconnect again.

Environment:

  • Device: PAHD3 11.2.0
  • Development platform [e.g. Linux, Xcode]: Windows
  • Python cast version: 11.2.0
  • Clarius App version: 11.2.2

p3p31v avatar Aug 26 '24 12:08 p3p31v