Go to Post They truncated our conference title. We are not showing the movie "Finding NEMO" - RoboMom [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
  #1   Spotlight this post!  
Unread 14-02-2014, 14:24
jojoguy10's Avatar
jojoguy10 jojoguy10 is offline
Programming/Controls Mentor
AKA: Joe Kelly
FRC #0997 (Spartan Robotics) and FRC #2990 (Hotwire Robotics)
Team Role: Mentor
 
Join Date: Jan 2013
Rookie Year: 2010
Location: Stayton, OR
Posts: 283
jojoguy10 is a glorious beacon of lightjojoguy10 is a glorious beacon of lightjojoguy10 is a glorious beacon of lightjojoguy10 is a glorious beacon of lightjojoguy10 is a glorious beacon of light
-44087 and other CAN errors

Hi people!

We're using the CAN Bus this year (as well as last year), but we're having some weird issues.

When we try to drive the robot, the drive train motors stutter a bit. Almost like a lag of sorts. We have a total of 7 Jags in a CAN bus and all have the latest firmware. We are NOT using the ClassMate, but rather a old Lenovo laptop (still low-end, but should be fine for driving)

We are getting errors codes -44061 and -44087 in the driver station. The driver station log file is attached (just running teleop).

We tried using both 5GHz and 2.4GHz connections, same problem either way. We DID notice that, on the dashboard, if we disabled the camera, the stuttering is lessened, but still not perfect (with the camera on it's a bit worse).

This is pretty late in the build season, but hopefully we can figure this problem out :-)

Thanks!
__________________



Last edited by jojoguy10 : 15-02-2015 at 00:38.
Reply With Quote
  #2   Spotlight this post!  
Unread 14-02-2014, 16:19
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: -44087 and other CAN errors

With 7 Jaguars, you might be getting close to having bandwidth trouble with the serial interface. You're also at the point where you have a lot of cables in series, where one bad cable or terminator could cause issues.
Reply With Quote
  #3   Spotlight this post!  
Unread 14-02-2014, 19:07
jojoguy10's Avatar
jojoguy10 jojoguy10 is offline
Programming/Controls Mentor
AKA: Joe Kelly
FRC #0997 (Spartan Robotics) and FRC #2990 (Hotwire Robotics)
Team Role: Mentor
 
Join Date: Jan 2013
Rookie Year: 2010
Location: Stayton, OR
Posts: 283
jojoguy10 is a glorious beacon of lightjojoguy10 is a glorious beacon of lightjojoguy10 is a glorious beacon of lightjojoguy10 is a glorious beacon of lightjojoguy10 is a glorious beacon of light
Re: -44087 and other CAN errors

So.....are you suggesting making some of them PWM over CAN to save bandwidth? I thought I read somewhere that the limit was something like 16 or something like that.
__________________


Reply With Quote
  #4   Spotlight this post!  
Unread 14-02-2014, 19:24
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: -44087 and other CAN errors

Quote:
Originally Posted by jojoguy10 View Post
So.....are you suggesting making some of them PWM over CAN to save bandwidth? I thought I read somewhere that the limit was something like 16 or something like that.
It depends on how often you are sending data, and how often you are requesting status.

If you have Jaguars on CAN but aren't really using any CAN features, I would definitely recommend moving them to PWM. You can also work to minimize the number of CAN messages going back and forth.
Reply With Quote
  #5   Spotlight this post!  
Unread 14-02-2014, 19:30
jojoguy10's Avatar
jojoguy10 jojoguy10 is offline
Programming/Controls Mentor
AKA: Joe Kelly
FRC #0997 (Spartan Robotics) and FRC #2990 (Hotwire Robotics)
Team Role: Mentor
 
Join Date: Jan 2013
Rookie Year: 2010
Location: Stayton, OR
Posts: 283
jojoguy10 is a glorious beacon of lightjojoguy10 is a glorious beacon of lightjojoguy10 is a glorious beacon of lightjojoguy10 is a glorious beacon of lightjojoguy10 is a glorious beacon of light
Re: -44087 and other CAN errors

Quote:
Originally Posted by Joe Ross View Post
It depends on how often you are sending data, and how often you are requesting status.

If you have Jaguars on CAN but aren't really using any CAN features, I would definitely recommend moving them to PWM. You can also work to minimize the number of CAN messages going back and forth.
True. It's silly, but the only reason we are using CAN over PWM is because they snap in versus sit in (like PWMs). Haha!

We are using the drive train jags (count 4) constantly, obviously. The other 3 are used not as much, so maybe those 3 can go to PWMs.

We would really not like to switch to PWMs since we've had problems with them popping out during a match. I guess we can bring out the hot glue or something :-)

Thanks for the replies!

Anyone else have any ideas? :-)
__________________


Reply With Quote
  #6   Spotlight this post!  
Unread 15-02-2014, 16:28
Joe Hershberger Joe Hershberger is offline
National Instruments
AKA: jhersh
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: Nov 2005
Rookie Year: 1997
Location: Austin, TX
Posts: 148
Joe Hershberger is a name known to allJoe Hershberger is a name known to allJoe Hershberger is a name known to allJoe Hershberger is a name known to allJoe Hershberger is a name known to allJoe Hershberger is a name known to all
Re: -44087 and other CAN errors

Quote:
Originally Posted by jojoguy10 View Post
We would really not like to switch to PWMs since we've had problems with them popping out during a match. I guess we can bring out the hot glue or something :-)
You are using the cable retention clips on the front edge of the jags, right? I'd be surprised if your pwm cables popped out while using the clips correctly.
Reply With Quote
  #7   Spotlight this post!  
Unread 15-02-2014, 23:15
jojoguy10's Avatar
jojoguy10 jojoguy10 is offline
Programming/Controls Mentor
AKA: Joe Kelly
FRC #0997 (Spartan Robotics) and FRC #2990 (Hotwire Robotics)
Team Role: Mentor
 
Join Date: Jan 2013
Rookie Year: 2010
Location: Stayton, OR
Posts: 283
jojoguy10 is a glorious beacon of lightjojoguy10 is a glorious beacon of lightjojoguy10 is a glorious beacon of lightjojoguy10 is a glorious beacon of lightjojoguy10 is a glorious beacon of light
Re: -44087 and other CAN errors

We weren't :-( We were wondering what those little "slots" were for :-( After running it a while, it's running MUCH better. Not sure why to be honest...But after leaving it for a day and trying it the next day, it ran the whole day with 0 lag! It's an anomaly!

Thanks for the help!
__________________


Reply With Quote
  #8   Spotlight this post!  
Unread 21-02-2014, 15:46
kdavidson kdavidson is offline
Registered User
AKA: Ken Davidson
FRC #0173 (RAGE)
Team Role: Mentor
 
Join Date: Apr 2008
Rookie Year: 2007
Location: Tolland, CT
Posts: 13
kdavidson is an unknown quantity at this point
Re: -44087 and other CAN errors

We've also found that if you have a CAN Jaguar defined in the software that isn't physically hooked up, you can get stutters, depending on how the code is written.
Reply With Quote
  #9   Spotlight this post!  
Unread 02-03-2014, 21:47
AlexBrinister AlexBrinister is offline
Registered User
AKA: Alex Brinister
FRC #1768 (RoboChiefs)
Team Role: Alumni
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Bolton, MA
Posts: 93
AlexBrinister will become famous soon enough
Re: -44087 and other CAN errors

This is a "feature" in the Jaguar CAN network. I think it is a safety feature or something...

You can put your drive code in a separate thread so that the hiccups wouldn't interfere with your main thread.

Alex Brinister
Reply With Quote
  #10   Spotlight this post!  
Unread 02-03-2014, 22:36
jojoguy10's Avatar
jojoguy10 jojoguy10 is offline
Programming/Controls Mentor
AKA: Joe Kelly
FRC #0997 (Spartan Robotics) and FRC #2990 (Hotwire Robotics)
Team Role: Mentor
 
Join Date: Jan 2013
Rookie Year: 2010
Location: Stayton, OR
Posts: 283
jojoguy10 is a glorious beacon of lightjojoguy10 is a glorious beacon of lightjojoguy10 is a glorious beacon of lightjojoguy10 is a glorious beacon of lightjojoguy10 is a glorious beacon of light
Re: -44087 and other CAN errors

We use LabView. How would we move that "feature" somewhere else?
__________________


Reply With Quote
  #11   Spotlight this post!  
Unread 03-03-2014, 00:44
AlexBrinister AlexBrinister is offline
Registered User
AKA: Alex Brinister
FRC #1768 (RoboChiefs)
Team Role: Alumni
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Bolton, MA
Posts: 93
AlexBrinister will become famous soon enough
Re: -44087 and other CAN errors

You can't really remove it... It's an exception in the underlying program (FRC_NetworkCommunications.out). If the connection is not made, then the program times out and it returns an error state. It behaves a lot like UDP in that it ignores packets that didn't go through, difference being of course that it recognizes if a packet was lost. For example, if I try to drive my robot and all my Jaguar's aren't connected, it will stutter. But when I tell the Jaguars to stop, they will stop even though they are receiving errors from the CAN Bus. I'm not too familiar with the CAN Bus so a lot of what I could be saying is wrong.

I would make sure that your Jaguars are plugged in and if they're not, at least make sure they aren't instantiated in your code. I'm not sure how LabVIEW works so I don't know if it's that simple... I come from C/C++ and Java.

Also, I would look at either using PWM for your Jags (ones that don't use any CAN features that the Jaguar offers) or getting a Cross the Road Electronics 2CAN from somewhere. That gives you a ton more bandwidth but they don't sell them anymore unfortunately.

Alex Brinister
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:49.

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