Open-Smartwatch / open-smartwatch-light

Hardware design files. Light version (no GPS, no uSD) of the open-smartwatch
GNU General Public License v3.0
202 stars 28 forks source link

Creating a smartphone App for the watch #7

Closed kekko7072 closed 2 years ago

kekko7072 commented 3 years ago

Hey I really like this open-sourche project. I like to contribute developing a mobile phone app (using flutter) to connect the watch to iOS/Android smartphone. To start using the clock and creating the app I will buy it from makerfabs the light edition and start developing.

I can comunicate with the watch through bluetooth, right?

Sensor now available:

In this first version of the app my goals will be:

For the future I'd like to use the data from this sensor:

Using this sensor, In this second version of the app my goals will be:

I will develop it as open-source creating a mine Git repo for the project, when it will be stable and useful you could add to this git repo. I 'm very excited for this new journey ;)

kekko7072 commented 2 years ago

Hey how can I enable Bluetooth on the watch ?

kekko7072 commented 2 years ago

Is BLE?

uvwxy commented 2 years ago

Hey how can I enable Bluetooth on the watch ?

Take a look at src/apps/tools/ble_media_ctrl.cpp as an example for a BLE app on the OSW. Make sure to disable/resize the screen buffer (like this example app) to have enough free memory for the BLE software stack on the ESP32.

(The next versions of the watch will have +2mb ram to solve this issue)

Another example is: https://github.com/SeanReg/open-smartwatch-os/commit/9464d2418e018018ba23f9c36357525ee7722e2f

kekko7072 commented 2 years ago

@uvwxy Thanks for the example, I will start from that. But can you explain me or there is a guide I can follow to start building app for the OSW? Because I'm trying to reverse engineer the OSW but I'm not able to understand where to start to code and make my app run in the OSW, I mean where should I add in the main to access it?

RuffaloLavoisier commented 2 years ago

@kekko7072 Could you add me in the Discord?

kekko7072 commented 2 years ago

Sure my discord is kekko7072#2399 I'm already in the discord channel but I'm not ver active.

kekko7072 commented 2 years ago

@RuffaloLavoisier Are you able to wright and build ble code for OSW, I'm trying to connect but with not so much success? Having a starting point for my code could help me with the OSW part of this integration.

RuffaloLavoisier commented 2 years ago

@kekko7072 Can you please leave a message? I send discord to you. Plz check it.

yacubovvs commented 2 years ago

@uvwxy Thanks for the example, I will start from that. But can you explain me or there is a guide I can follow to start building app for the OSW? Because I'm trying to reverse engineer the OSW but I'm not able to understand where to start to code and make my app run in the OSW, I mean where should I add in the main to access it?

https://github.com/yacubovvs/CubOS/tree/main/tools/CubOSBLEApp - Android example for arduino esp32 watch via BLE. Not best example, but it works

kekko7072 commented 2 years ago

@yacubovvs thankyou but I mean app written for the OS of the watch, in c++ or other languages supported by the watch.