Facing an issue decoding a `.bin` file using the script `decode_sensor_binary_log.py`

Hi,

We are facing an issue decoding a .bin file sourced from a 360 scanning sonar using Python. Previously, we were able to successfully decode this file. However, we are now experiencing difficulties.

The specifics:

  • We used the script decode_sensor_binary_log.py from the provided examples.
  • The .bin file in question is named 6.bin.
  • This file can be successfully replayed using the PingViewer software.
  • When we attempt to decode, the following error surfaces: File 'F:\bins\6.bin', line 1 XXXXXXX SyntaxError: invalid non-printable character U+0002.
  • Our current Python version is 3.11.3.

Any insights or suggestions would be greatly appreciated.