Go to Post Mind you, the Q&A forum and competition officials DO take precedence over my opinion. - 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 Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 04-02-2014, 07:12
kd008702's Avatar
kd008702 kd008702 is offline
Registered User
AKA: Kevin Daniels
FRC #2642 (Pitt Pirates)
Team Role: Mentor
 
Join Date: Feb 2014
Rookie Year: 2007
Location: North Carolina
Posts: 5
kd008702 is an unknown quantity at this point
Exclamation Problem with serial can coms!

We are trying to use can this year for first time. We are using the serial comms. Have set up ID's on all four JAGS using BD-Comm. Have updated firmware. Checked and re-cheched and checked connections one more time. Formmated CRIO for CAN coms with Net console enabled. What we get is We can plug into each individual LAG from the CRIO and talk to it correctly, But can not get the CAN Network to function. Need a little nudge in the right direction to figure out what that ONE little piece is that we are missing.
Also we have 100ohm resistor at both ends of the network. We have tried using both JAVA and LAB view for program and get the same results in both.

Thanks.
Kevin Daniels
Senior Tech.
Pair Electronics
Greenville, NC
Reply With Quote
  #2   Spotlight this post!  
Unread 04-02-2014, 08:37
tlewis tlewis is offline
Registered User
None #0138
 
Join Date: Feb 2012
Location: NH
Posts: 3
tlewis is an unknown quantity at this point
Re: Problem with serial can coms!

Get the Jaguar Getting Started Guide here http://www.usfirst.org/roboticsprogr...control-system if you haven't already. Check the Jaguar LED status indicators (page 7 in the Getting Started Guide) for a better indication of the problem.

The most likely problems:
It's not clear if you're not getting communications or if it's just that there is no motor output happening. If it's just no output (but the lights go solid when the robot is enabled and blink green or red when commanded to drive a motor) then check your limit switch jumpers -- they MUST be installed or there will be no output voltage to the motors.

If your limit switch jumpers are installed correctly, check your CAN cable pinout; you can not use standard 4-pin telephone cables. verify the pinout in Appendix A, pages 23-25 of the Getting Started Guide and verify that your cables are made correctly. Also, looking at the front of the Jaguar, signal comes in from the previous Jag via the left-most connector and out to the next one via the right-most connector.
Reply With Quote
  #3   Spotlight this post!  
Unread 04-02-2014, 08:46
FrankJ's Avatar
FrankJ FrankJ is offline
Robot Mentor
FRC #2974 (WALT)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2009
Location: Marietta GA
Posts: 1,938
FrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond repute
Re: Problem with serial can coms!

Comms to the First Jag is RS232. Sounds like you have that working correctly along with the Crio & software. Silly question but, your Jags have different addresses?
From the the first jag to the rest is Canbus. Sounds like a cable issue with the canbus cable since the first jag on the chain is RS232 & is working.
Reply With Quote
  #4   Spotlight this post!  
Unread 04-02-2014, 09:44
Cecil's Avatar
Cecil Cecil is online now
Registered User
AKA: Alex Hummel
FRC #2010 (Lightning Bots)
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2006
Location: Champion
Posts: 343
Cecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to behold
Re: Problem with serial can coms!

An even sillier question - did you go through the cRIO imaging tool, select the serial driver for the CAN network, and click apply? This has to be done for the cRIO to load the driver for CAN to work.
__________________
I'm right 90% of the time, so why worry about the other 3%?
Reply With Quote
  #5   Spotlight this post!  
Unread 04-02-2014, 11:14
FrankJ's Avatar
FrankJ FrankJ is offline
Robot Mentor
FRC #2974 (WALT)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2009
Location: Marietta GA
Posts: 1,938
FrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond repute
Re: Problem with serial can coms!

Since the OP can communicate to the first jag in the chain... the Crio is configured correctly & the canbus driver is loaded
Reply With Quote
  #6   Spotlight this post!  
Unread 04-02-2014, 12:20
gpetilli gpetilli is offline
Registered User
FRC #1559
 
Join Date: Jan 2009
Location: Victor, NY
Posts: 285
gpetilli is a name known to allgpetilli is a name known to allgpetilli is a name known to allgpetilli is a name known to allgpetilli is a name known to allgpetilli is a name known to all
Re: Problem with serial can coms!

Quote:
Originally Posted by kd008702 View Post
What we get is We can plug into each individual LAG from the CRIO and talk to it correctly, But can not get the CAN Network to function.
Also we have 100ohm resistor at both ends of the network. We have tried using both JAVA and LAB view for program and get the same results in both.
I am confused by the resistor at both ends comment. The connections should be cRIO-RS232 -> BLACK Jaguar 1 In, Jag 1 Out -> Jag 2 In, ... Jag N Out -> Resistor. Only one resistor at end of daisy chain.

Also, since you already know how to use BDC-Comm, you can unplug the cRIO and plug in your PC to the chain and from the single RS232 connector query the bus and see which "boards" are on the bus. You should see one pulldown for each ID that you gave your Jaguars. BTW, it is recommended not to use ID 1, since that is the factory default. You can send commands to each unique Jaguar using this method to verify functionality and if one ID does not show up, you know which Jag is misbehaving.

We use Java - remember to wrap your CAN commands in a Try - Catch to aid in debug.
Reply With Quote
  #7   Spotlight this post!  
Unread 04-02-2014, 12:35
FrankJ's Avatar
FrankJ FrankJ is offline
Robot Mentor
FRC #2974 (WALT)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2009
Location: Marietta GA
Posts: 1,938
FrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond repute
Re: Problem with serial can coms!

You need a resistor on both ends of the canbus chain. The plug for the RS323 should have a terminating resistor for the canbus. See the getting started guide.

Testing your chain with BDC-comm is agood idea.
Reply With Quote
  #8   Spotlight this post!  
Unread 04-02-2014, 12:57
gpetilli gpetilli is offline
Registered User
FRC #1559
 
Join Date: Jan 2009
Location: Victor, NY
Posts: 285
gpetilli is a name known to allgpetilli is a name known to allgpetilli is a name known to allgpetilli is a name known to allgpetilli is a name known to allgpetilli is a name known to all
Re: Problem with serial can coms!

Quote:
Originally Posted by FrankJ View Post
You need a resistor on both ends of the canbus chain. The plug for the RS323 should have a terminating resistor for the canbus. See the getting started guide.

Testing your chain with BDC-comm is agood idea.
There may be a resistor inside the shell of the RS232 adapter we use and i forgot - its been 4years since we built it. I will have to check.
Reply With Quote
  #9   Spotlight this post!  
Unread 04-02-2014, 15:54
kd008702's Avatar
kd008702 kd008702 is offline
Registered User
AKA: Kevin Daniels
FRC #2642 (Pitt Pirates)
Team Role: Mentor
 
Join Date: Feb 2014
Rookie Year: 2007
Location: North Carolina
Posts: 5
kd008702 is an unknown quantity at this point
Re: Problem with serial can coms!

Thanks for getting back to me guys.
So here is a stupid question for you. I completely understand the resister at both ends of the can network. Made 6-pin con with 100 ohm resister for last jag in chain. On the DB9 cable (CRIO to 1st JAG) we have the resister on the jag end crimped into 6 pin con on terminals3 and 4, or does it go with the resister towards the jag on towards the CRIO.
Reply With Quote
  #10   Spotlight this post!  
Unread 04-02-2014, 15:56
kd008702's Avatar
kd008702 kd008702 is offline
Registered User
AKA: Kevin Daniels
FRC #2642 (Pitt Pirates)
Team Role: Mentor
 
Join Date: Feb 2014
Rookie Year: 2007
Location: North Carolina
Posts: 5
kd008702 is an unknown quantity at this point
Re: Problem with serial can coms!

Oh one more thing. The chain does not work in BDC com either.
Reply With Quote
  #11   Spotlight this post!  
Unread 04-02-2014, 16:18
gpetilli gpetilli is offline
Registered User
FRC #1559
 
Join Date: Jan 2009
Location: Victor, NY
Posts: 285
gpetilli is a name known to allgpetilli is a name known to allgpetilli is a name known to allgpetilli is a name known to allgpetilli is a name known to allgpetilli is a name known to all
Re: Problem with serial can coms!

Quote:
Originally Posted by kd008702 View Post
Oh one more thing. The chain does not work in BDC com either.
Some things to try from BDC-Comm

1) when you hook BDC-Comm up to the first Jag in a multi Jag chain, what "Board ID" are shown as available from the pull down on top left?
2) If you unplug the chain and move the terminator to the first output port - Re-Enumerate then what board ids show up?
3) After you set the IDs, did you re-enumerate to confirm that the ID took?
4) While you have one Jag in the chain selected, if you switch to the Mode tab, can you run a motor in voltage mode?
5) If you set the Encoder lines in the config tab and run the motor, do you see the speed change on the bottom?
6) If you set the reference to quadrature in the mode tab, can you get speed to be both pos and neg?
Reply With Quote
  #12   Spotlight this post!  
Unread 05-02-2014, 00:16
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: Problem with serial can coms!

It sounds like you have a broken CAN chain. If nothing beyond the first node is seen, you have a good place to start checking. Broken chains will let you see up to the break, as long as your termination is good on the serial connector.

Look into each and every RJ11/12 port, and make sure that the contact wires are not stuck in a retracted position. If any are overly compacted, use a dental pick to VERY CAREFULLY stretch them out to a position that will ensure good contact when the CAN cables are inserted.

Not knowing the source of your CAN connection cables, you may want to check all of them, to make sure they are constructed correctly. We've had students shift wires by one position, or reverse the plug, when un-monitored. This is something that is simple enough to check, and could provide a moment for instruction.

--Len
Reply With Quote
  #13   Spotlight this post!  
Unread 05-02-2014, 00:26
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,309
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: Problem with serial can coms!

What color Jags are you using?
__________________
Stronghold


Student 2013-2016
3135 -- Robotic Colonels
3507 -- Robotheosis (FTC)
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 17:51.

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