|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: CAN Jaguar: could longer CAN cables cause problems?
If you made your own serial adapter (it sounds as though this is what you are using), be sure you included a termination resistor in it...
|
|
#2
|
|||||
|
|||||
|
Re: CAN Jaguar: could longer CAN cables cause problems?
About 90% of all CAN issues I have seen are traceable to the termination loads. Remember that the wiring is a transmission line just like coax to an antenna. Without the correct loading, there are a lot of reflections of signal along the line. The CAN bus requires a termination at both ends of the line so if you made your own RS232 interface, this requires a resistor as well. The termination resistor is 100 ohms. Using something other than 100 ohms is almost as bad as no termination. The flat cable that the phone company uses in lengths of 20 feet or less, emulate a twisted pair transmission line at 1MHz just fine. Yes, it is not hard to make your own RJ11 plugs but you can screw it up too. Just be careful and follow the instructions. The Jaguar Getting Started Guide on the FIRST website or IFI site has some great instructions in Chapter 6.
Last edited by Al Skierkiewicz : 31-01-2014 at 09:01. |
|
#3
|
|||
|
|||
|
Re: CAN Jaguar: could longer CAN cables cause problems?
Our RS232 converter wire does have a resistor on it, but the resistor is on the CAN plug's end instead of the serial end. Does anyone think that could cause some signal reflection between the resistor and the serial connector? Also - in the case of the Jaguars - could a longer cable length cause more signal reflection? Do the Jaguars increase the baud rate to accommodate for the increased length, or is it constant? Cause I know that increased baud rate could cause more signal reflection. Is there a way we could lower the baud rate via BDC-COMM? We are planning on make a better RS232 cord in the future.
We should have an oscilloscope and CAN tap available to us on Saturday, so I will try to get a scope trace uploaded if further investigation is needed afterwards. I think trying the shorter cables is a good plan as well as checking the plugs. I think we still have the Jaguar board from our older robot mostly assembled, so that's another thing we should try using. Then we could swap out parts to diagnose the bad components. We have used the resistors on the terminator and RS232 plug for many years, but I suppose we should check those to see if some of the wiring has moved in there, causing a short. Honestly I'm a little troubled by the fact that we could only talk to #3 and #5 with BDC-COMM, #2 (and #4 too I think) wouldn't even respond to BDC. Yet I was able to get as far as accessing #2 from the cRIO JagTest program I made... Further attempts later on might yield different results. Perhaps the NET ports just need to be cleaned somehow? Maybe there's dust getting in there causing problems? This seems like the CAN network is being severed or isn't being completely connected, considering the "sometimes it works, sometimes it doesn't" nature of this problem. I hope I can post back on Saturday night with useful information and even a solution. As recommended, I will make an emphasis on testing the resistors on both ends. |
|
#4
|
|||||
|
|||||
|
Re: CAN Jaguar: could longer CAN cables cause problems?
Auto,
You should remake terminations every year. If you are following the instructions and crimped a plug onto the resistor leads, the connection is not gas tight and likely deteriorated over the year or two since you made it. terminating in the CAN side of the RS232 cable is the recommended practice. If you didn't change the baud rate, I don't think the Jaguars can do that by themselves. |
|
#5
|
|||
|
|||
|
Re: CAN Jaguar: could longer CAN cables cause problems?
I read the Jaguar source code last night, mostly just for my own amusement. The CAN baud rate is not dynamic. There's basically no support for handling accumulated errors.
That said, I'm nearly certain you have a wiring problem. An oscilloscope and some diligent cable wiggling while watching the bus will almost certainly reveal your problem. The hard part is when you have multiple problems - de-convolving many problems is really hard. |
|
#6
|
|||
|
|||
|
Re: CAN Jaguar: could longer CAN cables cause problems?
Quote:
About remaking the terminators, do we only need to replace the deteriorated CAN crimp connector? Or do we need to replace the resistor as well? For the RS232 cable, should we need to get a new CAN cable for it? EDIT: zbrozek, while using the oscilloscope, is there a way to tell if there's termination failure due to a deteriorated CAN crimp connection? Is there a way to tell how bad the deterioration is? It'd be nice to estimate the lifetimes of our terminators and whether they're "expired". Last edited by AutoBotAM : 31-01-2014 at 19:05. Reason: Just read zbrozek's last post |
|
#7
|
||||
|
||||
|
Re: CAN Jaguar: could longer CAN cables cause problems?
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|