hello everyone,
Any idea if can enable Can on my AGX-orin 64Gb at startup?
My jetson will embed and used for streaming video and CanBus control.
The Can work great but I need to activate it every time,and once in production, the jetson could not be accessed by any person (no KB, no mouse, no screen).
I have try to create a script like below and put it in startup application but modprobe mttcan need to be sudo.
#!/bin/bash
#Kernel Can
modprobe can
modprobe can_raw
modprobe mttcan
#Set Can up
ip link set can0 up type can bitrate 250000 dbitrate 1000000 berr-reporting on fd on
#Enable position control CAN command to motor
cansend can0 06000001#230D200100000000
#Run python TCP socket for position order from C# PC client
python3 Desktop/test-can.py
I have found this : How to enable automatically can bus on startup - #3 by JerryChang
But not really helping.
I have try crontab, my script in init.d but without any success. (Ubuntu beginner)
Thanks in advance.