Git Product home page Git Product logo

tomsmartsole's Introduction

TOMSmartSole

  • OS: iOS 9.3+
  • Languages: Swift 2.2.1
  • Tool requirements: Xcode 7.3
  • License: MIT
  • Status: “alpha”

This app communicate over bluetooth with a BLE device using GATT profile.

It uses bluetooth-central background mode and listen for notifications from the device and battery service.

Notifications are send from device only after over pressure state has been detected. i.e. two min. standing or 15 min. walking with pressure over defined threshold.

The pressure threshold, and minimum time definitions are currently hard coded on the device (see sketch file).

When use hit the connect button the app start a scan for devices with our service UUID. When device is found it will pair with the first one and stop scanning. The app remembers this device and will try to maintain the connection over disconnections are app restart. On any failure afterwards a connection will be attemped.

Build

  • With Xcode just Build->Run
  • Switch on the device and hit the connect button on the app. Let if few seconds to connect.

Note: For dependency managment, CocoaPods is being used, but for integrity the depedencies are being included in the git repository.

Bluetooth Profile

The app use part of the Health Thermometer Service (HTS). We actually don't need this specific service, but it was chosen for quick development using the ready made sketch for HTS. This also allowed us to use ready made HTS monitors during the makeathon for testing the sensor while app is being developed.(Those monitor apps didn't work well in background mode)

HTS Overview HTS Profile spec IOS-nRF-Toolbox with HTS

Adafruit Feather

To be able to use the sketch file or the adafuit healththromometer sketch, it requires to upgrade the adafruit feather to firmware version 0.7 This can be done using their connect app: AppStore link

To learn more on this device Read here

Arduino Libraries:

Testing

TODO

Credits

TODO

License

This project is licensed under the terms of the MIT license. See the LICENSE file.

tomsmartsole's People

Contributors

seryoni avatar tsafrir avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.