Go to Post ...And thank goodness there are powerhouse teams out there... they set a great example and inspire the rest of us to greater heights. - dtengineering [more]
Home
Go Back   Chief Delphi > Technical > Electrical > CAN
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #16   Spotlight this post!  
Unread 28-01-2012, 15:47
otherguy's Avatar
otherguy otherguy is offline
sparkE
AKA: James
FRC #2168 (The Aluminum Falcons)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: CT
Posts: 429
otherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to behold
Re: CAN troubles with Black Jaguars

FYI, this jag can still be used, just not as the first one in the chain.

Also kinda weird... it came with a board ID of 3. They are supposed to come with a board ID of 1.
__________________
http://team2168.org
Reply With Quote
  #17   Spotlight this post!  
Unread 30-01-2012, 13:20
gr8dragon's Avatar
gr8dragon gr8dragon is offline
Registered User
AKA: Parth Patel
no team
Team Role: Alumni
 
Join Date: Dec 2008
Rookie Year: 2006
Location: Toronto,Canada
Posts: 39
gr8dragon is a glorious beacon of lightgr8dragon is a glorious beacon of lightgr8dragon is a glorious beacon of lightgr8dragon is a glorious beacon of lightgr8dragon is a glorious beacon of light
Re: CAN troubles with Black Jaguars

When i had the issue of not getting the chain to work, i tried switching the CAN cable ports, as in the wire coming off the previous jaguar went into the port on left, i switched it to right, etc. That seemed to fix my problem. My question is, as long as it works does it matter where the cables are going?
Reply With Quote
  #18   Spotlight this post!  
Unread 31-01-2012, 01:47
Levansic's Avatar
Levansic Levansic is offline
Registered User
AKA: Len Evansic
FRC #0585 (Cyber Penguins)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2008
Location: Tehachapi, CA
Posts: 185
Levansic has much to be proud ofLevansic has much to be proud ofLevansic has much to be proud ofLevansic has much to be proud ofLevansic has much to be proud ofLevansic has much to be proud ofLevansic has much to be proud ofLevansic has much to be proud ofLevansic has much to be proud ofLevansic has much to be proud of
Re: CAN troubles with Black Jaguars

CAN cables don't care which port they connect to, as long as the chain is terminated. The CAN bus is a party line, where all modules are listening at all times.

There is no directionality to the bus.

If a cable and port appear problematic, then you should treat that connection as suspect. Check the cables and ports thoroughly, as something is wrong in that link. If you move the cables to other ports, and the problem goes away, you may have just delayed the problem, and hid it somewhere else.

Last edited by Levansic : 31-01-2012 at 01:53.
Reply With Quote
  #19   Spotlight this post!  
Unread 31-01-2012, 09:52
Mr. Lim Mr. Lim is offline
Registered User
AKA: Mr. Lim
no team
Team Role: Leadership
 
Join Date: Jan 2004
Rookie Year: 1998
Location: Toronto, Ontario
Posts: 1,125
Mr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond repute
Re: CAN troubles with Black Jaguars

We have more probably 20 Jaguars in our shop, and used CAN extensively this year and last.

We recently discovered that two of our Jaguars had bad CAN ports (RJ-12 plugs), with either bent or missing pins.

I don't know the cause, because I don't think we "abused" them. But we do crimp our own CAN cables. It's possible a person may not have crimped the pins in the connector all the way down.

Inserting a connector with pins not completely crimped down is likely a quick way to wreck a CAN port.
__________________
In life, what you give, you keep. What you fail to give, you lose forever...
Reply With Quote
  #20   Spotlight this post!  
Unread 31-01-2012, 16:42
mjcoss mjcoss is offline
Registered User
FRC #0303
 
Join Date: Jan 2009
Location: Bridgewater,NJ
Posts: 70
mjcoss is a jewel in the roughmjcoss is a jewel in the roughmjcoss is a jewel in the roughmjcoss is a jewel in the rough
Re: CAN troubles with Black Jaguars

Sorry that I haven't replied sooner just been busy. So we are using the 2CAN and we're programming in C++. So for us, the points on the chain that can be an issue are the 2CAN, the Jaguars, and the port on the cRIO, and all the software in between. Most of which is not mine.

I've two platform that I'm testing on. The first is a drive base, and the second is a prototype shooter. The shooter is running the Jaguars in speed control mode, the drive base is running in the default mode, %V I think. Both are seeing timeout, although the shooter is having more issues than the drive base. Both are using CIM motors. Although I suspect that the load on the drive base is higher than on the shooter.

The code is pretty clean in that I'm not doing a whole lot. Tank drive on the base, and taking analog input on the driver station to drive the shooter. Updates to the motors are in TeleopPeriodic, and there just aren't that many knobs that need to be tweaked to make that work.

What we've seen is that on the shooter, sometimes during the boot up, the 2CAN get's very unhappy. Flashing red/yellow. Sometimes it boots just fine. If we make it past the boot problems, it tends to stay clean. Then while shooting, it sometimes completely drops out CAN bus communications is completely gone, and the console log if full of timeout messages. The only recovery is reboot.

The failure mode on the drive base is periodic timeout messages. Usually just a few off and on. I have seen it have the cascade failure but only once.

We do have the version 2 of the 2CAN, and the latest firmware on it, and the Jaguars.

I've already connected to each of the Jaguars using BD Comm, and flashed, set ids and so I'm kinda at a loss to understand what is going wrong.

The sync groups change didn't seem to have any affect. I guess I can try the LabVIEW code to see if it behaves differently

@techhelpbb - more than willing to work together on this. I'd like to get a better understanding of the failure modes and figure out some way to solve the problems.
Reply With Quote
  #21   Spotlight this post!  
Unread 05-02-2012, 04:36
Levansic's Avatar
Levansic Levansic is offline
Registered User
AKA: Len Evansic
FRC #0585 (Cyber Penguins)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2008
Location: Tehachapi, CA
Posts: 185
Levansic has much to be proud ofLevansic has much to be proud ofLevansic has much to be proud ofLevansic has much to be proud ofLevansic has much to be proud ofLevansic has much to be proud ofLevansic has much to be proud ofLevansic has much to be proud ofLevansic has much to be proud ofLevansic has much to be proud of
Re: CAN troubles with Black Jaguars

I have a little follow-up on our original discovery and fixes. Tonight, I was setting up a new 2CAN, and only had one of our 2012 KOP black jaguars connected, when I noticed that my status readings dropped to all zeros.

Up until this point, this unit was always the first in the chain, and acted as the serial to CAN bridge. After fixing the RJ-11 port, I hadn't had any connectivity issues. I had to repair both of the ports in the second 2012 KOP black jaguar, but I thought this one was OK.

I wiggled the cable (4-conductor CAN-only) in the RJ-12 port, and I got intermittent status on the web dash board. So I popped the cable out of the RJ-12 port, and I see that pin 3 and pin 5 wires are almost flat, as I described above. I disconnected the power, did my tweezer trick on both of the wires, and hooked everything back up.

The result was rock-solid communications over that port.

How did I miss this? Well, this was the unit I used to bridge all of the others with, when I fixed the others. Pin 1 and 6 were fine, giving a good serial connection. With small cable runs and only two nodes on the bus when I was testing, I didn't see any termination issues. I'm sure that if I used this unit to connect four or more jaguars using the serial bridge, we probably would have had maddening missing termination issues as this port jiggled. The constant connection to this bridging jaguar (over serial) would have masked this problem and pointed to the next in the chain or the last in the chain.

In summary, I now know that 100% of our CAN ports (RJ-11 & RJ-12) on our 2012 black jaguars had quality issues that prevented them from working reliably out of the box. You have to test all ports in pure CAN communication, so that you make sure that your bus actually is terminated on both ends. The fix is easy, if you are careful and patient. If you are afraid of breaking the ports, recruit a dentist as a mentor.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 02:58.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi