2018-05-25 12:34 AM
Hello Everyone,
I,am having a issue with my can node.
The communication bw two can nodes built on STM32L4 works perfectly fine. But that's just for testing purpose. I don't intend to use it that way.
When I introduce it to an existing CAN bus, TX stops. Node is able to read the messages on the bus.
Please let me know what all things i can try or i might be missing.
Hope someone has already been down this road and can help me out..
CAN settings are as follow
hcan1.Instance = CAN1;
hcan1.Init.Prescaler = 6; hcan1.Init.Mode =CAN_MODE_NORMAL
; hcan1.Init.SyncJumpWidth = CAN_SJW_1TQ; hcan1.Init.TimeSeg1 = CAN_BS1_13TQ; hcan1.Init.TimeSeg2 = CAN_BS2_2TQ; hcan1.Init.TimeTriggeredMode = DISABLE; hcan1.Init.AutoBusOff = DISABLE; hcan1.Init.AutoWakeUp = DISABLE; hcan1.Init.AutoRetransmission = ENABLE; hcan1.Init.ReceiveFifoLocked = DISABLE; hcan1.Init.TransmitFifoPriority = DISABLE;#can #can-interface #can-examples #problem-can2018-05-29 02:33 AM
I too started with schematic in transreceiver datasheet. but no luck..
2018-05-29 02:42 AM
Hi TJ,
Have attached the block diagram of my setup.
The car if from FORD . and it has can bus.(have checked that with a scanner. and i am also able to read internal communication through the mentioned setup and the data makes sense too. )
Hope this clarifies the setup
2018-05-29 03:20 AM
I have no direct experience with OBD either, but I can help with CanBus.
In the time Quanta, Try Seg1 at 14, Seg2 at 1
I haven't used a L4 processor but on the F0 and F7, you must pull CanRx up if you don't have the transceiver.
So that is confusing to start. It may be a bus state from the vehicle.
Tell me you have a proper scope and analyzer.
Tell me it is not a $6 Ebay analyser.
Do you have the FORD OBD msg list ?
What msg are you trying to send ?
just to clarify, you have a nucleo board,
one Canbus is for the FORD and the other Canbus is to another Nucleo board.
between the Nucleo boards, you can Receive and Transmit, are you using transceivers ?
The Ford Canbus, you are using a transceiver, you can Receive but not Transmit.
is that where we are ?
2018-05-29 03:29 AM
I would try to connect CAN-GND of your Nucleo board / transceiver to pin 5 of the OBD connector, 'signal ground'.
2018-05-29 03:33 AM
Control pin S allows two operating modes to be selected: High-speed mode or Silent mode.
The high-speed mode is the normal operating mode and is selected by connecting pin S to ground.In the silent mode, the transmitter is disabled.
how did you connect pin 8 of the transceiver chip ?
2018-05-29 03:52 AM
That is Connected. Forgot to show in the diagram.
2018-05-29 03:55 AM
That is a
valuable
input.As of now its left floating. will connect it to ground.
2018-05-29 04:01 AM
floating is supposed to be default as ground...
2018-05-30 12:41 AM
Marsh.Nick
meyer.frank
Hi,
Thank you for helping me throughout the issue.
Finally the issue is resolved.
Hacked in 0 ohm resistor on the CAN H and CAN L lines with 120 ohm(termination) resistor b/w them.