I am making a can-bus network that will survey some sensors to gather data in order to have better understanding of an environment that we want to analyse and control. In order to do so we use candump to monitor traffic and can send to sen information (from CAN-BUS files that can be find in this address: https://github.com/linux-can/can-utils.git). I modified some of the codes and they compile well, now what I want to do is to make a parent code that can orchestrate this C programs in order to control the environment. I want to use python or c++ to do this.
Example Algorithm
while(sys == on){
if (everything is in place && security) then
{candump -l -t -n nb_of_max_cycle can0}
else { puts("error")}
if (user_id == permited_id && authentification) then
{ cansend can0 tram=[hexID_arbitration+data] }
else { puts("denied") }
}
Thanks beforehand for all type of suggestions.
I have tried to work with a IDE but I can't compile anything because the makefile that is used is specificly made for can programs with the iso standarts for CANBUS.
I want to call and put or get basic info with c functions like I am on a terminal with this code.