当前位置:网站首页>Used by Jetson AgX Orin canfd
Used by Jetson AgX Orin canfd
2022-07-07 14:52:00 【weifengdq】
List of articles
Hardware connection
Reference resources :
- Controller Area Network (CAN)
- Jetson AGX Orin Developer Kit User Guide - Hardware Layout | NVIDIA Developer

The pins used are :
- CAN0: RX(29), TX(31)
- CAN1: RX(37), TX(33)
- GND(39)
Need to connect CANFD Transceiver and 120Ω Terminal resistance For normal use , Here, after receiving the transmitter, connect to CANFD Analyzer

The configuration script
Before Jetson Xavier Set up CANFD (Jetpack 4.6, Turn on pllaon)_weifengdq The blog of -CSDN Blog _canfd Sampling point setting It says that , pllaon Only affected Xavier and Xavier NX, Right now Orin No impact . CAN The pin is not configured as CAN, There are also several ways to modify :
- modify cfg file
- Use jetson-io To configure
- Use busybox To configure
Either method is ok , Take the last one as an example , Take two routes CANFD configure [email protected], [email protected]
#!/bin/sh
sudo busybox devmem 0x0c303000 32 0x0000C400
sudo busybox devmem 0x0c303008 32 0x0000C458
sudo busybox devmem 0x0c303010 32 0x0000C400
sudo busybox devmem 0x0c303018 32 0x0000C458
sudo modprobe can
sudo modprobe can_raw
sudo modprobe mttcan
sudo sh -c 'echo 0x600 > /sys/devices/platform/c310000.mttcan/net/can0/tdc_offset'
sudo sh -c 'echo 0x600 > /sys/devices/platform/c320000.mttcan/net/can1/tdc_offset'
sudo ip link set down can0
sudo ip link set can0 type can bitrate 500000 sample-point 0.8 dbitrate 5000000 dsample-point 0.8 berr-reporting on fd on restart-ms 100
sudo ip link set up can0 mtu 72
sudo ifconfig can0 txqueuelen 1000
# ip -s -d link show can0
sudo ip link set down can1
sudo ip link set can1 type can bitrate 500000 sample-point 0.8 dbitrate 5000000 dsample-point 0.8 berr-reporting on fd on restart-ms 100
sudo ip link set up can1 mtu 72
sudo ifconfig can1 txqueuelen 1000
# ip -s -d link show can1
Note that the above tdc_offset The path is different Jetson The inside is not necessarily fixed , Sure busybox and modprobe After the order is executed , use sudo find / -name tdc_offset Command to find the path . tdc_offset stay 2M The baud rate above must be set
After the configuration ifconfig to glance at , Then check
$ ip -s -d link show can0
8: can0: <NOARP,UP,LOWER_UP,ECHO> mtu 72 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
link/can promiscuity 0 minmtu 0 maxmtu 0
can <BERR-REPORTING,FD> state ERROR-ACTIVE (berr-counter tx 0 rx 0) restart-ms 100
bitrate 500000 sample-point 0.800
tq 20 prop-seg 39 phase-seg1 40 phase-seg2 20 sjw 1
mttcan: tseg1 2..255 tseg2 0..127 sjw 1..127 brp 1..511 brp-inc 1
dbitrate 5000000 dsample-point 0.800
dtq 20 dprop-seg 3 dphase-seg1 4 dphase-seg2 2 dsjw 1
mttcan: dtseg1 1..31 dtseg2 0..15 dsjw 1..15 dbrp 1..15 dbrp-inc 1
clock 50000000
re-started bus-errors arbit-lost error-warn error-pass bus-off
0 0 0 0 0 0 numtxqueues 1 numrxqueues 1 gso_max_size 65536 gso_max_segs 65535
RX: bytes packets errors dropped overrun mcast
0 0 0 0 0 0
TX: bytes packets errors dropped carrier collsns
0 0 0 0 0 0
Transceiver test
Let's configure CANFD Analyzer

Here is the analyzer 5Mbps The sampling point is 75%, Fortunately, it does not affect the use :
- Orin Send standard frame
cansend can0 123#11.22.33.44.55.66.77.88 - Orin Send extended frame
cansend can0 12345678#11.22.33.44.55.66.77.88 - Orin send out CANFD, Don't drive BRS and ESI
cansend can0 123##0.11.22.33.44.55.66.77.88 - Orin send out CANFD, open BRS
cansend can0 123##1.11.22.33.44.55.66.77.88 - Orin send out CANFD, open ESI
cansend can0 123##2.11.22.33.44.55.66.77.88 - Orin send out CANFD, open BRS and ESI
cansend can0 123##3.11.22.33.44.55.66.77.88 - CANFD The analyzer sends 64 Bytes to Orin

Welcome to scan the two-dimensional code, pay attention to WeChat official account , Keep abreast of the latest articles :
边栏推荐
- How bad can a programmer be? Nima, they are all talents
- LeetCode 648. Word replacement
- 一文读懂数仓中的pg_stat
- PAG experience: complete AE dynamic deployment and launch all platforms in ten minutes!
- Wechat applet - Advanced chapter component packaging - Implementation of icon component (I)
- What is the process of ⼀ objects from loading into JVM to being cleared by GC?
- How to enable radius two factor / two factor (2fa) identity authentication for Anheng fortress machine
- ES日志报错赏析-trying to create too many buckets
- Navigation - are you sure you want to take a look at such an easy-to-use navigation framework?
- Oracle Linux 9.0 officially released
猜你喜欢

MicTR01 Tester 振弦采集模块开发套件使用说明

Wechat applet - Advanced chapter component packaging - Implementation of icon component (I)

Pinduoduo lost the lawsuit, and the case of bargain price difference of 0.9% was sentenced; Wechat internal test, the same mobile phone number can register two account functions; 2022 fields Awards an

大厂做开源的五大痛点

13 ux/ui/ue best creative inspiration websites in 2022

Instructions for mictr01 tester vibrating string acquisition module development kit

全球首款 RISC-V 笔记本电脑开启预售,专为元宇宙而生!

因员工将密码设为“123456”,AMD 被盗 450Gb 数据?

What is cloud primordial? This time, I can finally understand!

asp.netNBA信息管理系统VS开发sqlserver数据库web结构c#编程计算机网页源码项目详细设计
随机推荐
Leetcode——344. Reverse string /541 Invert string ii/151 Reverse the word / Sword finger in the string offer 58 - ii Rotate string left
How does the database perform dynamic custom sorting?
Full details of efficientnet model
Yyds dry goods inventory # solve the real problem of famous enterprises: cross line
Data connection mode in low code platform (Part 2)
Computer win7 system desktop icon is too large, how to turn it down
Internal sort - insert sort
CPU与chiplet技术杂谈
electron remote 报错
What is cloud primordial? This time, I can finally understand!
[Yugong series] go teaching course 005 variables in July 2022
PLC:自动纠正数据集噪声,来洗洗数据集吧 | ICLR 2021 Spotlight
C 6.0 language specification approved
Find your own value
[today in history] July 7: release of C; Chrome OS came out; "Legend of swordsman" issued
asp. Netnba information management system VS development SQLSERVER database web structure c programming computer web page source code project detailed design
一个程序员的水平能差到什么程度?尼玛,都是人才呀...
The world's first risc-v notebook computer is on pre-sale, which is designed for the meta universe!
拼多多败诉,砍价始终差0.9%一案宣判;微信内测同一手机号可注册两个账号功能;2022年度菲尔兹奖公布|极客头条...
Pytorch model trains practical skills and breaks through the bottleneck of speed