Skip to content

"No suitable bit timings found" error on gs_usb with high f_clock #1958

@firtel-t

Description

@firtel-t

I have an MKS CANable V2.0 with candleLight firmware installed.
I noticed that bit timing calculation for gs_usb was fixed in PR #1748.
However, when I try to set the bitrate to 250 kbps or lower, I always get the following error:

ValueError: No suitable bit timings found.

Interestingly, Cangaroo seems to work fine with 250 kbps on the same device, so I believe the hardware itself supports this bitrate.

I also tried calculating bit timings using the Bit Timing API example in the documentation, but I couldn't find any valid timing when setting f_clock=170MHz and bitrate under 400 kbps — the loop just outputs nothing.

Is there any solution or workaround to make it work at 250 kbps with gs_usb backend?

Environment:
OS: Windows 10
Python: 3.10.11
python-can: 4.5.0 (installed via pip)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions