You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi. I have a problem with receiving data from one esp32 to another. I use simple temperature monitor to DataDisplay2 but nothing show in serial. When i use simple example of sending and receiving data send.ino and receiving.ino it's working but when i tried nmea2000 data to transfer no receiving anything. I connect my esp32 pins with mcp2515 board:
VCC -- ESP32 VIN
GND -- GND
CS -- D5
SO -- D19
SI -- D23
SCK -- D18
INT -- D4
Simple send.ino and receiving.ino work, but not nmea2000. I think it's something with code because simple send recive works. I have resisors jumper connected. If i tried ActisenseListener.ino and use Actisense NMEA Reader software there is always TimedOut.
I attached zip files with all sketches.
Thanks for help.
Yes, for sure there is something in your code or hw - not in library.
If you are using ESP32, why do you use that MCP2515 module? ESP32 has internal CAN controller and needs only transceiver - I prefer isolated ISO1050. Note that your module is not isolated. You can read more information about its importance from library documentation. Usin MCP2525 module will just make things more complex.
Since you are using MCP2515 module, did you force compiler to use it? As default examples uses ESP32 internal CAN and you have not connected transceiver to it, so for sure it does not work. So as indocumentation you need to add several defines to yor project.
#define USE_N2K_CAN 1
#define N2k_SPI_CS_PIN GPIO_NUM_xx // Pin for SPI Can Select
#define N2k_CAN_INT_PIN GPIO_NUM_xx // Use interrupt and it is connected to pin 21
#define USE_MCP_CAN_CLOCK_SET 8 // possible values 8 for 8Mhz and 16 for 16 Mhz clock
#include <NMEA2000_CAN.h>
Hi. I have a problem with receiving data from one esp32 to another. I use simple temperature monitor to DataDisplay2 but nothing show in serial. When i use simple example of sending and receiving data send.ino and receiving.ino it's working but when i tried nmea2000 data to transfer no receiving anything. I connect my esp32 pins with mcp2515 board:
VCC -- ESP32 VIN
GND -- GND
CS -- D5
SO -- D19
SI -- D23
SCK -- D18
INT -- D4
Simple send.ino and receiving.ino work, but not nmea2000. I think it's something with code because simple send recive works. I have resisors jumper connected. If i tried ActisenseListener.ino and use Actisense NMEA Reader software there is always TimedOut.
I attached zip files with all sketches.
Thanks for help.
esp32.zip
The text was updated successfully, but these errors were encountered: