Skip to main content
kadir ustun1
Associate III
October 8, 2019
Question

How can I contact smt32f103vc and stm32f407 with CANBUS protocol without transceiver?

  • October 8, 2019
  • 17 replies
  • 3124 views

Hello everyone,

I want to contact STM32F103VC and STM32F407 with canbus protocol without transceiver.

I set baudrate 60kHz. but I can not send or receive data. Can you hel please ?

Thank you.

This topic has been closed for replies.

17 replies

Ozone
Principal
October 8, 2019

Should work at least for short distances.

Have you tried the devices separately, in loopback mode ?

kadir ustun1
Associate III
October 8, 2019

in loopback mode stm32f103 is taking own value.

Ozone
Principal
October 9, 2019

Yes, I know.

If you receive you own transmissions, cross-connecting the Tx/Rx lines to the other device would be the next step.

I hope you did not forget a GND connection, if the devices don't share a common GND on one power supply.

kadir ustun1
Associate III
October 8, 2019

Actually, stm32f407 is working another bord. but I havent tried stm32f103 yet. Distance is short.

Tesla DeLorean
Guru
October 8, 2019

Keil published a method using diodes to achieve a low-cost CAN connection.

http://www.keil.com/appnotes/docs/apnt_236.asp

http://www.keil.com/appnotes/files/apnt_236_v2.9.pdf

See "Tiny Network without Transceiver ICs"

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
kadir ustun1
Associate III
October 9, 2019

I did circuit. But I can not send data.

Tesla DeLorean
Guru
October 9, 2019

Does it gives some error or status indication?

A CAN transmitter needs a responding node. You'd need a receiving device with the matching baud rate to acknowledge the packet.​

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
kadir ustun1
Associate III
October 11, 2019

Hello again.

I try to do this on cubemx. Now, I can send data but I can not receive data. I compare F4 and F1. And I saw that F4's rx pin mode: "alternate function push pul" but f1's rx pin mode :"Input mode". When I cahange it as alternate, Canbus does not init. so I think does not f1 work without tranciever. What do you think about that ?