Redshift Project Depot

FRC 2016 (Stronghold) => Scouting => Topic started by: Lucas V on January 16, 2016, 11:39:06 PM

Title: The Computer Side
Post by: Lucas V on January 16, 2016, 11:39:06 PM
The Computer side consists of a third-party QR Code Reader for Windows, which will read the QR Code from the tablets, and a Windows application written in C#, which will parse through the text file obtained from the QR Code and save its contents to the database. The C# program will also keep track of the amount of submissions per scout/tablet/match. An HP Stream tablet running Windows 10 will run the Computer Side.
Title: Re: The Computer Side
Post by: Lucas V on January 25, 2016, 06:55:30 PM
Due to the change of plans:
Data will be read in from a USB stick. The service will be written in Java.
Title: Re: The Computer Side
Post by: Lucas V on January 25, 2016, 07:14:51 PM
An idea for the Computer Side service:

Anything can go wrong during the competition, but we can't completely halt the scouting process if something does go wrong. So as I was playing Xbox I thought of a few backup solutions for the service.

1- Service can't connect to Database.
If the database is still running but the program refuses to connect, we can make a very simple UI with a text box. The program will read the contents of the USB stick and generate SQL INSERTs. These can be put raw in the text box, so that the user may copy and paste the code directly onto MySQL to keep scouting going.

2- Database is down/not working properly/needs to be changed.
While we try to find a solution to the problem, the Service can archive the files it reads from the USB Stick. Once it is able to reconnect it can save all of the archived files to the Database.

What do you think? Anything other backup plans?
Title: Re: The Computer Side
Post by: Louis L on January 25, 2016, 10:41:12 PM
There's always the pen and paper method of archival storage.
Title: Re: The Computer Side
Post by: Lucas V on January 26, 2016, 08:17:54 PM
True, but we want to avoid that as far as we can. The ultimate goal of this project was to replace the pen-and-paper method with something smoother and less tree-killing...  :D
Title: Re: The Computer Side
Post by: Lucas V on January 26, 2016, 08:38:24 PM
I might add a very simple JFrame UI:
Drawings to follow! They should be the simplest of things.
Flowchart also to follow.
Title: Re: The Computer Side
Post by: Lucas V on January 26, 2016, 08:39:22 PM
By the way, I already have proofs of concept for finding a USB drive, getting type, name, using it, etc.