Diagnostics program for Byonics TinyTrak4 - Version 0.4
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, EEPROM, and reads the state of all inputs.  
TinyTrak4 is pre-loaded with this firmware from the factory.

During normal operation, the four LEDs should sweep a single light back and forth.

A audio sine sweep from 0Hz to 2.5 KHz is generated repeatedly on audio output.  Each sweep is about 1 second long.
PTT should be on for 4 sweeps, and off for 4 sweeps, and when it is on, a connected radio should be transmitting.  

Connect the TinyTrak4 to a computer serial port set for 19200 baud using a null modem adapter and gender changer, and the TinyTrak4 should send something similar to this on powerup:

Byonics TinyTrak4 Diagnostics v0.4[a|b]

Press S for serial tests.

PTT In:1 CD:1 Audio:50%-50%/50%-50% Batt:12.09V Temp:026E:75.90F JP1:45% JP2:41% JP3:38% JP4:38% JP5:99% =08
PTT In:1 CD:1 Audio:50%-50%/50%-50% Batt:12.09V Temp:026E:75.90F JP1:49% JP2:44% JP3:40% JP4:39% JP5:99% =08
PTT In:1 CD:1 Audio:50%-50%/50%-50% Batt:12.06V Temp:026E:75.90F JP1:51% JP2:46% JP3:42% JP4:40% JP5:99% =08

JP5 should show 99%, since it has a pull up resistor.  All others will show something less.  Shorting JP1 - JP5 with a shunt to the ground pin alongside it should report back 00%.

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

The first 2 readings are the digital inputs. Each reports 1 if the corresponding pin is 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.

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:	This is that min and max audio input sampled from J1 pin 5 at 2 different voltage references.  The first pair of percentages are the min and max reading relative to a 5V reference.  The second two are min and max with a 1.1V reference.  The second pair is usually about double range of the first pair, if not clamped at the extremes. Should read about 50% when no audio present, and readings between 0% and 99% when audio present.  Adjusting the radio volume should adjust the minimum and maximum readings that this pin will see.  

Batt:	The sampled input battery voltage.  

Temp:	The sampled voltage reading from the temperature sensor.  The first 4 digits are the raw hax values, and then is the calculated temperature.

JP1 - JP5:	The sampled voltage from the JP1-JP5 jumper inputs.  0% = 0V, 99% = 5V.

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

This data is sent out both serial ports.

If s or S is sent as serial input (via either serial port) 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
7) EEPROM Test
8) EEPROM Erase
ESC) Return to main diag

Selections 1 through 5 change the baud rate of the program, to allow for tests at different speeds.  ESC to return to the serial dump at the new baud rate.  The baud rate is reset when power is removed.

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

Selection 7 will test the on-board EEPROM memory.  It will likely report 

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

The first time it is run, and 

EEPROM Test 1:Passed
EEPROM Test 2:Passed
EEPROM Test 3:Passed

the second time.  This shows that the settings from Test 3 are still saved in EEPROM, even after power is cycled.

Selection 8 will set all EEPROM to 0, and should cause EEPROM Test 1 to fail the next time it is run.

Pressing ESC will return to the normal operation.




