Either way, not receiving any other PGNs than the 3 listed above even though the simulator seems to be sending them. In my debugging efforts I seem to remember reading that the hw only responds to configured PGNs, but I can't seem to find if that's true. I can see in the simulator message console that many other PGNs are being sent, but nothing is showing up in the serial port monitor in the Arduino IDE. But I'm not seeing any sensor data, just the following PGNs: I'm using an Actisense NGT-1 USB and the NMEA2000 simulator and I'm seeing message coming through using the DataDisplay2 sketch. I have a MKR CAN shield being used with a MKR NB 1500. Hi Timo, I hope this is the right place to ask this question. I've also tried decreasing buffer size on the receiver (SetN2kCANMsgBufSize(2)) but nothing seems to have any desired effects. All CS and interrupt pins are correct on both boards, MCP CAN clock configuration is set to "8". I've configured SendFrameBufSize to 20 on the sender since first I wasn't able to send anything with larger buffer. The problem seems to be the Arduino listening the bus, it just reports "CAN device ready" in serial and nothing else. Sender seems to be functioning properly as I'm able to receive data using a Raspberry Pi with CAN hat, and I'm also able to observe the proper data in Signal K server on the RPi. Modules are connected directly to each other and terminated with 120Ω resistors. For testing I'm using Timo's examples (MessageSender and DataDisplay2) although I had to drop bunch of PGNs to fit the programs into the boards. These boards have 48KB flash memory, capable of storing the NMEA2000 libraries. I'm using relatively new Arduino Nano Every boards equipped with MCP2515 modules including TJA1050 transceivers. I'm trying to establish N2k communication between two Arduinos. #define NMEA2000_TEENSYX_CAN_BUS tNMEA2000_Teensyx::CAN2 If you want to change port for Teensy 4.0 for, you define Bus works with one on short test conditions and final bus must have 2 termination resistors on longest end on the bus
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |