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

    Atomic CAN Bus and Wifi

    Modules
    2
    5
    575
    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.
    • H
      HappyUser
      last edited by

      I am running into the following problem.
      The Atomic CAN Bus works perfect. When I include WiFi it does not send andy data anymore. I have tested this with both the CanBus base as well as with Can bus Unit.
      Somehow I have the feeling that it is related to incompability between Serial 1 and/or Serial 2 and WiFi on an ESP32.
      Any feedback/suggestions?
      Thanks

      kurikoK 1 Reply Last reply Reply Quote 0
      • kurikoK
        kuriko @HappyUser
        last edited by

        Hi @HappyUser
        What development environment are you using? UiFlow or Arduino? As far as I know, UiFlow 2.1.6 and above firmware may have some impact on the port

        Good morning, and welcome to the Black Mesa Transit System.

        H 1 Reply Last reply Reply Quote 0
        • H
          HappyUser @kuriko
          last edited by

          @kuriko I use Arduino.

          I am curious if this is a hardware issue or software (incompatibility between Wifi and the CAN bus protocol).

          It does not work with ports 26 and 32 as well as ports 22 and 19 for communication with the CAN bus port

          Regards

          1 Reply Last reply Reply Quote 0
          • kurikoK
            kuriko
            last edited by

            @HappyUser
            This is a strange situation. Logically, operating the two GPIO ports will not affect the Wi-Fi function. Maybe you can try to see if operating the level of the two GPIO ports will affect the Wi-Fi? I suspect it is a problem with the library file. If possible, please provide your code.

            Good morning, and welcome to the Black Mesa Transit System.

            H 1 Reply Last reply Reply Quote 0
            • H
              HappyUser @kuriko
              last edited by HappyUser

              @kuriko
              Indeed a strange situation.
              It occurs if I use TX=26 and RX=32 and also TX=22 and RX=19 to initiate the can BUS on a M5Atom
              ESP32Can.CANInit(); // Init CAN Module. 初始化Can

              If i dont initiate WifI I can send data through the CAN BUS. The moment I initiate WiFi, no data come through in the CAN BUS.

              I will do some other trials with other devices (M5Core 2 and M5Atom S3) to check if it is a hardware problem.

              I do hope to get this solved because if this problem is definite it means the Communication abilites of the CAN bus are limited.
              Regards

              (* Oh, important : When using WiFi i do receive CAN BUS messages , so that is weird, i really need to dive into this*)

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