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 multi packet ( >8 byte data) anyone have any ideas ?

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
MikeW



Joined: 15 Sep 2003
Posts: 184
Location: Warrington UK

View user's profile Send private message

CAN multi packet ( >8 byte data) anyone have any ideas ?
PostPosted: Mon Nov 30, 2009 8:21 am     Reply with quote

I am planning a project using CAN for the first time.

I dont want to use a complicated protocol like J1939, or CANOpen etc.

At this stage I want to send say 64 bytes of data as a transaction.

I am well aware that CAN is 8 bytes per xfer.

I have the CCS dev kit, and it works fine.

I envisage sending text strings to an LCD , so 8 bytes is not enough

does anyone have any code to split the data into multi-packets, and then reassemble them at the other end ?

Mike
newguy



Joined: 24 Jun 2004
Posts: 1909

View user's profile Send private message

PostPosted: Mon Nov 30, 2009 10:19 am     Reply with quote

It's not hard to figure out a workaround. You have 31 bits of address in a CAN transaction, so use that to come up with a solution. In that 31 bits, somehow specify a message source, message destination, message purpose and other things necessary for the purpose. The transmitter assembles the message with the proper source/destination/purpose/transaction 0 of x all incorporated into the address. The receiver only responds to messages directed at it (set up by the message filters), and uses the data in the address to reconstruct the 64 byte payload. If necessary, add ACK replies from RX -> TX to avoid the TX from overwhelming the RX.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
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