Quantcast
Channel: Arduino Forum - Latest topics
Viewing all articles
Browse latest Browse all 15574

Strange can bus data using MCP2515 and ESP32 M5Stack Core 2 with MCP_Can_lib

$
0
0

HI Folks,

I have 2 m5Stack esp32 Core 2 modules connected to the MCP2515 modules each terminated with 120ohm resistors. Initially I had both being supplied by the 5V pin from the Core 2 which is not good long term for the esp32 but enough to prototype. I've since cut the trace on the power to the transceiver and supplied 5V direct to that and power the MCP2515 with 3.3V. The SPI bus will be happier. However, in both cases I'm seeing the same CANBUS data even when not sending anything on the bus. One device is set to send the other is set to receive. The device that sends says it sent the message ok but i never see it on the receiver. All I ever see is the following. I thought initially they were garbage but seeing that the pattern repeats they must mean something in canbus land. The canbus is set to 250kbs and the crystals on both devices are 16Mhz.

M5Core2 initializing...axp: vbus limit off
axp: gpio1 init
axp: gpio2 init
axp: rtc battery charging enabled
axp: esp32 power voltage was set to 3.35v
axp: lcd backlight voltage was set to 2.80v
axp: lcd logic and sdcard voltage preset to 3.3v
axp: vibrator voltage preset to 2v
touch: FT6336 ready (fw id 0x10 rel 1, lib 0x300E)
E (2102) I2S: i2s_driver_uninstall(1957): I2S port 0 has not installed
OK
SPI Done
Entering Configuration Mode Successful!
Setting Baudrate Successful!
MCP2515 Initialized Successfully!
MCP2515 Library Receive Example...
Standard ID: 0x40000688 DLC: 5 Data: REMOTE REQUEST FRAME
Standard ID: 0x40000438 DLC: 7 Data: REMOTE REQUEST FRAME
Standard ID: 0x404 DLC: 6 Data: 0x6E 0xD9 0x26 0x6F 0x80 0x87
Standard ID: 0x404 DLC: 6 Data: 0x6E 0xD9 0x26 0x6F 0x80 0x87
Standard ID: 0x404 DLC: 7 Data: 0x87 0x87 0x87 0x87 0x80 0x87 0x87
Standard ID: 0x43C DLC: 7 Data: 0x87 0x87 0x87 0x87 0x87 0x87 0x87
Standard ID: 0x43C DLC: 7 Data: 0x87 0x87 0x87 0x87 0x87 0x87 0x87
Standard ID: 0x43C DLC: 0 Data:
Standard ID: 0x4000043C DLC: 5 Data: REMOTE REQUEST FRAME
Extended ID: 0x12E0185E DLC: 0 Data:
Standard ID: 0x40000688 DLC: 5 Data: REMOTE REQUEST FRAME
Standard ID: 0x40000438 DLC: 7 Data: REMOTE REQUEST FRAME
Standard ID: 0x404 DLC: 6 Data: 0x6E 0xD9 0x26 0x6F 0x80 0x87
Standard ID: 0x404 DLC: 6 Data: 0x6E 0xD9 0x26 0x6F 0x80 0x87
Standard ID: 0x404 DLC: 7 Data: 0x87 0x87 0x87 0x87 0x80 0x87 0x87
Standard ID: 0x43C DLC: 7 Data: 0x87 0x87 0x87 0x87 0x87 0x87 0x87
Standard ID: 0x43C DLC: 7 Data: 0x87 0x87 0x87 0x87 0x87 0x87 0x87
Standard ID: 0x43C DLC: 0 Data:
Standard ID: 0x4000043C DLC: 5 Data: REMOTE REQUEST FRAME
Extended ID: 0x12E0185E DLC: 0 Data:
Standard ID: 0x40000688 DLC: 5 Data: REMOTE REQUEST FRAME
Standard ID: 0x40000438 DLC: 7 Data: REMOTE REQUEST FRAME
Standard ID: 0x404 DLC: 6 Data: 0x6E 0xD9 0x26 0x6F 0x80 0x87
Standard ID: 0x404 DLC: 6 Data: 0x6E 0xD9 0x26 0x6F 0x80 0x87
Standard ID: 0x404 DLC: 7 Data: 0x87 0x87 0x87 0x87 0x80 0x87 0x87
Standard ID: 0x43C DLC: 7 Data: 0x87 0x87 0x87 0x87 0x87 0x87 0x87
Standard ID: 0x43C DLC: 7 Data: 0x87 0x87 0x87 0x87 0x87 0x87 0x87
Standard ID: 0x43C DLC: 0 Data:
Standard ID: 0x4000043C DLC: 5 Data: REMOTE REQUEST FRAME
Extended ID: 0x12E0185E DLC: 0 Data:
Standard ID: 0x40000688 DLC: 5 Data: REMOTE REQUEST FRAME
Standard ID: 0x40000438 DLC: 7 Data: REMOTE REQUEST FRAME
Standard ID: 0x404 DLC: 6 Data: 0x6E 0xD9 0x26 0x6F 0x80 0x87
Standard ID: 0x404 DLC: 6 Data: 0x6E 0xD9 0x26 0x6F 0x80 0x87
Standard ID: 0x404 DLC: 7 Data: 0x87 0x87 0x87 0x87 0x80 0x87 0x87
Standard ID: 0x43C DLC: 7 Data: 0x87 0x87 0x87 0x87 0x87 0x87 0x87
Standard ID: 0x43C DLC: 7 Data: 0x87 0x87 0x87 0x87 0x87 0x87 0x87
Standard ID: 0x43C DLC: 0 Data:
Standard ID: 0x4000043C DLC: 5 Data: REMOTE REQUEST FRAME
Extended ID: 0x12E0185E DLC: 0 Data:
Standard ID: 0x4

Anybody got any ideas.? I cant find anything on the net about this specific issue. My understanding was that nothing is on the bus

3 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 15574

Latest Images

Trending Articles



Latest Images