Specifications
AVIDdirector-M2M™ Technical Reference Guide
February 5, 2009 ©AVIDwireless 2004-2009 All Rights Reserved Page 48 of 55
Appendix 8 – Reprogramming the PSoC Firmware
The following procedure is used to reprogram the PSoC Firmware.
NOTE: ONLY DO THIS IF ADVISED BY AVIDWIRELESS TECHNICAL SUPPORT. IF THIS FAILS OR IS
INTERRUPTED THEN YOU WILL HAVE TO SEND YOUR DEVICE BACK TO AVIDWIRELESS FOR FACTORY
REPROGRAMMING UNLESS YOU HAVE AN IMSYS DEVELOPER TRACE ADAPTER.
1. Download the PSoC HEX file to AVIDdirector-M2M
Connect the AVIDdirector-M2M debug pod as described in Appendix 7 “Programming the M2M Java Firmware” to
the device and to your PC. Connect a reliabile +12 volt supply to the AVIDdirector-M2M device and enter the Ish
shell that give you a .>’ prompt. At that point enter ‘recv’ to download a file to the AVIDdirector-M2M device.
> recv
Receiving file(s)...Done
> dir
-rw-r--r-- 1 root root 3373 March 2 13:02 M2MApp.ini
-rw-r--r-- 1 root root 3178 March 2 13:02 M2MApp.bak
-rw-r--r-- 1 root root 3178 March 2 13:02 M2MApp.default
-rw-r--r-- 1 root root 72538 March 3 13:38 psoc.hex
2. Run the 'testhw' application to reprogram the firmware.
Ensure your AVIDdirector-M2M device is powered from a reliable 12 volt supply with sufficient amperage. From the
Ish shell run ‘testhw’. This is a general purpose test program that allow direct user control of the M2M I/O ports and
to display information regarding the AVIDdirector-M2M device. One of its functions is to reprogram the PSoC
firmware.
> testhw
AVIDdirector-M2M Hardware API Tester Ver. 1.30.13, 3/4/05 12:07p
Enter "command" port pin value where "command" is one of:
read, write, setdin, setdout, setain, setaout [PORT] where
PORT is TTL1-6, HVC1-4, SERIAL2RX/TX/RTS/CTS, EXT1-3 or the PSoC port and pin
Other commands are: program, reset, led [System,Radio], memory, version, quit
TestHWAPI > program psoc.hex ß Enter this to reprogram the PSoC with the hex image
Loading PSoC file psoc.hex 72538 bytes