|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools |
Rating:
|
Display Modes |
|
|
|
#1
|
|||
|
|||
|
Re: Black jaguars: not working
Thanks for the reply. I talked to the control systems people on my team and they set the ID of the black Jaguar using the bdc-comm utility to 2. I tried the code again, however, with the ID given in the constructor of the black jaguar to 2, and I still get the exact same behavior.
So, while it seems that I did have the wrong port, that isn't the reason I get these errors. Any advice?Thanks, Kevin EDIT: yes, the driver loads correctly, as seen from the network console. The black jaguar utilities show that the Jaguar is functioning fine and the wiring is fine. I'm very confused... Last edited by ellisk : 23-01-2010 at 19:40. |
|
#2
|
|||
|
|||
|
Re: Black jaguars: not working
What about the other list of suggestions in my last post? Also... if you have LabVIEW installed, you could run the voltage mode example to see what enumerates on your robot.
-Joe |
|
#3
|
|||
|
|||
|
Re: Black jaguars: not working
Yes, we've tried the other suggestions. The cable is fine, it's plugged in on the left, there is a 100 ohm resistor on the left jack, and I can see the driver loading on the console when the cRIO boots.
EDIT: Here's the startup message from the cRIO's console: Code:
FPGA Hardware GUID: 0xAD(a bunch of hex digits) FPGA Software GUID: 0xAD(a bunch of hex digits) FPGA Hardware Version: 2010 FPGA Software Version: 2010 FPGA Hardware Revision: 1.3.0 FPGA Software Revision: 1.3.0 * Loading StartupDlls: FRC_BlockJagBridgePlugin FRC_BlockJagBridgePlugin was compiled from SVN revision 10 task 0x12d9610 (t2) deleted: erno=0 (0) status=0 (0) * Loading StartupDls: FRC_UserProgram ...FRC_UserProgram failed to load. NI-VISA Server 4.5 started successfully. task 0xe414e8 (t1) deleted: errno=1835009 (0x1c001) status=1 (0x1) Welcome to LabVIEW Real-Time 8.6.1f2 When I run the aforementioned program, I get the following error at startup, presumably from the call to Init of the CANJaguar in the constructor of the program: Code:
>>>>ERROR: status == -63194 (0xFFFF0926) in InitJaguar() in C:/windriver/workspace/Spy/CANJaguar.cpp at line 32 Last edited by ellisk : 23-01-2010 at 19:58. |
|
#4
|
|||
|
|||
|
Re: Black jaguars: not working
If you just unplug the serial connector from the cRIO and plug it into a PC, does bdc-comm see the Jaguars?
|
|
#5
|
||||
|
||||
|
Re: Black jaguars: not working
Hi, we had a seemingly similar problem with our CAN bus setup (using LabView). the driverstation would display an error regarding "CAN-Recieve.vi" and "operation not completed in time" (or something like that), so a timeout error of sorts. essentially, the cRIO was not getting a confirmation of initial setup from the black jag, or other jaguar- I forget exactly which. Anyway, we went into the code for initializing a 4motor robot drive system. and modified it such that it bypassed this error point (removing CAN-Recieve.vi). Then it worked perfectly. So my guess is that you may be able to do something similar in C++.
|
|
#6
|
||||
|
||||
|
Re: Black jaguars: not working
Answering for ellisk and in answer jhersh's question... yes the same cable works fine off a PC to talk to the Jaguar via the command line and GUI interface. The firmware was updated and ID set. No other changes were made to the Jaguar's settings. Also, for what it's worth, different cRIOs exhibit the same problem.
Once thing we didn't do was wire any of the the RS-232 handshake lines in the connector, things like CTS, RTS, DTR, DSR. The manual didn't say anything about that so we're assuming the cRIO doesn't care. Is that true? Last edited by Dale : 24-01-2010 at 01:47. |
|
#7
|
|||
|
|||
|
Re: Black jaguars: not working
The Jaguar only has connections for RX and TX.
|
|
#8
|
|||
|
|||
|
Re: Black jaguars: not working
Quote:
|
|
#9
|
||||
|
||||
|
Re: Black jaguars: not working
We do have the 100 ohm terminator in place. We know the Jaguars only have TX and RX but I wasn't clear whether the cRIO needed to have the other handshake lines jumpered at it's end. ellisk will have to answer about the robot being enabled.
They were trying a 2CAN ethernet adapter when I left the lab tonight to see if that yields better results. We'd still like to get the "official" RS-232 solution working though. |
|
#10
|
|||
|
|||
|
Re: Black jaguars: not working
Quote:
-Joe |
|
#11
|
||||
|
||||
|
Re: Black jaguars: not working
Quote:
If I just send the Jags a constant max output value, they will run and then sputter, and then run, yada yada yada. It sounds as if I have a physical layer problem - i.e., signals not propagating properly. Also, I have obviously been able to connect with BD-COM to assign IDs and re-flash the firmware... So my questions are: Should the termination resistor be on the cable at the LEFT port of the Gray Jag, or is it correct the way I have it? Has anyone else been able to get a connection, but suffers from intermittent signal loss? - Bryce P.S. I have attached some pictures of errors that I am receiving in the NetConsole. P.S.S. This is somewhat of a bummer, because I have written code to make use of the Speed and Position modes, but can't test it until I at least have a reliable communication interface... |
|
#12
|
||||
|
||||
|
Re: Black jaguars: not working
It may not be your problem, but we ordered a RJ11 cable tester to test our CAN cables. We have 9 Jaguars on our board and can't have one of those cables being marginal if we can help it! You can get one for anywhere between $7 and $100+.
We still don't have our first Jaguar working on CAN so we'll see if we get to use that spiffy tester. For what it's worth we're getting this one because of it's good reviews and middle range price. Last edited by Dale : 25-01-2010 at 13:57. Reason: Removed for incorrect info on single terminators |
|
#13
|
||||
|
||||
|
Re: Black jaguars: not working
Quote:
|
|
#14
|
||||
|
||||
|
Re: Black jaguars: not working
I stand corrected on the terminator! In re-reading page 29 of the Jaguar BDC24 getting started guide it clearly says you need a 100 ohm resistor at both ends. I wonder if that's our problem with getting the Jaguars to work via CAN! It would seem unlikely given that we only have one Jaguar in our test setup but it's certainly worth a try.
|
|
#15
|
||||
|
||||
|
Re: Black jaguars: not working
Quote:
The instructions in the Getting Started Guide show a 100 ohm connected between red and green (CAN_L and CAN_H) inside the RS-232 to CAN converter. If you did this, you should have the proper termination. - Bryce P.S. I wonder if the termination needs to occur closer the the black jag than at the converter. Our cable is only 5 inches or so, but maybe even that is too long? |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Serial to CAN Gateway in new Black Jaguars? | dmcguire3006 | Electrical | 54 | 26-01-2010 07:32 |
| Jaguars arent working | yoavh360 | Electrical | 6 | 19-01-2010 17:20 |
| Victors and Jaguars not Receiving Signal? | excel2474 | Electrical | 1 | 12-02-2009 16:41 |
| jaguars suddenly not working | Mr. E | Technical Discussion | 1 | 07-02-2009 21:09 |
| Jaguars working with 2.4 Ghz R/C | NOV8R | Technical Discussion | 0 | 09-01-2009 16:15 |