Go to Post A coin flip is a wonderful thing. Not because it makes the decision for you, but because when the coin is in the air, you realize what you really want. - rtfgnow [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: 3 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 17-01-2015, 17:57
Tyler Scheuble Tyler Scheuble is offline
Programming Lead
FRC #2471 (Team Mean Machine)
Team Role: Programmer
 
Join Date: Feb 2014
Rookie Year: 2013
Location: Vancouver, WA
Posts: 15
Tyler Scheuble is an unknown quantity at this point
RoboRIO unable to detect Jaguars wired through CAN

We are switching to Java this year and we have been trying to set up jaguars on our testbed. In the web dashboard we are able to recognize the PCM and the PDP, but we are not able to recognize our jaguars.

We have updated the version of our jaguars from 107 to 109 but it didn't help.

Picture of our testbed setup and web dashboard are both attached. I don't know if this could be a firmware issue on the roboRIO side or a wiring issue but we have been able to connect to the jaguars through BDC-COMM so we could update the firmware.

EDIT: Attachments didn't work so here is screenshots:
http://puu.sh/eEZ2P/b558060a05.png
http://puu.sh/eF3tb/18f327c530.jpg

Last edited by Tyler Scheuble : 17-01-2015 at 18:12.
Reply With Quote
  #2   Spotlight this post!  
Unread 17-01-2015, 18:08
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,560
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: RoboRIO unable to detect Jaguars wired through CAN

I don't see any attachements
Reply With Quote
  #3   Spotlight this post!  
Unread 17-01-2015, 18:12
Tyler Scheuble Tyler Scheuble is offline
Programming Lead
FRC #2471 (Team Mean Machine)
Team Role: Programmer
 
Join Date: Feb 2014
Rookie Year: 2013
Location: Vancouver, WA
Posts: 15
Tyler Scheuble is an unknown quantity at this point
Re: RoboRIO unable to detect Jaguars wired through CAN

Attachment uploading failed so I posted screenshots. My bad.
Reply With Quote
  #4   Spotlight this post!  
Unread 17-01-2015, 18:34
Jefferson Jefferson is offline
Registered User
AKA: Jeff Clements
FRC #0016 (Bomb Squad)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Mountain Home, AR
Posts: 257
Jefferson has a brilliant futureJefferson has a brilliant futureJefferson has a brilliant futureJefferson has a brilliant futureJefferson has a brilliant futureJefferson has a brilliant futureJefferson has a brilliant futureJefferson has a brilliant futureJefferson has a brilliant futureJefferson has a brilliant futureJefferson has a brilliant future
Re: RoboRIO unable to detect Jaguars wired through CAN

It's likely the hi/lo wires are swapped through the jags. Swap the hi/lo wires at not the PCM and roboRio.
Reply With Quote
  #5   Spotlight this post!  
Unread 20-01-2015, 21:32
Tyler Scheuble Tyler Scheuble is offline
Programming Lead
FRC #2471 (Team Mean Machine)
Team Role: Programmer
 
Join Date: Feb 2014
Rookie Year: 2013
Location: Vancouver, WA
Posts: 15
Tyler Scheuble is an unknown quantity at this point
Re: RoboRIO unable to detect Jaguars wired through CAN

We checked the wiring and the hi/lo wires are correctly wired according to the manual.
Reply With Quote
  #6   Spotlight this post!  
Unread 20-01-2015, 23:20
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: 521
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: RoboRIO unable to detect Jaguars wired through CAN

Looking at the pic, the wires look backwards to me.
-Center Jaguar 4, on the harness between RIO and Jag
-On the left RJ11 (the one that doubles with RS232) CANL is on the inside (closest to the LED). But if you follow the inside of RJ11 cable it looks like it mates to yellow, not green.

I could be wrong though, there's only so much resolution.
Reply With Quote
  #7   Spotlight this post!  
Unread 21-01-2015, 09:36
Jefferson Jefferson is offline
Registered User
AKA: Jeff Clements
FRC #0016 (Bomb Squad)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Mountain Home, AR
Posts: 257
Jefferson has a brilliant futureJefferson has a brilliant futureJefferson has a brilliant futureJefferson has a brilliant futureJefferson has a brilliant futureJefferson has a brilliant futureJefferson has a brilliant futureJefferson has a brilliant futureJefferson has a brilliant futureJefferson has a brilliant futureJefferson has a brilliant future
Re: RoboRIO unable to detect Jaguars wired through CAN

Quote:
Originally Posted by Tyler Scheuble View Post
We checked the wiring and the hi/lo wires are correctly wired according to the manual.
How did you confirm this? A quick and definitive test is to swap the wires at the roborio and PCM. I know the colors won't match, but it switches the hi/lo through the Jag part of the network. If that works out, then you can fix the cables between the new components and the Jags.
Reply With Quote
  #8   Spotlight this post!  
Unread 21-01-2015, 22:17
Tyler Scheuble Tyler Scheuble is offline
Programming Lead
FRC #2471 (Team Mean Machine)
Team Role: Programmer
 
Join Date: Feb 2014
Rookie Year: 2013
Location: Vancouver, WA
Posts: 15
Tyler Scheuble is an unknown quantity at this point
Re: RoboRIO unable to detect Jaguars wired through CAN

Quote:
Originally Posted by Jefferson View Post
How did you confirm this? A quick and definitive test is to swap the wires at the roborio and PCM. I know the colors won't match, but it switches the hi/lo through the Jag part of the network. If that works out, then you can fix the cables between the new components and the Jags.
We originally checked the colors and found them to be correct but we just swapped the wires and it caused us to lose communications to the PCM and the PDP which we had before.

The thing about the situation that confuses me the most is we still have comms to the PCM and the PDP while the wires are hooked into the jags but it is almost like the roborio is ignoring them entirely.

Here is a current screenshot of our web UI:
http://puu.sh/eQY8J/bd1a33ddcf.png
Reply With Quote
  #9   Spotlight this post!  
Unread 21-01-2015, 23:19
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: 521
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: RoboRIO unable to detect Jaguars wired through CAN

Quote:
Originally Posted by Tyler Scheuble View Post
We originally checked the colors and found them to be correct but we just swapped the wires and it caused us to lose communications to the PCM and the PDP which we had before.

The thing about the situation that confuses me the most is we still have comms to the PCM and the PDP while the wires are hooked into the jags but it is almost like the roborio is ignoring them entirely.

Here is a current screenshot of our web UI:
http://puu.sh/eQY8J/bd1a33ddcf.png
That's not confusing. What I think I see in your photo is...
RIO(L) - Jag(H) - Jag (H) - PCM(L) - PDP(L)
RIO(H) - Jag(L) - Jag (L) - PCM(L) - PDP(H)

So of course PCM/PDP work one way. Then again without being there its hard to tell. When you flipped did you see the Jags in the roboRIO web-page config?

Anyway it really shouldn't be this difficult. At this point I would just connect the RIO to one Jag only and get that working. Are these out-of-the-box Jags? Where they ever used before? If so were they working on can or pwm?
Reply With Quote
  #10   Spotlight this post!  
Unread 21-01-2015, 23:25
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: 521
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: RoboRIO unable to detect Jaguars wired through CAN

When you connected with BDC-COMM was it over serial or CAN? I mean if you BDC-COMM (rs232) to one Jag, can you discover the second Jag over CAN?

When using BDC-COMM the Jag you rs-232 connect to is the gateway, but you should be able to discover/setid the other Jag on the CAN bus. You should be able to discover each Jag using the other as the gateway in this fashion. Using only rj11 cabling, there shouldn't be a chance of flipping the lines, and it would at least prove the Jags are CAN-capable.

Then the next step would be to take one Jag and connect to the RIO and see if that works. If not then it's likely cabling between the simple wires and the rj11.
Reply With Quote
  #11   Spotlight this post!  
Unread 22-01-2015, 09:30
Jefferson Jefferson is offline
Registered User
AKA: Jeff Clements
FRC #0016 (Bomb Squad)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Mountain Home, AR
Posts: 257
Jefferson has a brilliant futureJefferson has a brilliant futureJefferson has a brilliant futureJefferson has a brilliant futureJefferson has a brilliant futureJefferson has a brilliant futureJefferson has a brilliant futureJefferson has a brilliant futureJefferson has a brilliant futureJefferson has a brilliant futureJefferson has a brilliant future
Re: RoboRIO unable to detect Jaguars wired through CAN

Quote:
Originally Posted by Tyler Scheuble View Post
We originally checked the colors and found them to be correct but we just swapped the wires and it caused us to lose communications to the PCM and the PDP which we had before.
You swapped the wires on the cables at the roboRio and at the PCM on the cable back to the Jaguar? You wouldn't have needed to change anything on the cable between the PCM and PDP.

Quote:
Originally Posted by Tyler Scheuble View Post
The thing about the situation that confuses me the most is we still have comms to the PCM and the PDP while the wires are hooked into the jags but it is almost like the roborio is ignoring them entirely.
See Omar's diagram. I definitely think that's what has happened. It happened to us at least twice during alpha/beta. This can happen becuase the Jaguars will pass the signal through even if they aren't able to communicate on the bus.
Reply With Quote
  #12   Spotlight this post!  
Unread 22-01-2015, 09:33
w8jrt w8jrt is offline
Registered User
FRC #4391
 
Join Date: Feb 2014
Location: Gladstone, Mi
Posts: 5
w8jrt is an unknown quantity at this point
Re: RoboRIO unable to detect Jaguars wired through CAN

We are also having the same issue. We have the pcm and pdp at each end of the network with the jags in the middle. You can see the pcm and pdp but no jags. If you break the network the pdp shows a stale data message on the web browser. Connect it back up and refresh and it's happy again. If you check the box for lighting the light you can see the effect on the pcm and pdp so i know comm is good over the network. Maybe we have the the high/low on the drives crossed? Am I safe in assuming that software in the robo rio is not the problem? Thanks.
Reply With Quote
  #13   Spotlight this post!  
Unread 22-01-2015, 23:08
Tyler Scheuble Tyler Scheuble is offline
Programming Lead
FRC #2471 (Team Mean Machine)
Team Role: Programmer
 
Join Date: Feb 2014
Rookie Year: 2013
Location: Vancouver, WA
Posts: 15
Tyler Scheuble is an unknown quantity at this point
Re: RoboRIO unable to detect Jaguars wired through CAN

Quote:
When you flipped did you see the Jags in the roboRIO web-page config?
When we flipped the wiring we saw nothing on the roboRIO web page. Not even the PCM or the PDP.
Quote:
Anyway it really shouldn't be this difficult. At this point I would just connect the RIO to one Jag only and get that working. Are these out-of-the-box Jags? Where they ever used before? If so were they working on can or pwm?
We took 2 jags out of the robot we used very recently on an off season competition, but we took a new jaguar out of the box and after rewiring we got the same results.
We have not tried PWM
Quote:
When you connected with BDC-COMM was it over serial or CAN? I mean if you BDC-COMM (rs232) to one Jag, can you discover the second Jag over CAN?
BDC-COMM worked directly with a CAN cable to serial rs232 port directly into an older computer. We haven't tried connecting multiple jags over CAN but I don't see why we wouldn't be able to since that is how we successfully flashed them last year.

Quote:
You swapped the wires on the cables at the roboRio and at the PCM on the cable back to the Jaguar? You wouldn't have needed to change anything on the cable between the PCM and PDP.
The wires we swapped were in between the Jaguar and the roboRIO itself. The wires themselves are direct and do not directly connect to the PCM.
Reply With Quote
  #14   Spotlight this post!  
Unread 26-01-2015, 16:37
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: 521
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: RoboRIO unable to detect Jaguars wired through CAN

So I tried a fresh setup with a RIO, out-of-box Jag, and a PDP. Seemed to work.

I took a single RJ11 cable (2 wire red/green) and snipped it in two. Giving me two harnesses each with a RJ11 end and two bare wires (red and green).

One harness connects RIO(Red/green) to Jag(rj11) and the other harness connects Jag(rj11) to PDP(green/red).

What's tricky is that red and green are flipped between the two rj11s. As a result red/green is CANH/CANL on one and red/green is CANL/CANH on the other. The attached image better explains this.

So if you're cutting regular rj11 cables in half, be aware that the colors are not consistent on both sides of the Jag bus.
Attached Thumbnails
Click image for larger version

Name:	ss2.png
Views:	63
Size:	1.36 MB
ID:	17999  
Reply With Quote
  #15   Spotlight this post!  
Unread 26-01-2015, 23:40
Tyler Scheuble Tyler Scheuble is offline
Programming Lead
FRC #2471 (Team Mean Machine)
Team Role: Programmer
 
Join Date: Feb 2014
Rookie Year: 2013
Location: Vancouver, WA
Posts: 15
Tyler Scheuble is an unknown quantity at this point
Re: RoboRIO unable to detect Jaguars wired through CAN

Your last post helped us fix the problem. Thanks for the solution!

We really appreciate how much time you have spent in helping us.
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:52.

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