Atomic CAN Bus and Wifi
-
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 -
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 -
@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
-
@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. -
@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. 初始化CanIf 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*)