# serrex command file # # There are a few keywords which change the behaviour of the program # They have a second argument which controls the behaviour # You should be able to call them multiple times within the command # file to change behaviour on the way # Keywords: # Debug # AddAddresses # OverWrite # # The commands sent to the Rex 6000 are distinguished by a number # Some commands have further arguments # Possible commands are: # # 1 start session # # 2 get firmware version # # 3 get Rex 6000 time # # 4 set Rex 6000 time to computer time # # 5 defragment Rex 6000 memory # # 6 end session # # 7 read Rex 6000 ID and misc things # # 8 pp1 pp2 read logical page(s) pp1 (to pp2) (pp1 and pp2 are # interpreted as integers, first page is 0, use # pp1=pp2 for a single page) # # 8 pp1 pp2 filename same as before but writes read data (plus addresses) # into file 'filename' # # 9 pp1 pp2 read physical page(s) pp1 (to pp2) (pp1 and pp2 are # interpreted as integers, first page is 0, use # pp1=pp2 for a single page) # # 9 pp1 pp2 filename same as before but writes read data (plus addresses) # into file 'filename' # # 10 and 11 not yet working !!!!! # 10 PPPP OOOO n ascii-value # write into userspace n consecutive characters with # the value 'ascii-value' (integer from 0 to 255) # onto page PPPP at offset OOOO # maximum of the integer n is 509 (or so) # 10 PPP1 PPP2 OOO1 OOO2 LLLL # write userspace starting at page PPP1 at offset OOO1 # to page PPP2 at offset OOO2 in chunks of LLLL bytes # 11 PPPP OOOO LLLL write firmware LLLL bytes on page PPPP at offset OOOO # 11 PPP1 PPP2 OOO1 OOO2 LLLL # write firmware starting at page PPP1 at offset OOO1 # to page PPP2 at offset OOO2 in chunks of LLLL bytes # # 12 PPPP erase firmware block (8 following pages, i.e. 64k) # set debug level (0 to 2) # 0 very little output # 1 + main routines and responses # 2 + system routines # 3 + secondary routines Debug 1 # Write memory addresses into log files (1) or not (0) # Default is 0 AddAddresses 1 # Delete and write anew (1) or append to existing files 0 # Default is 0 OverWrite 1 # first command has to be (this opens a Rex communication session) 1 # here variable commands are allowed 8 254 255 full_logical.log #9 0 3 part_physical.log # last command has to be (this closes the session) 6