Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Toggle bit value error in transport.py #57

Open
dirksavage88 opened this issue Mar 5, 2024 · 2 comments
Open

Toggle bit value error in transport.py #57

dirksavage88 opened this issue Mar 5, 2024 · 2 comments

Comments

@dirksavage88
Copy link

When using a zubax babel connected to a dronecan node, I am getting an error here every few seconds. I am using default bitrate:

raise TransferError("Toggle bit value {0} incorrect on frame {1}".format(tail & 0x20, idx))

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

@vertiq-jordan
Copy link

Hey! Having this same exact problem using a Babel as well. Did you ever find a resolution?

@dirksavage88
Copy link
Author

@vertiq-jordan I was not able to find a solution.

@tridge any thoughts on resolving this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants