Could not process SLCAN line b'T10T104EE87D82C82F4BC14B88B09B337' Traceback (most recent call last): File "/usr/local/lib/python3.6/dist-packages/dronecan/driver/slcan.py", line 289, in _process_many_slcan_lines self._process_slcan_line(slc, local_ts_mono=ts_mono, local_ts_real=ts_real) File "/usr/local/lib/python3.6/dist-packages/dronecan/driver/slcan.py", line 256, in _process_slcan_line packet_id = int(line[1:1 + id_len], 16) ValueError: invalid literal for int() with base 16: b'10T104EE' Traceback (most recent call last): File "/home/root/ros_ws/install/ros2_dronecan/lib/ros2_dronecan/ark_flow", line 33, in <module> sys.exit(load_entry_point('ros2-dronecan', 'console_scripts', 'ark_flow')()) File "/opt/ros/foxy/nokia_ark_flow/install/ros2_dronecan/lib/python3.6/site-packages/ros2_dronecan/ark_flow.py", line 99, in main rclpy.spin(node) File "/opt/ros/foxy/lib/python3.6/site-packages/rclpy/__init__.py", line 191, in spin executor.spin_once() File "/opt/ros/foxy/lib/python3.6/site-packages/rclpy/executors.py", line 719, in spin_once raise handler.exception() File "/opt/ros/foxy/lib/python3.6/site-packages/rclpy/task.py", line 239, in __call__ self._handler.send(None) File "/opt/ros/foxy/lib/python3.6/site-packages/rclpy/executors.py", line 429, in handler await call_coroutine(entity, arg) File "/opt/ros/foxy/lib/python3.6/site-packages/rclpy/executors.py", line 343, in _execute_timer await await_or_execute(tmr.callback) File "/opt/ros/foxy/lib/python3.6/site-packages/rclpy/executors.py", line 118, in await_or_execute return callback(*args) File "/opt/ros/foxy/nokia_ark_flow/install/ros2_dronecan/lib/python3.6/site-packages/ros2_dronecan/ark_flow.py", line 42, in timer_callback self.cannode.spin(0) File "/usr/local/lib/python3.6/dist-packages/dronecan/node.py", line 428, in spin self._recv_frame(frame) File "/usr/local/lib/python3.6/dist-packages/dronecan/node.py", line 319, in _recv_frame transfer.from_frames(transfer_frames) File "/usr/local/lib/python3.6/dist-packages/dronecan/transport.py", line 828, in from_frames raise TransferError("Toggle bit value {0} incorrect on frame {1}".format(tail & 0x20, idx)) dronecan.transport.TransferError: Toggle bit value 32 incorrect on frame 2
When using a zubax babel connected to a dronecan node, I am getting an error here every few seconds. I am using default bitrate: https://github.com/dronecan/pydronecan/blob/1f494e9a56ac9930f1e11c2f453789414b10d54e/dronecan/transport.py#L828
The full trace:
Could not process SLCAN line b'T10T104EE87D82C82F4BC14B88B09B337' Traceback (most recent call last): File "/usr/local/lib/python3.6/dist-packages/dronecan/driver/slcan.py", line 289, in _process_many_slcan_lines self._process_slcan_line(slc, local_ts_mono=ts_mono, local_ts_real=ts_real) File "/usr/local/lib/python3.6/dist-packages/dronecan/driver/slcan.py", line 256, in _process_slcan_line packet_id = int(line[1:1 + id_len], 16) ValueError: invalid literal for int() with base 16: b'10T104EE' Traceback (most recent call last): File "/home/root/ros_ws/install/ros2_dronecan/lib/ros2_dronecan/ark_flow", line 33, in <module> sys.exit(load_entry_point('ros2-dronecan', 'console_scripts', 'ark_flow')()) File "/opt/ros/foxy/nokia_ark_flow/install/ros2_dronecan/lib/python3.6/site-packages/ros2_dronecan/ark_flow.py", line 99, in main rclpy.spin(node) File "/opt/ros/foxy/lib/python3.6/site-packages/rclpy/__init__.py", line 191, in spin executor.spin_once() File "/opt/ros/foxy/lib/python3.6/site-packages/rclpy/executors.py", line 719, in spin_once raise handler.exception() File "/opt/ros/foxy/lib/python3.6/site-packages/rclpy/task.py", line 239, in __call__ self._handler.send(None) File "/opt/ros/foxy/lib/python3.6/site-packages/rclpy/executors.py", line 429, in handler await call_coroutine(entity, arg) File "/opt/ros/foxy/lib/python3.6/site-packages/rclpy/executors.py", line 343, in _execute_timer await await_or_execute(tmr.callback) File "/opt/ros/foxy/lib/python3.6/site-packages/rclpy/executors.py", line 118, in await_or_execute return callback(*args) File "/opt/ros/foxy/nokia_ark_flow/install/ros2_dronecan/lib/python3.6/site-packages/ros2_dronecan/ark_flow.py", line 42, in timer_callback self.cannode.spin(0) File "/usr/local/lib/python3.6/dist-packages/dronecan/node.py", line 428, in spin self._recv_frame(frame) File "/usr/local/lib/python3.6/dist-packages/dronecan/node.py", line 319, in _recv_frame transfer.from_frames(transfer_frames) File "/usr/local/lib/python3.6/dist-packages/dronecan/transport.py", line 828, in from_frames raise TransferError("Toggle bit value {0} incorrect on frame {1}".format(tail & 0x20, idx)) dronecan.transport.TransferError: Toggle bit value 32 incorrect on frame 2