ADT-200A - updating firmware - the bare metal way

Hans, HB9CBU, has created a new firmware version 1.36e for the ADT-200A . This release has a few very much needed updates I talked about with Hans - one of them making it possible to create a Rig file for CW Skimmer (which I am working on now).

Unfortunately, updating the firmware turned out to not be an easy task. As I am on Mac OS X I looked for an easy way to talk to the serial device of the ADT-200A. The ADT-200A is connected via USB using the internal USB-to-Serial converter in the TRX. As such the TRX is recognized as device "/dev/cu.usbserial-1004079" on my Mac.

After a bit of fiddling I came up with the following little Python script:

'''
Created on 07.12.2012

@author: frgo
'''

import serial

def update

    ser = serial.Serial( '/dev/cu.usbserial-1004079', 9600 )
    ser.write( '$DNL?' )
    ser.write( '\r' )
    ser.read()
    p0 = open("/var/data/frgo/Funk/ADT-200a/Firmware/Hardware/1.36e/136e_p0.dat", "r")
    data = p0.read()
    ser.write( data )
    p0.close()

def main():
    update()

if __name__ == '__main__':
    main()


This script requires PySerial . If you want to use this script you have to adapt the serial device to match your ADT-200A and also the path to the firmware file. You should be able to find the relevant places in the script above - if not, this script is not meant for you ;-)

73, Frank DG1SBG


Beliebte Posts aus diesem Blog

SLIME, Lisp, Editing - the lost slime-close-parens-at-point

Compiling ACE+TAO on Mac OS X