Go to Post Funding and success is no accident. - waialua359 [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 14-04-2010, 21:05
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
Multiple CAN networks

So for the off season one of the ideas thrown around was setting up a micro competition to have our students get more experience with the robotics scene.

One of my ideas was to have two identical small robots (maybe 2ft x 2ft max).

one of the robots would have the cRIO with the serial can interface the other robot would have just a wireless Ethernet adapter and a 2can. Is there a way we can use BOTH simultaneously or do we need to get into modifying code?

We do have two cRIOs but the team has explicitly stated that they want to keep this years bot functional until next year.
Reply With Quote
  #2   Spotlight this post!  
Unread 14-04-2010, 21:21
Radical Pi Radical Pi is offline
Putting the Jumper in the Bumper
AKA: Ian Thompson
FRC #0639 (Code Red Robotics)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York
Posts: 655
Radical Pi has a spectacular aura aboutRadical Pi has a spectacular aura aboutRadical Pi has a spectacular aura about
Re: Multiple CAN networks

With they way the CAN system is currently coded, it is only designed to use either 2CAN or Serial, not both. However, the plugins are open-source so a special version can be written that would allow for both at once. Simply change the interface names on the plugin and make CANJaguar classes to match, and it should work.

Assuming you are using C++, I could make the modifications and send them to you (uncompiled. don't have wind river at home)
__________________

"To have no errors would be life without meaning. No strugle, no joy"
"A network is only as strong as it's weakest linksys"
Reply With Quote
  #3   Spotlight this post!  
Unread 14-04-2010, 22:11
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: Multiple CAN networks

That would be cool. I will have to re-write it in java. We have the team set on java and java it shal be.
Reply With Quote
  #4   Spotlight this post!  
Unread 14-04-2010, 22:30
Radical Pi Radical Pi is offline
Putting the Jumper in the Bumper
AKA: Ian Thompson
FRC #0639 (Code Red Robotics)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York
Posts: 655
Radical Pi has a spectacular aura aboutRadical Pi has a spectacular aura aboutRadical Pi has a spectacular aura about
Re: Multiple CAN networks

I know enough Java to make the changes. The plugin is still C++ though, so you'll need a copy of wind river installed to re-build the plugins
__________________

"To have no errors would be life without meaning. No strugle, no joy"
"A network is only as strong as it's weakest linksys"
Reply With Quote
  #5   Spotlight this post!  
Unread 15-04-2010, 10:28
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: Multiple CAN networks

does it have to be windriver or can I use make If i have all of the supporting files?
Reply With Quote
  #6   Spotlight this post!  
Unread 15-04-2010, 16:21
Radical Pi Radical Pi is offline
Putting the Jumper in the Bumper
AKA: Ian Thompson
FRC #0639 (Code Red Robotics)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York
Posts: 655
Radical Pi has a spectacular aura aboutRadical Pi has a spectacular aura aboutRadical Pi has a spectacular aura about
Re: Multiple CAN networks

windriver is needed to generate the makefiles and it also needs the windriver compiler (modified gcc). By default it should be installed on whatever computer has the NI tools (except the classmate). If you absolutely can't I may be able to get my hands on a copy of windriver on tuesday to build the plugins
__________________

"To have no errors would be life without meaning. No strugle, no joy"
"A network is only as strong as it's weakest linksys"
Reply With Quote
  #7   Spotlight this post!  
Unread 16-04-2010, 02:06
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: Multiple CAN networks

If it was included in the kit we have it *somewhere*

Ill start digging through code!
Reply With Quote
  #8   Spotlight this post!  
Unread 16-04-2010, 16:49
Radical Pi Radical Pi is offline
Putting the Jumper in the Bumper
AKA: Ian Thompson
FRC #0639 (Code Red Robotics)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York
Posts: 655
Radical Pi has a spectacular aura aboutRadical Pi has a spectacular aura aboutRadical Pi has a spectacular aura about
Re: Multiple CAN networks

well, after digging through the code a bit more I found out that the interfaces to the CAN plugins are handled by the closed-source NetworkCommunication libraries. I think it is possible to bypass the libraries, however doing so will also most likely bypass the disable button for CAN jaguars.

There are two options. one, I can go forward with bypassing the networkcommunication backend and breaking the disable button and all watchdogs, or could you possibly change the cRIO-side jags to PWM mode and still do the networked 2CAN.
__________________

"To have no errors would be life without meaning. No strugle, no joy"
"A network is only as strong as it's weakest linksys"
Reply With Quote
  #9   Spotlight this post!  
Unread 20-04-2010, 10:43
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: Multiple CAN networks

I dont see where that would be an issue except with the closed loop control. The connection from the cRIO to the 2CAN sends data through UDP correct? Can we spoof it?
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
Wireless Networks(A/B/G/N) kiettyyyy Rules/Strategy 4 11-02-2009 15:04
How Can Multiple Programmers Work on Same Project? LVMastery NI LabVIEW 1 28-01-2009 23:43
[FTC]: Multiple Programs or One Program with Multiple Auto Modes kevin51292 FIRST Tech Challenge 4 02-01-2009 20:37
Hosting multiple sites in multiple VMs EHaskins Website Design/Showcase 6 22-12-2007 01:09
Wifi Networks Eugenia Gabrielov Chit-Chat 4 17-06-2004 09:56


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

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