Go to Post Part of FRC and design/engineering is perseverance. Keep your chin up, your thoughts positive, and have respect for your work and the work of your teammates. - Nathan_Fraser [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 09-02-2010, 17:12
rrossbach rrossbach is offline
Registered User
AKA: Ron R
FRC #2607 (RoboVikings)
Team Role: Mentor
 
Join Date: Nov 2008
Rookie Year: 2008
Location: Warrington PA
Posts: 90
rrossbach is a splendid one to beholdrrossbach is a splendid one to beholdrrossbach is a splendid one to beholdrrossbach is a splendid one to beholdrrossbach is a splendid one to beholdrrossbach is a splendid one to beholdrrossbach is a splendid one to behold
2CAN Problem - plugin not loading?

Hi -
So after driving Jaguars over CAN using the Black Jag serial-to-CAN bridge and plugin, our team decided to try switching over to the 2CAN.

Now our robot code (Java) fails, with the CANJaguar constructors throwing an UncleanStatusException (status -52010).

We're using v1.6 of the 2CAN firmware, and verified that the 2CAN's ip address is set correctly (we tried it both on port 1 with IP 10.x.x.10 and port 2 with IP 192.168.0.10). In all cases we can reach the 2CAN web dashboard and see the Jaguars' temps, and ping the cRIO, so we know that all the network connectivity (Ethernet and CAN) is OK.

Looking at the cRIO console output, I'm thinking that the 2CAN plugin is not loading completely. We see a "loading" message for FRC_2CANPlugin, but don't seem to have any relevant messages after that (e.g. the Black Jag plugin outputs something like "loaded successfully") As a teaching exercise the team added some additional printf's to the 2CAN plugin source and re-built it (with a -DENABLE_PRINT switch added to the build options) - same result......no console messages eminating from the 2CAN plugin (at least that we recognize).

Any ideas on what could be happening? Any thoughts on how to proceed are appreciated, we'd really like to use the 2CAN!

Thanks,
Ron
Team #2607 controls mentor
Reply With Quote
  #2   Spotlight this post!  
Unread 09-02-2010, 17:49
ozrien's Avatar
ozrien ozrien is offline
Omar Zrien
AKA: Omar
no team
Team Role: Mentor
 
Join Date: Sep 2006
Rookie Year: 2003
Location: Sterling Heights, MI
Posts: 521
ozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant future
Re: 2CAN Problem - plugin not loading?

What is the status of the LED on the 2CAN? The webdashboard displays the status of the Ethernet connection and whether the plugin is loaded correctly. Could you verify this?
Reply With Quote
  #3   Spotlight this post!  
Unread 09-02-2010, 18:51
rrossbach rrossbach is offline
Registered User
AKA: Ron R
FRC #2607 (RoboVikings)
Team Role: Mentor
 
Join Date: Nov 2008
Rookie Year: 2008
Location: Warrington PA
Posts: 90
rrossbach is a splendid one to beholdrrossbach is a splendid one to beholdrrossbach is a splendid one to beholdrrossbach is a splendid one to beholdrrossbach is a splendid one to beholdrrossbach is a splendid one to beholdrrossbach is a splendid one to behold
Re: 2CAN Problem - plugin not loading?

Hi -
The 2CAN LED flashes red (no network comms) - I think this means it's not getting any comm from the plugin, since clearly the network comm is fine - correct? The web dashboard also states to check the network comms (don't have the exact wording as I'm not at the school right now).

Thanks,
Ron
Team #2607 controls mentor
Reply With Quote
  #4   Spotlight this post!  
Unread 09-02-2010, 23:00
ozrien's Avatar
ozrien ozrien is offline
Omar Zrien
AKA: Omar
no team
Team Role: Mentor
 
Join Date: Sep 2006
Rookie Year: 2003
Location: Sterling Heights, MI
Posts: 521
ozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant future
Re: 2CAN Problem - plugin not loading?

It sounds like the 2can plugin is not loaded correctly. Be sure to go over the instructions on how to install the FRC_2CANPlugin.out file in the 2CAN User Manual.

http://crosstheroadelectronics.com/2CAN.htm

It's the same procedure as installing the Black Jaguar Serial plugin but it's a different out file.
Reply With Quote
  #5   Spotlight this post!  
Unread 11-02-2010, 00:47
rrossbach rrossbach is offline
Registered User
AKA: Ron R
FRC #2607 (RoboVikings)
Team Role: Mentor
 
Join Date: Nov 2008
Rookie Year: 2008
Location: Warrington PA
Posts: 90
rrossbach is a splendid one to beholdrrossbach is a splendid one to beholdrrossbach is a splendid one to beholdrrossbach is a splendid one to beholdrrossbach is a splendid one to beholdrrossbach is a splendid one to beholdrrossbach is a splendid one to behold
Re: 2CAN Problem - plugin not loading?

We've followed the procedure correctly - as mentioned originally, the console output shows a "loading" message for the 2CAN plugin, which indicates that ni-rt.ini is updated correctly. There's also no failure message indicating the plugin failed to load, which would be the case if the plugin file didn't exist in ni-rt/system.

So, we're pretty sure the plugin load is silently failing, but are at a loss as to why.

Out of curiosity:
- does revision r28 of the plugin source on FirstForge correspond to the v1.1.0.0 plugin .out dated 1/31/2010?
- is anyone currently using the compiled v1.1.0.0 plugin (dated 1/31/2010) downloaded from the CTRE website?
- was the v1.1.0.0 compiled plugin linked from the CTRE website compiled with debugging on? It appears so but please confirm

Thanks,
Ron
Team #2607 controls mentor
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Plugin update for 2CAN ozrien CAN 3 01-02-2010 16:26
Problem Loading Java Code aaeamdar2 Java 24 26-01-2010 23:01
2CAN Plugin Released Mike Copioli Control System 16 24-01-2010 03:31
cRIO plugin problem gabrielse National Instruments LabVIEW and Data Acquisition 3 18-12-2008 11:30
Pictures not loading sanddrag CD Forum Support 32 11-10-2002 01:55


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

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