Using while fuction in SocketCAN

0

Im using the two functions below to send CAN command messages at 500 and 30 ms. Each function has its own terminal.

while true; do cansend can0 30E#03; sleep .024692; done

while true; do cansend can0 304#40.FC.01.C0; sleep .495110; done

I opened a 3rd terminal and ran 'candump' to confirm the loops were sending CAN messages. They were. However, when this format is used to send messages to a chevy volt charger, they do not result in the the expected result.

When these same messages are sent via two separate micro controllers, it works?! Any idea's why the while loops in socketcan aren't working?

Imran Khan

Posted 2019-10-30T21:35:35.503

Reputation: 1

No answers