• sama5d36 can0 can1 测试


    1 删除/bin/ip

           保留/sbin/ip

    2 ip link set can0 type can bitrate 125000

           ip link set can1 type can bitrate  125000

    3    ifconfig can0 up

          ifconfig can1 up

    4   ip link show

    $2: can0: <NOARP,UP,LOWER_UP,ECHO> mtu 16 qdisc pfifo_fast state UNKNOWN mode DEFAULT group default qlen 10
    link/can
    $3: can1: <NOARP,UP,LOWER_UP,ECHO> mtu 16 qdisc pfifo_fast state UNKNOWN mode DEFAULT group default qlen 10
    link/can

    5 can0-----can1 loop测试

    e.g. 5A1#11.2233.44556677.88 / 123#DEADBEEF / 5AA# / 123##1 / 213##311
    1F334455#1122334455667788 / 123#R for remote transmission request.

    # cansend can1 5A1#11.2233.44556677.88
    # cansend can1 5A1#11.2233.44556677.88
    # cansend can1 5A1#11.2233.44556677.88
    # cansend can1 5A1#11.2233.44556677.88
    # cansend can1 5A1#11.2233.44556677.88
    # cansend can1 5A1#11.2233.44556677.88
    # cansend can1 5A1#11.2233.44556677.88
    # cansend can1 5A1#11.2233.44556677.88
    # cansend can1 5A1#11.2233.44556677.88
    # cansend can1 5A1#11.2233.44556677.88

    # candump can0
    can0 5A1 [8] 11 22 33 44 55 66 77 88
    can0 5A1 [8] 11 22 33 44 55 66 77 88
    can0 5A1 [8] 11 22 33 44 55 66 77 88
    can0 5A1 [8] 11 22 33 44 55 66 77 88
    can0 5A1 [8] 11 22 33 44 55 66 77 88
    can0 5A1 [8] 11 22 33 44 55 66 77 88
    can0 5A1 [8] 11 22 33 44 55 66 77 88
    can0 5A1 [8] 11 22 33 44 55 66 77 88
    can0 5A1 [8] 11 22 33 44 55 66 77 88
    can0 5A1 [8] 11 22 33 44 55 66 77 88

  • 相关阅读:
    机器学习笔记
    python学习笔记-day8
    python学习笔记-day7
    python学习笔记-day6
    python学习笔记-day5
    python习题
    単語
    bat批处理----copy和xcopy区别
    C#
    VB
  • 原文地址:https://www.cnblogs.com/zym0805/p/4346938.html
Copyright © 2020-2023  润新知