CAN Basic sample

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
hata_3396041
Level 4
Level 4
First solution authored First like received 50 questions asked

Hello

I previously asked this thread about the CAN sample.

PSoC4100S Plus CAN

This sample code is for Full mode.

●Is there a sample code for basic mode?

I want to use 17 nodes and monitor the status of 16 other nodes with one node.

Therefore, I want to change the ID on each node programmatically.

I would like to confirm that my understanding is correct,

●In Full mode, the sending side assigns a fixed ID to eight mailboxes and sends the data.

  The receiving side specifies IDs for 16 RX mailboxes, the specified IDs are filtered from the data on the CAN bus and placed in the mailboxes.

Is this understanding correct?

Best Regards

Hayato

0 Likes
1 Solution
BragadeeshV
Moderator
Moderator
Moderator
First question asked 1000 replies posted 750 replies posted

Hi hata_3396041​,

Yes, your understanding is correct. You can use the basic transmit mailbox to dynamically change the TX ID in run time.

Please use PSoC Creator to view the Code example for the same.

Open PSoC Creator. File -> Code Example. Choose 4200 M in the device family.

pastedImage_0.png

CAN_Full_P4_Example has Basic Transmit Mailbox and Full Receive mailbox

CAN_Basic_P4_Example has Full Transmit Mailbox and Basic Receive mailbox

Hope this helps!

Regards,

Bragadeesh

Regards,
Bragadeesh

View solution in original post

0 Likes
2 Replies
BragadeeshV
Moderator
Moderator
Moderator
First question asked 1000 replies posted 750 replies posted

Hi hata_3396041​,

Yes, your understanding is correct. You can use the basic transmit mailbox to dynamically change the TX ID in run time.

Please use PSoC Creator to view the Code example for the same.

Open PSoC Creator. File -> Code Example. Choose 4200 M in the device family.

pastedImage_0.png

CAN_Full_P4_Example has Basic Transmit Mailbox and Full Receive mailbox

CAN_Basic_P4_Example has Full Transmit Mailbox and Basic Receive mailbox

Hope this helps!

Regards,

Bragadeesh

Regards,
Bragadeesh
0 Likes

Hi Bragadeesh-san

Thank you for your reply!

It was very helpful for me!

Best Regards

Hayato

0 Likes