Go to Post "It's not a weapon, it's an active bumper system." - Ameya [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 Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 30-01-2015, 16:34
FireAmpersand's Avatar
FireAmpersand FireAmpersand is offline
Registered User
AKA: Manning Team Co-Captian
FRC #4627 (Manning Robotics)
Team Role: Electrical
 
Join Date: Jan 2015
Rookie Year: 2014
Location: Calgary, Canada
Posts: 34
FireAmpersand is an unknown quantity at this point
PDP CAN Connection Problems

We've had no problems with the PDP until yesterday. We uploaded some code with incorrect CAN ids for our jags, which caused the code to crash immediately (fair enough), but it also caused the COMM and STAT lights on the PDP to start blinking red.

We shut the system down, fixed the code, and rebooted and reuploaded. Now the robot works fine, except that the lights on the PDP still are blinking red, which is unsettling.

We have fixed red-blinking-lights on the PDP before by clearing sticky faults in the RoboRIO's WebDash, but now the PDP doesn't even detect the PDP in the CAN chain, though it does detect the jags and the PCM.

Any thoughts?
Reply With Quote
  #2   Spotlight this post!  
Unread 30-01-2015, 17:23
ozrien's Avatar
ozrien ozrien is offline
Omar Zrien
AKA: Omar
no team
Team Role: Mentor
 
Join Date: Sep 2006
Rookie Year: 2003
Location: Sterling Heights, MI
Posts: 515
ozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant future
Re: PDP CAN Connection Problems

There's a lot to read in between the lines there...
-Wrong Jag Ids should not cause your code to "crash". It just won't drive motors.
-The Jags can't cause the PDP to blink red. Unless the CAN cable is shorted/opened somewhere along the way.
-Clearing sticky faults will not stop the PDP from blinking red. If it's blinking red then it's not seeing any CAN traffic. If the PDP is blinking orange then it has sticky faults asserted.

A quick test would be to power off the robot and measure the DC resistence between CANH and CANL. It should be 60Ω.

So to start with something simple can you just connect two wires between the RIO's CAN bus straight to the PDP? Just take two long wires, disconnect the CAN hardness from RIO and PDP (which is easy since it's weidmuller connectors on both sides) and just connect the RIO straight to the PDP?
Then power cycle RIO and open a new browser to check the roboRIO web-based config. Remember it takes a few seconds after an inital startup for the CAN devices to populate, so refresh a few times after it first comes up.
Reply With Quote
  #3   Spotlight this post!  
Unread 30-01-2015, 17:33
FireAmpersand's Avatar
FireAmpersand FireAmpersand is offline
Registered User
AKA: Manning Team Co-Captian
FRC #4627 (Manning Robotics)
Team Role: Electrical
 
Join Date: Jan 2015
Rookie Year: 2014
Location: Calgary, Canada
Posts: 34
FireAmpersand is an unknown quantity at this point
Re: PDP CAN Connection Problems

We have 60Ω across our resistor, and we've tried connecting directly to the PDP but nothing shows up on the webdash.
Reply With Quote
  #4   Spotlight this post!  
Unread 30-01-2015, 17:47
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 985
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: PDP CAN Connection Problems

Quote:
Originally Posted by ozrien View Post
-Wrong Jag Ids should not cause your code to "crash". It just won't drive motors.
Java will throw an exception from InitCANJaguar if you try to instantiate a Jaguar that is not on the bus and functioning, which will kill your program.
Reply With Quote
  #5   Spotlight this post!  
Unread 30-01-2015, 17:52
ozrien's Avatar
ozrien ozrien is offline
Omar Zrien
AKA: Omar
no team
Team Role: Mentor
 
Join Date: Sep 2006
Rookie Year: 2003
Location: Sterling Heights, MI
Posts: 515
ozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant future
Re: PDP CAN Connection Problems

Ahh I see. No try-catches to handle that situation then.

If you're still seeing red lights with straight connection to the RIO I would just contact support@crosstheroadelectronics.com directly.
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:29.

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