Can bus library

So i have found lots of examples that deal with reading and decoding automotive can bus using shields but i need to send and receive.

I am looking at making a closed loop communication system between at this time three modules. I am needing to send and receive on all modules. I was trying to find a library and example of this. All i keep finding is one receiving one sending.

Is there a standard library. Also in the examples if i needed to to both send and receive is it as simple as putting both codes on the same unit?

I did forget to mention i am using a due and an stm32f board using the can pins with a transceiver.

Thank you

I did forget to mention i am using a due and an stm32f board using the can pins with a transceiver.

Yes, you did forget to detail how you have connected all this, and also what is a stm32f board, provide links at least.

I use a DUE via a standard CAN bus transceiver to communicate to a CAN based Lithium battery management system (BMS), so I have no idea what this stm32f board is and why you use it.

Provide clearer details and links so we don't make assumptions or have to guess.
Provide your code thus far, again, detailing what libraries you have tried and are using together with exact issues.


Paul - VK7KPA

Sorry for the confusion I meant that my three modules are 1 due, and 2 stm32f103 boards.

stm32f103

For the transceiver units i am using some generic ones order of of amazon Transceiver

I don't have them wired up yet i was originally using a board that was a spi unit with 2515 then i realized i didn't need that. so those went in the storage bin.

But right now for prototyping it will be three units in parallel with each end having a terminating resistor. the boards i ordered look like they have the resistor already in place. so if they are actually as pictured if i am no mistaken i will have to remove one of the resistors?

So far i have not tired any code with these new boards, i was more inquiring if there is a good standard library as i have found several. I am tring to round up code while i wait for the transceivers to show up.

Thanks

I have used this DUE based CAN library for a number of years now without any problems, as mentioned above.

I'm unaware of other CAN bus libraries for the DUE using its on-board CAN controller, but I am sure there may be others.


Paul - VK7KPA

Thank you! i will start there with that for the due. I know you said you used the due mainly, do you think that would work for the stm32 board as well? or is the library board only specific.

I can not say if the stm32 board will work with this library, as I haven't used that board, though it may be possible to make if you know enough of the underlying hardware core. Possibly not a trivial task.


Paul - VK7KPA