Pebble Version – Installation

Requirements

Pebble Version Schematic

  • Pebble Smart Watch (obviously! – see note below on discontinuity of manufacture of pebble watches)
  • Android Device to use as Server (needs Android 4.0 or higher).   A very cheap android device is fine (I used one that cost £35 from ASDA).
  • Another device to use as the client device to monitor the server to raise alarms – again a low cost android device is fine, but it can by anything with a web browser.   Best performance is achieved if you use another Android Device running OpenSeizureDetector in “Network Datasource” mode.
  • A WiFi network to connect the server phone and the clients together (I just use my home wifi network).
  • As an alternative to WiFi, connection to a mobile service to allow SMS Alarms to be sent instead of Wifi Notifications.

Discontinuation of Pebble Manufacture

Note that Pebble watches are no longer being manfactured as the company has been bought by Fitbit.   They are still available at the current time though (December 2016), and if you have a working Pebble, it will be possible to install OpenSeizureDetector and continue to use it indefinitely (I may need to modify the code if the Pebble Android App is removed from Google Play, but I will do this, as I will continue to use Pebbles).

So, the discontinuation of Pebble watch manufacture should not prevent you from using this App if you have a Pebble watch.

I am going to modify OpenSeizureDetector to use Android Wear watches and also wrist mounted phones that run Android so the app will continue to work into the future – this will be Version 3 of OpenSeizureDetector.

Installation

Note, if you prefer video instructions to written ones, you might like to see the videos that users have produced, but these are for an older version than the current Version 2.3:

OpenSeizureDetector Android App

  • Install the OpenSeizureDetector Android App onto the Android Phone from Google Play Store.
  • Start the OpenSeizureDetector android app.  One everything is installed and working it will:
    • Display a start-up screen that checks everything is working – it can take a minute for all the checks to complete.
    • Start the openseizuredetector app on the pebble watch.
    • Once everything is confirmed to be working the start-up screen closes and the main information screen is displayed.
  • But if all you have done is install the OpenSeizureDetector App, the start-up screen will stall with red bars showing which parts are not working – you can solve those issues using the buttons at the end of the red bars as shown below:
    • If the official Pebble Android App is not installed, install it using the “Install Pebble App” button.
    • If the Pebble Watch is not connected to the phone, use the Pebble App to connect it by pressing the “Configure Pebble” button.   There are quite a few screens to go through in the Pebble App to configure it for the first time:



 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

If the OpenSeizureDetector Watch App is not installed (the start-up screen stalls on “Waiting for Seizure Detector Data” and the watch app does not start, press the “Install Watch App” button to install it (it opens the Pebble phone app to do this and asks for permission to install an external app).

  • Once you have been through this process, the start-up screen should complete without intervention in the future, and take you to the main app screen once the self checks are complete (this can take a minute depending on the times set in the app settings).

 

Commissioning

  • Shake the watch gently.  The following should happen:
    • A spectrum is displayed on the watch screen – the two lines on the spectrum show the frequency range that it is using to detect a seizure – shake the watch so the peak is between the two lines.
    • After ~5-10 seconds the watch should display a warning
    • After 15-20 seconds the watch should display **ALARM**
    • The OpenSeizureDetector screen should also show warning and alarm, with changes in background colour and a beep to alert the carer to the problem as shown below:

 

 

 

 

 

 

  • Stop shaking the watch and everything should go back to ‘OK’ status.

 

 

 

 

 

See the Troubleshooting page if this is not working.

Wifi Notifications via Web Browser

To receive notifications of alarms via wifi, you can either use any device with a web browser and point the browser at the address shown on teh OpenSeizureDetector app main screen (http://192.168.1.165:8080 in the example above), which will show a screen similar to the following:

Screenshot of Web Interface

Wifi Notifications using OpenSeizureDetector

The disadvantage of using the web browser interface described above is that you may not receive warning notifications if something is not working correctly.   The best solution is to use another Android device running OpenSeizureDetector in ‘Network Datasource’ mode.

In this mode it will connect to the device connected to the Pebble watch, and display a mimic of the screen on the main device.  You will also receive warning ‘pips’ and display fault messages if something is not working correctly.

To set up Network Datasource mode, install OpenSeizureDetector, and enter the Settings screen (Either by pressing the Edit Settings button on the start-up screen or using the menu on the main screen).   In ‘General Preferences’, choose ‘Select Data Source’, and choose the ‘Network’ option.

 

 

 

 

 

 

OpenSeizureDetector will re-start because  the settings have changed – go back into the Settings Screen and a new “Network Datasource” option will have appeared.   Select this and update the Server IP Address to match the IP Address shown on the main OpenSeizureDetector device (e.g. 192.168.1.175 – no need for https:// or the :8080 part).

When you exit the settings screen OpenSeizureDetector will again re-start, but should now mimic the screen on the main device that is connected to the watch.

See the Troubleshooting page if this is not working.

 

Installation from Source Code

Because this is all open source, you could download the source code yourself and compile it and install it – source code available at https://github.com/OpenSeizureDetector/Android_Pebble_SD for the Android App and https://github.com/OpenSeizureDetector/Pebble_SD for the watch app.

If you have any trouble with doing this, please contact graham@openseizuredetector.org.uk and I’ll help.

 

 

 

 

 

 

 

 

 

Leave a Reply