Working with the sonar log with
python decode_sensor_binary_log.py ping2log.bin
Works, and generates a playback of data for each ping. It also makes a .pyc file extension file, but only 10kb, in a pycache folder in the same directory.
Header: start_1: 66 start_2: 82 payload_length: 526 message_id: 1300 src_device_id: 1 dst_device_id: 0
Payload:
- distance: 1882
- confidence: 0
- transmit_duration: 60
- ping_number: 23604
- scan_start: 0
- scan_length: 2265
- gain_setting: 4
- profile_data_length: 500
- profile_data: ['0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xfd', '0xbb', '0xb6', '0xc1', '0xc8', '0xc0', '0xd8', '0xde', '0xd2', '0xee', '0xdc', '0xdb', '0xd6', '0xd5', '0xc1', '0xc4', '0xb5', '0x8f', '0x91', '0x78', '0x78', '0x79', '0x83', '0x79', '0x8d', '0x90', '0x7f', '0x90', '0x8a', '0x8f', '0x8d', '0x95', '0x8a', '0x9c', '0x99', '0x88', '0xa6', '0xa8', '0xb0', '0xb9', '0xbf', '0xab', '0xae', '0x9f', '0x7b', '0x70', '0x57', '0x52', '0x4b', '0x41', '0x35', '0x34', '0x31', '0x27', '0x27', '0x1b', '0x19', '0x19', '0x1e', '0x1f', '0x2d', '0x32', '0x34', '0x3e', '0x41', '0x43', '0x3f', '0x3f', '0x33', '0x38', '0x37', '0x32', '0x3c', '0x47', '0x50', '0x52', '0x57', '0x4b', '0x50', '0x4d', '0x42', '0x3c', '0x31', '0x2c', '0x24', '0x21', '0x17', '0x1b', '0x1e', '0x1c', '0x1b', '0x1a', '0x1b', '0x19', '0x1d', '0x19', '0x21', '0x23', '0x25', '0x25', '0x23', '0x24', '0x1e', '0x1c', '0x13', '0xf', '0xb', '0x4', '0x2', '0x0', '0x0', '0x0', '0x2', '0x5', '0x6', '0x9', '0xb', '0xa', '0x7', '0x5', '0x2', '0x1', '0x5', '0x7', '0x8', '0xb', '0xd', '0x13', '0x15', '0x1a', '0x1f', '0x22', '0x1b', '0x18', '0x14', '0xf', '0x10', '0x10', '0x12', '0x15', '0x17', '0x1b', '0x1e', '0x1c', '0x16', '0x13', '0x11', '0xe', '0xc', '0x8', '0x6', '0x4', '0x2', '0x4', '0x8', '0xb', '0xe', '0x12', '0x13', '0x11', '0x10', '0x10', '0x12', '0x11', '0x11', '0xc', '0x7', '0x1', '0x0', '0x0', '0x0', '0x0', '0x0', '0x0', '0x0', '0x0', '0x0', '0x0', '0x0', '0x0', '0x0', '0x0', '0x0', '0x0', '0x0', '0x0', '0x0', '0x0', '0x0', '0x0', '0x0', '0xff', '0x65', '0xca', '0xd7', '0xfd', '0xf2', '0xbd']
Checksum: 24701 check: 24701 pass: True