Bug Report: USB CAN Hardware Stopped Working After Parallels Desktop 17.1 Upgrade

Discussion in 'General Questions' started by ReneS9, Oct 19, 2021.

  1. ReneS9

    ReneS9 Bit Poster


    I use a PCAN-USB FD CAN USB adapter to connect to custom hardware in both Windows 10 and Ubuntu 20.04. To communicate with the hardware I use both the PCAN Basic API (on Windows) and python-can (using the SocketCAN API) in Ubuntu. While this setup works fine in Parallels 17.0.1 the latest update seems to break the support for the hardware in both Windows and Linux. While the CAN hardware shows up in the device viewer in Windows it looks like there is a problem receiving (or maybe even sending messages) over the bus. At least for my setup the communication fails after a timeout. I tried the following program which seems to work even in Parallels 17.1:

    #!/usr/bin/env python
    # coding: utf-8
    This example shows how sending a single message works.
    Original Source: https://python-can.readthedocs.io/en/master/
    from __future__ import print_function
    import can
    def send_one():
        bus = can.interface.Bus(bustype='pcan',
        msg = can.Message(arbitration_id=0xc0ffee,
                          data=[0, 25, 0, 1, 3, 1, 4, 1],
            print("Message sent on {}".format(bus.channel_info))
        except can.CanError:
            print("Message NOT sent")
    if __name__ == '__main__':
    Unfortunately I do not have much time debugging this problem further, since I also have to do real work :). Anyway, it would be very nice if you could look into this and provide a fix. If you need any additional information please just comment below. Thank you.

Share This Page