AnsweredAssumed Answered

Help Required regarding using CAN bus on SoloX (6SX SABRE-SDB)

Question asked by Shrikant Bobade on Oct 1, 2015
Latest reply on Oct 12, 2015 by Shrikant Bobade

Hello All,

 

I am preparing CAN n/w set-up using two SoloX (6SX SABRE-SDB) targets. I am facing difficulties in getting the compatible CAN cable.

Is there any quick reference for preparing Or getting a compatible CAN cable ?

 

So far I have prepared a customized CAN cable but unable to get the CAN communication working.[using canutils]

with 2 DB9 female connectors & two set of wires

 

a.

pin 2 of first DB9 <--> pin 2 of second DB9

pin 7 of first DB9 <--> pin 7 of second DB9

 

b.

Tried the in two sets:

i. null CAN cable

ii. 120 ohm resistor between pin 2 and pin 7 in the DB9 female connector.[this 120 resistor setting at both DB9 connectors]

 

 

On target side, I am getting the can0 & can1 interface up:

can0  Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 
      UP RUNNING NOARP  MTU:16  Metric:1
      RX packets:0 errors:0 dropped:0 overruns:0 frame:0
      TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
      collisions:0 txqueuelen:10
      RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
      Interrupt:142

 

can1  Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 
      UP RUNNING NOARP  MTU:16  Metric:1
      RX packets:0 errors:0 dropped:0 overruns:0 frame:0
      TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
      collisions:0 txqueuelen:10
      RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
      Interrupt:143

 

 

[1.595824] flexcan 2090000.can: gpr /soc/aips-bus@02000000/iomuxc-gpr@020e4000 req_gpr 0x10 req_bit 1 ack_gpr 0x10 ack_bit 17
[1.595896] flexcan 2090000.can: device registered (reg_base=f01e0000, irq=142)
[1.611179] flexcan 2094000.can: gpr /soc/aips-bus@02000000/iomuxc-gpr@020e4000 req_gpr 0x10 req_bit 2 ack_gpr 0x10 ack_bit 18
[1.611243] flexcan 2094000.can: device registered (reg_base=f01e8000, irq=143)

 

I am using fsl kernel v3.14 with CONFIG_CAN_FLEXCAN=y enabled.

ref using canutils: IMX6 CAN configuration using canutils and libsocketcan

Any pointers or references on getting Or preparing  compatible CAN cable will be a great help..

 

 

Thanks

Shrikant

Outcomes