Galaxy watch 4 classic spo2 sensor - Wear OS Software and Hacking General

HI,
I'm developing a wear os application that needs to read harth rate and spo2 data from the galaxy watch 4 classic.
According to the documentation in order to get and use the sensors I need to retrieve them from the sensorManager:
getSensorManager().getDefaultSensor(number)
The specified number for the most common sensors is defined by Google and can be easily identified
Sensors Overview | Android Developers
developer.android.com
The problem is that there is no reference for the spo2 number. I was previously working with a ticwatch and, in that case, I was able to find this number in the official mobvoi forum.
I can't find any reference from the samsung documentation to this type of issue, all documents are related to tizen development since this is their first wear os watch.
Thanks

Hi, check with some of the guru's in the Samsung Watch 4 forums:
Samsung Galaxy Watch 4
The Samsung Galaxy Watch 4 comes in 40mm and 44mm sizes and the Watch 4 Classic in 42mm and 46mm sizes. They are powered by the Exynos W920, with 1.5GB of RAM and 16GB of internal storage, and with Wifi, Bluetooth, and NFC. Models with LTE are also available.
forum.xda-developers.com

Hi,
Have you had success with your app?.
I'm trying to get SpO2 measures by using android health services API, but no capabilities I can get for SPO2 data type.
So it has been not possible to read SPO2 from Galaxy Watch. Not really if it is possible by using the android healthservices API...
Regards

Related

[Q&A] Samsung Gear Fit SDK Available

Q&A for Samsung Gear Fit SDK Available
Some developers prefer that questions remain separate from their main development thread to help keep things organized. Placing your question within this thread will increase its chances of being answered by a member of the community or by the developer.
Before posting, please use the forum search and read through the discussion thread for Samsung Gear Fit SDK Available. If you can't find an answer, post it here, being sure to give as much information as possible (firmware version, steps to reproduce, logcat if available) so that you can get help.
Thanks for understanding and for helping to keep XDA neat and tidy!
Help with causing vibration
zwegnet said:
Since i work only with Android Studio only thing i can make is to send you the proyect with a working code for Android Studio and the imported library.
Click to expand...
Click to collapse
zwegnet said:
Since i work only with Android Studio only thing i can make is to send you the proyect with a working code for Android Studio and the imported library.
Click to expand...
Click to collapse
I can't find anything in the samsung CUP documentation provided in your cup library download you gave us , or in the official documentation about how to add vibration as a property to the alert, or notification, or how to "officially" use the android CUP stuff to cause say, a custom alarm.
Say if I wanted to create a customizable alarm app that is compatible with CUP and the gear fit for instance, and I want to send a vibration (type) of notification to the gear fit which causes it to vibrate for a long period of time..
(without stopping) until say a menu item is pressed on the fit.
How would I do that?
Is such a thing possible for third party developers? Please help me.
THanks.
raw sensors from samsung gear fit
is it possible to get raw 3D accelerometer and gyroscope signals from samsung gear fit ?
if so how ?
Any possibility to add vertical aka portrait mode?
Dear zwegnet,
First of all thank you so much for your effort to enable Gear Fit development by providing CUP SDK.
It seems 1.0 version of SDK was developed when portrait mode was not available on Gear Fit as it was added in some of FW updates. Thus, ScupDialog seems not to have any method to turn the picture or get current screen orientation.
Of course, maybe protocol itself does not have the command for this, but I expect there can be some way embedded into the protocol.
Is there any chance to investigate that and make new version of CUP SDK with screen orientation feature detection/change enabled?
Problem with App Connect
Hello,
First of all thanks for that API, but I got one problem with it. When I use my gear fit app connect to run application it's doesn't provide any information that the application has been launched with the gear fit, it would be better if I could create a Listener or something like that because now when I use app connect it's run my application on phone and I don't know who started running the application, user on the phone or on the gear fit, if it goes from gear fit I would like to create Dialog on it, but when it's from phone I would like to only resume application, but didn't show anything on the clock, so use method onResume is not possible.
If you know how to solve this problem I would be very grateful.
How to run the app.
Hi,
I have made the app as per your given example. I have s3 (android version ) and gear fit. I have connected my gear fit with android.
After installing the apk in my phone, when I open it , it is throwing error "unforthunately fitapp has stopped".
Do i need some type of settings in my gear fit or s3?
Trouble with Gear Fit CUP SDK Example
I grabbed the example App "CUP_SDK_SAMSUNGINTERNAL.zip" from here
http://forum.xda-developers.com/gear-fit/development/samsung-gear-fit-sdk-available-t2872803
When I open the example in Android Studio as an Android Studio project it creates a Gradle App is that what it is supposed to do? If so is there a way to run an Android app like that? There are no android packages visible.
how start the apps in gear fit manager?
Once created the app in eclipse and installed the apk in the phone, how to start it in gear fit? just connect to gear fit and start the app?
Thanks for the sdk!!!
CUP SDK Samsung Gear Fit
On the Gear Fit, Is there a way to listen broadcasts associated with the GEAR FIT power button. I would like to tie an event to multiple button presses just like the emergency messaging "SAFETY ASSISTANCE Send help messages"?
Hi,
would it be possible to get the raw accelerometer data from the gear fit whit that?
Thanks,
mac
Click to expand...
Click to collapse
Hi
No, it's not posible. Samsung CUP is only for creating user interface of Gear Fit Apps.
At this time only Samsung apps (S-Health, Fitness, ..?) have access to device sensors.
Getting IllegalStateException
Hi there,
I came across this Thread and would like to try writing an app for my gear fit. But when I use the sample Code in the Documentation, the only thing i get is an IllegalStateException: Scup is not initialized
Code:
04-01 15:00:52.748 29498-29498/de.chrosey.gearfitone E/AndroidRuntime﹕ FATAL EXCEPTION: main
Process: de.chrosey.gearfitone, PID: 29498
java.lang.IllegalStateException: Scup is not initialized
at com.samsung.android.sdk.cup.ScupDialog.<init>(Unknown Source)
at de.chrosey.gearfitone.cup.HelloCupDialog.<init>(HelloCupDialog.java:15)
at de.chrosey.gearfitone.MainActivity$1.onItemClick(MainActivity.java:39)
...
I tried using the suggested
Code:
<uses-permission android:name="com.samsung.android.providers.context.permission.WRITE_USE_APP_FEATURE_SURVEY" />
but it didn't help.
I am testing on s4 lollipop stock Rom.
Can Somebody help me?
Lollipop compatibility
Is there any compatibility with Android 5.0 and newest version of Gear Fit Manager? Because i've got this error: java.net.BindException: cannot bind service and don't know what to do
Thanks
Execute App in Gear Fit disconnected of mobile
Hi,
i want to have a App in my Gear Fit when i dont have with me my mobilephone. This is possible? I need save some information in the Gear Fit and send tu my Mobilephone App this information.
Any idea?
Thanks,
David.
Help with sensors in gear fit CUP
Hi everybody!
I have just installed Android Studio and I tried to make a wearable application using CUP's library.
Thanks to some guides I attempted it, but I have no idea about how I can collect data from Gear Fit's sensors, especially the heart rate.
Thanks!!
It is not possible to direct access to sensor data. The only way to get that information is through S Health service.

Does Samsung allow developers to access the SpO2 sensor, etc.?

Hi everyone,
I was hoping to write a biofeedback app for the edge 6 taking advantage of its various sensors (heart rate, SpO2, etc.), but I can't find if there's actually a way to access them.
The Samsung documentation mostly deals with (in mangled English) how to access their S Health app and database, not the actual sensors.
Does someone know if it's possible and where the programming info is?
Thanks!

Pace - basic dev questions

Hi,
Long time .NET developer, I have suddenly found interest in exploring development for Amazfit Pace. I have a few basic questions and I'd appreciate your help.
1. How do I access the smartwatch features from my code? I don't suppose Android exposes a standardized API for accessing pedometer, barometer, sleep and other data on the device. I would expect it from Wear OS, but since Pace is running Android 5.1, how do I access for example the current pressure or steps for the day?
2. Can my app use Internet? If the watch is Bluetooth connected to the phone, if I make an Internet request from the app, would it succeed?
Thanks
hyankov said:
Hi,
Long time .NET developer, I have suddenly found interest in exploring development for Amazfit Pace. I have a few basic questions and I'd appreciate your help.
1. How do I access the smartwatch features from my code? I don't suppose Android exposes a standardized API for accessing pedometer, barometer, sleep and other data on the device. I would expect it from Wear OS, but since Pace is running Android 5.1, how do I access for example the current pressure or steps for the day?
2. Can my app use Internet? If the watch is Bluetooth connected to the phone, if I make an Internet request from the app, would it succeed?
Thanks
Click to expand...
Click to collapse
1.) It does. There's a sensor API you can use. Check my Step Notify app for an example of using the pedometer: https://forum.xda-developers.com/smartwatch/amazfit/app-step-notify-fitbit-esque-step-t3741724
2.) Yes, it can use either the WiFi on the watch or you can use the communication library to go via Bluetooth and use the phone's internet connection: https://forum.xda-developers.com/smartwatch/amazfit/dev-library-amazfit-communication2-t3779946

Sensor management on Tizen

I'd like to develop an application for a smart watch which will periodically turn on & off sensors on the watch/band, ala microphone/camera/etc, record their activity, do minimal processing and store the result on the watch/band. This result will be uploaded to the mobile phone when a bluetooth connection is established.
To my best understanding, this can only be done with Tizen/WearOS/FitbitOS, not with other watch operating systems such as Huami's ones (Amazfit/Xiami MI/etc). This also means that it's a (big) watch and not a (small) band that is suitable for the above.
Is this correct and how to do this otherwise if it's wrong?
How much of a hassle it is to do this in Tizen for a seasoned professional programmer who is a complete noob in Tizen/smartwatches/mobile devices?
Can we develop a headless app that runs constantly?
Are there any tutorials on the subject?

How to fake gps location without mock location

Hi!
I want to simulate wallking with any fake gps app, and measure distance with another android app. The problem is what the other app doesn't recognize the fake location and
doesn't measure the wallked distance. The phone is Samsung Galaxy A52s 5G. I need a help to make this two apps work sincronized. I can give you details about other application.
Thanks.

Categories

Resources