mySmartUSB-commands (release 07/2010)
=====================================

content:
  1. description
  2. commands
  3. batch-using and example


1. description
==============

The firmware of the mySmartUSB programmer has
beside the specific protocols (myMode, STK500, AVR9111/910/109)
an own protocol available to address additional features
of the mySmartUSB programmer.

Use the baud rate according to the actual mode.

protocol          Light   MK2    MK3
------------------------------------

AVR911/910/109      X      X      X
(baud 19200)

STK500              X      -      X
(baud 115200)

myMode              -      -      X
(baud 500000)


2. commands
===========

This additional protocol is activated by a identifier
which had to be  put in front of each command.

myAVR-commands, starting with 0xE6=''=Alt+0230, 0xBA=0186

"浺" + command ( 0xE6 0xB5 0xBA 0xB9 0xB2 0xB3 0xA9 )


command Light    MK2    MK3    description
----------------------------------------------------------------
   
+        X       X       X     turn on board power supply

-        X       X       X     turn off board power supply

r        X       X       X     release reset on the attached board

i        X       X       X     return the Status of the programmer

I        -       -       x     return ProgMode

m        -       X       X     switch the programmer in myMode

p        -       X      (X)    switch the programmer in programming mode

d        -       X       X     switch the programmer in pass-through mode RS232

s        -       -       X     switch the programmer in STK500 mode

a        -       -       X     switch the programmer in AVR910 mode

q        -       X       X     switch the programmer in quiet mode

t        X       -       -     return emulationtype AVR911 ('a') or STK500 ('s')

v        X       X       X     return version as string
                               e.g. info ="2.03.1457"

C        -       X       X     turn on RescueClock

c        -       X       X     trun off RescueClock

R        X       -       -     reset programmer

B + xx   -       X       -     set baud rate; next Byte is UBRRL;
			       8MHz: 51=19200, 34=28800,25=38400, 16=57600, (12=76800), 8=115200

W        X       -       -     powerOnBurn off

w        X       -       -     powerOnBurn on

%        X       -       -     return powerOnBurn on ('w') or off ('W')

3        X       -       -     switch to 3V
   
5        X       -       -     switch to 5V

^        X       -       -      return board nominal voltage '3' or '5' Volt

R        -       -       x     write current mode and ProgMode to EEPROM 


confirmation from the programmer: [""+infos]+""+code+"\r\n"


3. batch-using and example
==========================

To perform a special command, you can call _mySmart.cmd.

This file has to be called with 2 parameters:
1.para=COM-port
2.para=CmdTxt-file

samlpe: _mySmart.cmd COM3 BoardPowerOn.txt
