I am trying CAN communication using Debix i.MX8 SBC with Android 11 installed. Am running a flutter app in which I need to run CAN(Controller Area Network) commands using adb shell.
Commands I need to run are:
adb shell
ifconfig can0 up
I used process_run dart package and tried the following.
var shell = Shell();
await shell.run("ifconfig can0 up");
But it is not working. It is throwing “ShellException(ifconfig can0 down, exitCode 1, workingDirectory: /)”
How to execute these shell commands through flutter application/using dart?