CAN

NOTE: This app must be set the port avitce at first, CAN1 mux to the UART4, Default as CAN, if want UART4, please check the 5.10.2

Copy the app “can_send” and “can_receive” to Development board from ”/Examples/can” .

  • Let the JP7 open, and close the JP4, connect the J17-1 and J17-2 to another board CON2-1 and CON2-2.

  • Set can0 baudrate as 50KBps, and enable can0.

    # canconfig can0 bitrate 50000 ctrlmode triple-sampling on 
    # canconfig can0 start
  • Two board, one as the sender and the other as a receiving end, send the data to execute the following command in a development board:
    # ./can_send -d can0 -i 0x01 0x11 0x22 0x33 0x44 0x55 0x66

Receiving end will use command as:

    # ./can_receive -d can0
    can0  0x1  [6]  0x11 0x22 0x33 0x44 0x55 0x66 
    can0  0x1  [6]  0x11 0x22 0x33 0x44 0x55 0x66 
    can0  0x1  [6]  0x11 0x22 0x33 0x44 0x55 0x66