|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
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! |
|
#2
|
|||
|
|||
|
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? |
|
#3
|
||||
|
||||
|
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? |
|
#4
|
||||
|
||||
|
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.
|
|
#5
|
||||
|
||||
|
Re: Crio and CAN
In the [LVRT] section, add "FRC_BlackJagBridgePlugin.out;" to the end of the list of StartupDlls, like so:
Quote:
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. |
|
#7
|
||||
|
||||
|
thanks guys, this is really helpful! I'll let you know how it turns out when i time to work on it.
|
|
#8
|
|||
|
|||
|
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
|
|
#9
|
||||
|
||||
|
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. |
|
#10
|
||||
|
||||
|
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. |
|
#11
|
||||
|
||||
|
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. |
|
#12
|
||||
|
||||
|
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.
|
|
#13
|
||||
|
||||
|
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.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |