![]() |
Re: Jaguars intermittently disconnecting
Quote:
-Joe |
Re: Jaguars intermittently disconnecting
Quote:
Matt |
Re: Jaguars intermittently disconnecting
Quote:
Is there any code on the cRIO that could possibly be causing the set packets to be dropped? Also is the code supposed to send out a global heartbeat signal to the bus? |
Re: Jaguars intermittently disconnecting
Joe,
Check with Andy, I never did fully understand the issue but when he explained it to a C+ programmer, he understood the problem and corrected it. (I am a hardware guy) That team had no further problems through the season and up to the Champ finals. It manifested itself in a very similar manner to what has been described here. It did not show any watchdog error but it seemed to be less than a two second delay. If the robot was running, it would stop for a moment and then run normal. Since many teams used pneumatics last year, most manifestations occurred while observing the compressor. |
Re: Jaguars intermittently disconnecting
Quote:
My theory on EMI works if you think about the compressor kicking on causing a sudden surge of inrush current, or maybe IFI cheaped out and there's no snubbing diodes in those Spikes ;) I don't know, I don't mean to seem stubborn, but I can't find any consistency with a software glitch. Unfortunately I don't usually make it to the shop during the week (new job, don't want to start skipping out just yet!) so I won't be able to look in to this further until next weekend. |
Re: Jaguars intermittently disconnecting
Quote:
I'm fairly sure there is something weird that makes our setup different from NI's since I can find no evidence of a heartbeat signal being sent by the cRIO over the network even though Wind River shows FRC_JaguarHeartbeatTask (or whatever it's called) on the cRIO (though it's always shows as [delay]) and Al, this is a different problem. All the jaguars seem to fail independently of eachother, something a watchdog would not do (the new per-motor watchdogs have been disabled in my test program) |
Re: Jaguars intermittently disconnecting
There's still a heartbeat (in fact, that's what keeps the motors enabled). However, I believe that's handled by the BlackJagPlugin.
|
Re: Jaguars intermittently disconnecting
are you sure the cables are good? i have had finicky cables before. usually a stripping error dmaging a wire or bad soldering on the termination.
also make sure they are firmly put in. did you use 100 ohm resistors for termination? or 120? CAN standard is 120 but for robotics use you need to use 100. |
Re: Jaguars intermittently disconnecting
This sounds very similar to a communication problem that I was having with my Jaguars. I built my serial cable/CAN terminator to the manual's specs which included putting the terminating resister in the shell of the DB9 connector on the cRIO side. This meant that the serial traffic and CAN traffic were running on parallel wire pairs for the length of the cable between the cRIO and the first Jaguar.
I learned from Joe H. that the BlackJag plugin forces the serial connection at 115200bps, which is pretty fast and is more susceptible to noise than slower bitrates. I suspect that CAN traffic was crosstalking with the serial traffic, since I'm using flat wire, and causing the serial connection to fail. My solution was to shorten the serial/CAN cable from 6ft to 2ft, and I haven't had any connection problems since then. Joe also suggested moving the terminating resistor from the DB9 end of the cable over to the RJ-12 end. This would remove all CAN traffic from that cable and further decrease the potential for crosstalk or CAN-induced noise on the serial bus. |
Re: Jaguars intermittently disconnecting
Quote:
In terms of my cables I haven't found anything wrong with them. Again it works fine in BDC-COMM all the way up to pulling the serial connector from the cRIO and plugging it into the laptop, leaving all the cables in the same configuration. I've checked that all connectors are seated properly, and there is no correlation between failure and physical location on the bus. While the idea of interference occurring between the CAN and serial cables is reasonable, again BDC-COMM has shown no issues in communication in an identical setup (minus the cRIO), and under the (non-FRC version) source code runs under the same settings as the cRIO. |
Re: Jaguars intermittently disconnecting
Quote:
Quote:
Thanks, -Joe |
Re: Jaguars intermittently disconnecting
Quote:
Joe, must EACH Jaguar receive a trusted message to stay enabled, or will a trusted message to one Jaguar keep all of them alive? |
Re: Jaguars intermittently disconnecting
Quote:
Quote:
|
Re: Jaguars intermittently disconnecting
Quote:
-Joe |
Re: Jaguars intermittently disconnecting
Quote:
Here's the discussion thread where I outlined my problem and eventually found resolution via a shortened cable. Do my symptoms seem similar to your issue? http://www.chiefdelphi.com/forums/sh...ad.php?t=89733 |
| All times are GMT -5. The time now is 00:51. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi