1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

[Python] Using this CAN module with Python 3

Discussão em 'Python' iniciado por Stack, Setembro 15, 2025.

  1. Stack

    Stack Membro Participativo

    I have recently purchased a PiCAN 2 board that uses the CAN module,

    import CAN

    bus = CAN.interface.Bus(channel='can0', bustype='socketcan_native')
    msg = CAN.Message(arbitration_id=0x13C, data=[0,25,1,3,1,4,1]
    bus.send(msg)


    My error:


    AtributeError: 'module' object has no attribute 'interface'
    ​

    Continue reading...

Compartilhe esta Página