• AVR Freaks

Hot!SAMV71b used in FMS/J1930

Author
scboris
New Member
  • Total Posts : 3
  • Reward points : 0
  • Joined: 2020/11/19 04:41:35
  • Location: 0
  • Status: offline
2020/11/25 06:18:51 (permalink)
0

SAMV71b used in FMS/J1930


Hello,

I try to receive CAN messages from Volvo/MAN truck/bus. The high speed CAN bus in truck is 250kbit/s, but I from one car I was received valid messages... and from another one no messages was received.
I use SAMV71b microcontroller with 12MHz quartz  mcan 1, and use these settings:

  /* 

 * change in the conf_clock.h. Below is the default configuration. The
 * time quanta is 30MHz / (5+1) =  5MHz. And each bit is (1 + NTSEG1 + 1 + NTSEG2 + 1) = 20 time
 * quanta which means the bit rate is 5MHz/20=250KHz.
 */
/** Nominal bit Baud Rate Prescaler */
 CONF_MCAN_NBTP_NBRP_VALUE =   5
/** Nominal bit (Re)Synchronization Jump Width */
 CONF_MCAN_NBTP_NSJW_VALUE =   3
/** Nominal bit Time segment before sample point */
 CONF_MCAN_NBTP_NTSEG1_VALUE = 10
/** Nominal bit Time segment after sample point */
 CONF_MCAN_NBTP_NTSEG2_VALUE = 7
 






If I try communicate my two CAN module together, the communication is perfect, but from the truck....

Anybody has experience in this theme?

Thanks,
Boris
 
#1

3 Replies Related Threads

    ric
    Super Member
    • Total Posts : 29496
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: online
    Re: SAMV71b used in FMS/J1930 2020/11/25 20:56:43 (permalink)

    I also post at: PicForum
    Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
    NEW USERS: Posting images, links and code - workaround for restrictions.
    To get a useful answer, always state which PIC you are using!
    #2
    JPortici
    Super Member
    • Total Posts : 1251
    • Reward points : 0
    • Joined: 2012/11/17 06:27:45
    • Location: Grappaland
    • Status: offline
    Re: SAMV71b used in FMS/J1930 2020/11/26 03:13:33 (permalink)
    0
    What do you mean "I am able to receive messages"?
    Are you sending requests and receiving data?
    Or simply monitoring the bus?
     
    Do not expect that there is always bus activity in the diagnostic port. Also do not expect that both are using diagnostic on CANBUS, or that CANBUS speed is the same in both trucks.
    I'm not sure if it's the same with trucks, but when dealing with older cars you may find that diagnostic run on a different bus (like K-Line) even if canbus is present at the diagnostic port. And in newer ones diagnostic may run on only on ethernet on other pins of the diagnostic port
    #3
    scboris
    New Member
    • Total Posts : 3
    • Reward points : 0
    • Joined: 2020/11/19 04:41:35
    • Location: 0
    • Status: offline
    Re: SAMV71b used in FMS/J1930 2020/11/26 07:19:45 (permalink)
    0
    Hi
    I  use a  FMS connector.
    And I am monitoring the CANBUS in some new trucks, buses.
    Thank You.
    #4
    Jump to:
    © 2021 APG vNext Commercial Version 4.5