Skip to content

SmartwatchAPP

Francisco M. García-Moreno edited this page Mar 15, 2023 · 4 revisions

This is a Tizen native application project (C++) for wearable devices with Tizen OS to easily collecting, transferring and recording data of all its available sensors (accelerometer, gyroscope, heart rate, GPS, step counter, atmospheric pressure, ambient light, linear acceleration and gravity) via Bluetooth (GATT characteristics and GATT services), HTTP.

Requirements:

Tizen IDE

Enable Debugging on your Tizen Watch:

  • Open the Watch’s Settings and go to the ‘About’ section
  • Go to Software and tap ‘Software Version’ five times
  • A prompt with show up telling that the Developer Option has been enabled
  • Open the Settings, go to the ‘About section’, and scroll to the bottom
  • Select “Debugging is turned off” and then enable the toggle

Enable WiFi on Tizen Watch

  • Open the Settings and go to the Connections menu
  • Go to Wi-Fi and enable ‘Always on’
  • Return to the Connections menu and connect to the same network as your PC

Connect your Tizen Watch to your PC

  • From the drop-down menu in Tizen Studio, select ‘Launch remote device manager’
  • Click Scan. This will find your smartwatch for pairing
  • Click on the Connect button, and your watch will be connected to the tool

How to use the source code of this project

  • Import this project into Tizen Stuadio as existing Tizen application project (more info)
  • In the Tizen Studio menu, go to File > Import > Tizen > Tizen Project, and click Next.
  • Select the location of the root directory or archive file of the Tizen project and click Next.
  • If you want to convert the project profile and version, use the Profile/Version combo box.
  • Click Finish.

How to use the release application (TPK)

This project is a Multipackage application. This project consist of a main launcher (FrailtyLauncheer) and multiple Tizen service applications (related with sensors, file management and communication)

  • Download the current release of this Tizen native application (".tpk" file extension): SmartwatchAPP.tpk
  • Now transfer the "SmartwatchAPP.tpk" file to the corresponding directory of Tizen tools:
    • Windows Example: C:\tizen-studio\tools
    • MacOS Example: tizen-studio/tools
  • This should be the default location. In case you have installed Tizen in any other directory, transfer it to that location
  • Open the folder and you should see :
    • On Windows: an ansicon.exe file. Double click on it to open the file.
    • On MacOs: sdb file. Open a Terminal.
  • Execute the below command and hit Enter (on MacOS in the path file: tizen-studio/tools)
    • sdb install SmartwatchAPP.tpk
  • The SmartwatchAPP app will now be installed on your Tizen Watch.
  • Once done, launch the app.