Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   General Forum (http://www.chiefdelphi.com/forums/forumdisplay.php?f=16)
-   -   THE HORROR! THE HORROR! (http://www.chiefdelphi.com/forums/showthread.php?t=114760)

Ether 09-03-2013 00:54

Re: THE HORROR! THE HORROR!
 
Quote:

Originally Posted by Kevin Sevcik (Post 1245384)
I'd need to figure out how to generate the FRC heartbeat.

Is that documented somewhere, or would you have to put a sniffer on the line to analyze the traffic?



Kevin Sevcik 09-03-2013 01:02

Re: THE HORROR! THE HORROR!
 
Quote:

Originally Posted by Ether (Post 1245392)
Is that documented somewhere, or would you have to put a sniffer on the line to analyze the traffic?

I have no idea. I've put zero effort into the project at the moment. I've run serial sniffers before for various work projects, so I have a reasonable idea how to go about it. I'm hoping it's actually just documented somewhere, though.

Radical Pi 09-03-2013 02:00

Re: THE HORROR! THE HORROR!
 
Quote:

Originally Posted by Kevin Sevcik (Post 1245394)
I have no idea. I've put zero effort into the project at the moment. I've run serial sniffers before for various work projects, so I have a reasonable idea how to go about it. I'm hoping it's actually just documented somewhere, though.

If you roll your jaguar back to the factory firmware (available at the bottom of VEX's product page), the "trusted mode" heartbeat isn't required. Last I heard, the trusted mode stuff isn't documented to prevent people from replicating it (the code is in the closed-source NetworkCommunication library. Security though obscurity I guess). AFAIK, the factory firmware is functionally identical to the FRC one, minus the heartbeat.

You can also find the source code for a slightly older version of both the factory firmware and bdc-comm in TI's RDK-BDC24 package. I have no idea whether VEX plans on making a similar release with the newest code.

Team23pitboss 09-03-2013 11:21

Re: THE HORROR! THE HORROR!
 
Quote:

Originally Posted by Kevin Sevcik (Post 1245384)
Black Jags are serial controllable and have current control modes plus built voltage and current feedback. So all you would need for a battery tester is a serial port (or USB-Serial adapter), a serial to Jaguar adapter, a Black Jaguar that most every FRC team has 1 of, and a power resistor you can get at Mouser or your local electronics surplus store. Battery on the input side, power resistor on the output side, tell the Jag to dump X amps into the resistor, then record and plot your feedback. Primary difficulty is making the program to control the Jaguar. Either I'd need to figure out how to generate the FRC heartbeat, or you'd have to flash the Jag with custom firmware.

Wow, that is an absolutely brilliant idea I think that our electronics guys would probably be interested in trying something like this out at some point. It also give me something to do with all the ancient computers with serial ports I have floating around my house.

Jefferson 09-03-2013 12:01

Re: THE HORROR! THE HORROR!
 
Quote:

Originally Posted by Kusha (Post 1245284)
What language did you guys program in? (Curious)

We use c++.

Ether 10-03-2013 09:44

Re: THE HORROR! THE HORROR!
 
Quote:

Originally Posted by Team23pitboss (Post 1245447)
It also give me something to do with all the ancient computers with serial ports I have floating around my house.

You can turn those ancient computers with serial ports into test equipment, like for example a poor-man's logic analyzer to inspect the timing of digital signals like encoder pulses. Or DIO set by tasks to inspect scheduling timing and jitter.



Team23pitboss 10-03-2013 10:48

Re: THE HORROR! THE HORROR!
 
Quote:

You can turn those ancient computers with serial ports into test equipment, like for example a poor-man's logic analyzer to inspect the timing of digital signals like encoder pulses. Or DIO set by tasks to inspect scheduling timing and jitter.
I recently turned an old PCI-X sound card I had in an old gateway into a low-voltage oscilloscope and it happens to have a built in mic input and radio antenna so I can analyze radio and sound frequency as well (if I ever have the time to really muck around with it). I have never actually used a serial port for anything so my lack of familiarity could be a bit of a hindrance as far as creating makeshift equipment is concerned, but maybe over the summer...

Chris is me 10-03-2013 10:59

Re: THE HORROR! THE HORROR!
 
In the two regionals I've attended so far, I have only ever seen one robot lose comms. I didn't watch every match, but it's been one of the best years for this sort of thing since 2009 in my experience.

Kevin Sevcik 10-03-2013 11:29

Re: THE HORROR! THE HORROR!
 
624 was having comms problems at Lone Star, but they definitively tied it to a radio reboot under heavy current draw. Unfortunately, they've swapped out everything, sometimes twice, in their attempts to fix it. I know they were fine in their last quals match, but I don't know if that stayed that way during the elims.

Ether 10-03-2013 14:08

Re: THE HORROR! THE HORROR!
 
Quote:

Originally Posted by Team23pitboss (Post 1245885)
I have never actually used a serial port for anything so my lack of familiarity could be a bit of a hindrance as far as creating makeshift equipment is concerned, but maybe over the summer...

Borrow Jan Axelson's book Serial Port Complete at your local library. It will get you up and going in no time.

If your local library does not have it, use inter-library loan to get it.

Or buy it.

The demo code and code examples downloadable here show how to read and write some of the RS232 control pins, and how to read the Pentium's RDTSC 64-bit nanosecond timer.



Ether 10-03-2013 14:16

Re: THE HORROR! THE HORROR!
 
Quote:

Originally Posted by Team23pitboss (Post 1245885)
I recently turned an old PCI-X sound card I had in an old gateway into a low-voltage oscilloscope

I'm running Lucid Linux with Xoscope and Osqoop on a Gateway PA6. All you need is to download the Lucid Live CD ISO and burn it and boot from it, then get online and download the scopes.

The trickiest part (but hardly difficult though) is to make a small passive circuit with caps and resistors to divide down the signal voltage and block the mic DC power coming out of the laptop mic port.

It will work with just about any reasonable signal voltage, given the appropriate voltage divider. The limitation is the 96KHz sampling frequency. The upside is that it will store hours and hours of data (limited only by available disc space).


epylko 11-03-2013 20:06

Re: THE HORROR! THE HORROR!
 
Quote:

Originally Posted by Alpha Beta (Post 1245357)
Our spinning was due to a failed battery. We had 2 separate instances in elims where batteries showed 13 volts on the charger and dropped to 6 volts within seconds during autonomous.

Our team had a problem like that this year - except it wasn't a failed battery. The robot took a hit in an earlier match which made the DC connector on the AXIS camera touch the metal on the back of the camera (which is metal. Doh!) The back of the camera was touching the frame which caused some fun grounding issues. The driver station was showing the battery around 7V.

Fortunately, Rob the head robot inspector, saw this once before with an AXIS camera and was able to point this out to us.

pfreivald 11-03-2013 20:26

Re: THE HORROR! THE HORROR!
 
Quote:

Originally Posted by epylko (Post 1246778)
Fortunately, Rob the head robot inspector, saw this once before with an AXIS camera and was able to point this out to us.

Hah! 1551's pain was your gain! (Rob's first experience with the extreme wonkiness that can come from a frame-grounded Axis camera was at our expense.)

Nuttyman54 11-03-2013 22:41

Re: THE HORROR! THE HORROR!
 
Quote:

Originally Posted by Jared341 (Post 1245359)
I thought bandwidth caps were in place...?

Based on reports from this thread and others, it seems that the bandwidth limits are either not in place or not working, at least not at all events. It also seems that the Quality of Service packet prioritization is not working properly either. Several people have reported needing to turn off or turn down camera resolutions to resolve lag and loss of comms issues not only for their robot but for others in the same match.

I was not at any of these events nor do I know anyone personally who has reported these symptoms, so it's second hand information at best. The fact remains that turning camera feedback to the driverstation down or off seems to have resolved many of the issues at events. Hopefully FIRST will address this in some regard in an update or blog post soon.

coalhot 11-03-2013 23:53

Re: THE HORROR! THE HORROR!
 
Quote:

Originally Posted by Team23pitboss (Post 1245233)

I really hope I'm wrong but it looks to my untrained eyes like the FMS could possibly be as unstable as it was last season. I have already watched multiple robots begin to spin wildly mid-match while watching the Florida and Texas streams. If you don't already know Team 23's season was brought to an end by a round loss due to a possible FMS malfunction in the quarter-finals last season and the team has been especially wary of a repeat of this ever since. Do you think the FMS will be an issue as it was for some teams last year and if it is what can FIRST do about it?

I'd like to ask that if you'd like to blame the field for the issues, you should post the code and pictures of your electronics/wiring so that we could look at it. You can't criticize the field without full disclosure of the code. I say this because I was talking to a few CSA's at a week two event, and more than half of the issues with FMS malfunctions were robot-based and not field-based. Many of us are eager to blame the field equipment on faults, but that's rarely the case. Usually it's something with the robot.

Also, what's supposed to happen when multiple robots trip the bandwidth limit?


All times are GMT -5. The time now is 07:54.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi