Heat Stroke Notification

"An NS man collapsed during jungle training and died of heat stroke in Brunei". Heat stroke is defined as a body temperature of greater than 40.6 C due to environmental heat exposure with lack of thermoregulation. This is distinct from a fever, where there is a physiological increase in the temperature set point of the body.

Design a system where body temperature is monitored and when a 2 C rise in temperature is detected, an emergency SMS with location information is sent.


Program I: Send an SMS with location information

  1. Observe and understand the GPS Program
  2. Observe and understand the Send SMS Program
  3. Use our map utility to learn how to a create an URL of a map with lat and lng values.
  4. Combine the above steps to obtain a program that SMS a link to a map

Program II: Measure Temperature and Compare

  1. Observe and understand the Measure Temperature Program
  2. Observe any of the digital output program to learn about loops and delay
  3. Modify the Measure Temperature Program so that it
    • get an initial body temperature
    • use a while loop to check for 2 C rise in temperature
    • exit loop and end program when temperature increase is exceeded

Program III: Solution

Combine Program II and Program I to obtain your solution to the problem

If you are using the emulator, you will need RemoteControl as you will be using the bluetooth connection on your PC and the android services in the emulator.

As you will be using 2 emulator instances to test your SMS, you need to specify a target instance when issuing adb commands. To so so, use the -s option in the command

adb -s emulator-5556 forward tcp:9999 tcp:4321 set AP_PORT=9999