foufou_tn
Joined: 13 Apr 2012 Posts: 9
|
|
Posted: Tue Apr 17, 2012 9:59 am |
|
|
The problem was easy because I just use buffer[0] to send information and i did not affect the buffer[1] to [7] a value, so i have to do that or it will not work. So I did this:
Code: |
buffer[0]=1;
buffer[1]=0;
buffer[2]=0;
buffer[3]=0;
buffer[4]=0;
buffer[5]=0;
buffer[6]=0;
buffer[7]=0;
|
To send information
Code: | can_putd(24,buffer,1,1, TRUE,FALSE); |
and not
Code: | can_putd(24,buffer[0],1,1, TRUE,FALSE); |
To receive information
Code: |
if(can_getd(rx_id,buffer, rx_len,rx_stat))
{
if(rx_id == 24)
{
x=buffer[0];
|
thats all thx |
|