cast
cast copied to clipboard
pycast got disconnected and cannot reconnect.
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:
- Run the clarius app and the pycast.py
- You will see this text in the screen: press (q)->quit (a)->action (s)->stream (p)->param change:
- Press (a) and you will see this screen: (f)->freeze (i)->capture image (c)->capture cine, (d/D)->depth, (g/G)->gain:
- Press (d) or (D) to increase or decrease depth.
- Repeat the process until the clarius app no longer respond to requests.
- 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