REPROGRAMMING MODE The SuperStar 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 SuperStar OEM can be set to programming mode by hardware or by software. 1.1 Programming mode setting by hardware a. At the 20 pin header connector (J1), tie pin 6 to the 5V supply b. Apply either 5V supply voltage to the SuperStar or a master reset pulse to the power control input pin (J1-5) Notes: 1. If an SuperStar Development Kit is used, set S1-5 to ON then press the RESET button momentarely. 2. The baud rate for programming mode setting by hardware is 9600. 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 SuperStar 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 SuperStar 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 9600 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 SuperStar. 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 SuperStar to programming mode (if not already done) b. Erase the Operational S/W c. Transfer the new operational S/W data to the SuperStar d. Verify if the operation has been done successfully e. Only PROG.EXE can program the SuperStar and must used on a 32 bits platform. This is the default executable used by the GpsMon software. Type "PROG" at the DOS prompt to get help information on the utility : Example: C:\>PROG PROGRAMMING UTILITY VERSION : 2.207 NOTE : this utility uses the serial port interrupt and is a 32BIT Application PROG FILENAME 1 0 2 0 parameter 1 : Operational binary file parameter 2 : PC Serial Port (1-10) parameter 3 : 0:CMC Binary 1:NMEA protocol parameter 4 : Synchronisation baud rate (300 to 19200) parameter 5 : Data transfer baud rate (300 to 115200) Baud Rate Code : 0:38400 1:19200 2:9600 3:4800 4:2400 5: 1200 6: 600 7: 300 8: 56700 9:115200 Parameters 3,4 and 5 are optional and their default values ALLSTAR 0 1 0 -> CMC BIN, 19200, 38400 SUPERSTAR 0 2 9 -> CMC BIN, 9600, 115200 1.3.1 Programming Utility Algorithm The Programming utility performs the following tasks : 1. Verify the parameter values 2. Verify the SuperStar binary file validity 3. Send the input message $PMCAG,006 (MODE = 1) or message #112 (MODE =0) at the specified synchronisation baud rate 4. Wait for "w" character (@ SYNC_B_R) 5. Start & Verify Erase process 6. Change communication speed to the transfer baud rate 7. Start and Verify Programming process 1.4 Examples 1. If the SuperStar 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 SuperStar 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 SuperStar is in CMC Binary mode @ 19200 and want to set the transfer baud rate @ 19200 : PROG FILENAME 1 0 1 1 4. If the SuperStar sends "w" character @ 4800 : PROG FILENAME 1 0 3 0 In programming mode, the parameter 3 (Mode) is no more important and can be set to "0" or "1". But the synchronisation baud rate parameter 4 has to be set to the programming mode baud rate in use by the SuperStar ( sending "w" character) .