🤖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

    Scheduled Pinned Locked Moved UIFlow
    3 Posts 2 Posters 3.6k Views
    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 Offline
      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 Offline
        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 Offline
          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

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post