Go to Post Possibly the most amazing thing all week was that this game can be played with mecanum wheels. - fargus111111111 [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 21-08-2010, 20:25
randalcr's Avatar
randalcr randalcr is offline
Programming Mentor
AKA: Chance Randall
FRC #0476 (Wildcats)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Ponca City
Posts: 82
randalcr is an unknown quantity at this point
Question Crio and CAN

Ok, so our team has been playing around with CAN be it seems we're not doing something right. Is there a guide anywhere that shows you how to set up CAN step-by-step or something along the lines of that? we can write the code to use CAN easy enough, its when we start trying to talk to the jags through the crio that we start getting problems.

We a using the serial port on the Crio, we are fairly sure we can rule out our cables since we can see all of the jags on the network when we use the BDC comm, and we are only using 3 to 4 jags total.

any input is appreciated and helpful, Thanks!
__________________
-Time is the best teacher...unfortunately it kills all of its students. --Robin Williams
Reply With Quote
  #2   Spotlight this post!  
Unread 21-08-2010, 20:58
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: Crio and CAN

If you've got BDC-comm working, all of the guides I know of won't be of much worth to you. Assuming you're writing the code properly, the only problem I can think of is that you forgot to ftp the BlackJagBridgePlugin.out to the cRIO and add it to ni-rt.ini

if that isn't it, could you post your code here?
__________________

"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 21-08-2010, 21:30
randalcr's Avatar
randalcr randalcr is offline
Programming Mentor
AKA: Chance Randall
FRC #0476 (Wildcats)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Ponca City
Posts: 82
randalcr is an unknown quantity at this point
Re: Crio and CAN

we think its either the Crio or the ini file not being in the right spot, is there any where that shows where exactly that .ini file goes?

and do you want the .vis or screenshots?
__________________
-Time is the best teacher...unfortunately it kills all of its students. --Robin Williams
Reply With Quote
  #4   Spotlight this post!  
Unread 22-08-2010, 12:24
Bot190's Avatar
Bot190 Bot190 is offline
Registered User
FRC #0166 (ChopShop)
Team Role: Programmer
 
Join Date: Sep 2009
Rookie Year: 2009
Location: Merrimack NH
Posts: 105
Bot190 will become famous soon enough
Re: Crio and CAN

The ni-rt.ini file needs to be downloaded from the CRIO via ftp. The file is located in the root of the CRIO's filesystem. The file then needs to be edited, then uploaded to the CRIO over ftp. The black jaguar plugin needs to be uploaded via ftp to "/ni-rt/system" folder.
__________________

Reply With Quote
  #5   Spotlight this post!  
Unread 22-08-2010, 12:56
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
Re: Crio and CAN

In the [LVRT] section, add "FRC_BlackJagBridgePlugin.out;" to the end of the list of StartupDlls, like so:
Quote:
Originally Posted by ni-rt.ini
...
StartupDlls=NiRioRpc.out;niorbs.out;NiViSrvr.out;n ivissvc.out;nivision.out;niserial.out;FRC_FPGA.out ;FRC_NetworkCommunication.out;FRC_BlackJagBridgePl ugin.out;
...
Like Bot190 stated, the FRC_Black_JagBridgePlugin.out should go in /ni-rt/system/ on the cRIO.

There's instructions for this somewhere, I just can't remember where.

Anyways, I've attached the ni-rt.ini from my cRIO for you to compare.
Attached Files
File Type: zip ni-rt.zip (1.1 KB, 22 views)
__________________
-- Marshal Horn
Reply With Quote
  #6   Spotlight this post!  
Unread 22-08-2010, 13:25
Bot190's Avatar
Bot190 Bot190 is offline
Registered User
FRC #0166 (ChopShop)
Team Role: Programmer
 
Join Date: Sep 2009
Rookie Year: 2009
Location: Merrimack NH
Posts: 105
Bot190 will become famous soon enough
Re: Crio and CAN

Directions can be found here. The Can Jaguar library can also be found on FirstForge.
__________________

Reply With Quote
  #7   Spotlight this post!  
Unread 22-08-2010, 17:10
randalcr's Avatar
randalcr randalcr is offline
Programming Mentor
AKA: Chance Randall
FRC #0476 (Wildcats)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Ponca City
Posts: 82
randalcr is an unknown quantity at this point
Smile Re: Crio and CAN

thanks guys, this is really helpful! I'll let you know how it turns out when i time to work on it.
__________________
-Time is the best teacher...unfortunately it kills all of its students. --Robin Williams
Reply With Quote
  #8   Spotlight this post!  
Unread 22-08-2010, 21:41
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: Crio and CAN

make sure it goes in right after FRC_NetworkCommunication.out, not at the end like kamocat said. FRC_UserProgram.out might have problems if it's not loaded
__________________

"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 23-08-2010, 23:29
randalcr's Avatar
randalcr randalcr is offline
Programming Mentor
AKA: Chance Randall
FRC #0476 (Wildcats)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Ponca City
Posts: 82
randalcr is an unknown quantity at this point
Smile Re: Crio and CAN

ok, I got the Crio set up with a new image (just for a fresh start) and the ni-rt file edited and put back and add the plugin too. when I deployed the code the two jags i was using did not change their status to the solid light to show their state (they continued to blink)

So im starting to wonder if someone mistakenly set 2 as an id for the first jag, or its something with the firmware of the jags themselves.
__________________
-Time is the best teacher...unfortunately it kills all of its students. --Robin Williams
Reply With Quote
  #10   Spotlight this post!  
Unread 23-08-2010, 23:37
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
Re: Crio and CAN

Did you update the firmware for the Jaguars?
In BDC-COMM, does it say "trusted" in the upper left corner of the window?

Here's something simple to test: Create a program to run the "enumeration" command in a loop and display the output. This will tell you what Jaguars you have communication to.
__________________
-- Marshal Horn
Reply With Quote
  #11   Spotlight this post!  
Unread 02-09-2010, 20:17
randalcr's Avatar
randalcr randalcr is offline
Programming Mentor
AKA: Chance Randall
FRC #0476 (Wildcats)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Ponca City
Posts: 82
randalcr is an unknown quantity at this point
Re: Crio and CAN

Can anyone post some working CAN code? I have ruled out everything I can think of on the robot side of this equation, and everything i have changed in the code has had very little effect.

The one consistent error we get is something along the line of "-0557 Can Recieve.....", I have no clue what this means and I can't seem to find any tips on what it is related too or how to get it fixed.

Thanks.
__________________
-Time is the best teacher...unfortunately it kills all of its students. --Robin Williams
Reply With Quote
  #12   Spotlight this post!  
Unread 02-09-2010, 20:30
Bot190's Avatar
Bot190 Bot190 is offline
Registered User
FRC #0166 (ChopShop)
Team Role: Programmer
 
Join Date: Sep 2009
Rookie Year: 2009
Location: Merrimack NH
Posts: 105
Bot190 will become famous soon enough
Re: Crio and CAN

There is example code for all 3 languages on First Forge, its the basic tank drive using CAN. If i remember correctly its only available from the SVN repository, but it might be available in the downloads section. If its not in the downloads you need to create an account, then download the code using an SVN client.
__________________

Reply With Quote
  #13   Spotlight this post!  
Unread 03-09-2010, 10:32
randalcr's Avatar
randalcr randalcr is offline
Programming Mentor
AKA: Chance Randall
FRC #0476 (Wildcats)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Ponca City
Posts: 82
randalcr is an unknown quantity at this point
Re: Crio and CAN

Thanks, I downloaded a couple of the vis. And i'll see if i can get CAN to work using them.
__________________
-Time is the best teacher...unfortunately it kills all of its students. --Robin Williams
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
Can not connect to cRIO z.s.tar.gz Programming 2 13-02-2010 19:06
Does the cRio cut motors at 5.5Vdc on CAN? Mike9966 Electrical 5 10-02-2010 18:05
Can ping CRIO and bridge, but DS shows no comm and no code Green2 FRC Control System 3 22-01-2010 23:55
cRIO Does Not Communicate, Yet Can Be Pinged and Re-Imaged 1951-44U FRC Control System 7 15-12-2009 21:25
pic: cRIO CAN Jag Andrew Schuetze Extra Discussion 63 25-07-2009 01:48


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

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