Skip to content
This repository has been archived by the owner on Feb 5, 2020. It is now read-only.

CSGames-Archive/Embed-2014

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CSGames 2014

Embedded programming competition

Synopsis

Welcome to the CS Games 2014 edition of the embedded programming competition. This year the competition wont be so much about embed centric programmation but more about integration with other system like a computer.

To do so, protocols are designed and used to allow communication between systems. The problem is: the communication channels are not always reliable and some corruption can happen from time to time in an unpredictable manner.

The challenge

This year challenge is to design and implement a communication protocol over an unreliable serial communication channel. An electronic input and acquisition board has been design. It shall communicate with a GUI interface on a remote control computer. The source code is almost finished. The only missing part is the communication protocol to toggle feature on the board from the computer and to send acquisition data from the board to the computer.

The serial communication channel is not to be trusted. Various kind of nasty corruption happen in a sporadic manner and needs to be taken into account. Bit flips, missing bytes, and wire disconnection and reconnection are some of few possible issues happening over the wire.

Material

  • Atmel EVK1100 evaluation board featuring an AVR32 AT32UC3A0512 microcontroller
  • A Serial cable to plug into the UART1 port
  • An USB cable for programmation
  • A C++ QT GUI application has been developed. The GUI is complete and functional. The byte reception parsing and sending needs to be done.

Test setup

The test setup to evaluate your submission to the competition will look something like this:

(EVK1100 board) <---rs232---> (Magic test box(corruption)) <---rs232---> (Computer)

Information to exchange over serial

###Board input to report to the computer

  • 3 momentary push buttons
  • light sensor
  • potentiometer

###Board output to control from the computer

  • LED red intensity
  • LED yellow intensity
  • Variable length text to display on the screen

Quick start

###Flash procedure

To put the EVK1100 board in programming mode, hold the joystick center button and press the reset button

Then

cd csgames_embed_avr32
make flash

###IDE

An eclipse project has been setup for AVR32 development. Just import existing project in eclipse

A Qt project has been setup for linux Qt development with serial port support. Open QtCreator and open csgames_embed_qt the.pro project file.

Correction

To evaluate competitor's submission, the submitted code will be compiled on the evaluator's workstation and flashed to a freshly formatted board.

If the submitted code does not compile, a note of 0 is given.

At most, a reset will be attempted on the board if anything fails while correcting.

There are two milestone. The first one must be fully completed before the points from milestone 2 counts.

Milestone 1 (19 pts + 1 pts)

Milestone 1 will be corrected by manually evaluating that every feature works

PC -> Embed communication

  • control LEDs ... (2pt/LED) 4 pts
  • send text to display ... 6 pts

Embed -> PC communication

  • report button status ... (1pt/button) 3 pts
  • potentionmeter value ... 3 pts
  • light sensor value ... 3 pts
  • bonus points if full analog sensor value is transmitted (10 bits) ... + 1 pts

Milestone 2 (30 pts)

Milestone 2 will be evaluated based on the documentation and a test device that introduce corruption in the stream (if you implemented that feature).

This milestone will NOT be corrected if no documentation if provided

  • documentation of feature and protocol design ... 8 pts
  • protocol transmission efficienty ... 4 pts
  • protocol robustness to error ... 18 pts
    • ie: bit flip, duplicated bytes, missing bytes, communication interruption

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 83.5%
  • C 9.1%
  • Makefile 5.4%
  • Objective-C 1.4%
  • QMake 0.6%