FMS Offseason E-stop cannot be undone

We are using the latest FMS Offseason software from: Off Season Events | FIRST

Version: 2015_FMSOffSeason_Package_2_30

We’ve had an oddity where if the FMS operator selects the ‘E-stop’ option during a round, the e-stop will not be reset through any means. We have restarted the robot with repluggin the battery, reset comms, rebooted driver stations and FMS computer, still ‘E-stopped’ even if nothing is connected to it. We can still connect directly to the robots and they aren’t E-stopped.

What seems to be happening is that the Database is being written to when they’re E-stopped, but some dev on the software forgot to make it toggle. Reinstalling the software resets the E-stops.

To get around this, I’ve created a few batch scripts that will backup and reset the FMS database without having to reinstall. See the .zip attached below.

DISCLAIMER: As always, review any scripts you find online, I’m not responsible if you don’t know batch :wink:
-ChiefDelphi Doesn’t support [spoiler], hurrah for text everywhere.

Backup:

  1. Download and extract .bat files to desktop

  2. Create shortcuts for each .bat

  3. For each shortcut, right click->Properties->Shortcut Tab->Advanced->Run as administrator.

  4. Start FMS, setup your events and teams in the scheduler.

  5. Exit FMS and audience display, run the ‘FMSData-Backup’ shortcut. Follow any obvious on-screen prompts. If successful, you should be able to exit with any key after a few seconds.

Test this before you need it :slight_smile:
Restore:

  1. Start FMS, enter in team numbers and activate round in practice match as normal.

  2. E-stop a robot.

  3. After round, exit FMS and Audience display.

  4. Run ‘FMSData-Restore’ shortcut. Should exit with any key after a few seconds.

  5. Restart FMS software, go back to practice match tab, you should no longer see red e-stop buttons. Your schedule should be the same from when you backed it up.

Misc:
FMSData-RestartService.bat will restart the FMS base service in case the above scripts don’t succeed.

I’m hoping I looked over something, but if not, this was a fun experiment.

FMSData-Backup.zip (1.92 KB)


FMSData-Backup.zip (1.92 KB)

Our student who is running the FMS tomorrow discovered the same E-stop issue last night. I didn’t have time to investigate further.

Nice creative solution to the problem!

Another option for people who are comfortable with SQL databases would be to go in and manually clear the flag. I don’t have a computer with the FMS installed handy right now, but I might look into making a script for that tonight.

I opened a bug in the CollabNet site here.

As per Alex’s comments on the bug I filed, it looks like there’s no need to do anything with the database.

Simply restarting the two FMS services resolves the issue for me.

I may have overlooked that in the process of creating the database workaround. I’l be testing that out at our event tomorrow and confirm.