Go to Post Woody, If there is any chance your reading this ... you've changed my life. - Gope [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 21-01-2011, 09:02
mark.amber mark.amber is offline
Registered User
FRC #2039
 
Join Date: Jan 2010
Location: Rockford IL
Posts: 12
mark.amber is an unknown quantity at this point
CAN on java "spazing"

Our team is using CAN and java and we are having a problem with a simple program, one that sets the jag to 1, the jag spazzes and throws a stack trace every time it stops.

I have traced it back to the CANExceptionFactory where it was talking about NIRIOEthernetTimeout or something, I do not have the code and I have to go to school now, just assume everything else is in order I think this is an issue in the wpilibs
Reply With Quote
  #2   Spotlight this post!  
Unread 21-01-2011, 11:24
drakesword drakesword is offline
Registered User
AKA: Bryant
FRC #0346 (Robohawks)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2004
Location: USA
Posts: 200
drakesword is on a distinguished road
Re: CAN on java "spazing"

code and exception would help a lot in debugging this . . .
Reply With Quote
  #3   Spotlight this post!  
Unread 21-01-2011, 15:36
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: CAN on java "spazing"

Quote:
Originally Posted by mark.amber View Post
Our team is using CAN and java and we are having a problem with a simple program, one that sets the jag to 1, the jag spazzes and throws a stack trace every time it stops.

I have traced it back to the CANExceptionFactory where it was talking about NIRIOEthernetTimeout or something, I do not have the code and I have to go to school now, just assume everything else is in order I think this is an issue in the wpilibs
From an engineering standpoint, it seems peculiar to assume that the code only you have used is in order, the hardware only you have tested with is in order, but that the code that every other team is using as well is the most likely source of the issue. That's not to say that there couldn't be an issue in wpilibj, it just seems like an odd place to start.

-Joe
Reply With Quote
  #4   Spotlight this post!  
Unread 21-01-2011, 18:19
mark.amber mark.amber is offline
Registered User
FRC #2039
 
Join Date: Jan 2010
Location: Rockford IL
Posts: 12
mark.amber is an unknown quantity at this point
Re: CAN on java "spazing"

The reason I assumed it was the wpijibj was because I just got an update that made this stop working, so it was my first assumption that the only thing that had changed was the problem, but it is a new day now, I am going to reflash the cRIO and try to reinstall the 2can firmware.

Also I have not been able to use the port 2 on the cRIO after reconfiguring the 2CAN with the windows utility, but that is not the port I want to use anyway, because I like being able to view the Voltage/Temperature and all that for debugging purpouses.

I will post the trace in a moment once I look over things again and make sure there is nothing wrong.
Reply With Quote
  #5   Spotlight this post!  
Unread 21-01-2011, 18:26
mark.amber mark.amber is offline
Registered User
FRC #2039
 
Join Date: Jan 2010
Location: Rockford IL
Posts: 12
mark.amber is an unknown quantity at this point
Re: CAN on java "spazing"

As expected, I cannot reproduce the error, oh well it works, but I don't like it.
Reply With Quote
  #6   Spotlight this post!  
Unread 21-01-2011, 19:13
drakesword drakesword is offline
Registered User
AKA: Bryant
FRC #0346 (Robohawks)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2004
Location: USA
Posts: 200
drakesword is on a distinguished road
Re: CAN on java "spazing"

Quote:
Originally Posted by mark.amber View Post
The reason I assumed it was the wpijibj was because I just got an update that made this stop working, so it was my first assumption that the only thing that had changed was the problem, but it is a new day now, I am going to reflash the cRIO and try to reinstall the 2can firmware.

Also I have not been able to use the port 2 on the cRIO after reconfiguring the 2CAN with the windows utility, but that is not the port I want to use anyway, because I like being able to view the Voltage/Temperature and all that for debugging purpouses.

I will post the trace in a moment once I look over things again and make sure there is nothing wrong.
REMEMBER port1 and port 2 on the cRIO have different address domains. Configure your 2CAN accordingly
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:50.

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