Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Updated related articles

...

  1. Open PCAN view on your host computer and configure the bitrate. In this example it is set to 1Mbit/s.
  2. Setup the CAN interface on the Vybrid, from the Linux target console run:
    Code Block
    ip link set can0 down
    ip link set can0 type can bitrate 1000000 triple-sampling on
    ip link set can0 up
    Note

    Make sure that the bitrate set here matches the one set on your host computer in PCAN-View.

  3. Transmit a message to the host computer. Type the following from the target console:

    Code Block
    cansend can0 222 173 190 239 202 254 186 190

     


    1. You should see the following in the 'Receive' section of PCAN-View:

      Code Block
      Should view the following: 
      Message		DLC		Data
      01h			8		DE AD BE EF CA FE BA BE
  4. Receive a message from the host computer. Type the following from the target console:

    Code Block
    candump
    [CTRL+C to quit candump

     


    1. On PCAN-View 'Transmit':

      1. Right Click -> New Message

      2. Create a message

      3. Click OK

      4. Double Click the message in the 'Transmit' window

      5. When running candump - should see the message in target console

Note
titleCAN Not Working?

See this message: "ip: either "dev" is duplicate, or "type" is garbage"

http://www.armadeus.com/wiki/index.php?title=CAN_bus_Linux_driver

Solution: Run "which ip", if it states "/bin/ip" - make sure you are using the correct filesystem (iproute2) -- should result in "/sbin/ip"

...


Content by Label
showLabelsfalse
max5
spacesPKB
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel in ("can","phycore-vybrid") and type = "page" and space = "PKBPRODUCTINFO"
labelsCAN phycore-vybrid

Page properties
hiddentrue
Related issues