Go to Post So remember, we may be envious of teams who can do water jet cutting and has every possible monetary and engineering advantage, but there are many more people who are envious of every team who has a chance to compete. - Rombus [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 05-12-2013, 19:56
hzheng_449 hzheng_449 is offline
Registered User
AKA: Harrison Zheng
FRC #0449 (Blair Robot Project)
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Rockville, MD
Posts: 36
hzheng_449 will become famous soon enough
2CAN: not detecting CAN traffic

So my team has used CAN for 3+ years, but we've never used a 2CAN before. We recently decided to try one out and got a 2CAN 2.0, however when we installed it (hardware, firmware update, and plug-in) and tested CAN functionality with our unmodified code, we got a fast red strobe on the status light and the web dashboard indicated there was no CAN traffic.

We're pretty sure this isn't a wiring issue since we just added the 2CAN into our 2013 robot, which worked with the serial adapter.

We have:
  • 2CAN 2.0 (fw ver_2.28)(Plug-in was the default plug-in already on the cRIO)
  • Black Jaguars (pretty sure they are v107)
  • 4 Slot cRIO

Any help would be greatly appreciated!
Reply With Quote
  #2   Spotlight this post!  
Unread 05-12-2013, 20:52
Cecil's Avatar
Cecil Cecil is offline
Registered User
AKA: Alex Hummel
FRC #2010 (Lightning Bots)
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2006
Location: Champion
Posts: 343
Cecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to behold
Re: 2CAN: not detecting CAN traffic

Remember when switching from serial based CAN to the 2CAN, you have to go into the Imaging Tool and select the 2CAN plugin and select "Apply" (you do not need to reformat the controller). This will load the correct plugin to let the controller talk to the 2CAN.

I believe that the Imaging Tool loads with the 2CAN plugin by default, be sure to click apply just to make sure and power cycle the entire robot. I'd also make sure you have a termination resistor at the end of the chain.
__________________
I'm right 90% of the time, so why worry about the other 3%?

Last edited by Cecil : 05-12-2013 at 20:54. Reason: Misunderstood the post
Reply With Quote
  #3   Spotlight this post!  
Unread 05-12-2013, 21:23
hzheng_449 hzheng_449 is offline
Registered User
AKA: Harrison Zheng
FRC #0449 (Blair Robot Project)
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Rockville, MD
Posts: 36
hzheng_449 will become famous soon enough
Re: 2CAN: not detecting CAN traffic

Thanks! I'll make sure to try this ASAP.

Just out of curiosity, does the Imaging tool do anything that adding the plugin through FTP(which is what the 2CAN manual says and what I did) doesn't?
Reply With Quote
  #4   Spotlight this post!  
Unread 05-12-2013, 21:33
Cecil's Avatar
Cecil Cecil is offline
Registered User
AKA: Alex Hummel
FRC #2010 (Lightning Bots)
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2006
Location: Champion
Posts: 343
Cecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to behold
Re: 2CAN: not detecting CAN traffic

I've just always used the Imaging Tool to activate the plugin. I haven't actually tried to use the FTP method since the first year the 2CAN was available.
__________________
I'm right 90% of the time, so why worry about the other 3%?
Reply With Quote
  #5   Spotlight this post!  
Unread 06-12-2013, 07:24
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 988
RufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant future
Re: 2CAN: not detecting CAN traffic

Quote:
Originally Posted by hzheng_449 View Post
Thanks! I'll make sure to try this ASAP.

Just out of curiosity, does the Imaging tool do anything that adding the plugin through FTP(which is what the 2CAN manual says and what I did) doesn't?
Pretty sure it adds the plugin to the start-up ini file so that the plugin actually gets loaded.
Reply With Quote
  #6   Spotlight this post!  
Unread 06-12-2013, 09:20
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: 2CAN: not detecting CAN traffic

Quote:
Originally Posted by hzheng_449 View Post
Just out of curiosity, does the Imaging tool do anything that adding the plugin through FTP(which is what the 2CAN manual says and what I did) doesn't?
Did you remove the serial can plugin when you modified the ini file? I assume they will conflict if both are loaded.
Reply With Quote
  #7   Spotlight this post!  
Unread 06-12-2013, 09:49
hzheng_449 hzheng_449 is offline
Registered User
AKA: Harrison Zheng
FRC #0449 (Blair Robot Project)
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Rockville, MD
Posts: 36
hzheng_449 will become famous soon enough
Re: 2CAN: not detecting CAN traffic

Quote:
Originally Posted by Joe Ross View Post
Did you remove the serial can plugin when you modified the ini file? I assume they will conflict if both are loaded.
No I didn't, and I'm pretty sure they do conflict since I tried to revert to serial CAN when the 2CAN wasn't working and also got CAN errors.

I'll re-image the cRIO with the imaging utility the next chance I can get access to the robot (prolly next Thurs) and update the thread with what happens.

Thanks, everyone, for all the help!
Reply With Quote
  #8   Spotlight this post!  
Unread 12-12-2013, 20:15
hzheng_449 hzheng_449 is offline
Registered User
AKA: Harrison Zheng
FRC #0449 (Blair Robot Project)
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Rockville, MD
Posts: 36
hzheng_449 will become famous soon enough
Re: 2CAN: not detecting CAN traffic

So I re imaged the cRio with the 2CAN plugin selected. However, after the cRio was rebooted and power cycled, the 2CAN still had a red strobe and indicated it could not detect CAN traffic.

Interestingly enough, when I accessed the web dashboard and changed the CAN bandwith to the lowest setting (125kb/s) the 2CAN status light turned green and the web dash indicated that CAN communication was good and error free. However, the web-dash didn't indicate any data for any of the CAN nodes (ie temp, load, etc were all 0) and additionally when I tried to run our code, the cRio was returning CAN timeout and device not detected errors.

At this point I'm thoroughly confused, especially since after all this I reverted to the serial adapter configuration, and it worked perfectly. Does anyone have any insight as to what's going on?
Reply With Quote
  #9   Spotlight this post!  
Unread 06-01-2014, 17:07
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: not detecting CAN traffic

Yeah definitely leave the bitrate at 1Mbps. That's what used in FIRST, the other bitrates are for non-FIRST uses and definitely won't work. Also the RED led state will stay RED until 2CAN sees some CAN traffic regardless of the firmware level/ plugin, or presence of the cRIO. It does sound like a cabling issue which is strange since you mentioned you just swapped out connecting the RJ11 from a Jag to the RJ11 of the 2CAN.

Can you try this simple setup after setting the bitrate back to 1Mbps : take a powered 2CAN and a single powered jag and connect their RJ11s together. 2CAN will automatically poll for the Jag and will switch to orange LED if everything is well.

One difference between the 2CAN and serial gateway is the 2CAN has an internal 120 ohm termination - that way you only need to add 120ohm at the end. With serial gateway you have to terminate both ends. So you might want to remove one of the termination resistors.
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