Skip to content

Code and description of the smart soles project made for TOM

License

Notifications You must be signed in to change notification settings

seryoni/TOMSmartSole

Repository files navigation

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.

About

Code and description of the smart soles project made for TOM

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published