Branch: refs/heads/master Home: https://github.com/ciasaboark/apparatus-templi Commit: 26ed40e5f694603bde2093fc772420711c38fdfa https://github.com/ciasaboark/apparatus-templi/commit/26ed40e5f694603bde2093fc772420711c38fdfa Author: Jonathan Nelson <ciasaboark@xxxxxxxxx> Date: 2014-01-26 (Sun, 26 Jan 2014) Changed paths: M Coordinator/drivers/org/apparatus_templi/LedFlash.java M Coordinator/src/org/apparatus_templi/Coordinator.java M Coordinator/src/org/apparatus_templi/SerialConnection.java A Coordinator/src/org/apparatus_templi/SerialConnectionOld.java Log Message: ----------- More work on serial interface LedFlash.java: -extra debugging statements added Coordinator.java: -application layer protocol changed: -added one byte to the front of the header to hold transmission type and protocol version -transmission type is bit 7, 0 is text transfer, 1 is binary -bit 6 reserved -bit 5 is always 1 (this will keep the header from ever having the same value as the terminating LF byte) -bits 0-4 are protocol version (0 0000) for this initial version -sendCommand() now implimented (not tested). Creates a byte[] of the message to transmmit -uses new SerialConnection interface SerialConnection.java: -new code based off the stock arduino example -attempts to auto connect, does not use serial port given in command line (yet) -added write(byte[]) to send data on the serial line (not tested).