![]() |
|
#1
|
|||
|
|||
|
Can
Hi,
I am trying to establish communication between Isopod and PlugaPod through CAN. I have connected CANL to CANL and CANH to CANH. I downloaded the code from your webpage and followed the instructions given at the beginning of the code. I am not able to communicate between the two processors. It would be of great help if you could suggest me how to proceed with the code. Thanks Last edited by Kavaipatti : 02-08-12 at 04:23 PM. |
|
#2
|
|||
|
|||
|
As oft as not, the CAN connections won't work without termination resistors. Have you added termination resistors to the two ends of your CAN cables?
|
|
#3
|
|||
|
|||
|
CAN - Termination Resistor
Should the Termination Resistors be in between CANH and CANL. I am not sure about the value of Line Impedence. Will be it be ok to add 120 Ohm resistor.
Should it be on the receiver side or transmitter or both. Thanks Last edited by Kavaipatti : 02-08-12 at 04:23 PM. |
|
#4
|
|||
|
|||
|
Yes 120 ohms across CANH and CANL is all that is required. Do it on both ends. The concept of transmitter and receiver in CAN is inappropriate, since there are transmissions and acknowlegements. Terminate both ends.
|
|
#5
|
|||
|
|||
|
Thanks !!
I will try and get back to you if there are any problems. |
|
#6
|
|||
|
|||
|
I connected 121.8 Ohm on both ends.
I typed XRX on one side and on the other terminal I typed TYPEM followed by numbers and then I checked all the CAN registers using the word “L”. In the terminal which sends the data the CAN register has all the data but in the other end I haven’t received anything. It would be helpful if you could give me the sequence of tasks that needs to be performed in both terminals. Thanks Last edited by Kavaipatti : 02-08-12 at 04:24 PM. |
|
#7
|
|||
|
|||
|
1. Download the same CAN example on the download page to both of the 'Pods.
2. On the Receiving 'Pod terminal program enter XRX 3. On the Transmitting 'Pod terminal Program enter, FILTER-0 ( or FILTER-1, etc... ), hit "return" key then TYPEM and hit "return" key Now enter eight numbers, 1 thru 8 on the keyboard. On the receiving terminal, It will display something like this, XRX -----------C4---- C5----C6---C7-----C8--C9----CA----CB DC4: 0031 0032 0033 0034 0035 0036 0037 0038 123456788 BYTES One important thing, If you have the TiniPod or Plug-a-Pod, make sure to turn off PE2, the CAN controls signal to activate the transceiver before you execute the command. i.e., PE2 OFF XRX ( or FILTER-x TYPEM |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|