Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   CAN (http://www.chiefdelphi.com/forums/forumdisplay.php?f=185)
-   -   CAN on java "spazing" (http://www.chiefdelphi.com/forums/showthread.php?t=89707)

mark.amber 21-01-2011 09:02

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

drakesword 21-01-2011 11:24

Re: CAN on java "spazing"
 
code and exception would help a lot in debugging this . . .

jhersh 21-01-2011 15:36

Re: CAN on java "spazing"
 
Quote:

Originally Posted by mark.amber (Post 1004884)
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

mark.amber 21-01-2011 18:19

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.

mark.amber 21-01-2011 18:26

Re: CAN on java "spazing"
 
As expected, I cannot reproduce the error, oh well it works, but I don't like it.

drakesword 21-01-2011 19:13

Re: CAN on java "spazing"
 
Quote:

Originally Posted by mark.amber (Post 1005238)
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


All times are GMT -5. The time now is 02:50.

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