password in plaintext. The other alternative would be to have the database run remotely, and have the phone access and pull the information over the internet, but since the aim of this application is to avoid requiring the internet connection this alternative is not viable. 5.5.3 Diagram The diagram of the GOLD Android application is shown in Figure 40 below. This contains the complete and working classes in the app as of the writing of this document. Figure : GOLD Diagram Starting from the top, the first class block is the LoginActivity. The LoginActivity is the entry point to the program, and with this, it requires an instance of the DatabaseHelper class to perform its login functions. The create user class also requires an instance of DatabaseHelper to work, so the relation between these classes are shown with an association between them. The next part of this diagram is the MainActivity. This activity powers the navigation menu and effectively acts as the central hub of the GOLD application. This is shown through the multiple one-way associations that branch off from the MainActivity. While the user can jump between different fragments using the navigation menu, the individual fragments are not aware of each other. With this, there is not a direct connection between the fragments. Moving over to the BluetoothFragment, this class has two private inner classes, the ConnectThread class and the ConnectedThread class. These two classes are crucial to the BluetoothFragment class’s functionality, and because of this, the relationship between these classes and the BluetoothFragment is that of a composition aggregation. 5.6 Mechanical Design Although this project mainly focuses on the electrical hardware and software design, this equipment needed to be housed in a device for easily detecting the glucose levels in the noninvasively. The following section details the mechanical design that holds the near infrared LED and the photodiode and how it is designed. 5.6.1 Earpiece The earpiece housing was designed to hold the LED and the photodiode on opposite sides so that the photodiode can absorb the remaining light from the LED shining through the ear. Since the best way to obtain blood glucose measurements is through the flesh of the earlobe, this earpiece design was chosen. In the CAD software program SolidWorks, the earpiece shown in the drawing in the drawing is modeled after a typical Bluetooth headset with the LED and the
password in plaintext. The other alternative would be to have the database run remotely, and have the phone access and pull the information over the internet, but since the aim of this application is to avoid requiring the internet connection this alternative is not viable. 5.5.3 Diagram The diagram of the GOLD Android application is shown in Figure 40 below. This contains the complete and working classes in the app as of the writing of this document. Figure : GOLD Diagram Starting from the top, the first class block is the LoginActivity. The LoginActivity is the entry point to the program, and with this, it requires an instance of the DatabaseHelper class to perform its login functions. The create user class also requires an instance of DatabaseHelper to work, so the relation between these classes are shown with an association between them. The next part of this diagram is the MainActivity. This activity powers the navigation menu and effectively acts as the central hub of the GOLD application. This is shown through the multiple one-way associations that branch off from the MainActivity. While the user can jump between different fragments using the navigation menu, the individual fragments are not aware of each other. With this, there is not a direct connection between the fragments. Moving over to the BluetoothFragment, this class has two private inner classes, the ConnectThread class and the ConnectedThread class. These two classes are crucial to the BluetoothFragment class’s functionality, and because of this, the relationship between these classes and the BluetoothFragment is that of a composition aggregation. 5.6 Mechanical Design Although this project mainly focuses on the electrical hardware and software design, this equipment needed to be housed in a device for easily detecting the glucose levels in the noninvasively. The following section details the mechanical design that holds the near infrared LED and the photodiode and how it is designed. 5.6.1 Earpiece The earpiece housing was designed to hold the LED and the photodiode on opposite sides so that the photodiode can absorb the remaining light from the LED shining through the ear. Since the best way to obtain blood glucose measurements is through the flesh of the earlobe, this earpiece design was chosen. In the CAD software program SolidWorks, the earpiece shown in the drawing in the drawing is modeled after a typical Bluetooth headset with the LED and the
SD1FinalPaper.docx