accelerationsensor -variation-algorithm - Android Q&A, Help & Troubleshooting

Hey there,
i have to make an android application which counts your pushups, where the phone is lying on the back of you. It has to measure these pushups by some sensor, i was told to use the acceleration sensor, but the value variates very much, so i am looking for an algorithm which "erases" these in the app or find another ability to measure it. So has anybody an idea or a good algorithm for me which i am allowed to use?
It will be just for something a bit smaller like a seminar work (a very very very small doctor work)

Anybody?

Related

[App/widget](25/8/10) Fitness Plus

Hey all, i noticed people were asking for a "exercise/fitness" app like ifitness.
this is html one i was developing so made it into a quick widget for you all to see.
its main design is to be a guide.
this is a beta look and feel, i'll start filling out the exercises soon.
iv given it a nice nike+ look as i love the orange !
is been developed for Wvga 480x800 first.
ideas/development..
it will be split into male and female
it will have things like..
Intake, Nutrition and Diet, Weight lifting, Strength Training,
Cardiovascular Exercises, Weight Loss, Aerobic, Motivation,
Preventing Injuries, Avoid cheating, Calculators.
iv put in as much as i can about water intake and Vitamins & Minerals.
im playing around with a BMI Calculator to fit in there too.
im trying a kcal Calculator soon.
im hoping someone brilliant could make a nice flashlite jog meter
also when i can get embed wmp to work or a nice flashlite player maybe we can have music too
im open to ideas and info or people who want to work on it too.. hope you all like !
There should be a way to use the accelerometer as a pedometer. And, a body fat % calculator would be nice.
maybe a cab, instead of a zip? :X
and a food log..
Hey, first of all, THANK YOU! For reals, thanks for taking the time to develop such an app. Now moving on to suggestions
I mostly do weight lifting and some jogging so my suggestions would be these:
- Include a catalogue of available weight lifting exercises (www.bodybuilding.com is an excellent resource)
- Add the ability to create a weight lifting schedule that works as following:
Design a schedule beforehand and fill in sets/reps/weight
This mode would have weight lifting days pre-set by the user (for example I have a chest-lifting day, in which I do bench press, incline bench press and a couple more. I'd like the ability for that to have been designed beforehand by me, and I'd insert the weight/set/reps on the spot during my workout)
Design a schedule on the fly
Start with an empty training day and add exercises/sets/reps/weight on the fly.
It goes without saying that each set should have its own reps and weight
Awesome work so far mate, keep it up!
PS. Haven't tested the app yet, will do so as soon as I can.
Thanks for developing this, love it already =d
Well I have been looking for something like this for a long time.
It would be nice to have the calories intake measured.
One way to do this would be for people for people to use the label of the article to help them input the right data:
If they weigh the food (cereals / chocolates / anything that has a label), and put the weight in grams (example, as I live in Europe), and the calories for 100g, the program could calculate how much calories they consumed.
It would then add them all up, and tell you how much calories you’ve consumed.
It could have some database of some food like fruits that do not come with a label of how much calories per gram they have.
If it could calculate too, how much calories you’ve burned during the training session, it could even tell you if you’ve consumed more calories then you’ve put in the body (witch is what you need to do in order to loose weight).
Regarding the training:
It would be nice to have some specific areas trained, so if you want to train your biceps, you could find 2-3 exercises to do it.
In training some muscles should be trained together (during the same training session), so it would be nice to have it do a training session A for day 1 and B for day 2.
Third request would be if it could have a timer, so that people know how much they are resting (between the series). If they need to rest 30 seconds it should not be 2 minutes.
I know this information is not new to many, but this would be the things I would look for in a program like this.
Good luck and let me know what you think about my suggestions.
i love the idea, if you want me to help out with anything to do with graphics, please ask. i am a photoshop nut, and i could help make the screens look even prettier also if you need, i could help resize things for other resolutions ex: qvga or vga. again great idea =]
edit: as for the player for music i dug this up on another site...
"From Wikipedia "The Advanced Stream Redirector (ASX) format is a type of XML metafile designed to store a list of Windows Media files to play during a multimedia presentation."
Flash doesn't play any windows media native files. It only plays Flash video files (flv) and Mpeg4 (h.264 encoded) either as a .mp4 or .mov file. So to get that to play in Flash you'll need to figure out how to convert it to a file type that flash understands or look into something microsoft native like silverlight." - http://www.ozzu.com/flash-forum/playing-asx-files-flash-player-t103840.html
as for a m3u playlist it appears possible....
a commercial piece of software, proving the point http://www.draftlight.net/dnex/mp3player/
maybe useful if you use wmp: http://www.nunzioweb.com/streaming_audio-example.htm
and another link just in case http://forums.winamp.com/showthread.php?t=287996
hope i helped.
Withings wifi scale integration, like iPhone Wiscale...
www.withings.com
I'm trying it out. Looks very cool
Some links
If you need some workout / nutrition info here are some good sites. The first link has a list of all the different muscles and exercises that you can do to work them out along with an animated gif of the exercise in question. The second link is just a food database. Maybe these can help give you some ideas to incorporate into your program.
hxxp://exrx.net/Lists/Directory.html
hxxp://nutritiondata.self.com/
Nice work - I look forward to seeing some content
Thank You!
Some nice work here. A couple of suggestions that might ancrease it's appeal, and a question.
I installed the program and ran it. It then put a bunch of files into the Main Memory of my HD2 without asking permission. Naughty! Naughty! For various reasons I need every Mb of storage I can keep, so this was a problem. It resulted in memory management issues that drained my battery like crazy, so sadly, I had to un-install it
The program was not fully uninstalled via the phone, and there is no uninstaller in the package, so I 'm going to manually delete all the related files I can find. I suggest that you either provide an uninstaller program or a complete set of un-installation instructions.
And please! set the program to be installe din the Storage Card! I would really like to give it a serious workout!
Thanks again - and keep Developing!
MadSci
One neat idea would be food log integration.
As in built in foods with calories that you can search through, including fast foods and such.
Also camera/barcode integration, so you could just scan the barcode and it looks up the food and it's calories/nutrition info.
I know those are a big big reach, and probably not likely but they would help make your app complete.
Also if possible the calorie burned exercise should be weight specific, i.e a heavier person doing 2 miles would burn more than a light person doing 2 miles at the same pace.
Hi guys,
I would like to try this app but my Windows Mobile version is 6.1 due to the fact that is much quicker than 6.5 on my Smartphone (I have a Blackstone).
Could you please provide this app as a CAB installation file as WGT files aren't supported in this version of WinMo?
Thanks and regards,
Elvis
youngstats215 said:
There should be a way to use the accelerometer as a pedometer. And, a body fat % calculator would be nice.
Click to expand...
Click to collapse
yes i believe so i have seen a nokia widget that uses g-sensor in html so should be possible. the bmi calc tells you % fat when you type in hight+weight.
josh_prayyforplagues said:
maybe a cab, instead of a zip? :X
and a food log..
Click to expand...
Click to collapse
i may do it as cab for those who do not have widget engine.. this will be open with native browser. as for food log i cant do html that remembers things yet.
zeusalmighty said:
my suggestions would be these:
- Include a catalogue of available weight lifting exercises
- Add the ability to create a weight lifting schedule that works as following:
Design a schedule beforehand and fill in sets/reps/weight
Design a schedule on the fly
Click to expand...
Click to collapse
-yes this is first been designed as a guide book for most exercises.
-i believe this would be bit much for html/java.. if can be made in flashlite id love to add it.
Johev said:
It would be nice to have the calories intake measured.
It would then add them all up, and tell you how much calories you’ve consumed.
It could have some database of some food like fruits that do not come with a label of how much calories per gram they have.
If it could calculate too, how much calories you’ve burned during the training session.
Regarding the training:
It would be nice to have some specific areas trained, so if you want to train your biceps, you could find 2-3 exercises to do it.
Third request would be if it could have a timer.
Click to expand...
Click to collapse
-im adding kcal intake calc soon so you type them in and it calcs if you have eaten more or less than 2500kcal.
-database of foods without labels is good idea.
-not sure how i would work out calories burned.
-thats the idea lol
-hmm could put a small configurable timer in each exercise page
alexandera said:
Withings wifi scale integration, like iPhone Wiscale...
www.withings.com
Click to expand...
Click to collapse
-too complicated.. bmi calc will tell you if you are over weight from ur hight+weight.
MadSci said:
I installed the program and ran it. It then put a bunch of files into the Main Memory.
The program was not fully uninstalled via the phone, and there is no uninstaller in the package.
Click to expand...
Click to collapse
- .wgt files always install to main memory, .cab you chose.
- uninstall via settings uninstall programs.. should be in the list like mine.
yes i will try doing as cab file sometime.
well i like working out for the looks more than the weight gain, so if you can add some Calisthenics Exercises with like daily reminders and routines you have to follow. like make an alarm go off when its time to do your exercises..
but anyways add alot of Calisthenics Exercises, thanks........
Hi guys.
I'm still waiting for the CAB version.
Regards,
Elvis

[App Request] Gyroscope Emulator/Virtual Gyroscope

I recently bought a cardboard. But cant taste many apps because my Android smartphone doesn't have a Gyroscope sensor. So i searched for an app that can mimic the gyroscope functionality by pressing keys or something.
I got these...
1. https://github.com/memsindustrygroup/Open-Source-Sensor-Fusion/wiki/Virtual Gyro
2. http://www.mcubemems.com/products/igyro/
These aren't any app, but proof that Virtual Gyroscope exists. Some lenoveo phones(Like K3 note) use them. So plz let me know, is there any app that can do the same effect in any android device with Accelerometer & Compass sensor. Or, any app that can mimic the effect pressing volume/headphone key.
only look left/right action is required , Accelerometer does look up/down.
Yes by this i wont get a head tracking experience, but at least I can look around and select files to watch videos. Developers can make app(if doesn't exist already) following this idea. I think, it will help many.
Thanks in advance
Hi, I'm also looking for some app that fakes gyro sensor as I have the same problem. In theory a dev could interpret those algorithms from that Github repo and make an emulator, unfortunately this is out of my knowledge.
So I hope someone could help us poor ungyroscoped people.
Yeah, it's big problem with most phones to use VR apps/games that require gyroscope. I have the same problem.
Google should think about gyro pseudo emulation with accelerometers in their Cardboard API or at least implement there something like this lib: https://code.google.com/p/openintents/wiki/SensorSimulator
so anyone could use different phone (with gyro) as remote gyro for phone in cardboard glasses or write gyro emulators much more easily (as this lib can open TCP port for remote sensors data).
Technically, yes, it should be possible, using Xposed.
I am working on a module that eliminate the jitter in unreliable phone's gyroscopes. It does so by hooking to the function that distpaches the various sensors' data to every apps that require them, and it fakes the values before these data get sent.
Since you can easily access any sensor's data, you can do any sensor fusion you want by using the accelerometer and magnetometer, or even just the touch screen, and then fake the gyroscope's values.
If you are interested, here is the Xposed module I'm working on, which shows how to hook to the gyroscope and fake the values:
On github: lrq3000/JitteryGyroFixForCardboard
And to implement sensor fusion, you can either use the new virtual sensors of Android 4, or code it yourself, there's a very good open source app that shows it all here:
On github: KEOpenSource/GyroscopeExplorer
Hey thank you for that info! I'll be taking a look at that as soon as I can, although I'm not an avid dev I hope we can get something for our phones.
shafiaszad said:
I recently bought a cardboard. But cant taste many apps because my Android smartphone doesn't have a Gyroscope sensor. So i searched for an app that can mimic the gyroscope functionality by pressing keys or something.
I got these...
1. https://github.com/memsindustrygroup/Open-Source-Sensor-Fusion/wiki/Virtual Gyro
2. http://www.mcubemems.com/products/igyro/
These aren't any app, but proof that Virtual Gyroscope exists. Some lenoveo phones(Like K3 note) use them. So plz let me know, is there any app that can do the same effect in any android device with Accelerometer & Compass sensor. Or, any app that can mimic the effect pressing volume/headphone key.
only look left/right action is required , Accelerometer does look up/down.
Yes by this i wont get a head tracking experience, but at least I can look around and select files to watch videos. Developers can make app(if doesn't exist already) following this idea. I think, it will help many.
Thanks in advance
Click to expand...
Click to collapse
Yes, same problem here. The facts, med-low or med or med-high device not attached by gyro, except xiaomi. Some people on quorra debated, they have idea to make an app which can do headtracking with camera by detecting pixel shift. Yes i like that idea and the idea sounds possible, but it out of my knowledge. Can anyone make app like that? Or maybe we can ask google to make the app?
Thanks
What about emulating gyro using accelerometer and compass? In the Google Play is app for phones without gyroscope, (we are in space: LINK) so it is possible
I would love to see something like this too. This dev has several VR apps and the head tracking all works perfectly on my Moto G 3rd gen which has no Gyro, so I know it is possible. I've played House of Terror and the head tracking works extremely well and pretty smooth too, I wonder what their method is, I assume compass + accelerometer. https://play.google.com/store/apps/developer?id=Lakento
shafiaszad said:
I recently bought a cardboard. But cant taste many apps because my Android smartphone doesn't have a Gyroscope sensor. So i searched for an app that can mimic the gyroscope functionality by pressing keys or something.
I got these...
1. https://github.com/memsindustrygroup/Open-Source-Sensor-Fusion/wiki/Virtual Gyro
2. http://www.mcubemems.com/products/igyro/
These aren't any app, but proof that Virtual Gyroscope exists. Some lenoveo phones(Like K3 note) use them. So plz let me know, is there any app that can do the same effect in any android device with Accelerometer & Compass sensor. Or, any app that can mimic the effect pressing volume/headphone key.
only look left/right action is required , Accelerometer does look up/down.
Yes by this i wont get a head tracking experience, but at least I can look around and select files to watch videos. Developers can make app(if doesn't exist already) following this idea. I think, it will help many.
Thanks in advance
Click to expand...
Click to collapse
Same problem. I also have a k3 note and it has a virtual gyro. i think there must be something that uses accelateometer and magnetometer to detect direction and angle.(and i think this is possible)
Guys try vr player from play store then goto settings and there would be orientation detector set it to accelerometer +compass and you are donw
Same Problem
lrq3000 said:
Technically, yes, it should be possible, using Xposed.
I am working on a module that eliminate the jitter in unreliable phone's gyroscopes. It does so by hooking to the function that distpaches the various sensors' data to every apps that require them, and it fakes the values before these data get sent.
Since you can easily access any sensor's data, you can do any sensor fusion you want by using the accelerometer and magnetometer, or even just the touch screen, and then fake the gyroscope's values.
If you are interested, here is the Xposed module I'm working on, which shows how to hook to the gyroscope and fake the values:
On github: lrq3000/JitteryGyroFixForCardboard
And to implement sensor fusion, you can either use the new virtual sensors of Android 4, or code it yourself, there's a very good open source app that shows it all here:
On github: KEOpenSource/GyroscopeExplorer
Click to expand...
Click to collapse
I bought a vr case and have the same problem my galaxy sm a510m (A5 2016) doesnt have gyro! When i saw that i couldnt believe it.... it opens with my fingerprint for the love of crist!!! :crying:
Any solutions?
I have a moto g 3 and can't experience Pokemon go neither vr visor from one plus
Sent from my MotoG3 using XDA-Developers mobile app
Is there still hope?
If there is no way (for whatever reason) to emulate a gyro...is there a method to add a gyroscope sensor to an android?
Sent from a Samsung Galaxy J7 user
Same here, i too need an APP that simulate the gyro functions.
Hope that someone could implement that using compass and accelerometer!
Thanks
Some app like this would be so cool...
I was a bit dissapointed after buying the Moto X Play and noticing it doesn't have gyroscope so no Augmented Reality on Pokemon GO.
Im so sad, i had a moto g2 and bought motog3 1 month ago, this thing doesnt have a gyroscope while motog2 had one. Is there no solution for this? I mean, with something like a virtual gyroscope
pokulan said:
What about emulating gyro using accelerometer and compass? In the Google Play is app for phones without gyroscope, (we are in space: LINK) so it is possible
Click to expand...
Click to collapse
I've tested with my Moto G 3rd and works well. I hope somebody develop some hook in Xposed to work with accelerometer and compass...
or lests just hope the pokemon go app support accelerometer + compass it in the future.
I feel where you all are coming from. I agree there needs to be an app, an xposed module, or something to get this functionality. I'm gonna try and figure this out, there's a post on stackoverflow about this. A guy was talking about how in order to do it you'd need to recreate files similar to the ones that poll the actual hardware. He's basically saying you need to create some sort of mock gyroscope polling code right above the hardware level. I don't think that's the best approach, we gotta go top down not bottom up on this. I don't know much about the inner workings of android but I know this, looking at how to grab sensor data just using a plain app uses the classes sensor and sensor manager. As far as i can tell these are fed with information by the sensor event listener. That is fed by the object sensor event. It states right on the documentation "This class represents a Sensor event and holds information such as the sensor's type, the time-stamp, accuracy and of course the sensor's data." Its a generic sensor class which means we could possibly give it a fake gyroscope right?
Now, back to the sensor event listener, on the documentation it says "The application doesn't own the event object passed as a parameter and therefore cannot hold on to it. The object may be part of an internal pool and may be reused by the framework.". That means sensor event listener is literally just the messenger and should take whatever it finds as long as its valid. It seems like it will take whatever is passed to it correctly if we can make an event that it hears.
Now, amazingly on the sensor event page shows some fantastic stuff. Sensor event class is literally a 4 field class and I believe gets its values from that "hardware polling code" that sits above the hardware level. (the code that other guy was talking about.). If we can just make up some sensor events that mimic a gyroscope using accelerometer + compass and hope that the sensor event listener is configured to pick it up (I don't see why not) then I think this could be a possible solution. With all that being said, I'm just a beginner when it comes to android. I'm a college kid with a background in c and java just trying to piece the puzzle pieces together and play some pokemon lol.
Edit: So I may have been way off the mark, I'm not sure anymore. I found this though, a way to use actual custom sensors with android http : // riansanderson.blogspot . com/2012/03/integrating-sensors-into-android . html . Sorry for the spaces, I can't post links. After more java delving it seems it is not possible to create your own spoofed sensor or sensor event if your code is not in the same package as android.hardware.Sensor or SensorEvent
Edit2: So I guess unless you can get code to run in that android.hardware package, you'd have to do something like that link above and make like a fake driver for fake hardware.. I suppose if you could modify android.hardware.sensor to just make a gyroscope sensor and take the values from the accelerometer and modify those on the fly.
Try this solution
hello all from Egypt
this tutorial isn't mine or my invention you can say it's information sharing
I am Waleed and i have Huawei honor 4x which has no gyroscope at all, but i found some solution to this problem which is:
1- you must have ROOT (without root you can't do anything at all)
2- install root explorer if it isn't installed in your mobile and be sure to allow root permission to it
3- download the attached xml file which activate soft gyroscope in your mobile and place this file in your SD card
4- open root explorer and copy the xml file you downloaded and go to this path "/system/etc/permissions" and paste the file there and be sure the file exists in this place
5- reboot the phone then install any app from Google play to check the gyroscope i suggest sensor box
6- I hope this information is valuable and useful for you
thanks

Plz help me make a motorcycle alarm tracker w/ an old Android phone and tasker! Plz?

Hey Super smart and resourceful xda friends! I have a Motorcycle ('15 Honda Grom) and a scooter (Kymco Super 8. Both are prone to thievery :'( I was wondering how I could use two old Android phones as alarms and GPS trackers for my bikes. I know I wouldn't have proximity sensors at all (or could I?) But the gyroscope in the phone should be good for detecting movement. I was thinking it'd go like this. I can semi permanently mount the phone somewhere on the bikes so as they're not easily accessible/disconnected. I'd have them hardwired to the batt for power and turn off as many background processes as possible to have long standby time. I could also have a 3.5 mm speaker or rechargable Bluetooth speaker for alarm sounds should the phone detect movement. An alarm would maybe trigger a warning chirp and then sound full alarm should movement continue. I'd also like to have movement trigger a SMS to my phone and begin GPS tracking and somehow send it to my main phone. I'd use a pay as you go sim for SMS and data to send me coordinates or data about where the bike is. It'd be ideal to have a Bluetooth low energy fob on my keyring that would activate the system after I leave the vicinity of the phone. So, what do y'all think? Would this be possible with a collection of apps currently available? I know there are already products out there, but while some have GPS tracking... They don't have alarm or vice versa. Not only that but they're usually $500 and up plus subscription. I think the hardest to accomplish would be the sending of location. Please. Please. PLEASE help me out Super smart people of XDA. How would I orchestrate this in tasker and other apps to work? Thank you so so much to anyone that can help
Impossible
I did not know that its possible, lets wait for the gurus
windowstoweb said:
I did not know that its possible, lets wait for the gurus
Click to expand...
Click to collapse
Hard to say it's impossible with all of what Android is capable of. Especially with tasker. I think you're writing it off too soon. I have a little experience with tasker, it's just I need someone more knowledgeable to go that extra bit. I've outlined how the hardware would work. It's all sound as far as working. Now just the software is needed. Perhaps have a tasker trigger that when Bluetooth fob is in range, all of the subsequent tasker profiles are disabled. Once fob leaves or isn't detected, tasker activates profiles for gyroscopic movement which would trigger sound of alarm with a short duration. Once movement continues, alarm will set off and another profile will trigger location reporting to my main phone. It all seems doable with the right combination of apps.
Mods: is there a better forum for this that may get better exposure? I don't think this one is necessarily good fit what I'm asking. Thanks
Bump....

Fix gyroscope drift and Google Cardboard

I'm hoping someone can help. I bought the P9000 as a low cost phone to demo Cardboard apps. It has everything I need, a good screen, copious memory, SD card storage, and all the required sensors.
Except it hasn't worked correctly, once. There is a drift to the left which makes VR apps impossible to use and there seems to be some mismatch between the viewer and the screen. Regardless of which viewer I use, having scanned the relevant we code and selecting the corresponding viewer profile, there is always a "double effect" the two images are not calibrated correctly so the entire experience is broken.
Does anyone know how to fix this? It's been present in every stock ROM and is also present in Aerom V4.
Thanks
You can try calibrating the gyro in Service Menu
Dial *#*#3646633#*#*
Go to Hardware Testing Tab > Sensor > Sensors Calibration > Gyroscope Calibration
Clear calibration, then calibrate for 20 od 40% tolerance (try what works best for You)
That's great 40% works and stops the drift, any hints on the overlay problem?
It's the distance between your eyes. The phone is a big screen and cardboard needs to be calibrated accordingly. Find the QR code for a similar sized phone, and use that. The QR code on the cardboard set I got produced the same problem, so I scanned a QR for an oppo phone with a5.5 inch screen. Worked for me.
I thought that too but it's not the case I have a number of phones with a 5.5 screen and I don't have this issue with them. I've got a VR headset which allows one to adjust the distance from eye to screen and the distance between the lenses. I cannot make this phone work properly in Cardboard.

Atrial fibrillation and heart rate monitoring app

Hi all,
I have developed an application for a Wear OS, intended for a robust continuous atrial fibrillation (arrhythmia) and heart rate monitoring, which uses an optical sensor (green light) in the bottom of the watch. I'm currently limited to Fossil Gen 5 watch since my Samsung Galaxy Watch 4 won't give software access to its optical sensor.
Having said that, would anybody here like to test the app on their watches? It still needs to be improved and optimized, therefore, feedback would be appreciated. Also, it would run on other watches, however, in that case I would need to know an address of an optical sensor (Fossil Gen5 PPG sensor is 65572) so I could update the app.
I'd like to publish it in Google Play sometime later, have never done it before, it looks quite tricky, however, I filled most of the things there already.
Update: AFib monitor Google Play link
AndriusG said:
Hi all,
I have developed an application for a Wear OS, intended for a robust continuous atrial fibrillation (arrhythmia) and heart rate monitoring, which uses an optical sensor (green light) in the bottom of the watch. I'm currently limited to Fossil Gen 5 watch since my Samsung Galaxy Watch 4 won't give software access to its optical sensor.
Having said that, would anybody here like to test the app on their watches? It still needs to be improved and optimized, therefore, feedback would be appreciated. Also, it would run on other watches, however, in that case I would need to know an address of an optical sensor (Fossil Gen5 PPG sensor is 65572) so I could update the app.
I'd like to publish it in Google Play sometime later, have never done it before, it looks quite tricky, however, I filled most of the things there already.
Click to expand...
Click to collapse
Hi, I have tried your app, it's great that you are doing this.
I have tested it on Ticwatch Pro 3 GPS, it works correctly, shows heart rate and cardiogram for arrhythmias.
When I started the app for the first time it did not ask me to enable sensor permissions nor did it alert me that it did not have the permission enabled when I started monitoring. I activated them manually and it worked as expected.
About the PPG sensor address for TWP3 I don't know which one it is, I guess it is the same as the Fossil Gen5, because it works.
bernarbernuli said:
Hi, I have tried your app, it's great that you are doing this.
I have tested it on Ticwatch Pro 3 GPS, it works correctly, shows heart rate and cardiogram for arrhythmias.
When I started the app for the first time it did not ask me to enable sensor permissions nor did it alert me that it did not have the permission enabled when I started monitoring. I activated them manually and it worked as expected.
About the PPG sensor address for TWP3 I don't know which one it is, I guess it is the same as the Fossil Gen5, because it works.
Click to expand...
Click to collapse
Thank you so much! Didn't expect such a quick feedback!
I'll try correcting the permission part. And it's great to know, that app is compatible with TWP3.
Just in case, keep in mind, that this app runs in the background and should be stopped manually.
Hi, I would like to try this on my Fossil 6. Do you install the .apk on the watch or phone? Sorry, I've never installed outside of PlayStore.
a0323022 said:
Hi, I would like to try this on my Fossil 6. Do you install the .apk on the watch or phone? Sorry, I've never installed outside of PlayStore.
Click to expand...
Click to collapse
You can utilize this method to install this and any apk directly to WearOS.
A slightly updated version of the app, which now includes a request for permission to use BODY_SENSORS.
Gastopako said:
Hi all,
I have developed an application for a Wear OS, intended for a robust continuous atrial fibrillation (arrhythmia) and heart rate monitoring, which uses an optical sensor (green light) in the bottom of the watch. I'm currently limited to Fossil Gen 5 watch since my Samsung Galaxy Watch 4 won't give software access to its optical sensor.
Having said that, would anybody here like to test the app on their watches? It still needs to be improved and optimized, therefore, feedback would be appreciated. Also, it would run on other watches, however, in that case I would need to know an address of an optical sensor (Fossil Gen5 PPG sensor is 65572) so I could update the app.
I'd like to publish it in Google Play sometime later, have never done it before, it looks quite tricky, however, I filled most of the things there already.
Click to expand...
Click to collapse
Privileged Health SDK | Samsung Developers
Aiming to advance innovation and development of new health and wellness solutions
developer.samsung.com
Looks to me like Samsung has their sensor hidden behind this 'privileged' api, might be worth trying to request access?
Actually I was able to find a couple potential addresses for the Samsung sensor when I poked around a bit, were you unable to actually access the hardware even with the address?
mangobot said:
Actually I was able to find a couple potential addresses for the Samsung sensor when I poked around a bit, were you unable to actually access the hardware even with the address?
Click to expand...
Click to collapse
Thanks for the tip. As I matter of fact I did try contacting them in the exact same way you showed, however, I the declined my request without explanation. Maybe it is because I didn't mention any affiliation with business or something like that. I'll try requesting once again.
I also tried reading all the accessible sensors in Watch 4, however, software access to the PPG sensors is restricted.
I guess the sensor you are referring to is this one:
Samsung PPGBatch Sensor /Type_String: com.samsung.sensor.ppg_batch /Type_number: 69668
Galaxy Watch 4 offers wide range of sensors and I have developed quite a lot of various algorithms, which could be implemented, e.g., continuous SpO2 monitoring (red and infrared optical sensors), confirmation of a suspected atrial fibrillation (detected by using green light optical sensor) using an ECG strip.
I tested app on TicWatch E3 and it does work on this watch. However, I noticed that the quality of the Photoplethysmogram signal is worse than what I get in Fossil Gen 5 watch. With Fossil Gen 5 watch, you don't even have to search for a good spot on the wrist, the quality is always good and it is not the case with TicWatch E3. The algorithm in the app won't throw false alarms because of that, the signal quality is constantly monitored, however, with that kind of quality it would be tricky to detect AF if it was present.
I apologize but I would like some help. I have a ticwatch E3. I apparently installed the app using Wear Installer 2. That app indicated that the installation was was successful. However, the app does not appear in my launcher. Is there something else I need to do?
exswim said:
I apologize but I would like some help. I have a ticwatch E3. I apparently installed the app using Wear Installer 2. That app indicated that the installation was was successful. However, the app does not appear in my launcher. Is there something else I need to do?
Click to expand...
Click to collapse
You might want to consider utilizing Bugjaeger Mobile ADB as a really alternative and innovative solution to the problem of sideloading apps on Wear OS devices.
Thanks for the reply. Another question, as I said the Wear Installer 2 indicated that the app was installed. Would this app appear as an app in settings or in the launcher. If not, where is it on my watch?
Gastopako said:
I tested app on TicWatch E3 and it does work on this watch. However, I noticed that the quality of the Photoplethysmogram signal is worse than what I get in Fossil Gen 5 watch. With Fossil Gen 5 watch, you don't even have to search for a good spot on the wrist, the quality is always good and it is not the case with TicWatch E3. The algorithm in the app won't throw false alarms because of that, the signal quality is constantly monitored, however, with that kind of quality it would be tricky to detect AF if it was present.
Click to expand...
Click to collapse
I would like some help. I have a ticwatch E3. I apparently installed the app using Wear Installer 2. That app indicated that the installation was was successful. However, the app does not appear in my launcher. Is there something else I need to do?
exswim said:
Thanks for the reply. Another question, as I said the Wear Installer 2 indicated that the app was installed. Would this app appear as an app in settings or in the launcher. If not, where is it on my watch?
Click to expand...
Click to collapse
It would appear as an app in the launcher.
Hi, I did some updates to the app, mainly in the representation of the heart rate change over time. There are some as to say, drawbacks because for now heart rate values are saved in a local variable, therefore, if app was closed and restarted, the previous heart rate log would not be saved. I also have some thoughts in adding additional screen for the parameters of atrial fibrillation if one was detected, however, still not sure what information (e.g., beginning and the end of the AF episode, duration of the AF episode, etc. ) regarding this would be relevant for an ordinary user. Maybe some of you might have ideas what info would be of utmost relevance for you.
I would love to use this app on my Samsung Watch 5. I hope you succeed in getting access to the sensors on the Samsung Watches. I think your app would be very popular!
Hi, I know it's a tech site but to anyone suffering from atrial fibrillation-one of the most common but least talked about causes is head and neck posture/atlas position, slumped forward posture- very common with the amount of time we spend on our computers- see Dr John Berg youtube channel -
A good chiropractor or acupuncture practitioner can help to correct these abnormal and harmful postures and could possibly save you from surgery or pacemaker..
Don't ignore other causes which are more serious though-especially in the lat 2 years- lots of people are getting abnormal blood clotting since having a certain injection or getting long covid.
mura20 said:
I would love to use this app on my Samsung Watch 5. I hope you succeed in getting access to the sensors on the Samsung Watches. I think your app would be very popular!
Click to expand...
Click to collapse
Thanks! I haven't motivated myself to fill the request for getting the sensor access yet. It is quite complicated. Another thing that I noticed is that the raw green PPG signal from Galaxy Watch 4 and 5 is sampled at 25 Hz. Mine algorithm uses higher sampling frequency. According to the info provided by Samsung, only RED and Infrared PPGs in Galaxy Watch 4 and 5 are sampled at 100 Hz.
I am planning on improving the app by integrating it with Health Connect or with something similar. Currently the app stores, e.g., heart rate data in temporary variables, which are cleared as soon as the app is restarted. Another option was to write data in the main storage; however, data management seems tricky to me, I wouldn't want to deal with databases on my own.
Are you able to get raw RED and IR PPG sensor data (or any of the PPG sensor data)?

Categories

Resources