acconeer / acconeer-python-exploration

Acconeer Exploration Tool
https://docs.acconeer.com
Other
171 stars 62 forks source link

Unable to connect after disconnect without physical reset #137

Closed bwolman closed 5 months ago

bwolman commented 6 months ago

I can connect and use my radar fine. However when I restart my application it has a high probability of not being able to reconnect to the radar unless it is physically unplugged or the RST button on the chip is pressed. It's almost as if my radar is in a bad state.

I have flashed multiple chips and have reset the USB hub its connected to but the only known way to get it to work again is via physically unplugging and replugging or with the RST button.

The failure to connect is caused by the handshake not being received. Location: acconeer/exptool/a111/_clients/reg/client.py:_handshake(self)

self._link.recv_until(exp_frame) never returns

Traceback ERROR 2024-03-12 21:58:14,791 Unhandled exception in setup_client(): could not connect, no response Traceback (most recent call last): File "/app/./main.py", line 52, in _setup_client session_info = client.setup_session(get_sensor_config()) File "/venv/lib/python3.9/site-packages/acconeer/exptool/a111/_clients/client.py", line 93, in setup_session return self.subclient.setup_session(config, check_config) File "/venv/lib/python3.9/site-packages/acconeer/exptool/a111/_clients/base.py", line 84, in setup_session self.connect() File "/venv/lib/python3.9/site-packages/acconeer/exptool/a111/_clients/base.py", line 39, in connect info = self._connect() File "/venv/lib/python3.9/site-packages/acconeer/exptool/a111/_clients/reg/client.py", line 211, in _connect raise ClientError("could not connect, no response") acconeer.exptool.a111._clients.base.ClientError: could not connect, no response

Installed packages acconeer-exptool==7.8.1 attributes-doc==0.3.0 attrs==23.2.0 azure-iot-device==2.7.1 cbor2==5.6.2 certifi==2024.2.2 charset-normalizer==3.3.2 commonmark==0.9.1 deprecation==2.1.0 docutils==0.17.1 exceptiongroup==1.1.1 h5py==3.10.0 idna==3.6 janus==0.4.0 numpy==1.21.0 packaging==20.9 paho-mqtt==1.6.1 prometheus-client==0.20.0 pygments==2.17.2 pyparsing==2.4.7 pyserial==3.5 PySocks==1.7.1 python-json-logger==2.0.7 pytz==2024.1 pyusb==1.2.1 PyYAML==5.4.1 requests==2.31.0 requests-unixsocket==0.3.0 rich==12.6.0 six==1.16.0 textual==0.1.18 typing-extensions==4.10.0 ucicommon==1.0.44 urllib3==1.26.18

Screenshots If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

Additional context This software is running in Python inside a docker container on an NVIDIA Jetson AGX running Ubuntu 20.04

AndersBuhl commented 6 months ago

Hi,

I was not able to reproduce this. Connecting worked without reset even after multiple connect/disconnect and closing the app.

BR, Anders