Go to Post I think everyone just needs to chill out and realize what the real goal of FIRST is. - Koko Ed [more]
Home
Go Back   Chief Delphi > Technical > Electrical
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 20-03-2014, 21:50
rtrahms rtrahms is offline
Registered User
FRC #1778
 
Join Date: Dec 2013
Location: United States
Posts: 4
rtrahms is a jewel in the roughrtrahms is a jewel in the roughrtrahms is a jewel in the rough
cRIO cutting out 5 s after collision

Hi all -
Chill Out Team 1778 here. We are chasing an intermittent problem with our robot, and it is usually connected to a large collision. We've been troubleshooting the connections, but wondered if anyone has suggestions on how to isolate this problem effectively.

Robot config:
Basic kitbot chassis with 4 drive motor CIMs, and two additional motors for gate & rolller attachment. All 6 motors controlled by black Jaguars on a CAN bus wired to a 2CAN bus controller and terminated with a 100 ohm terminator. The 2CAN is also connected to a cRIO and on the network side to a wireless router.

Normally everything works fine, but if the robot gets hit hard on the gate, the robot will stop all response for 5 seconds before continuing. During this time the 2CAN shows a flashing red light, and then after 5 seconds returns to green flashing. We have checked the cRIO to 2CAN cable, and nothing seems to be wrong there. 5 seconds isn't enough time for the cRIO to reboot, so something else appears to be going on.

Thoughts?

Thanks in advance,
Rob
  #2   Spotlight this post!  
Unread 20-03-2014, 21:56
Kevin Phan's Avatar
Kevin Phan Kevin Phan is offline
College Student
FRC #0357 (Royal Assault)
Team Role: Alumni
 
Join Date: Apr 2013
Rookie Year: 2010
Location: PA, United States
Posts: 95
Kevin Phan will become famous soon enoughKevin Phan will become famous soon enough
Re: cRIO cutting out 5 s after collision

I know that my electrical engineer mentor would hot glue the can connections on the jags to prevent them from coming out.
  #3   Spotlight this post!  
Unread 22-03-2014, 07:41
Michael Hill's Avatar
Michael Hill Michael Hill is offline
Registered User
FRC #3138 (Innovators Robotics)
Team Role: Mentor
 
Join Date: Jul 2004
Rookie Year: 2003
Location: Dayton, OH
Posts: 1,572
Michael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond repute
Re: cRIO cutting out 5 s after collision

Quote:
Originally Posted by Kevin Phan View Post
I know that my electrical engineer mentor would hot glue the can connections on the jags to prevent them from coming out.
Al has been adamantly against hot gluing electrical connections because it's apparently "not an industry standard" (though I've seen it a thousand times).
  #4   Spotlight this post!  
Unread 22-03-2014, 23:48
Ian Curtis Ian Curtis is offline
Best Available Data
FRC #1778 (Chill Out!)
Team Role: Engineer
 
Join Date: Feb 2005
Rookie Year: 2004
Location: Puget Sound
Posts: 2,520
Ian Curtis has a reputation beyond reputeIan Curtis has a reputation beyond reputeIan Curtis has a reputation beyond reputeIan Curtis has a reputation beyond reputeIan Curtis has a reputation beyond reputeIan Curtis has a reputation beyond reputeIan Curtis has a reputation beyond reputeIan Curtis has a reputation beyond reputeIan Curtis has a reputation beyond reputeIan Curtis has a reputation beyond reputeIan Curtis has a reputation beyond repute
Re: cRIO cutting out 5 s after collision

Should anyone stumbled upon this in the future, the issue stopped happening today. We had a tightly timed loop with no wait in our teleop code that was driving 100% CPU usage. We added a 10ms delay and our CPU usage dropped down to ~75% (on an 8 slot cRio). We also changed our cabling, so that instead of cRio -> 2CAN -> Router, it went cRio -> Router -> 2CAN. Not sure if it was one of these or the combination, but it stopped happening!

We may try to isolate it further in the off-season.
__________________
CHILL OUT! | Aero Stability & Control Engineer
Adam Savage's Obsessions (TED Talk) (Part 2)
It is much easier to call someone else a genius than admit to yourself that you are lazy. - Dave Gingery
  #5   Spotlight this post!  
Unread 23-03-2014, 00:08
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 989
RufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant future
Re: cRIO cutting out 5 s after collision

Quote:
Originally Posted by Ian Curtis View Post
We also changed our cabling, so that instead of cRio -> 2CAN -> Router, it went cRio -> Router -> 2CAN. Not sure if it was one of these or the combination, but it stopped happening!
Glad you got things working (if not entirely solved). As an aside for anyone else reading, the original configuration as described should not have passed inspection as it violates R56.
  #6   Spotlight this post!  
Unread 23-03-2014, 00:29
orangemoore orangemoore is offline
Registered User
AKA: Roger Moore
FRC #3135 (Robotic Colonels)
Team Role: College Student
 
Join Date: Dec 2012
Rookie Year: 2013
Location: Chicago
Posts: 2,308
orangemoore has a reputation beyond reputeorangemoore has a reputation beyond reputeorangemoore has a reputation beyond reputeorangemoore has a reputation beyond reputeorangemoore has a reputation beyond reputeorangemoore has a reputation beyond reputeorangemoore has a reputation beyond reputeorangemoore has a reputation beyond reputeorangemoore has a reputation beyond reputeorangemoore has a reputation beyond reputeorangemoore has a reputation beyond repute
Re: cRIO cutting out 5 s after collision

Quote:
Originally Posted by RufflesRidge View Post
Glad you got things working (if not entirely solved). As an aside for anyone else reading, the original configuration as described should not have passed inspection as it violates R56.
I am glad you pointed that out. I think that we may have our 2CAN wired wrong too. We haven't had any problems but it seems we may be able to prevent some.
__________________
Stronghold


Student 2013-2016
3135 -- Robotic Colonels
3507 -- Robotheosis (FTC)
  #7   Spotlight this post!  
Unread 23-03-2014, 10:29
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,770
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
Re: cRIO cutting out 5 s after collision

When you see a 5 second gap after a hard collision, expect that the radio power supply was interupted. Not long enough for a complete reboot but certainly long enough for the radio to make a recovery mode and reestablish comms with cRio and field. Just enough will corrupt some of the data. With the 2Can in the loop, check to see how long it takes for the 2Can to recover from a power fault. That is more likely the issue. You moved the comms link so you likely moved the power as well. This is just an accident waiting to happen again. Check this when you can.
I recommend against hot glue for two reasons. If you have applied it correctly, you might not be able to change something if it has failed. That might forever damage the device. If it does pull apart easily, then the hot glue was not applied correctly in the first place and you are only fooling yourself that you fixed the issue. Just because you think you see adhesive applied in an industrial device, do not think it was meant to come apart. The manufacturer might just think the part is expendable.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
  #8   Spotlight this post!  
Unread 23-03-2014, 13:34
MrRoboSteve MrRoboSteve is offline
Mentor
AKA: Steve Peterson
FRC #3081 (Kennedy RoboEagles)
Team Role: Mentor
 
Join Date: Mar 2012
Rookie Year: 2011
Location: Bloomington, MN
Posts: 577
MrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond repute
Re: cRIO cutting out 5 s after collision

Any chance your radio connector has a custom cable? I've seen teams use the wrong barrel connector and see intermittent issues on the radio.

I've worked with enough teams with random issues caused by continuous* 100% CPU usage to know that pretty much anything can happen. The DS Log Viewer makes this obvious.

* I'm distinguishing "continuous" here from occasional 100% CPU usage, for example when complex imaging logic is running.
__________________
2016-17 events: 10000 Lakes Regional, Northern Lights Regional, FTC Burnsville Qualifying Tournament

2011 - present · FRC 3081 Kennedy RoboEagles mentor
2013 - present · event volunteer at 10000 Lakes Regional, Northern Lights Regional, North Star Regional, Lake Superior Regional, Minnesota State Tournament, PNW District 4 Glacier Peak, MN FTC, CMP
http://twitter.com/MrRoboSteve · www.linkedin.com/in/speterson
  #9   Spotlight this post!  
Unread 23-03-2014, 14:36
kmusa kmusa is offline
Registered User
AKA: Karlis Musa
FRC #0639 (Code Red Robotics)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2006
Location: Ithaca, NY
Posts: 117
kmusa is just really nicekmusa is just really nicekmusa is just really nicekmusa is just really nice
Re: cRIO cutting out 5 s after collision

Quote:
Originally Posted by Ian Curtis View Post
Not sure if it was one of these or the combination, but it stopped happening!
Great to hear!

We just spent 2 days at Buckeye tracking down Jag-related issues, which ultimately turned out to be a loose wire in a power feed to one of them. (We have the black ones on our robot.)

While we've used the additional features of the Jags to great benefit in the past, the fact that any one of a number of issues can shut down the entire string is problematic (and explains why a number of teams won't use them.)

There are CAN repeaters that would isolate the segments, but they seem pretty pricey for FRC applications.
__________________
"A society without contrasting ideas will never move forward; however those contrasting ideas must be based on fact, must be rational/logical, and must be presented in a respectful manner." -Arthur Dutra IV

"If the district can spend $1.5M on turf, it should be able to fund a FRC team." -Sophie Halter
  #10   Spotlight this post!  
Unread 23-03-2014, 14:50
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 989
RufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant future
Re: cRIO cutting out 5 s after collision

Quote:
Originally Posted by kmusa View Post
We just spent 2 days at Buckeye tracking down Jag-related issues, which ultimately turned out to be a loose wire in a power feed to one of them. (We have the black ones on our robot.)

There are CAN repeaters that would isolate the segments, but they seem pretty pricey for FRC applications.
In the particular circumstance you are describing, the issue was likely a result of talking to a jag that was (at least temporarily) not there. Which means that a star configuration would have the same issue.

The CAN signal will pass right through an un-powered Jag, they use a short tap on the bus internally, it is not passed through a chip on the board.

The other possibility is that your power issue was on the Jag doing the RS232->CAN bridging which does require powered circuitry.
  #11   Spotlight this post!  
Unread 23-03-2014, 15:26
kmusa kmusa is offline
Registered User
AKA: Karlis Musa
FRC #0639 (Code Red Robotics)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2006
Location: Ithaca, NY
Posts: 117
kmusa is just really nicekmusa is just really nicekmusa is just really nicekmusa is just really nice
Re: cRIO cutting out 5 s after collision

Quote:
Originally Posted by RufflesRidge View Post
In the particular circumstance you are describing, the issue was likely a result of talking to a jag that was (at least temporarily) not there. Which means that a star configuration would have the same issue.

The CAN signal will pass right through an un-powered Jag, they use a short tap on the bus internally, it is not passed through a chip on the board.

The other possibility is that your power issue was on the Jag doing the RS232->CAN bridging which does require powered circuitry.
Thanks for the clarification, especially WRT how the bus is connected internally.

We are using the RS232-CAN bridge capability, I'll have to verify that the Jag in question was performing that function.

-Karlis
__________________
"A society without contrasting ideas will never move forward; however those contrasting ideas must be based on fact, must be rational/logical, and must be presented in a respectful manner." -Arthur Dutra IV

"If the district can spend $1.5M on turf, it should be able to fund a FRC team." -Sophie Halter
  #12   Spotlight this post!  
Unread 23-03-2014, 00:04
geomapguy's Avatar
geomapguy geomapguy is offline
Centenary '18
AKA: Graham Maxwell
FRC #1818
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2011
Location: Alexandria, LA
Posts: 535
geomapguy has much to be proud ofgeomapguy has much to be proud ofgeomapguy has much to be proud ofgeomapguy has much to be proud ofgeomapguy has much to be proud ofgeomapguy has much to be proud ofgeomapguy has much to be proud ofgeomapguy has much to be proud ofgeomapguy has much to be proud ofgeomapguy has much to be proud of
Re: cRIO cutting out 5 s after collision

Quote:
Originally Posted by Michael Hill View Post
Al has been adamantly against hot gluing electrical connections because it's apparently "not an industry standard" (though I've seen it a thousand times).
We use this http://eclecticproducts.com/ag_adhesives.htm made by one of our sponsors.

And one of our other sponsors uses to secure electrical connections on the pharmaceutical robots they make.

Quote:
Originally Posted by Ian Curtis View Post
We had a tightly timed loop with no wait in our teleop code that was driving 100% CPU usage. We added a 10ms delay and our CPU usage dropped down to ~75% (on an 8 slot cRio).
This can certainly starve the code
__________________
The Cowboys - FIRST Robotics Team #1818 2015-
The Bolton Bear Bots - FIRST Robotics Team #3666 2011-204 (30-26-0)
2014 Oklahoma Regional - 20/62 (6-4-0), 5/62 in OPR
2014 Arkansas Regional - 14/39 (8-7-0, Quarterfinalists with 1706 and 1939), 24/39 in OPR
2013 Lone Star Regional Dean's List Finalist!
2013 Lone Star Regional - 22/57 (6-5-0), 17/57 in OPR
2012 Bayou Regional - 16/49 (6-5-0)
2011 Dallas Regional - 10/52 (4-2-5, #6 Alliance Captain, Quarterfinalists with 2948 and 3350)
  #13   Spotlight this post!  
Unread 23-03-2014, 00:10
Ian Curtis Ian Curtis is offline
Best Available Data
FRC #1778 (Chill Out!)
Team Role: Engineer
 
Join Date: Feb 2005
Rookie Year: 2004
Location: Puget Sound
Posts: 2,520
Ian Curtis has a reputation beyond reputeIan Curtis has a reputation beyond reputeIan Curtis has a reputation beyond reputeIan Curtis has a reputation beyond reputeIan Curtis has a reputation beyond reputeIan Curtis has a reputation beyond reputeIan Curtis has a reputation beyond reputeIan Curtis has a reputation beyond reputeIan Curtis has a reputation beyond reputeIan Curtis has a reputation beyond reputeIan Curtis has a reputation beyond repute
Re: cRIO cutting out 5 s after collision

Quote:
Originally Posted by geomapguy View Post
We use this http://eclecticproducts.com/ag_adhesives.htm made by one of our sponsors.

And one of our other sponsors uses to secure electrical connections on the pharmaceutical robots they make.

This can certainly starve the code
I know just enough about electricity and software to get myself in a whole bunch of trouble. Is there a plausible explanation why 100% CPU usage would make the 2CAN go out temporarily in a high energy collision?

I can see how our new routing could maybe be the fix. Even though we couldn't replicated it by tugging on cables, maybe there was something specific to the on-field collisions that made certain connectors in certain ports temporarily disconnect.
__________________
CHILL OUT! | Aero Stability & Control Engineer
Adam Savage's Obsessions (TED Talk) (Part 2)
It is much easier to call someone else a genius than admit to yourself that you are lazy. - Dave Gingery
  #14   Spotlight this post!  
Unread 23-03-2014, 00:28
geomapguy's Avatar
geomapguy geomapguy is offline
Centenary '18
AKA: Graham Maxwell
FRC #1818
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2011
Location: Alexandria, LA
Posts: 535
geomapguy has much to be proud ofgeomapguy has much to be proud ofgeomapguy has much to be proud ofgeomapguy has much to be proud ofgeomapguy has much to be proud ofgeomapguy has much to be proud ofgeomapguy has much to be proud ofgeomapguy has much to be proud ofgeomapguy has much to be proud ofgeomapguy has much to be proud of
Re: cRIO cutting out 5 s after collision

Quote:
Originally Posted by Ian Curtis View Post
I know just enough about electricity and software to get myself in a whole bunch of trouble. Is there a plausible explanation why 100% CPU usage would make the 2CAN go out temporarily in a high energy collision?

I can see how our new routing could maybe be the fix. Even though we couldn't replicated it by tugging on cables, maybe there was something specific to the on-field collisions that made certain connectors in certain ports temporarily disconnect.
I'm not sure if the two are connected but 100% CPU usage is never good. Maybe some "experts" can chime in about if they is any connection between the two.

Last year we put while loops and sequence tasks in TeleOp and it killed our code. Wasn't until this year that we discovered Periodic Tasks.
__________________
The Cowboys - FIRST Robotics Team #1818 2015-
The Bolton Bear Bots - FIRST Robotics Team #3666 2011-204 (30-26-0)
2014 Oklahoma Regional - 20/62 (6-4-0), 5/62 in OPR
2014 Arkansas Regional - 14/39 (8-7-0, Quarterfinalists with 1706 and 1939), 24/39 in OPR
2013 Lone Star Regional Dean's List Finalist!
2013 Lone Star Regional - 22/57 (6-5-0), 17/57 in OPR
2012 Bayou Regional - 16/49 (6-5-0)
2011 Dallas Regional - 10/52 (4-2-5, #6 Alliance Captain, Quarterfinalists with 2948 and 3350)
  #15   Spotlight this post!  
Unread 20-03-2014, 21:56
yash101 yash101 is offline
Curiosity | I have too much of it!
AKA: null
no team
 
Join Date: Oct 2012
Rookie Year: 2012
Location: devnull
Posts: 1,191
yash101 is an unknown quantity at this point
Re: cRIO cutting out 5 s after collision

Check your wiring. This is typically caused by some loose wires. They are typically in the least suspecting places and have a very high resistance. Something may have gotten disconnected after the collision!
Closed Thread


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 10:28.

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