![]() |
Black jaguars: not working
I am trying to get the new black jaguars working and am getting errors when I attempt to use them. Here is the setup and the errors I am getting:
First, the jaguars have been updated (done by another member of our team). I put the file at http://firstforge.wpi.edu/sf/frs/do/...agbridgeplugin onto the cRIO via FTP according to the directions at http://firstforge.wpi.edu/sf/sfmain/...ects.canjaguar, under the heading "Getting Started." I got the Jaguar code from http://firstforge.wpi.edu/sf/frs/do/...anjaguar_for_c and modified it so that it compiles, as shown in this thread: http://www.chiefdelphi.com/forums/sh...ad.php?t=80706 The code I am using is: Code:
// This code has been simplified for the purposes of posting.Code:
>>>>ERROR: status == -52007 (0xFFF34D9) in sendMessage() in C:/windriver/workspace/Spy/CANJaguar.cpp at line 176Does anyone know what's going on? I would really appreciate any help. Thanks, Kevin |
Re: Black jaguars: not working
I'm realizing that this really isn't a C++ Windriver specific question. Would a moderator mind moving my thread into the general programming forum? Thanks.
|
Re: Black jaguars: not working
Quote:
TI recommends that you use addresses in the range 2 - 63. BTW, the error code is "Operation Timed Out". Also, have you tested your serial cable adapter with a PC serial port and bdc-comm to make sure it's functioning properly? Is your serial cable plugged into the left RJ-12 plug on the Black Jag? Does the plugin appear to be loading properly on the console (you would have to use a network console to see it since your serial port is in use!)? -Joe |
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.:confused: 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... |
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 |
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)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 |
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?
|
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++.
|
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? |
Re: Black jaguars: not working
As a side thought, is your CAN bus properly terminated? To make the CAN bus work it is my understanding that you need approximately a 100ohm resistor joining CANH and CANL on the last Jaguar. The pin outs can be found in the data sheet available here: http://www.luminarymicro.com/products/mdl-bdc24.html. I don't know if this will fix the problem but it may be something in the right direction.
-Ian Programmer, Team 2022 |
Re: Black jaguars: not working
Quote:
|
Re: Black jaguars: not working
Quote:
|
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. |
Re: Black jaguars: not working
Quote:
-Joe |
Re: Black jaguars: not working
2 Attachment(s)
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... |
| All times are GMT -5. The time now is 09:27 AM. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi