Diagnostics program for Byonics TinyTrak4 - Version 0.1
Sept 5, 2006
www.byonics.com

This program will test the Byonics TinyTrak4 hardware.  It tests the sending and receiveing of serial, the control of the LEDs, PTT, and audio generation, and reads the state of all inputs.  

During normal operation, the yellow LED (carrier detect) should flash on for about 1 second, and then off for about 1 second.  The green LED (GPS state) should flash on for about 1/2 second, and off for 1/2 second.  The red PTT LED should be on for about 2 seconds, and off for about 2 seconds.  When the red PTT LED is on, a connected radio should be transmitting.  With each transmission, you should hear a high tone for about 1/2 second, then silence for 1/2 second, the a low tone for 1/2 second, then silence for the remaining 1/2 second.

Connect the TinyTrak4 to a computer serial port set for 19200 baud, and the TinyTrak4 should send something similar to this on powerup:

Byonics TinyTrak4 Diagnostics v0.1

Press S for serial tests.

FRAM Test 1:Failed (but OK)
FRAM Test 2:Passed
FRAM Test 3:Passed

PTT:1 CD:1 J5:1 J6:1 J11:1 J12:1 Audio:45% J11:99% Batt:24% Temp:48% J12:99% =06
PTT:1 CD:1 J5:1 J6:1 J11:1 J12:1 Audio:45% J11:99% Batt:24% Temp:48% J12:99% =06
PTT:1 CD:1 J5:1 J6:1 J11:1 J12:1 Audio:46% J11:99% Batt:24% Temp:48% J12:99% =06
PTT:1 CD:1 J5:1 J6:1 J11:1 J12:1 Audio:46% J11:99% Batt:23% Temp:48% J12:99% =06

It will continue to send a line similar to the last line until powered off, or switched to serial tests.  

The FRAM tests will test the 8K bytes of memory in the FRAM chip.  The first test does just a read of test 3 data, without a write first, to confirm that the memory persists with power removed.  It should fail the first time the program is run, but pass on successive runs.  the second and third tests write data first, then verify it.

After the FRAM test, the TinyTrak4 sends the state of its input pins.  

First 6 readings are the digital inputs. All report 1 if the corresponding pin in open, floating, at 5V, and report 0 if the pin is closed, shorted to ground, at 0V.

PTT:	The PTT In pin on J1 pin 8.  
CD:	The CD pin on J1 pin 2.
J5:	The SW1 Jumper in the upper right of the PCB.
J6:	The SW2 Jumper in the upper right of the PCB.
J11:	The XA jumper in the upper right of the PCB.
J12:	The 1-W jumper in the upper right of the PCB.

Next listed are the analog pin readings.  They report a percentage off full Analog to Digital reading deflection, where 0% = 0 volts, and 99% is a pin voltage near 1.1V.

Audio:	The sampled audio input from J1 pin 5.  Should read about 45% when no audio present, and random readings between 0% and 99% when loud audio present.  Adjusting the radio volume should adjust the minimum and maximum readings that this pin will see.  

J11:	The sampled voltage from the XA jumper in the upper right of the PCB.  99% = about 1.1V

Batt:	The sampled input battery voltage.  A voltage of 12V should be a reading of about 50%, 6V should be about 25%.

Temp:	The sampled voltage reading from the temperature sensor.

J12:	The sampled voltage from the 1-W jumper in the upper right of the PCB.  99% = about 1.1V

The final number (after the equal sign) is the number of characters free in the outgoing serial buffer displayed in hex.

If s or S is sent as serial input via a terminal program, the TinyTrak4 will enter the serial menu:

Serial Menu
1) 4800 Baud
2) 9600 Baud
3) 19200 Baud
4) 57600 Baud
5) 115200 Baud
6) Serial Echo
ESC) Return to main diag

Selections 1 through 5 change the baud rate of the program, to allow for tests at different speeds.

Selection 6 will allow echoing back of all characters received.  Press ESC to return to the serial menu.

Pressing ESC will return to the normal operation.


