Petros
Petros
why? you only have one on-board Can interface? SJA1000
MCP or internal ESP32 can controler?
switch (baudRate) { case (long)1000E3: modifyRegister(REG_BTR1, 0x0f, 0x04); modifyRegister(REG_BTR0, 0x3f, 4); break; case (long)500E3: modifyRegister(REG_BTR1, 0x0f, 0x0c); modifyRegister(REG_BTR0, 0x3f, 4); break; case (long)250E3: modifyRegister(REG_BTR1, 0x0f, 0x0c); modifyRegister(REG_BTR0, 0x3f, 9); break;...
This error happens when you don´t have a Connection to the Network. If you have It terminated right it won´t hang. I know it its a bad habit to have...
@NeliusNDL **EDIT:** ESP32SJA1000Class::endPacket() int ESP32SJA1000Class::endPacket() { if (!CANControllerClass::endPacket()) { return 0; } const uint8_t TIMEOUTVALUE = 50; uint8_t uiTimeOut = 0; // wait for TX buffer to free while (((readRegister(REG_SR)...
@NeliusNDL i just had a look at the Datasheet, and I found this: /* address and bit definitions for the Command Register */ #define CommandReg XBYTE[1] #define TR_Bit 0x01 /*...
@heliophagus I found this document on the Web on filtering: http://www.cse.dmu.ac.uk/~eg/tele/CanbusIDandMask.html **Also the ID & Mask are in HEX like 0x1FFFFFFF** (Extended) ID = Your ID (also Hex) Mask =...
Hi Max, There is a issue of the Baud rates with some newer ESP32´s maybe try the next higher baud rate and see if you get imput signals on the...
You need to use proprietary Can Pins on the Board. IO 4 & 5 must be M5 Pins 17/18? I dont work with the m5. I dont think you can...
Hi alex, I work with the Onboard can controler on the ESP, and only add a tranciver. This combination works great for me. If you want to test out your...