CAN BUS Error with M5Stack and COMMU Module



  • Hi, I send the command via canbus to the M5stack but receive a different message.

    Example:
    I send 00 00 00 D8 0D 06 01
    I receive 00 00 00 D8 r 08 01

    It doesn't seem to like '0D' and sees it as CR

    Is this a bug? Any ideas on how to fix it?

    thank you!



  • Hi,
    I also have a bug with the COMMU module and the CAN BUS.
    The code I have is working with the firmware 1.11.6, but not anymore with the 1.11.7.
    I get the following error message "function takes 4 positional arguments but 3 were given". This is the python command "com.commu_can_init(3, 3)".

    Any update on that ?



  • Solved with the code ;-)

    message = com.commu_can_read_message(0)
    hex_list = []
    for b in message:
    hex_str = hex(b)[2:]
    if len(hex_str) < 2:
    hex_str = '0' + hex_str
    hex_list.append(hex_str)