![timecode systems AirGlu2 User Manual Download Page 19](http://html1.mh-extra.com/html/timecode-systems/airglu2/airglu2_user-manual_1117224019.webp)
UK Timecode Systems Ltd. Unit 6, Elgar Business Centre, Moseley Road, Hallow, Worcester.
WR26NJ. UK
Updating Firmware
UFCK>length(=0x0A)+First ten bytes of update file+‘
\
n’
Binary command with an ASCII response to check the version of an update file. The
update type and version are held within the first ten bytes of the update file so these
need to be included in the query.
The response will be UFCK=type, version, flag
type
–
0=unknown, 1=main FW, 2=FPGA, 3=Ext
version = update version * 100
flag
–
0=Can’t use, 1=Ok t
o proceed, 2=same version, 3=older version than current
UFST=n
Initiate a firmware update where n = overall size of ‘update file’ to be transferred.
The response will give the maximum size of update data that can be transferred in
each ‘UFDA’ block. i.e.
UFST=106.
Currently this is limited to a 106 byte maximum
but, in the future and if transferred locally using say the serial interface, this may be
increased
.
This command may take up to 3 seconds to complete depending on the size of the
update.
Please use this command sparingly as each call forces an erase of the internal Flash
memory update buffer.
UFDA> a data-
block + ch ‘
\
n’
This is a binary command where blocks of data are sent sequentially starting at
address zero and progressing through until all the file is transferred. The data is sent
in binary format, where;
length is a single byte length of the entire message to follow (not
including the final ‘
\
n’). Therefore, it is the length of the data block plus
five (address and checksum bytes).
Currently the length value should
not exceed 111(0x6f). With the final ‘
\
n’ character this is the current
maximum total of 112bytes of data following the length byte.
address is a three-byte, little endian, relative address of the data block
from start of file.
data-block is the block of data from the file
checksum is a 2’s compliment 16bit modular checksum of each of the
address and data-block bytes. This is computed by successive addition
of each of the (8-bit) bytes starting with the address bytes and ending
with the final data byte and discarding any overflow beyond 16 bits.
The resultant 16bit word is then two’s complimented and appended,
little endian, to the end as the last two bytes of the message.
The responses are as follows
UFDA=0
All fine
–
ready for next block
UFDA=1
All fine
–
Transfer complete
UFDA=2
Checksum error - Please Repeat message
UFDA=3
Address out of sequence
UFDA=4
Length error
–
or UFST has not been issued