OCCRA
Go to Post Mentoring is HARD. - Akash Rastogi [more]
Home
Go Back   Chief Delphi > Technical > Electrical > CAN
CD-Events   CD-Media   CD-Spy   FRC-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 03-23-2012, 10:18 PM
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: 7,902
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
CAN occasionally stops working

We're having trouble with occasionally losing CAN communication completely. When this happens, CAN timeouts are reported on the diagnostics tab. At the same time, we get the following message on netconsole. Has anyone seen this before?

Quote:
>>>>ERROR: status == -1073807298 (0xBFFF003E) in Read() in C:/WindRiver/workspace/BlackJagBridgePlugin/SerialPort.cpp at line 216
We are using LabVIEW, with an old cRIO and serial CAN, with 4 CAN jaguars (3 voltage and one position).
Reply With Quote
  #2   Spotlight this post!  
Unread 03-24-2012, 02:12 PM
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Feeling Honorable
FRC #1676 (Pascack PI Oneers)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Montvale NJ
Posts: 6,447
DonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond repute
Re: CAN occasionally stops working

I assume during competition, and essentially not reproducible on the bench.

I speculate that it could be a physical layer issue: The electrical connections on the Bus are opening. Focus on the RS232 connection to the first CAN Jaguar in particular, see if you can ensure it is as robust as possible.

My reasoning behind this is that you appear to be seeing a complete loss of the CAN Bus, and the only place that can happen is before the first Jaguar. A fault after that point (assuming it is not the Jaguar itself, in some weird failure mode) would return different errors, and the first Jag would/should continue to function. As a serial connection, a complete loss must be at the start of the series.

I'm not a programmer and have no experience with CAN in FRC, but I've been using CAN Bus since 1997 at work. There, the Bus is always wired in parallel.
__________________

I am N2IRZ - What's your callsign?
Reply With Quote
  #3   Spotlight this post!  
Unread 03-24-2012, 10:45 PM
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: 7,902
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: CAN occasionally stops working

It's happening at home, but not in a consistent or reproducible manner. We did check all the cables the best we could.
Reply With Quote
  #4   Spotlight this post!  
Unread 03-26-2012, 04:00 PM
Brian Selle's Avatar
Brian Selle Brian Selle is offline
Mentor
FRC #3310 (Black Hawk Robotics)
Team Role: Engineer
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Texas
Posts: 141
Brian Selle has a spectacular aura aboutBrian Selle has a spectacular aura about
Re: CAN occasionally stops working

We have a similar issue... we have 4 shooter motors hooked up in the middle of the CAN daisy chain that sometimes don't respond even though motors at the beginning and end of the chain work fine. A simple robot reboot always fixes the problem. Hasn't happened during the competition... yet.
Reply With Quote
  #5   Spotlight this post!  
Unread 03-27-2012, 08:13 PM
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Feeling Honorable
FRC #1676 (Pascack PI Oneers)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Montvale NJ
Posts: 6,447
DonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond repute
Re: CAN occasionally stops working

Joe, that error happens when the RS232 port isn't getting back the messages it expects from the first Jag (I'm only 80% sure that's true). I just don't want to speculate on fear that it'll send you down a bad path, as I am not confident in my speculations. The RS232 handler should be handling all that - it wasn't customized by chance?
__________________

I am N2IRZ - What's your callsign?
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 01:10 AM.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi