Figure 4—The main function is mode 1. The AT90S8515 microcontroller receives the ship location data every 2 s from the GPS module, and then saves the data in flash memory every 20 s. At a user-defined time interval, the AT90S8515 sends the location data to the control center, and then receives the control information from the control center via the GSM module.