REPROGRAMMING MODE The ALLSTAR OEM has an integrated reprogramming facility. The OEM circuit card assembly is forced to enter reprogramming mode when the voltage at the input pin DISC_IP_1 is HI. More information on this mode is available on request. 1. PROGRAMMING MODE PROCEDURE The ALLSTAR OEM can be set to programming mode by hardware or by software. 1.1 Programming mode setting by hardware a. At the 26 pin ZIF connector (J1), tie pin 9 to the 5V supply. b. At the 20 pin header connector (J3), tie pin 6 to the 5V supply c. Apply either 5V supply voltage to the ALLSTAR or a master reset pulse to the power control input pin (J1-5 or J3-3) Notes: 1. If an ALLSTAR programming adapter (CMC #220-600932-000) is used, set S2 to PROG then apply 5V supply voltage or press S1 if supply voltage is already applied. 2. The baud rate for programming mode setting by hardware is 19200. 1.2 Programming mode setting by software To set the programming mode by software, enter message $PMCAG,006 when in NMEA mode or message #112 when in Binary mode. In either case the ALLSTAR will be forced to enter the programming mode at a specific baud rate. The commands are sent at the operating baud rate. Once these commands are decoded, the ALLSTAR will enter programming mode at the specified baud rate, independently of the operating baud rate. Examples NMEA : $PMCAG,006,19.2*7A CMC Binary : 0x01,0x70,0x8F,0x01,0x40,0x41,0x01 The programming utility will send one of these commands to force the programming mode avoiding the need to tie the DISC_IP_1 pin to 5 volts. It is useful when the system does not provide external access to the DISC_IP_1 pin. 1.2.1 HOW TO VERIFY IF IN PROGRAMMING MODE OR NOT Once in programming mode, the ALLSTAR sends the following information to both communication ports : Ready !!! wwwww Character "w" means waiting for data exchange and will be repeated until the programming utility starts to send data. The baud rate will be 19200 if the programming mode setting is done by hardware and any other baud rate if done through operational software command. 1.2.2 WHICH PORT TO USE The MAIN port or the AUXILIARY port can be used to program the ALLSTAR. It is recommended to stop any communication on the unused port for proper operation in programming mode. 1.3 ROGRAMMING UTILITY The programming utility "PROG.EXE" is used to : a. Set the ALLSTAR to programming mode (if not already done) b. Erase the Operational S/W c. Transfer the new operational S/W data to the ALLSTAR d. Verify if the operation has been done successfully e. PROG.EXE can program the AllStar and must used on a 32 bits platform. This is the default executable used by the GpsMon software. The 16 bits version (usable with AllStar only) in named PROG16.EXE. Type "PROG" at the DOS prompt to get help information on the utility : Example: C:\>PROG PROGRAMMING UTILITY VERSION : 1.104 NOTE : this utility uses the serial port interrupt Ex: PROG UGPSO.SUM 1 0 1 0 parameter 1 : Operational S/W filename parameter 2 : PC Serial Port (1or2) parameter 3 : 0:CMC Binary 1:NMEA protocol parameter 4 : Synchronisation baud rate (300 to 19200) parameter 5 : Data transfer baud rate (300 to 38400) Baud Rate Code : 0:38400 1:19200 2:9600 3:4800 4:2400 5: 1200 6: 600 7: 300 Parameters 3,4 and 5 are optional and their default values are: 0 1 0 1.3.1 PROG.EXE PARAMETERS The PROG.EXE utility requires the following parameters : PROG FILENAME, COM# , MODE BAUD_RATE, TRANSFER_B_R Parameters MODE, BAUD_RATE and TRANSFER_B_R are optional and have the following default values : FILENAME : New ALLSTAR binary file (provided by CMC) COM# : PC Serial Communication Port presently used COMM 1 : 1 COMM 2 : 2 MODE : Actual ALLSTAR operating mode CMC Binary : 0 NMEA : 1 Default Value : 0 (CMC Binary) SYNC_B_R :Synchronisation Baud Rate 38400 : 0 19200 : 1 9600 : 2 4800 : 3 2400 : 4 1200 : 5 600 : 6 300 : 7 Default Value : 1 (19200) Note: This baud rate will be used by the ALLSTAR to start data exchange with the Programming utility when in Programming mode. TRANSFER_B_R : Data Transfer Baud Rate (see SYNC_B_R description for possible values) Default Value : 0 (38400) 1.3.2 Programming Utility Algorithm The Programming utility performs the following tasks : 1. Verify the parameter values 2. Verify the ALLSTAR binary file validity 3. Send the input message $PMCAG,006 (MODE = 1) or message #112 (MODE =0) at the specified baud rate (SYNC_B_R parameter) 4. Wait for "w" character (@ SYNC_B_R) 5. Start & Verify Erase process 6. Change communication baud rate to the TRANSFER_B_R value 7. Start and Verify Programming process 1.4 Examples 1. If the ALLSTAR is forced into programming mode via the DISC_IP_1 input pin, only the following command is necessary : PROG FILENAME 1 (if COMM 1 in use) (see Default Value for other parameters) 2. If the ALLSTAR is in NMEA mode @ 9600 : PROG FILENAME 1 1 2 0 This forces the utility to send NMEA message $PMCAG,006 on COMM 1 @ 9600 and to transfer the binary data @ 38400. 3. If the ALLSTAR is in CMC Binary mode @ 19200 and want to set the transfer baud rate @ 19200 : PROG FILENAME 1 0 1 1 4. If the ALLSTAR sends "w" character @ 4800 : PROG FILENAME 1 0 3 0 In programming mode, the MODE parameter is no more important and can be set to "0" or "1". But the SYNC_B_R parameter has to be set to the programming mode baud rate in use by the ALLSTAR ( sending "w" character) .