Author Topic: The Computer Side  (Read 5012 times)

Lucas V

  • Guest
The Computer Side
« 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.

Lucas V

  • Guest
Re: The Computer Side
« Reply #1 on: January 25, 2016, 06:55:30 PM »
Due to the change of plans:
  • No more 3rd party QR Code Reader
  • No more UI
Data will be read in from a USB stick. The service will be written in Java.

Lucas V

  • Guest
Re: The Computer Side
« Reply #2 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?

Louis L

  • Administrator
  • Hero Member
  • *****
  • Posts: 564
Re: The Computer Side
« Reply #3 on: January 25, 2016, 10:41:12 PM »
There's always the pen and paper method of archival storage.

Lucas V

  • Guest
Re: The Computer Side
« Reply #4 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

Lucas V

  • Guest
Re: The Computer Side
« Reply #5 on: January 26, 2016, 08:38:24 PM »
I might add a very simple JFrame UI:
  • The user may have more than one root directory in the system identified as "USB Drive", and I can't magically guess which one the program needs to read so I need to ask the user. Having them take out other thumbs drives in the system is inconvenient.
  • The user may want the program to find a specific thumb drive automatically by drive name (instead of choosing one every time the program launches). I'd need to ask for a drive name with a dialog box.
  • For the backups I listed in previous replies I'd need a text box to put the backup SQL code.
  • For simplicity, I want to have the procedure to read the USB to be called by a button click.
Drawings to follow! They should be the simplest of things.
Flowchart also to follow.

Lucas V

  • Guest
Re: The Computer Side
« Reply #6 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.