🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    CAN BUS Error with M5Stack and COMMU Module

    UIFlow
    2
    3
    2.6k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • E
      elettronico
      last edited by

      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!

      1 Reply Last reply Reply Quote 1
      • C
        crapitouille
        last edited by

        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 ?

        1 Reply Last reply Reply Quote 0
        • E
          elettronico
          last edited by

          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)

          1 Reply Last reply Reply Quote 0
          • First post
            Last post