Hello at all, i am new here...
I try to establish a CAN connection on the raspberry pi (stretch), using free pascal.
I successfully created a raw socket with PF_CAN=29 and CAN_RAW=1.
And now i have to bind the socket to the hardware address, but i don't know how?
class procedure TSysBus.OpenSocket;
var
s:Tsocket;
sa:TSockAddr;
begin
s:=fpsocket(29, SOCK_RAW, 1);
sa.sa_family:=29;
sa.sa_data[0]:=???;
fpbind(s,@sa,SizeOf(sa));
FpClose(s);
end;
Can somebody give me an example, how i have to go on?
Thanks