ttlappalainen / NMEA2000

NMEA2000 library for Arduino
532 stars 221 forks source link

SN65HVD230 CAN Bus Transceivers #107

Closed melucas closed 6 years ago

melucas commented 6 years ago

Hello,

Found these CAN bus transceivers on eBay (SN65HVD230). Will they work with this NMEA200 library?

Thanks, Michael

ttlappalainen commented 6 years ago

Library does not see tranceivers. Only CAN controller matters. As you can read from documents currently supported contollers are Arduino DUE, ESP32, Teensy 3.2-2.6, MCP2515. Tranceiver makes a physical connetion from controller to bus. With quick look I did no saw reason why that would not work with CAN bus - that what it is for. Just take care that your controllers is 3.3 V.

melucas commented 6 years ago

Will a Mega board work? I have a sparkfun CAN-BUS shield (DEV-13262) which has a MCP2515 chip to connect to the Mega. The Mega is a 2560 R3.

melucas commented 6 years ago

Started testing with a DUE. I'm trying to get the Getting Started section, I'm trying to get the TemperatureMonitor to run.

I have the sparkfun CAN-BUS shield (DEV-13262) connected to my Due. I'm still waiting for the transceiver shield which uses the internal CAN bus.

I'm seeing the following error:

PGN 130310 send failed 37725 : Pri:5 PGN:130310 Source:22 Dest:255 Len:8 Data:1,C1,70,FF,FF,FF,FF,FF

How do I debug the sending to find out what the send issue is?

Thanks, Michael

melucas commented 6 years ago

Is it possible to tell the NMEA 200 library which SDA and SCL pins to use? The Due and CAN-BUS shield are connected to SDA1 and SCL1.

melucas commented 6 years ago

Dumped the CAN-BUS shield and a connection to my Raymarine SeaTalkNG network working with the CJMCU-230 Can Bus Transceiver:

You can close this issue.