Neo Full board, CAN and SN65HVD230 CAN Board (HowTo)

Discussion in 'UDOO NEO' started by oxoocoffee, Oct 19, 2016.

  1. oxoocoffee

    oxoocoffee Member

    Sep 13, 2016
    Likes Received:

    I just got couple of Neo Full boards and these SN65HVD230 units. I would like to capture in this thread about various steps and explanation from some of the members here who has experience with CAN for some of us that are starting with it. Please add any steps you think are important or anything someone else overlooked :)

    I have two of such boards installed with minimal image and configured to can.

    How to configure can on Neo please check out great post

    So my understanding is that on Neo board has two CANs operation at 3.3V

    So this brings two general questions

    What is the best place/script to place to run on boot up
    ip link set can0 type can bitrate 250000
    ip link set can1 type can bitrate 250000

    Answer: edit /etc/networking/interfaces and add

    auto can0
    iface can0 inet manual
    #pre-up ip link set $IFACE type can bitrate 250000 listen-only off
    pre-up /ip link set $IFACE type can bitrate 250000 triple-sampling on
    up /sbin/ifconfig $IFACE up
    down /sbin/ifconfig $IFACE dow

    I got this unit that I found was recommended by some users.
    To connect this unit to Neo you connect
    SN65HVD230 Udoo Neo (Can0 is Pin 40 and 41, Can1 is Pin 42 and 43)
    CANTX Pin to Pin 41 (CAN1_TX) J7 // This is can0
    CANRX Pin to Pin 40 (CAN1_RX) J7 // This is can0
    GND to Pin GND
    3.3V to 3.3V

    SN65HVD230 has already bulletin 120 resistor

    Now connect CAN_H to CAN_H and CAN_L and CAN_L between two SN65HVD230
    And you are set to go
    Last edited: Oct 23, 2016

Share This Page