Go to Post Nothing is perfect - but AM is a phenomenal company! - iambujo [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 22-04-2010, 14:34
ajd ajd is offline
Registered User
FRC #3238
Team Role: Alumni
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Mount Vernon, WA
Posts: 46
ajd will become famous soon enough
2CAN vs. Serial-to-CAN

What are the pros and cons of using the 2CAN adapter versus the black jaguar serial-to-can bridge? It seems like the 2CAN is more expensive and adds some weight to the robot; I've read that the 2CAN gives you somewhat faster communication. Are there any other factors? How have others decided this issue?
Reply With Quote
  #2   Spotlight this post!  
Unread 22-04-2010, 14:47
EricVanWyk EricVanWyk is offline
Registered User
no team
 
Join Date: Jan 2007
Rookie Year: 2000
Location: Boston
Posts: 1,597
EricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond repute
Send a message via AIM to EricVanWyk
Re: 2CAN vs. Serial-to-CAN

You've summed the situation up pretty well. I'd like to add that the 2CAN also has some features that were not legally usable for FRC2010. For example, you can create a robot that is simply a PD, some Jaguars, a wifi bridge, and a 2CAN.
Reply With Quote
  #3   Spotlight this post!  
Unread 22-04-2010, 16:25
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: 2CAN vs. Serial-to-CAN

Quote:
Originally Posted by EricVanWyk View Post
For example, you can create a robot that is simply a PD, some Jaguars, a wifi bridge, and a 2CAN.
I saw such a robot being demonstrated next to the AndyMark booth last weekend. A suitably-programmed WiFi-capable laptop and USB game controller were all that was necessary to drive it (it was actually being run tethered, with the onboard wireless disabled, complying with the "no networks" rule).
Reply With Quote
  #4   Spotlight this post!  
Unread 22-04-2010, 17:53
MikeE's Avatar
MikeE MikeE is offline
Wrecking nice beaches since 1990
no team (Volunteer)
Team Role: Engineer
 
Join Date: Nov 2008
Rookie Year: 2008
Location: New England -> Alaska
Posts: 381
MikeE has a reputation beyond reputeMikeE has a reputation beyond reputeMikeE has a reputation beyond reputeMikeE has a reputation beyond reputeMikeE has a reputation beyond reputeMikeE has a reputation beyond reputeMikeE has a reputation beyond reputeMikeE has a reputation beyond reputeMikeE has a reputation beyond reputeMikeE has a reputation beyond reputeMikeE has a reputation beyond repute
Re: 2CAN vs. Serial-to-CAN

Quote:
Originally Posted by ajd View Post
What are the pros and cons of using the 2CAN adapter versus the black jaguar serial-to-can bridge? It seems like the 2CAN is more expensive and adds some weight to the robot; I've read that the 2CAN gives you somewhat faster communication. Are there any other factors? How have others decided this issue?
Team 88 used CAN for all 6 speed controllers on this year's robot, via the Black Jaguar RS232 interface.

Although 2CAN is about 5 times faster theoretically, we never got close to the serial bandwidth limits using the Black Jaguar in normal operation. We originally planned to log most of the status messages from the Jags for post-match analysis, but this task dropped from the priority list and is now an off-season project. That will increase the messages on the bus but IIRC it will still be within the serial bus bandwidth (I don't have the CAN packet specs to hand).

Our 2CAN vs Black Jag decision was fairly prosaic:
Since we were buying additional speed controllers for our practice bot, it was a no-brainer to get Black Jags at almost no additional cost. I also misunderstood the rules in Week 1 and was uncertain about 2CAN legality, although that was quickly clarified !
Reply With Quote
  #5   Spotlight this post!  
Unread 22-04-2010, 22:13
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 vs. Serial-to-CAN

Quote:
Originally Posted by Alan Anderson View Post
Quote:
Originally Posted by EricVanWyk View Post
You've summed the situation up pretty well. I'd like to add that the 2CAN also has some features that were not legally usable for FRC2010. For example, you can create a robot that is simply a PD, some Jaguars, a wifi bridge, and a 2CAN.
I saw such a robot being demonstrated next to the AndyMark booth last weekend. A suitably-programmed WiFi-capable laptop and USB game controller were all that was necessary to drive it....
Our team is in the process of doing this (over wireless) for our practice/demo bot(s), and I'm figuring that MANY teams will find this useful as well. It's great being able to operate multiple bots without having to spend big $$'s on another cRIO. And a great way to have the kids learn comm protocols, etc. Plus there are loads and loads of competition-legal ways to use CAN-capable devices. Great having CAN available!

By the way, we're planning to upload our "2CAN PC driver" code to firstforge eventually so other teams can benefit as well. Before that though we want to get the driver code working without having to revert the Jags back to the default (non-FRC) firmware - since the "trusted heartbeat" required by the FRC Jag firmware isn't documented we have some further reverse-engineering to do and haven't been able to get time on the cRIO until recently

- Ron
Team #2607 controls mentor
Reply With Quote
  #6   Spotlight this post!  
Unread 23-04-2010, 00:47
biojae's Avatar
biojae biojae is offline
Likes Omni drives :)
AKA: Justin Stocking
FTC #5011 (BOT SQUAD) && FTC#72(Garage bots)&& FRC#0399 (Eagle Robotics)
Team Role: College Student
 
Join Date: Oct 2008
Rookie Year: 2008
Location: Lancaster
Posts: 276
biojae is a jewel in the roughbiojae is a jewel in the roughbiojae is a jewel in the rough
Re: 2CAN vs. Serial-to-CAN

Quote:
Our team is in the process of doing this (over wireless) for our practice/demo bot(s), and I'm figuring that MANY teams will find this useful as well. It's great being able to operate multiple bots without having to spend big $$'s on another cRIO. And a great way to have the kids learn comm protocols, etc. Plus there are loads and loads of competition-legal ways to use CAN-capable devices. Great having CAN available!

By the way, we're planning to upload our "2CAN PC driver" code to firstforge eventually so other teams can benefit as well. Before that though we want to get the driver code working without having to revert the Jags back to the default (non-FRC) firmware - since the "trusted heartbeat" required by the FRC Jag firmware isn't documented we have some further reverse-engineering to do and haven't been able to get time on the cRIO until recently

- Ron
Team #2607 controls mentor
I would really like to see this done!

The ability to have multiple pseudo-swarm bots from one controller could be used for many things.

- Mini exhibition like competitions for prerookies, give them a chance to drive a robot, and see somewhat how it works
- Swarm robots, autonomous modules collaborating to provide information / complete a task leveraging the comp power of the cRio
__________________
FTC Team 72 - No site
FRC Team 399 - http://www.team399.org
2010 Rockwell Collins Innovation in Control Award - (Use of the CAN bus, among other reasons) Phoenix, Arizona!
Reply With Quote
  #7   Spotlight this post!  
Unread 23-04-2010, 19:52
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 vs. Serial-to-CAN

Disclaimer: I haven't used either.

The 2CAN has a web dashboard that you can look at for status of all the jaguars.

Currently, you can't recover a bricked Jaguar with the 2CAN: http://www.chiefdelphi.com/forums/sh...2&postcount=12
Reply With Quote
  #8   Spotlight this post!  
Unread 23-04-2010, 22:11
simpsonboy77 simpsonboy77 is offline
Registered User
AKA: Garrett Dicken
FRC #0041 (RoboWarriors)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2005
Location: New Jersey
Posts: 87
simpsonboy77 has a reputation beyond reputesimpsonboy77 has a reputation beyond reputesimpsonboy77 has a reputation beyond reputesimpsonboy77 has a reputation beyond reputesimpsonboy77 has a reputation beyond reputesimpsonboy77 has a reputation beyond reputesimpsonboy77 has a reputation beyond reputesimpsonboy77 has a reputation beyond reputesimpsonboy77 has a reputation beyond reputesimpsonboy77 has a reputation beyond reputesimpsonboy77 has a reputation beyond repute
Re: 2CAN vs. Serial-to-CAN

Also by using the 2CAN, you leave the serial port open which you can use to connect your debug output too. I can't tell you how often the debug told us the problem.

At the moment there are more utilities for the black jaguar. I read somewhere that you can connect the serial port from the black jag, to your computer and run the bus manually. This should be added to the 2CAN device, as I could see it helping you tune a PID quickly.
__________________
2013 - Present MAR Control System Adviser and FTAA
2009 - Present Programming an Electrical Mentor Team 41
2005 - 2008 Team 41 Programmer
2008 NYC Regional Winner
Reply With Quote
  #9   Spotlight this post!  
Unread 23-04-2010, 23:23
biojae's Avatar
biojae biojae is offline
Likes Omni drives :)
AKA: Justin Stocking
FTC #5011 (BOT SQUAD) && FTC#72(Garage bots)&& FRC#0399 (Eagle Robotics)
Team Role: College Student
 
Join Date: Oct 2008
Rookie Year: 2008
Location: Lancaster
Posts: 276
biojae is a jewel in the roughbiojae is a jewel in the roughbiojae is a jewel in the rough
Re: 2CAN vs. Serial-to-CAN

Quote:
Originally Posted by simpsonboy77 View Post
Also by using the 2CAN, you leave the serial port open which you can use to connect your debug output too. I can't tell you how often the debug told us the problem.

At the moment there are more utilities for the black jaguar. I read somewhere that you can connect the serial port from the black jag, to your computer and run the bus manually. This should be added to the 2CAN device, as I could see it helping you tune a PID quickly.
Netconsole still works when using black Jag interface.
All of the debugging messages can be seen through netconsole.

Yes, you can plug the serial port into a comp, and control the jags on the bus,
but the 2CAN can be used to control the bus as demonstrated at champs.
__________________
FTC Team 72 - No site
FRC Team 399 - http://www.team399.org
2010 Rockwell Collins Innovation in Control Award - (Use of the CAN bus, among other reasons) Phoenix, Arizona!
Reply With Quote
  #10   Spotlight this post!  
Unread 24-04-2010, 21:33
simpsonboy77 simpsonboy77 is offline
Registered User
AKA: Garrett Dicken
FRC #0041 (RoboWarriors)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2005
Location: New Jersey
Posts: 87
simpsonboy77 has a reputation beyond reputesimpsonboy77 has a reputation beyond reputesimpsonboy77 has a reputation beyond reputesimpsonboy77 has a reputation beyond reputesimpsonboy77 has a reputation beyond reputesimpsonboy77 has a reputation beyond reputesimpsonboy77 has a reputation beyond reputesimpsonboy77 has a reputation beyond reputesimpsonboy77 has a reputation beyond reputesimpsonboy77 has a reputation beyond reputesimpsonboy77 has a reputation beyond repute
Re: 2CAN vs. Serial-to-CAN

Quote:
Originally Posted by biojae View Post
Yes, you can plug the serial port into a comp, and control the jags on the bus,
but the 2CAN can be used to control the bus as demonstrated at champs.
Ahh I missed that demo, as I was unable to attend the champs.
__________________
2013 - Present MAR Control System Adviser and FTAA
2009 - Present Programming an Electrical Mentor Team 41
2005 - 2008 Team 41 Programmer
2008 NYC Regional Winner
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
2CAN API Dweller CAN 4 12-03-2011 21:07
Serial to CAN Gateway in new Black Jaguars? dmcguire3006 Electrical 54 26-01-2010 07:32
Is it possible to use CAN, a camera, and the wireless without the 2Can adapter? Steven Sigley CAN 4 22-01-2010 16:50
Legality of the 2CAN Geek 2.0 FRC Control System 9 19-01-2010 20:51
Where can we get PS2 type game controllers with serial ports? waialua359 Control System 12 25-01-2006 22:33


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

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