How do I get the PIC18F458 to send the sender ID as well as the ID of the node who has to receive the message.
I can get it to send its own ID using the demo code of CCS, but there is no way of setting up the target ID.
JPA Guest
CAN ID
Posted: Wed Mar 09, 2005 3:08 am
There is no target or sender ID defined on CAN bus. The ID is the ID of the message. When message is send on the bus, it is available to all devices on that bus. The receivers must filter the message they need.
In your case, if you defined the ID of the message to be the sender's ID, the you may put the target'ID in the data bytes. Or divide the message ID into 2 parts beeing sender'ID and target's ID. This last method let you use the built in mask & filtering of the ID to received only messages sent to the selected target.
ECUWizz Guest
RE CAN ID
Posted: Thu Mar 10, 2005 3:32 am
My problem is that I HAVE to send the Sender and Target ID in the TPE
(Transport Protocol Entity). Not in the Data body of the message. This is the standard of KWP2000, an automotive diagnostic protocol. I will try the methods you described. MAYBE that is what they mean.
Thanks
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