CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

can bus help me plz
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
foufou_tn



Joined: 13 Apr 2012
Posts: 9

View user's profile Send private message

PostPosted: Mon Apr 16, 2012 1:11 pm     Reply with quote

Thanks everybody it was a simple problem and its solved, thanks.
RHA



Joined: 25 Apr 2006
Posts: 31
Location: Germany

View user's profile Send private message

PostPosted: Mon Apr 16, 2012 11:12 pm     Reply with quote

Thanks for telling us what the problem was Sad
foufou_tn



Joined: 13 Apr 2012
Posts: 9

View user's profile Send private message

PostPosted: Tue Apr 17, 2012 9:59 am     Reply with quote

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 Smile
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group